本文整理汇总了PHP中include_component函数的典型用法代码示例。如果您正苦于以下问题:PHP include_component函数的具体用法?PHP include_component怎么用?PHP include_component使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了include_component函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: include_editor_tools
function include_editor_tools($page)
{
if (sfContext::getInstance()->getRequest()->getParameter('edit') == 'true' && !sfConfig::get('app_sfSimpleCMS_disable_editor_toolbar', false)) {
use_stylesheet('/sfSimpleCMSPlugin/css/CMSEditorTools.css');
include_component('sfSimpleCMS', 'editorTools', array('page' => $page));
}
}
示例2: executeUserBar
public function executeUserBar()
{
if (!$this->getUser()->isAuthenticated()) {
include_component('user', 'userBarLogIn');
} else {
include_component('user', 'userBarInfo');
}
}
示例3: executeUserBar
public function executeUserBar(sfWebRequest $request)
{
if (!$this->getUser()->isAuthenticated()) {
include_component('user', 'userBarLogIn');
} else {
include_partial('user/userBarInfo');
}
}
示例4: 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');
}
}
示例5: loadModule
function loadModule($initial, $param = null, $show_error = true)
{
$criteria = new Criteria();
$criteria->add(WebModulePeer::INITIAL, $initial, Criteria::EQUAL);
$requestModule = WebModulePeer::doSelectOne($criteria);
if ($requestModule) {
$module = 'mod_' . $requestModule->getWebModuleType()->getInitial();
include_component($module, 'run', array('module' => $requestModule, 'param' => $param, 'initial' => $initial));
return true;
} else {
if ($show_error) {
echo '<h3 class="exception">Module ' . $initial . ' not found</h3>';
}
return false;
}
}
示例6: a_slot_body
function a_slot_body($name, $type, $permid, $options, $validationData, $editorOpen, $updating = false)
{
$page = aTools::getCurrentPage();
$slot = $page->getSlot($name);
$parameters = array("options" => $options);
$parameters['name'] = $name;
$parameters['type'] = $type;
$parameters['permid'] = $permid;
$parameters['validationData'] = $validationData;
$parameters['showEditor'] = $editorOpen;
$parameters['updating'] = $updating;
$user = sfContext::getInstance()->getUser();
$controller = sfContext::getInstance()->getController();
$moduleName = $type . 'Slot';
if ($controller->componentExists($moduleName, "executeSlot")) {
include_component($moduleName, "slot", $parameters);
} else {
include_component("a", "slot", $parameters);
}
}
示例7: isset
?>
"> :
<input type="text" name="db_port" class="smallest" placeholder="default" id="db_port" value="<?php
if (isset($port)) {
echo $port;
}
?>
">
</dd>
<dt>
<label for="db_name">Database name</label>
</dt>
<dd>
<input type="text" name="db_name" class="small" id="db_name" value="<?php
echo isset($db_name) ? $db_name : 'thebuggenie';
?>
">
<span class="helptext">The database used to store the bug genie tables <i>(must already exist!)</i></span>
</dd>
</dl>
<div style="padding-top: 20px; clear: both; text-align: center;">
<label for="continue_button" style="font-size: 13px; margin-right: 10px;">Click this button to test the database connection details</label>
<img src="iconsets/oxygen/spinning_30.gif" id="next_indicator" style="display: none; vertical-align: middle; margin-left: 10px;">
<input type="submit" id="continue_button" onclick="$('continue_button').hide();$('next_indicator').show();" value="Continue">
</div>
</form>
<p id="connection_status"></p>
</div>
<?php
include_component('installation/footer');
示例8: image_tag
<li style="vertical-align: middle; clear: both; height: 20px;">
<?php
echo image_tag('spinning_20.gif', array('id' => 'article_favourite_indicator_' . $article->getId() . '_' . $user->getID(), 'style' => 'display: none; float: left; margin-right: 5px;'));
?>
<?php
echo image_tag('star_faded_small.png', array('id' => 'article_favourite_faded_' . $article->getId() . '_' . $user->getID(), 'style' => 'cursor: pointer; display: none; float: left; margin-right: 5px;', 'onclick' => "TBG.Issues.toggleFavourite('" . make_url('toggle_favourite_article', array('article_id' => $article->getID(), 'user_id' => $user->getID())) . "', '" . $article->getID() . '_' . $user->getID() . "');"));
?>
<?php
echo image_tag('star_small.png', array('id' => 'article_favourite_normal_' . $article->getId() . '_' . $user->getID(), 'style' => 'cursor: pointer; float: left; margin-right: 5px;', 'onclick' => "TBG.Issues.toggleFavourite('" . make_url('toggle_favourite_article', array('article_id' => $article->getID(), 'user_id' => $user->getID())) . "', '" . $article->getID() . '_' . $user->getID() . "');"));
?>
<?php
include_component('main/userdropdown', compact('user'));
?>
</li>
示例9: foreach
<div class="cpanel">
<?php
foreach ($items as $key => $item) {
?>
<?php
if (sfAdminDash::hasPermission($item, $sf_user)) {
?>
<div style="float: left">
<?php
include_component('sfAdminDash', 'dash_item', array('item' => $item, 'key' => $key));
?>
</div>
<?php
}
?>
<?php
}
?>
<div class="clear"></div>
</div>
示例10: __
<div id="attach_file" class="backdrop_box large">
<div class="backdrop_detail_header">
<?php
if ($mode == 'issue') {
?>
<?php
echo __('Attach one or more file(s) to this issue');
?>
<?php
} elseif ($mode == 'article') {
?>
<?php
echo __('Attach one or more file(s) to this article');
?>
<?php
}
?>
</div>
<?php
include_component('main/' . $uploader . 'uploader', compact('mode', 'issue', 'article'));
?>
</div>
示例11: __
<div class="backdrop_box large">
<div class="backdrop_detail_header">
<?php
echo __('Permission details for "%itemname"', array('%itemname' => $item_name));
?>
</div>
<div id="backdrop_detail_content" class="backdrop_detail_content">
<?php
echo __('Specify who can set this value for issues.');
?>
<?php
include_component('configuration/permissionsinfo', array('key' => $item_key, 'mode' => 'datatype', 'target_id' => $item_id, 'module' => 'core', 'access_level' => $access_level));
?>
</div>
<div class="backdrop_detail_footer">
<a href="javascript:void(0);" onclick="TBG.Main.Helpers.Backdrop.reset();"><?php
echo __('Close');
?>
</a>
</div>
</div>
示例12: include_component
However, it seems JavaScript is either disabled or not supported by your
browser. <br />
To use Alumni Sangam, enable JavaScript by changing your browser options.<br />
</div>
</center>
</noscript>
<div class="container">
<div class="mainDiv">
<div class="globalheader">
<?php
include_component('home', 'globalheader');
?>
</div>
<div class="header">
<?php
include_component('home', 'header');
?>
</div>
<div class="content">
<div class="leftmenu">
<div class="leftmenucontent">
<?php
if (has_slot('leftmenu')) {
?>
<?php
include_slot('leftmenu');
?>
<?php
}
?>
</div>
示例13: include_component
<script type="text/javascript">
var step = '<?php
echo $step;
?>
';
</script>
<div id="main" class="data-form <?php
echo $step;
?>
">
<div id="right" class="column column-40 column-right">
<?php
include_component('com_stepprogress', 'run', array('user' => $user));
?>
</div>
<div id="left" class="wrap-inside column column-60 column-right">
<form id="form-data" action="" method="post">
<h1 class="step-title">Payment Confirmation</h1>
<div class="cat enquiry-type">
<p class="cat-title">
Please Select your Payment Method and Your Payment Date.<br />
Your Payment will be process maximum 24 hours by our operator after you submit the form
</p>
<table class="table-form" border="0">
<tr>
<th>Payment Mehod</th>
<td>
<select name="payment_method" class="field-payment_method">
<option select>-- Please Choose One --</option>
示例14: include_component
<?php
include_component('project/recentactivities', array('id' => '10_recent_issues', 'issues' => $issues, 'empty' => __('No issues of this type has been posted yet'), 'default_displayed' => true));
示例15: image_tag
TBGEvent::createNew('core', 'viewissue_left_after_attachments', $issue)->trigger();
?>
<fieldset id="viewissue_related_information_container">
<legend>
<?php
echo image_tag('spinning_16.gif', array('style' => 'display: none;', 'id' => 'related_issues_indicator')) . __('Child issues (%count)', array('%count' => '<span id="viewissue_related_issues_count">' . count($issue->getChildIssues()) . '</span>'));
?>
</legend>
<div id="viewissue_related_information">
<?php
include_component('main/relatedissues', array('issue' => $issue));
?>
</div>
</fieldset>
<fieldset id="viewissue_duplicate_issues_container">
<legend>
<?php
echo image_tag('spinning_16.gif', array('style' => 'display: none;', 'id' => 'duplicate_issues_indicator')) . __('Duplicate issues (%count)', array('%count' => '<span id="viewissue_duplicate_issues_count">' . $issue->getNumberOfDuplicateIssues() . '</span>'));
?>
</legend>
<div id="viewissue_duplicate_issues">
<?php
include_component('main/duplicateissues', array('issue' => $issue));
?>
</div>
</fieldset>
<?php
TBGEvent::createNew('core', 'viewissue_left_bottom', $issue)->trigger();
?>
<div style="clear: both; margin-bottom: 5px;"> </div>