Exemplo n.º 1
0
 public static function add_accordion($accordion)
 {
     self::$accordion = $accordion;
     //save for later
     wp_enqueue_style('gc-accordion', plugins_url('styles/accordion.css', dirname(__FILE__)), array(), GENESIS_CLUB_VERSION);
     wp_enqueue_script('gc-accordion', plugins_url('scripts/jquery.accordion.js', dirname(__FILE__)), array('jquery'), GENESIS_CLUB_VERSION, true);
     add_action(is_admin() ? 'admin_print_footer_scripts' : 'wp_print_footer_scripts', array(__CLASS__, 'init_accordion'), 20);
     if (is_archive()) {
         add_filter('genesis_pre_get_option_content_archive', array(__CLASS__, 'full_not_excerpt'));
         add_filter('genesis_pre_get_option_content_archive_limit', array(__CLASS__, 'no_content_limit'));
         if (Genesis_Club_Utils::is_html5()) {
             remove_action('genesis_entry_content', 'genesis_do_post_image', 8);
         } else {
             remove_action('genesis_post_content', 'genesis_do_post_image');
         }
     }
 }
Exemplo n.º 2
0
 function add_archive_panel($content, $term, $tt_id)
 {
     return array('Accordion' => $this->accordion_section(Genesis_Club_Accordion::get_accordion('terms', $term->term_id), true)) + $content;
 }