function custom_page_nav() { /* Before page nav hook. */ do_atomic( 'before_page_nav' ); /* Arguments for wp_page_menu(). Users should filter 'wp_page_menu_args' to change. */ $args = array( //'show_home' => __( 'Home', hybrid_get_textdomain() ), 'menu_class' => 'page-nav', 'sort_column' => 'menu_order', 'depth' => 2, 'echo' => 0, 'link_before' => '', 'link_after' => '' ); /* Strips formatting and spacing to make the code less messy on display. */ $nav = str_replace( array( "\r", "\n", "\t" ), '', wp_page_menu( $args ) ); //"class=\"" /* Adds the #page-nav ID to the wrapping element. */ $nav = str_replace( '<div class="', '<div id="page-nav" class="', $nav ); /* Adds the .menu and .sf-menu classes for use with the drop-down JavaScript. */ $nav = preg_replace( '/<ul>/', '<ul class="menu sf-menu clear-hack"><li class="page_item page-item-external"><a href="http://thejester.sideshowtramps.com">The Jester</a></li>', $nav, 1 ); echo $nav; /* After page nav hook. */ do_atomic( 'after_page_nav' ); }
} ?> <?php do_atomic('before_comment_list'); // my-life_before_comment_list ?> <ol class="comment-list"> <?php wp_list_comments(hybrid_list_comments_args()); ?> </ol><!-- .comment-list --> <?php do_atomic('after_comment_list'); // my-life_after_comment_list ?> <?php } ?> <?php if (pings_open() && !comments_open()) { ?> <p class="comments-closed pings-open"> <?php printf(__('Comments are closed, but <a href="%s" title="Trackback URL for this post">trackbacks</a> and pingbacks are open.', 'my-life'), esc_url(get_trackback_url())); ?>
<div id="comments-template"> <?php if ( have_comments() ) : ?> <div id="comments"> <h3 id="comments-number" class="comments-header"><?php comments_number( sprintf( __( 'No responses to %1$s', hybrid_get_parent_textdomain() ), the_title( '“', '”', false ) ), sprintf( __( 'One response to %1$s', hybrid_get_parent_textdomain() ), the_title( '“', '”', false ) ), sprintf( __( '%1$s responses to %2$s', hybrid_get_parent_textdomain() ), '%', the_title( '“', '”', false ) ) ); ?></h3> <?php do_atomic( 'before_comment_list' ); // Before comment list hook ?> <ul class="comment-list"> <?php wp_list_comments( hybrid_list_comments_args() ); ?> </ul><!-- .comment-list --> <?php do_atomic( 'after_comment_list' ); // After comment list hook ?> <?php if ( get_option( 'page_comments' ) ) : ?> <div class="comment-navigation comment-pagination paged-navigation"> <?php paginate_comments_links(); ?> </div><!-- .comment-navigation --> <?php endif; ?> </div><!-- #comments --> <?php else : ?> <?php if ( pings_open() && !comments_open() ) : ?> <p class="comments-closed pings-open"> <?php printf( __( 'Comments are closed, but <a href="%1$s" title="Trackback URL for this post">trackbacks</a> and pingbacks are open.', hybrid_get_parent_textdomain() ), trackback_url( '0' ) ); ?>
/** * @since 0.6.0 * @deprecated 1.0.0 */ function hybrid_after_comment_list() { _deprecated_function(__FUNCTION__, '1.0.0', "do_atomic( 'after_comment_list' )"); do_atomic('after_comment_list'); }
<?php do_atomic('before_sidebar_primary'); // hatch_before_sidebar_primary ?> <div id="sidebar-primary" class="sidebar"> <?php do_atomic('open_sidebar_primary'); // hatch_open_sidebar_primary ?> <?php dynamic_sidebar('primary'); ?> <?php do_atomic('close_sidebar_primary'); // hatch_close_sidebar_primary ?> </div><!-- #sidebar-primary .aside --> <?php do_atomic('after_sidebar_primary'); // hatch_after_sidebar_primary ?> <?php }
* It is used to display a page when nothing more specific matches a query, * e.g., it puts together the home page when no home.php file exists. * * @link http://codex.wordpress.org/Template_Hierarchy * * @package WordPress * @subpackage Twenty_Fourteen * @since Twenty Fourteen 1.0 */ get_header(); ?> <div id="content"> <?php do_atomic('open_content'); // origin_open_content ?> <div id="top-content"> <div id="main-txt"> <a href="/exhibition/on-orbit/"> <img src="<?php echo get_template_directory_uri(); ?> /img/exhibition/on-orbit/title_top.png" alt="On-Orbit"> <h2> Exhibition at<br>
</div><!-- #header --> <?php do_atomic('after_header'); // prototype_after_header ?> <?php get_template_part('menu', 'secondary'); // Loads the menu-secondary.php template. ?> <?php do_atomic('before_main'); // prototype_before_main ?> <div id="main"> <div class="wrap"> <?php do_atomic('open_main'); // prototype_open_main ?> <?php if (current_theme_supports('breadcrumb-trail')) { breadcrumb_trail(array('before' => __('You are here:', hybrid_get_textdomain()))); }
<?php do_atomic('before_sidebar_subsidiary'); // origin_before_sidebar_subsidiary ?> <div id="sidebar-subsidiary" class="sidebar"> <?php do_atomic('open_sidebar_subsidiary'); // origin_open_sidebar_subsidiary ?> <?php dynamic_sidebar('subsidiary'); ?> <?php do_atomic('close_sidebar_subsidiary'); // origin_close_sidebar_subsidiary ?> </div><!-- #sidebar-subsidiary .aside --> <?php do_atomic('after_sidebar_subsidiary'); // origin_after_sidebar_subsidiary ?> <?php }
?> <div id="menu-subsidiary" class="menu-container"> <div class="wrap"> <?php do_atomic('open_menu_subsidiary'); // oxygen_open_menu_subsidiary ?> <?php wp_nav_menu(array('theme_location' => 'subsidiary', 'container_class' => 'menu', 'menu_class' => '', 'menu_id' => 'menu-subsidiary-items', 'depth' => 1, 'fallback_cb' => '')); ?> <?php do_atomic('close_menu_subsidiary'); // oxygen_close_menu_subsidiary ?> </div> </div><!-- #menu-subsidiary .menu-container --> <?php do_atomic('after_menu_subsidiary'); // oxygen_after_menu_subsidiary ?> <?php }
/** * Outputs the widget based on the arguments input through the widget controls. * * @param array $sidebar * @param array $instance * @since Cakifo 1.3 */ function widget($sidebar, $instance) { extract($sidebar); $post_id = get_the_ID(); /* Get related posts from post meta. */ $related_posts = get_post_meta($post_id, 'related', false); /* No related posts found, get them! */ if (empty($related_posts)) { $this->_get_related_posts($post_id, $instance); // Get the post meta again $related_posts = get_post_meta($post_id, 'related', false); } /* Output the theme's $before_widget wrapper. */ echo $before_widget; /* If a title was input by the user, display it. */ if (!empty($instance['title'])) { echo $before_title . apply_filters('widget_title', sprintf($instance['title'], get_the_title($post_id)), $instance, $this->id_base) . $after_title; } /* Are there any related posts? */ if (!empty($related_posts)) { $show_thumbnails = (bool) $instance['show_thumbnail']; // CSS class $class = $show_thumbnails ? 'with-thumbnails clearfix' : 'clearfix'; do_atomic('before_related_posts_list'); // cakifo_before_related_posts_list echo '<ul class="' . esc_attr($class) . '">'; $i = 0; // Run through each post foreach ($related_posts as $post) { ?> <?php $title = $post['title']; ?> <?php do_atomic('before_related_posts_list_item'); // cakifo_before_related_posts_list_item ?> <li class="related-post"> <?php do_atomic('open_related_posts_list_item'); // cakifo_open_related_posts_list_item ?> <a href="<?php echo get_permalink($post['post_id']); ?> " title="<?php printf(esc_attr__('Read %s', 'cakifo'), esc_attr($title)); ?> "> <?php // Show post thumbnail if ($show_thumbnails && !empty($post['thumbnail'])) { echo wp_get_attachment_image($post['thumbnail'], 'small', false, array('title' => esc_attr($title))); // Show post title } else { echo empty($title) ? '<span>' . _x('Untitled', 'untitled post', 'cakifo') . '</span>' : '<span>' . $title . '</span>'; } ?> </a> <?php do_atomic('close_related_posts_list_item'); // cakifo_close_related_posts_list_item ?> </li> <!-- .related-post --> <?php do_atomic('after_related_posts_list_item'); // cakifo_after_related_posts_list_item ?> <?php // Stop at the limit. This is used when there's more than one Related Posts widget at a page. $i++; if ($i == $instance['limit']) { break; } ?> <?php } echo '</ul>'; do_atomic('after_related_posts_list'); // cakifo_after_related_posts_list // Nope, no related posts } else { _e('No related posts.', 'cakifo'); } /* Close the theme's widget wrapper. */ echo $after_widget; }
<?php /** * Portfolio item template */ ?> <div id="post-<?php the_ID(); ?> " class="<?php hybrid_entry_class(); ?> columns medium-4 small-6 grid-item"> <div class="post-portfolio"> <!-- The image --> <?php do_atomic("open_entry"); if (current_theme_supports("get-the-image") && has_post_thumbnail()) { get_the_image(array("size" => "medium", "image_class" => "featured", "width" => 300, "default_image" => get_template_directory_uri() . "/images/archive_image_placeholder.png")); } // Title echo apply_atomic_shortcode("entry_title", "[entry-title]"); ?> </div> <!-- .post-excerpt --> </div><!-- .grid-item -->
echo ' ' . esc_attr(hybrid_get_setting('telephone')); ?> </p> <?php } ?> <p><?php echo do_shortcode('[email]' . esc_attr(hybrid_get_setting('mail')) . '[/email]'); ?> </p> </div><!-- #sidebar-header --> <hgroup id="branding"> <?php do_atomic('open_header'); // crée un "hook" "repertoire_open_header ?> <?php hybrid_site_title(); ?> <?php hybrid_site_description(); ?> </hgroup><!-- #branding --> </header><!-- #header --> <?php get_template_part('menu', 'secondary'); // Loads the menu-primary.php template.
<?php do_atomic('close_content'); // close_content ?> <?php get_template_part('loop-nav'); // Loads the loop-nav.php template. ?> </div> <div class="col-lg-3 col-sm-4 col-xs-12"> <?php get_sidebar('right-sidebar'); // Loads the sidebar-right-sidebar.php template. do_atomic('right-sidebar'); // right_sidebar ?> </div> </div> </div> </div> <?php get_footer();
function swift_after_footer() { do_atomic('swift_after_footer'); }
<?php if ('0' == $comment->comment_approved) { ?> <?php echo apply_atomic_shortcode('comment_moderation', '<p class="alert moderation">' . __('Your comment is awaiting moderation.', 'oxygen') . '</p>'); ?> <?php } ?> <?php comment_text($comment->comment_ID); ?> </div><!-- .comment-content .comment-text --> <?php do_atomic('close_comment'); // oxygen_close_comment ?> </div><!-- .comment-wrap --> <?php do_atomic('after_comment'); // oxygen_after_comment ?> <?php /* No closing </li> is needed. WordPress will know where to add it. */
?> <li id="comment-<?php comment_ID(); ?> " <?php comment_class(); ?> > <?php do_atomic('open_comment'); ?> <header class="comment-header"> <div class="avatar-container"> <?php echo bon_avatar(); ?> </div> <?php echo apply_atomic_shortcode('comment_meta', '<div class="comment-meta">[comment-author] [comment-published] [comment-permalink before="⋅ "] [comment-edit-link before="⋅ "]</div>'); ?> </header> <?php do_atomic('close_comment'); ?> <?php /* No closing </li> is needed. WordPress will know where to add it. */
"><span><?php if ($status != 'none') { if (array_key_exists($status, $status_opt)) { echo $status_opt[$status]; } } ?> </span></div> </header><!-- .entry-header --> <div class="entry-summary"> <?php do_atomic('entry_summary'); ?> </div><!-- .entry-summary --> <?php bon_get_template_part('block', 'listing-footer'); ?> </article> </li> <?php } ?> </ul> <?php
* Secondary Sidebar Template * * The Secondary sidebar template houses the HTML used for the 'Secondary' sidebar. * It will first check if the sidebar is active before displaying anything. * * @package News * @subpackage Template */ if (is_active_sidebar('secondary')) { ?> <div id="sidebar-secondary" class="sidebar aside"> <?php do_atomic('before_sidebar_secondary'); // Before secondary sidebar hook ?> <?php dynamic_sidebar('secondary'); ?> <?php do_atomic('after_sidebar_secondary'); // After secondary sidebar hook ?> </div><!-- #sidebar-secondary .aside --> <?php }
</div> <div class="itemReadMore"> <a class="btn-read-more" href="<?php the_permalink(); ?> " title="Read More">Read More</a> </div> </div> <div class="clear"></div> </div> <div class="clear"></div> </div> <div class="clear"></div> </article> <?php } ?> <?php do_atomic('close_entry'); // close_entry ?> <div class="clear"></div> </div><!-- .hentry --> <?php do_atomic('after_entry'); // after_entry
if ($display) { comments_template('/comments.php', true); } // Loads the comments.php template ?> <?php } } ?> <?php do_atomic('close_main'); // cakifo_close_main ?> <?php get_template_part('loop-nav'); // Loads the loop-nav.php template ?> </div> <!-- #main --> <?php do_atomic('after_main'); // cakifo_after_main ?> <?php get_footer(); // Loads the footer.php template
<span class="sr-only">Toggle navigation</span> <span class="icon-bar"></span> <span class="icon-bar"></span> <span class="icon-bar"></span> </button> </div> <?php do_atomic('open_menu_primary'); // open_menu_primary ?> <?php wp_nav_menu(array('theme_location' => 'primary', 'container_class' => 'collapse navbar-collapse', 'container_id' => 'bs-example-navbar-collapse-1', 'menu_class' => 'nav navbar-nav', 'menu_id' => '', 'fallback_cb' => '')); ?> <?php do_atomic('close_menu_primary'); // close_menu_primary ?> </div><!-- .row --> </nav><!-- #menu-primary --> <?php do_atomic('after_menu_primary'); // after_menu_primary ?> <?php }
</div> <!-- .loop-meta --> <?php } elseif (is_archive()) { ?> <div class="loop-meta"> <h1 class="loop-title"><?php _e('Archives', 'cakifo'); ?> </h1> <div class="loop-description"> <p> <?php _e('You are browsing the site archives.', 'cakifo'); ?> </p> </div> <!-- .loop-description --> </div> <!-- .loop-meta --> <?php } ?> <?php do_atomic('after_loop_meta'); // cakifo_after_loop_meta
* */ do_atomic('before_loop'); ?> <?php bon_get_template_part('loop', 'car-listing'); ?> <?php bon_get_template_part('loop', 'nav'); // Loads the loop-nav.php template. ?> <?php /** * Shandora After Loop Hook * * @hooked shandora_close_main_content_column - 1 * @hooked shandora_get_right_sidebar - 5 * @hooked shandora_close_main_content_row - 10 * */ do_atomic('after_loop'); ?> </div> <?php get_footer();
<?php do_atomic('logo'); // logo ?> </div> <div class="menu col-sm-7"> <?php get_template_part('menu', 'primary'); // Loads the menu-primary.php template. ?> <?php do_atomic('before_main'); // before_main ?> </div> <div class="preset col-sm-2"> </div> </div> </div><!-- .container --> </header>
?> </hgroup> </header><!-- #header --> <div class="main-wrapper"> <?php if (is_page_template('page-templates/home.php') || is_front_page()) { bearded_featured_slider(); } ?> <div id="main<?php echo is_page_template('page-templates/home.php') ? '-home' : ''; ?> "> <?php if (!is_page_template('page-templates/home.php')) { ?> <div class="row"> <?php } ?> <?php do_atomic('open_main_row'); ?>
* Primary Menu Template * * Displays the Primary Menu if it has active menu items. * * @package Hybrid * @subpackage Template * @link http://themehybrid.com/themes/hybrid/menus */ if (has_nav_menu('primary')) { ?> <div id="primary-menu" class="menu-container"> <?php do_atomic('before_primary_menu'); // hybrid_before_primary_menu ?> <?php wp_nav_menu(array('theme_location' => 'primary', 'container_class' => 'menu', 'menu_class' => '', 'fallback_cb' => '')); ?> <?php do_atomic('after_primary_menu'); // hybrid_after_primary_menu ?> </div><!-- #primary-menu .menu-container --> <?php }
?> <?php } ?> <?php omega_content_nav('nav-below'); ?> <?php } else { ?> <?php get_template_part('partials/no-results', 'archive'); ?> <?php } ?> <?php do_atomic('after_content'); // omega_after_content ?> </main><!-- .content --> <?php get_footer();
/** * Left Sidebar Template * * @package L.THEME * @subpackage Template * @since 1.0 */ if (is_active_sidebar('left-sidebar')) { ?> <div id="sidebar-left-sidebar" class="sidebar"> <?php do_atomic('open_sidebar_left_sidebar'); // open_sidebar_left_sidebar ?> <?php dynamic_sidebar('left-sidebar'); ?> <?php do_atomic('close_sidebar_left_sidebar'); // close_sidebar_left_sidebar ?> </div><!-- #sidebar-left-sidebar --> <?php }
// trending_footer ?> </div><!-- .wrap --> <?php do_atomic('close_footer'); // trending_close_footer ?> </div><!-- #footer --> <?php do_atomic('after_footer'); // trending_after_footer ?> </div><!-- #container --> <?php do_atomic('close_body'); // trending_close_body ?> <?php wp_footer(); // wp_footer ?> </body> </html>
</div><!-- #header --> <?php do_atomic('after_header'); // After header hook ?> <?php get_template_part('menu', 'primary'); // Loads the menu-primary.php file ?> <?php do_atomic('before_container'); // Before container hook ?> <div id="container"> <div class="wrap"> <?php do_atomic('open_container'); // Open container hook ?> <?php if (current_theme_supports('breadcrumb-trail')) { breadcrumb_trail(array('before' => __('Browsing:', 'news') . ' <span class="sep">/</span>')); }