本文整理汇总了PHP中include_slot函数的典型用法代码示例。如果您正苦于以下问题:PHP include_slot函数的具体用法?PHP include_slot怎么用?PHP include_slot使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了include_slot函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: seo_admin_bar
/**
* seo_admin_bar
*
* @return includes an SEO menu bar in your project to edit meta and sitemap data
* @author Brent Shaffer
*/
function seo_admin_bar()
{
if (has_slot('seo_admin_bar')) {
include_slot('seo_admin_bar');
} else {
include_component('csSEO', 'seo_admin_bar');
}
}
示例2: include_slot
<?php
if (has_slot('a-footer')) {
?>
<?php
include_slot('a-footer');
} else {
?>
<?php
a_slot('footer', 'aRichText', array("global" => true));
}
// Feel free to shut this off in app.yml or override the footer partial in your app
if (sfConfig::get('app_a_credit', true)) {
?>
<div class="a-attribution">Built with <a href="http://www.apostrophenow.com/">Apostrophe</a></div>
<?php
}
示例3: slot
<?php
slot('title');
echo __('Inactive Apps');
end_slot();
?>
<?php
if ($pager->getNbResults()) {
slot('pager');
op_include_pager_navigation($pager, '@op_opensocial_inactive_list?page=%d');
end_slot();
include_slot('pager');
?>
<ul>
<?php
foreach ($pager->getResults() as $application) {
?>
<li><?php
echo link_to($application->getTitle(), '@op_opensocial_info?id=' . $application->getId());
?>
</li>
<?php
}
?>
</ul>
<?php
include_slot('pager');
} else {
echo __('There are no inactive app.');
}
示例4: include_partial
?>
</div>
<!--content ends-->
<?php
include_partial('global/sidebar');
?>
</div>
<!--main ends-->
<?php
include_partial('global/header');
?>
<?php
include_partial('global/footer');
?>
</div>
</div>
</div>
<!--wrapper ends-->
<?php
if (has_slot('popup')) {
include_slot('popup');
}
?>
</body>
</html>
示例5: use_helper
<?php
use_helper('I18N');
if (has_slot('sf_apply_login')) {
?>
<?php
include_slot('sf_apply_login');
} else {
?>
<?php
if ($loggedIn) {
?>
<?php
include_partial('sfApply/logoutPrompt');
?>
<?php
} else {
?>
<?php
include_partial('sfApply/loginPrompt', array("form" => $form));
?>
<?php
}
}
示例6: include_slot
include_slot('about');
?>
</div>
<div id="pricing">
<?php
include_slot('pricing');
?>
</div>
<div id="trial">
<?php
include_slot('trial');
?>
</div>
<div id="getting_started">
<?php
include_slot('getting_started');
?>
</div>
</div>
</td>
<td>
<div class="side_content">
<?php
include_partial("public/eclassroom/eclassroom_nav");
?>
<div id="side_content_data">
<?php
include_partial("public/eclassroom/supported");
?>
</div>
</div>
示例7: include_component
</head>
<body>
<div class="navbar navbar-fixed-top navbar-inverse">
<?php include_component('sfAdminDash','header'); ?>
</div> <!-- /navbar -->
<div class="container">
<div class="hidden-desktop">
<?php include_slot('breadcrump') ?>
</div>
<div class="row">
<div class="span2 visible-desktop">
<?php if (!include_slot('sidebar')): ?>
<?php endif ?>
</div>
<div class="span10">
<?php include_partial('global/flashes') ?>
<?php echo $sf_content ?>
</div> <!-- /main -->
</div>
</div> <!-- /container -->
</body>
</html>
示例8: include_slot
?>
" />
</div>
<?php
}
?>
</p>
</fieldset>
</form>
</div>
</div>
<?php
include_slot('define_work_week_end');
}
?>
<script type="text/javascript">
//<![CDATA[
var permissions = {
canRead: <?php
echo $workWeekPermissions->canRead() ? 'true' : 'false';
?>
,
canCreate: <?php
echo $workWeekPermissions->canCreate() ? 'true' : 'false';
?>
,
canUpdate: <?php
echo $workWeekPermissions->canUpdate() ? 'true' : 'false';
示例9: include_slot
</td>
<?php
}
?>
</tr>
<?php
}
?>
</tbody>
</table>
<div class="block bottomBox">
<?php
include_slot('calendar_pager');
?>
</div>
<?php
if ($is_community || $isSelf) {
?>
<div class="partsInfo">
<?php
if ($add_schedule) {
?>
<p class="note_schedule">※<?php
echo __('You can add schedule to click %img%.', array('%img%' => image_tag('/opCalendarPlugin/images/icon_schedule.gif', array('alt' => __('Add schedule')))));
?>
</p>
<?php
示例10: include_slot
"><?php
echo sfConfig::get('app_site_name');
?>
</a></h1>
<p id="slogan"><?php
echo sfConfig::get('app_site_slogan');
?>
</p>
</div>
<!-- content-wrap starts here -->
<div id="content-wrap"><div id="content">
<div id="sidebar" >
<h3>About this file</h3>
<?php
include_slot('SideBar');
?>
</div>
<div id="main">
<?php
echo $sf_content;
?>
</div>
<!-- content-wrap ends here -->
</div></div>
<?php
include_partial('global/footer');
?>
</body>
示例11: include_slot
<h1><?php
include_slot('header', 'All Articles');
?>
</h1>
<?php
include_partial('hello/articles', array('articles' => $articles));
示例12: __
echo __('Bug Tracker');
?>
</a></li>
</ul>
</div>-->
</div> <!-- branding -->
<?php
include_component('core', 'mainMenu');
?>
<div id="content">
<?php
echo $sf_content;
?>
</div> <!-- content -->
</div> <!-- wrapper -->
<div id="footer">
<?php
include_partial('global/copyright');
?>
</div> <!-- footer -->
<?php
include_slot('footer', get_partial('global/footer'));
示例13: include_slot
</td>
<td class="column_right">
<?php
include_slot('blogWidget');
?>
<?php
include_slot('bannersOnRightWidget');
?>
<?php
include_slot('bannersOnRightBWidget');
?>
<div class="boxseparator"></div>
<?php
//include_partial('global/topbox')
?>
<?php
//include_partial('global/centerbox')
?>
<?php
include_partial('global/footer');
?>
</body>
示例14: include_slot
<div id="header">
<div class="content">
<h1>
</h1>
<div id="opcions">
<?php
include_slot('opcions');
?>
</div>
</div>
</div>
<div id="content">
<div id="central">
<div class="sidebar">
<?php
include_slot('sidebar');
?>
</div>
<div class="content">
<?php
echo $sf_content;
?>
</div>
</div>
<div id="footer">
<div class="content">
<span class="footer_bar">
<?php
include_component('index', 'footer');
?>
</span>
示例15: include_customizes
echo $options->getRaw('lastRow');
include_customizes($id, 'lastRow');
?>
</table>
<?php
end_slot();
?>
<?php
if ($hasRequiredField) {
echo __('%0% is required field.', array('%0%' => '<strong>*</strong>'));
}
?>
<?php
include_slot('form_table');
?>
<div class="operation">
<ul class="moreInfo button">
<li>
<?php
foreach ($forms as $form) {
echo $form->renderHiddenFields();
}
?>
<input type="submit" class="input_submit" value="<?php
echo $options['button'];
?>
" />
</li>