本文整理匯總了PHP中site_include_view函數的典型用法代碼示例。如果您正苦於以下問題:PHP site_include_view函數的具體用法?PHP site_include_view怎麽用?PHP site_include_view使用的例子?那麽, 這裏精選的函數代碼示例或許可以為您提供幫助。
在下文中一共展示了site_include_view函數的8個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: site_page_nav
<?php
include '_partials/head.php';
?>
<body class="page-home">
<?php
include '_partials/header.php';
site_page_nav();
?>
<div class="theme-wrapper block-wrapper wrapper">
<?php
$template = site_view_path('_partials/theme-small.php');
foreach ($themes as $theme) {
include $template;
}
?>
</div>
<?php
if ('wordpress.com' != $tag && !DISABLE_THEME_CLUB) {
site_include_view('_partials/theme-club.php');
}
include '_partials/footer.php';
示例2: ellipsis
<p>We designed Passenger to look good on all devices – from desktop computers and laptops to smartphones and tablets.</p>
<h2>Post Formats</h2>
<p>Passenger supports several post formats: image, video, gallery, and quote. Each format has a unique style for the blog, archive and search pages. This adds visual interest to your content, and helps you tell your stories more clearly.</p>
<h2>Custom Headers and Backgrounds</h2>
<p>Passenger lets you upload your own header image via Customize → Header. You can also personalize your site with a background color or image by going to Customize → Colors & Backgrounds.</p>
<h2>Widget Areas</h2>
<p>Passenger has two widget areas where you can add different tools and content to your site. All widget areas will stay hidden until you add widgets to them.</p>
<ul>
<li><strong>Overlay widget area</strong> – This area displays on all pages in an overlay that is accessed by clicking the ellipsis (three dots) in the top-right corner of your website.</li>
<li><strong>Footer widget area</strong> – This area displays at the bottom of every page on the site.</li>
</ul>
<h2>Contributors Template</h2>
<p>Passenger includes a Contributors template, which will list all of the authors on your website, sorted by how many posts each person has published. It’s great for magazines and other multi-author blogs.</p>
<?php
site_include_view('_partials/theme-recommended-plugins.php');
?>
</div>
示例3: site_include_view
<div class="block showcase-website">
<a href="http://<?php
echo $url;
?>
" target="_blank" class="image">
<img src="<?php
echo $image_url;
?>
" width="400" height="300" alt="<?php
echo $url;
?>
Screenshot" />
</a>
<div class="meta">
<h3><?php
echo $url;
?>
</h3>
<p><?php
echo $description;
?>
</p>
</div>
</div>
<?php
}
?>
</div>
<?php
site_include_view('_partials/more-themes.php');
示例4: documentation_page_property
<h1><?php
echo documentation_page_property($page);
?>
</h1>
<?php
documentation_required_plugin($page);
site_include_view('_support/_feature/' . $page . '.php');
documentation_supported_themes($page);
documentation_related($page);
示例5: path
echo path('documentation/general/demo-content/');
?>
">More about demo content</a></li>
</ul>
<?php
if (!empty($doc['price-wpcom'])) {
?>
<p class="note tip"><a href="https://wordpress.com/theme/<?php
echo $page;
?>
/setup/">Documentation for WordPress.com is available here.</a></p>
<?php
}
site_include_view('_support/_theme/' . $page . '.php');
documentation_theme_features($doc);
?>
<!-- Theme Languages -->
<?php
if (!empty($doc['path-languages'])) {
?>
<h2><?php
echo $doc['name'];
?>
has the following translations included:</h2>
<p class="intro"><?php
include $doc['path-languages'];
?>
</p>
示例6: path
<a href="<?php
echo path();
?>
">
<!-- <img src="<?php
echo image_path('website/logo.png');
?>
" alt="Pro Theme Design Logo" style="height:3rem; margin-right:0.1em;" /> -->
<?php
site_header_title();
?>
</a>
</<?php
echo $h;
?>
>
<!-- <p class="animated fadeInUp site-description"><?php
site_description();
?>
</p> -->
</div>
<?php
site_include_view('_partials/nav.php');
?>
</header>
示例7: site_breadcrumbs
<body class="page-article">
<?php
include '_partials/header.php';
?>
<div class="wrapper text">
<?php
site_breadcrumbs();
?>
<h1><?php
echo $article['name'];
?>
</h1>
<?php
site_include_view('_articles/' . $article['path'] . '.php');
?>
<p class="note twitter">What do you think? Could we improve this? <a href="<?php
echo twitter_share_link('I just read "' . $article['name'] . '" by @prothemedesign');
?>
" target="_blank">Let us know on Twitter</a>.</p>
<p class="meta">First published on: <time><?php
echo $article['date'];
?>
</time></p>
<hr />
<h1>More Articles</h1>
示例8: documentation_page_name
<h1><?php
echo documentation_page_name($page);
?>
</h1>
<?php
site_include_view('_support/_general/' . $page . '.php');
documentation_related($page);