genesis theme hooks

webseminar 게시판 자료게시판 genesis theme hooks

  • This topic has 1개 답변, 1명 참여, and was last updated 3 개월 by MIRU.
1 답변 글타래를 보이고 있습니다
  • 글쓴이
    • MIRU
      운영자

      Also see the Genesis Filter Reference

      Initialization
      These hooks are found in /genesis/lib/init.php

      genesis_pre
      genesis_pre_framework
      genesis_init
      genesis_setup
      Header
      These hooks are found in /genesis/header.php

      genesis_doctype
      genesis_title
      genesis_meta
      genesis_before
      genesis_before_header
      genesis_header
      genesis_after_header
      These hooks are found in /genesis/lib/structure/header.php

      genesis_site_title
      genesis_site_description
      genesis_header_right
      Content Area
      These hooks are found in /genesis/lib/framework.php

      genesis_before_content_sidebar_wrap
      genesis_before_content
      genesis_before_loop
      genesis_loop
      genesis_after_loop
      genesis_after_content
      genesis_after_content_sidebar_wrap
      These hooks are found in genesis/lib/structure/loops.php

      genesis_before_while
      genesis_before_entry
      genesis_entry_header
      genesis_before_entry_content
      genesis_entry_content
      genesis_after_entry_content
      genesis_entry_footer
      genesis_after_entry
      genesis_after_endwhile
      genesis_loop_else
      This hook can be found in genesis/lib/structure/archive.php

      genesis_archive_title_descriptions
      Comments
      These hooks are found in /genesis/comments.php

      genesis_before_comments
      genesis_comments
      genesis_after_comments
      genesis_before_pings
      genesis_pings
      genesis_after_pings
      genesis_before_comment_form
      genesis_comment_form
      genesis_after_comment_form
      These hooks are found in /genesis/lib/structure/comments.php

      genesis_list_comments
      genesis_list_pings
      genesis_before_comment
      genesis_after_comment
      Sidebar
      These hooks are found in /genesis/sidebar.php

      genesis_before_sidebar_widget_area
      genesis_sidebar
      genesis_after_sidebar_widget_area
      These hooks are found in /genesis/sidebar-alt.php

      genesis_before_sidebar_alt_widget_area
      genesis_sidebar_alt
      genesis_after_sidebar_alt_widget_area
      Footer
      These hooks are found in /genesis/footer.php

      genesis_before_footer
      genesis_footer
      genesis_after_footer
      genesis_after
      Other Frontend Hooks
      genesis_register_nav_menus in /genesis/lib/structure/menu.php
      genesis_reset_loops in /genesis/lib/structure/post.php
      Admin
      These hooks are found in a variety of files.

      genesis_admin_init
      genesis_admin_menu
      genesis_cpt_archives_settings_metaboxes
      genesis_export
      genesis_import
      genesis_import_export_form
      genesis_theme_settings_metaboxes
      genesis_customizer
      genesis_upgrade
      genesis_admin_before_metaboxes
      genesis_admin_after_metaboxes
      {$this->pagehook}_settings_page_boxes
      {$this->pagehook}_settings_page_form

      신고하기
    • MIRU
      운영자
      </div>
      <div class="sidebar">
      
      	<?php if ( ( function_exists( 'is_bbpress' ) && is_bbpress() && ! is_front_page() ) || is_page( 'new-topic' ) ) : ?>
      
      		<?php if ( bbp_is_single_forum() || bb_base_topic_search_query( false ) ) : ?>
      
      			<div>
      				<h3><?php _e( 'Forum Info', 'bbporg'); ?></h3>
      				<ul class="forum-info">
      					<?php bb_base_single_forum_description(); ?>
      				</ul>
      			</div>
      
      			<?php bb_base_topic_search_form(); ?>
      
      			<div>
      				<h3><?php _e( 'Forum Feeds', 'bbporg'); ?></h3>
      				<ul>
      					<li><a class="feed" href="<?php bbp_forum_permalink(); ?>feed/" title="<?php esc_attr_e( 'Forum Posts', 'bborg' ); ?>"><?php esc_html_e( 'Recent Posts', 'bborg' ); ?></a></li>
      					<li><a class="feed" href="<?php bbp_forum_permalink(); ?>feed/?type=topic" title="<?php esc_attr_e( 'Forum Topics', 'bborg' ); ?>"><?php esc_html_e( 'Recent Topics', 'bborg' ); ?></a></li>
      				</ul>
      			</div>
      
      		<?php elseif ( bbp_is_single_topic() || bbp_is_topic_edit() || bbp_is_reply_edit() ) : ?>
      
      			<div>
      				<h3><?php _e( 'Topic Info', 'bbporg'); ?></h3>
      				<ul class="topic-info">
      					<?php bb_base_single_topic_description(); ?>
      				</ul>
      			</div>
      
      			<div>
      				<?php bbp_topic_tag_list( 0, array(
      					'before' => '<h3>' . esc_html__( 'Topic Tags', 'bborg' ) . '</h3><ul class="topic-tags"><li>',
      					'after'  => '</li></ul>',
      					'sep'    => '</li><li>',
      				) ); ?>
      			</div>
      
      			<?php bb_base_reply_search_form(); ?>
      
      			<?php if ( current_user_can( 'moderate', bbp_get_topic_id() ) ) : ?>
      
      				<div>
      					<?php bbp_topic_admin_links( array (
      						'id'     => bbp_get_topic_id(),
      						'before' => '<h3>' . esc_html__( 'Topic Admin', 'bborg' ) . '</h3><ul class="topic-admin-links"><li>',
      						'after'  => '</li></ul>',
      						'sep'    => '</li><li>',
      						'links'  => array()
      					) ); ?>
      				</div>
      
      			<?php endif; ?>
      
      		<?php else : ?>
      
      			<div>
      				<h3><?php _e( 'Forums', 'bbporg'); ?></h3>
      				<?php echo do_shortcode( '[bbp-forum-index]' ); ?>
      			</div>
      			<hr class="hidden" />
      
      			<div>
      				<h3><?php _e( 'Views', 'bbporg'); ?></h3>
      				<ul>
      
      					<?php foreach ( bbp_get_views() as $view => $args ) : ?>
      
      						<li><a class="bbp-view-title" href="<?php bbp_view_url( $view ); ?>" title="<?php bbp_view_title( $view ); ?>"><?php bbp_view_title( $view ); ?></a></li>
      
      					<?php endforeach; ?>
      
      				</ul>
      			</div>
      
      			<div>
      				<h3><?php _e( 'Feeds', 'bbporg'); ?></h3>
      				<ul>
      					<li><a class="feed" href="<?php bbp_forums_url(); ?>feed/" title="<?php esc_attr_e( 'All Recent Posts', 'bborg' ); ?>"><?php esc_html_e( 'All Recent Posts', 'bborg' ); ?></a></li>
      					<li><a class="feed" href="<?php bbp_topics_url(); ?>feed/" title="<?php esc_attr_e( 'All Recent Topics', 'bborg' ); ?>"><?php esc_html_e( 'All Recent Topics', 'bborg' ); ?></a></li>
      				</ul>
      			</div>
      
      			<div>
      				<h3><?php _e( 'Tags', 'bbporg'); ?></h3>
      				<?php echo do_shortcode( '[bbp-topic-tags]' ); ?>
      			</div>
      
      		<?php endif; ?>
      
      	<?php elseif ( is_front_page() || is_404() ) : ?>
      
      		<div class="feature">
      			<h3><?php _e('WordPress', 'bbporg'); ?></h3>
      			<p><a href="https://wordpress.org"><img width="78" height="58" alt="" src="<?php echo get_template_directory_uri(); ?>/images/wordpress.gif"/></a><?php esc_html_e( 'The worlds most powerful web publishing software.', 'bborg' ); ?></p>
      		</div>
      		<div class="feature">
      			<h3><?php _e('bbPress', 'bbporg'); ?></h3>
      			<p><a href="https://bbpress.org"><img width="78" height="58" alt="" src="<?php echo get_template_directory_uri(); ?>/images/bbpress.gif"/></a><?php esc_html_e( 'Simple and elegant forum software from the creators of WordPress.', 'bborg' ); ?></p>
      		</div>
      		<div style="margin-right: 0pt;" class="feature">
      			<h3><?php _e('BuddyPress', 'bbporg'); ?></h3>
      			<p><a href="https://buddypress.org"><img width="78" height="58" alt="" src="<?php echo get_template_directory_uri(); ?>/images/buddypress.gif"/></a><?php esc_html_e( 'Create a fully featured niche social-network with a few easy clicks.', 'bborg' ); ?></p>
      		</div>
      
      	<?php elseif ( ( ! is_page( 'login' ) && ! is_page( 'register' ) && ! is_page( 'lost-password' ) ) || is_home() || is_singular( 'post' ) || is_archive() ) : ?>
      
      		<div>
      			<h3><?php _e( 'Categories', 'bbporg'); ?></h3>
      			<ul>
      				<?php wp_list_categories( array( 'title_li' => false ) ); ?>
      			</ul>
      		</div>
      
      		<div>
      			<h3><?php _e( 'Tags', 'bbporg'); ?></h3>
      			<?php wp_tag_cloud(); ?>
      		</div>
      
      	<?php endif; ?>
      
      </div>
      신고하기
1 답변 글타래를 보이고 있습니다
  • 답변은 로그인 후 가능합니다.