当前位置: 首页>>代码示例>>PHP>>正文


PHP do_atomic函数代码示例

本文整理汇总了PHP中do_atomic函数的典型用法代码示例。如果您正苦于以下问题:PHP do_atomic函数的具体用法?PHP do_atomic怎么用?PHP do_atomic使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。


在下文中一共展示了do_atomic函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: custom_page_nav

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' );

}
开发者ID:nerdfiles,项目名称:sideshowtramps.com,代码行数:31,代码来源:functions.php

示例2: do_atomic

    }
    ?>

				<?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()));
    ?>
开发者ID:panser,项目名称:wandromaha,代码行数:31,代码来源:comments.php

示例3: if

<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( '&#8220;', '&#8221;', false ) ), sprintf( __( 'One response to %1$s', hybrid_get_parent_textdomain() ), the_title( '&#8220;', '&#8221;', false ) ), sprintf( __( '%1$s responses to %2$s', hybrid_get_parent_textdomain() ), '%', the_title( '&#8220;', '&#8221;', 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' ) ); ?>
开发者ID:ryannmicua,项目名称:Pogidude-Hybrid,代码行数:30,代码来源:comments.php

示例4: hybrid_after_comment_list

/**
 * @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');
}
开发者ID:rdbartlett,项目名称:kellyspencer.co.nz,代码行数:9,代码来源:deprecated.php

示例5: do_atomic

	<?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 
}
开发者ID:jazzindizzin,项目名称:Quality-Timber-Doors,代码行数:30,代码来源:sidebar-primary.php

示例6: get_header

 * 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>
开发者ID:ARTSAT,项目名称:artsat-jp-themes,代码行数:31,代码来源:index_bkup.php

示例7: do_atomic

		</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())));
}
开发者ID:rdbartlett,项目名称:kellyspencer.co.nz,代码行数:30,代码来源:header.php

示例8: do_atomic

	<?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 
}
开发者ID:kasuparu,项目名称:wp-timecraft,代码行数:30,代码来源:sidebar-subsidiary.php

示例9: do_atomic

    ?>

	<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 
}
开发者ID:2030449c,项目名称:farkol,代码行数:31,代码来源:menu-subsidiary.php

示例10: widget

    /**
     * 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;
//.........这里部分代码省略.........
开发者ID:JerryXie96,项目名称:PBSMUNC2013WebSite,代码行数:101,代码来源:widget-related-posts.php

示例11: the_ID

<?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 -->
开发者ID:enamakel,项目名称:steven.pw-theme,代码行数:26,代码来源:post-small-thumbnail.php

示例12: esc_attr

    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.
开发者ID:aldelpech,项目名称:clea-base,代码行数:31,代码来源:header.php

示例13: do_atomic

                <?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();
开发者ID:syncrase,项目名称:webTemplates,代码行数:30,代码来源:page-one-sidebar-right.php

示例14: apply_atomic_shortcode

				<?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. */
开发者ID:RA2WP,项目名称:RA2WP,代码行数:31,代码来源:comment.php

示例15: comment_ID

?>

	<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="&sdot; "] [comment-edit-link before="&sdot; "]</div>');
?>
		</header>
		<?php 
do_atomic('close_comment');
?>

	<?php 
/* No closing </li> is needed.  WordPress will know where to add it. */
开发者ID:VadimSid,项目名称:thinkgreek,代码行数:31,代码来源:comment-ping.php


注:本文中的do_atomic函数示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。