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


PHP theme_404_content函数代码示例

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


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

示例1: theme_post_wrapper

    theme_post_wrapper(array('content' => ob_get_clean(), 'class' => 'breadcrumbs'));
    /* Display navigation to next/previous pages when applicable */
    if (theme_get_option('theme_top_posts_navigation')) {
        theme_page_navigation();
    }
    /* Start the Loop */
    while (have_posts()) {
        the_post();
        get_template_part('content', get_post_format());
    }
    /* Display navigation to next/previous pages when applicable */
    if (theme_get_option('theme_bottom_posts_navigation')) {
        theme_page_navigation();
    }
} else {
    theme_404_content();
}
?>
			<?php 
get_sidebar('bottom');
?>
              <div class="cleared"></div>
            </div>
            <div class="art-layout-cell art-sidebar1">
              <?php 
get_sidebar('default');
?>
              <div class="cleared"></div>
            </div>
        </div>
    </div>
开发者ID:numfocus,项目名称:website,代码行数:31,代码来源:archive.php

示例2: theme_post_wrapper

    theme_post_wrapper(array('content' => '<h4 class="box-title">' . sprintf(__('Search Results for: %s', THEME_NS), '<span class="search-query-string">' . get_search_query() . '</span>') . '</h4>'));
    /* Display navigation to next/previous pages when applicable */
    if (theme_get_option('theme_top_posts_navigation')) {
        theme_page_navigation();
    }
    /* Start the Loop */
    while (have_posts()) {
        the_post();
        get_template_part('content', get_post_format());
    }
    /* Display navigation to next/previous pages when applicable */
    if (theme_get_option('theme_bottom_posts_navigation')) {
        theme_page_navigation();
    }
} else {
    theme_404_content(array('error_title' => __('Nothing Found', THEME_NS), 'error_message' => __('Sorry, but nothing matched your search criteria. Please try again with some different keywords.', THEME_NS)));
}
?>
			<?php 
get_sidebar('bottom');
?>
              <div class="cleared"></div>
            </div>
            <div class="art-layout-cell art-sidebar1">
              <?php 
get_sidebar('default');
?>
              <div class="cleared"></div>
            </div>
        </div>
    </div>
开发者ID:numfocus,项目名称:website,代码行数:31,代码来源:search.php


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