本文整理汇总了PHP中x_get_view函数的典型用法代码示例。如果您正苦于以下问题:PHP x_get_view函数的具体用法?PHP x_get_view怎么用?PHP x_get_view使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了x_get_view函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: the_permalink
<?php
}
?>
<?php
} else {
?>
<header class="entry-header">
<h2 class="entry-title">
<a href="<?php
the_permalink();
?>
" title="<?php
echo esc_attr(sprintf(__('Permalink to: "%s"', '__x__'), the_title_attribute('echo=0')));
?>
"><?php
x_the_alternate_title();
?>
</a>
</h2>
</header>
<?php
}
?>
<?php
x_get_view('integrity', '_content');
?>
</div>
<?php
x_google_authorship_meta();
?>
</article>
示例2: x_main_content_class
<div class="<?php
x_main_content_class();
?>
" role="main">
<?php
if ($is_filterable_index) {
?>
<?php
x_get_view('ethos', '_index');
?>
<?php
} else {
?>
<?php
x_get_view('global', '_index');
?>
<?php
}
?>
</div>
<?php
get_sidebar();
?>
</div>
</div>
<?php
示例3: x_get_view
<?php
// =============================================================================
// 404.PHP
// -----------------------------------------------------------------------------
// Handles errors when pages do not exist.
//
// Content is output based on which Stack has been selected in the Customizer.
// To view and/or edit the markup of your Stack's index, first go to "views"
// inside the "framework" subdirectory. Once inside, find your Stack's folder
// and look for a file called "wp-404.php," where you'll be able to find the
// appropriate output.
// =============================================================================
?>
<?php
x_get_view(x_get_stack(), 'wp', '404');
示例4: the_ID
// Standard post output for Integrity.
// =============================================================================
?>
<article id="post-<?php
the_ID();
?>
" <?php
post_class();
?>
>
<div class="entry-featured">
<?php
x_featured_image();
?>
</div>
<div class="entry-wrap">
<?php
x_get_view('integrity', '_content', 'post-header');
?>
<?php
x_get_view('integrity', '_content');
?>
</div>
<?php
x_get_view('integrity', '_content', 'post-footer');
?>
<?php
x_google_authorship_meta();
?>
</article>
示例5: get_header
<?php
// =============================================================================
// VIEWS/RENEW/WP-404.PHP
// -----------------------------------------------------------------------------
// Handles output for when a page does not exist.
// =============================================================================
?>
<?php
get_header();
?>
<div class="x-container max width offset">
<div class="x-main full" role="main">
<div class="entry-404">
<?php
x_get_view('global', '_content-404');
?>
</div>
</div>
</div>
<?php
get_footer();
示例6: x_get_view
<?php
// =============================================================================
// TEMPLATE NAME: Layout - WOLFGANG
// -----------------------------------------------------------------------------
// Handles output of fullwidth pages.
//
// Content is output based on which Stack has been selected in the Customizer.
// To view and/or edit the markup of your Stack's index, first go to "views"
// inside the "framework" subdirectory. Once inside, find your Stack's folder
// and look for a file called "template-layout-full-width.php," where you'll be
// able to find the appropriate output.
// =============================================================================
?>
<?php
x_get_view(x_get_stack(), 'template', 'layout-wolfgang');
示例7: x_get_view
// VIEWS/ETHOS/TEMPLATE-BLANK-7.PHP (Container | No Header, Footer)
// -----------------------------------------------------------------------------
// A blank page for creating unique layouts.
// =============================================================================
?>
<?php
x_get_view('global', '_header');
?>
<div id="top" class="site">
<?php
x_get_view('global', '_slider-revolution-above');
?>
<?php
x_get_view('global', '_slider-revolution-below');
?>
<div class="x-container-fluid max width main">
<div class="offset cf">
<div class="x-main full" role="main">
<article id="post-<?php
the_ID();
?>
" <?php
post_class();
?>
>
<div class="entry-wrap entry-content">
<?php
while (have_posts()) {
示例8: WP_Query
}
$wp_query = new WP_Query($args);
?>
<?php
if ($wp_query->have_posts()) {
?>
<?php
while ($wp_query->have_posts()) {
$wp_query->the_post();
?>
<?php
if ($stack != 'ethos') {
?>
<?php
x_get_view($stack, 'content', 'portfolio');
?>
<?php
} else {
?>
<?php
x_ethos_entry_cover('main-content');
?>
<?php
}
?>
<?php
}
?>
<?php
}
示例9: x_get_view
// -----------------------------------------------------------------------------
// Header output for Icon.
// =============================================================================
?>
<?php
x_get_view('global', '_header');
?>
<?php
x_get_view('global', '_slider-above');
?>
<header class="<?php
x_masthead_class();
?>
" role="banner">
<?php
x_get_view('global', '_topbar');
?>
<?php
x_get_view('global', '_navbar');
?>
<?php
x_get_view('icon', '_breadcrumbs');
?>
</header>
<?php
x_get_view('global', '_slider-below');
示例10: x_get_view
<?php
// =============================================================================
// WOOCOMMERCE.PHP
// -----------------------------------------------------------------------------
// Handles output of individual WooCommerce pages.
//
// Content is output based on which Stack has been selected in the Customizer.
// To view and/or edit the markup of your Stack's pages, first go to "views"
// inside the "framework" subdirectory. Once inside, find your Stack's folder
// and look for a file called "woocommerce.php," where you'll be able to find
// the appropriate output.
// =============================================================================
?>
<?php
x_get_view(x_get_stack(), 'woocommerce');
示例11: get_header
<?php
get_header();
?>
<div class="x-container-fluid max width offset cf">
<div class="<?php
x_main_content_class();
?>
" role="main">
<?php
while (have_posts()) {
the_post();
?>
<?php
x_get_view('integrity', 'content', 'bbpress');
?>
<?php
}
?>
</div>
<?php
get_sidebar();
?>
</div>
<?php
get_footer();
示例12: get_header
<?php
get_header();
?>
<div class="x-container max width offset">
<div class="<?php
x_main_content_class();
?>
" role="main">
<?php
x_get_view('global', '_content', 'the-content');
?>
<?php
x_get_view('global', '_portfolio');
?>
</div>
<?php
get_sidebar();
?>
</div>
<?php
get_footer();
?>
示例13: while
?>
<?php
if (have_posts()) {
?>
<?php
while (have_posts()) {
the_post();
?>
<?php
x_get_view($stack, 'content', get_post_format());
?>
<?php
}
?>
<?php
} else {
?>
<?php
x_get_view('global', '_content-none');
?>
<?php
}
?>
<?php
}
?>
<?php
pagenavi();
示例14: x_get_view
<?php
// =============================================================================
// SIDEBAR.PHP
// -----------------------------------------------------------------------------
// Handles sidebar output for posts and pages.
//
// Content is output based on which Stack has been selected in the Customizer.
// To view and/or edit the markup of your Stack's pages, first go to "views"
// inside the "framework" subdirectory. Once inside, find your Stack's folder
// and look for a file called "wp-sidebar.php," where you'll be able to find
// the appropriate output.
// =============================================================================
?>
<?php
x_get_view(x_get_stack(), 'wp', 'sidebar');
示例15: x_get_view
<?php
// =============================================================================
// FOOTER.PHP
// -----------------------------------------------------------------------------
// The site footer. Consists of the top footer area for widgets and the bottom
// footer area for secondary information. Includes wp_footer() hook as well.
//
// Content is output based on which Stack has been selected in the Customizer.
// To view and/or edit the markup of your Stack's index, first go to "views"
// inside the "framework" subdirectory. Once inside, find your Stack's folder
// and look for a file called "wp-footer.php," where you'll be able to find the
// appropriate output.
// =============================================================================
?>
<?php
x_get_view(x_get_stack(), 'wp', 'footer');