本文整理汇总了PHP中load_partial函数的典型用法代码示例。如果您正苦于以下问题:PHP load_partial函数的具体用法?PHP load_partial怎么用?PHP load_partial使用的例子?那么, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了load_partial函数的13个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: load_partial
<div class="help">
<?php
load_partial("menu");
?>
<?php
load_partial("realms_submenu");
?>
</div>
<div id="realm">
<p class="splash">
Last modification timestamp is: <?php
echo $realm["ts"];
?>
</p>
<form action="" method="post" onsubmit="this.updaterealm.disabled=true;">
<input type="hidden" name="action" value="updaterealm" />
<label for="country">Federation’s two letter country code</label>
<input type="text" name="country" value="<?php
echo $realm["country"];
?>
" />
<label for="stype">Service type:</label>
<select name="stype">
<option value="0" <?php
if ($realm["stype"] == 0) {
echo 'selected=\\"selected\\"';
}
?>
>FLRS</option>
<option value="1" <?php
if ($realm["stype"] == 1) {
示例2: load_partial
<div class="help">
<?php
load_partial("menu");
?>
<?php
load_partial("mon_realm_logs_submenu");
?>
</div>
<div id="monrealm">
<form action="" method="post" onsubmit="this.addmonrealmlog.disabled=true;">
<input type="hidden" name="action" value="addmonrealmlog" />
<label for="mon_realmid">ID of Monitored Realm</label>
<?php
echo select_tag($rids, 'mon_realmid');
?>
<label for="mon_type">Type of Tests to Be Preformed</label>
<?php
$tests = array('0' => 'PAP', '1' => 'EAP-TTLS', '10' => 'PAP & EAP-TTLS');
echo select_tag($tests, 'mon_type');
?>
<label for="status">Federation Status:</label>
<?php
$statuses = array('0' => 'Ok (default)', '-1' => 'Reject logic test failed', '-2' => 'Accept logic test failed', '-3' => 'Both tests failed');
echo select_tag($statuses, 'status');
?>
<label for="a_resp_time">Response time for accept test</label>
<input type="text" name="a_resp_time" />
<label for="r_resp_time">Response time for reject test</label>
<input type="text" name="r_resp_time" />
<label for="mon_serid">ID of TLRS used for test</label>
<?php
示例3: load_partial
<div class="help">
<?php
load_partial("menu");
?>
<?php
load_partial("mon_logs_submenu");
?>
</div>
<div id="monlogs">
<ol>
<?php
if (!empty($m)) {
foreach ($m as $monl) {
echo "<li><span class=\"delete\">";
echo getLink("X", "mon_logs/delete/" . $monl->id);
echo "</span>";
echo " | ";
echo "<strong>";
echo getLink($monl->ts_scheduled, "mon_logs/edit/" . $monl->id);
echo "</strong></li>";
}
}
?>
</ol>
</div>
示例4: load_partial
<?php
load_partial("admin_menu");
?>
<div class="help">
<ul>
<li><?php
echo getLink("Show countries", "countries/all");
?>
</li>
</ul>
</div>
<form id="newcountry" action="" method="post">
<input name="action" value="newcountry" type="hidden"/>
<label for="name">New country name:</label>
<input type="text" name="name" />
<p style="clearall">
<input type="submit" name="create" value="Add" />
</p>
</form>
示例5: load_partial
} else {
if (partial_exists('content_left') or partial_exists('content_right')) {
$class = "col-sm-9 col-md-9";
} else {
$class = "col-md-12";
}
}
?>
<div class="<?php
echo $class;
?>
top-spacing">
<div class="row">
<?php
echo load_partial('locations_filter', $locations_filter);
?>
<div class="location-list col-sm-9">
<?php
if ($locations) {
?>
<?php
foreach ($locations as $location) {
?>
<div class="panel panel-local">
<div class="panel-body">
<div class="row">
<div class="box-one col-xs-12 col-sm-5">
<?php
if (!empty($location['location_image'])) {
示例6: get_partial
<div class="<?php
echo $class;
?>
">
<div id="general" class="tab-pane row wrap-all active">
<?php
echo get_partial('content_left', 'wrap-none col-sm-3');
?>
<div class="<?php
echo $menu_class;
?>
">
<?php
echo load_partial('menu_list', $menu_list);
?>
</div>
</div>
</div>
<?php
echo get_partial('content_right', 'col-sm-3');
?>
<?php
echo get_partial('content_bottom');
?>
</div>
</div>
</div>
<script type="text/javascript"><!--
$(document).ready(function() {
示例7: getLink
echo getLink("Add administrators", "admin/add");
?>
</li>
</ul>
</div>
<div class="admins">
<?php
if (!empty($all_admins)) {
?>
<ul>
<?php
foreach ($all_admins as $admin) {
?>
<li>
<?php
load_partial('admin');
?>
</li>
<?php
}
?>
</ul>
<?php
} else {
?>
<?php
echo "<p>No administrators were added</p>";
?>
<?php
}
?>
示例8: foreach
?>
</li>
</ul>
</div>
<div class="teams">
<?php
if (!empty($all_teams)) {
?>
<ul>
<?php
foreach ($all_teams as $teams) {
?>
<li>
<?php
load_partial('teams');
?>
</li>
<?php
}
?>
</ul>
<?php
} else {
?>
<?php
echo "<p>No teams were added</p>";
?>
<?php
}
?>
示例9: load_partial
<div class="help">
<?php
load_partial("menu");
?>
</div>
<div class="help">
<?php
echo getLink("Register", "users/register");
?>
or <?php
echo getLink("Login", "users/login");
?>
</div>
<div id="recover">
<form action="" method="post" onsubmit="this.recover.disabled=true;">
<input type="hidden" name="action" value="recover">
<label for="username">Email:</label>
<input type="text" name="email">
<p>
<input type="submit" name="recover" value="Recover">
</p>
</form>
</div>
示例10: hw_timber_twig_filters
/**
* @hook timber/twig/filters
* @param $twig
* @return mixed
*/
function hw_timber_twig_filters($twig)
{
$twig->addExtension(new MyTagExtension());
//load partial template
$partial = new Twig_SimpleFunction('partial', function () {
$args = func_get_args();
$alias = current(array_splice($args, 0, 1));
load_partial($alias, $args);
});
$twig->addFunction($partial);
//other filters
$filter = new Twig_SimpleFilter('apply_function', array($this, 'apply_function_twig_filter'), array('needs_environment' => true, 'needs_context' => true));
$twig->addFilter($filter);
$twig->addFilter(new Twig_SimpleFilter('esc_attr', 'esc_attr'));
$twig->addFilter(new Twig_SimpleFilter('esc_url', 'esc_url'));
$twig->addFilter(new Twig_SimpleFilter('esc_html', 'esc_html'));
$twig->addFilter(new Twig_SimpleFilter('esc_html__', 'esc_html__'));
$twig->addFilter(new Twig_SimpleFilter('esc_textarea', 'esc_textarea'));
$twig->addFilter(new Twig_SimpleFilter('esc_attr_e', 'esc_attr_e'));
$twig->addFilter(new Twig_SimpleFilter('esc_url_raw', 'esc_url_raw'));
$twig->addFilter(new Twig_SimpleFilter('sanitize_title', 'sanitize_title'));
$twig->addFilter(new Twig_SimpleFilter('wptexturize', 'wptexturize'));
$twig->addFilter(new Twig_SimpleFilter('checked', 'checked'));
$twig->addFilter(new Twig_SimpleFilter('wp_nonce_field', 'wp_nonce_field'));
$twig->addFilter(new Twig_SimpleFilter('wp_kses_post', 'wp_kses_post'));
$twig->addFilter(new Twig_SimpleFilter('_treat', '_treat'));
//date time
$twig->addFilter(new Twig_SimpleFilter('date_i18n', 'date_i18n'));
$twig->addFilter(new Twig_SimpleFilter('strtotime', 'strtotime'));
//php
$twig->addFunction(new Twig_SimpleFunction('_call', 'call_user_func'));
$twig->addFunction(new Twig_SimpleFunction('_call_array', 'call_user_func_array'));
//function
$twig->addFunction(new Twig_SimpleFunction('_partial', array($this, 'load_partial_template')));
return $twig;
}
示例11: load_page
<!-- /HEADER -->
<!-- MAIN CONTENT -->
<div id="main">
<!-- PAGE CONTENT -->
<div id="page">
<?php
load_page();
?>
</div>
<!-- /PAGE CONTENT -->
<!-- FOOTER -->
<?php
load_partial('footer');
?>
<!-- /FOOTER -->
</div>
</div>
<!-- /MAIN CONTENT -->
<!-- GOOGLE ANALYTICS -->
<script type="text/javascript">
var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
</script>
<script type="text/javascript">
try {
var pageTracker = _gat._getTracker("UA-11185752-1");
示例12: load_partial
<?php
}
?>
<div id="local-information" class="tab-pane row wrap-all">
<?php
echo load_partial('local_info', $local_info);
?>
</div>
<?php
if (!empty($local_gallery)) {
?>
<div id="local-gallery" class="tab-pane row wrap-all">
<?php
echo load_partial('local_gallery', $local_gallery);
?>
</div>
<?php
}
?>
</div>
</div>
<?php
echo get_partial('content_right', 'col-sm-3');
?>
<?php
echo get_partial('content_bottom');
?>
</div>
</div>
示例13: sprintf
<h4><?php
echo sprintf(lang('text_review_heading'), $location_name);
?>
</h4>
<span class="under-heading"></span>
</div>
</div>
<?php
echo load_partial('local_reviews', $local_reviews);
?>
</div>
<div id="local-information" class="tab-pane row wrap-all">
<?php
echo load_partial('local_info', $local_info);
?>
</div>
</div>
</div>
<?php
echo get_partial('content_right', 'col-sm-3');
?>
<?php
echo get_partial('content_bottom');
?>
</div>
</div>
</div>
<script type="text/javascript"><!--
$(document).ready(function() {