本文整理汇总了PHP中isActive函数的典型用法代码示例。如果您正苦于以下问题:PHP isActive函数的具体用法?PHP isActive怎么用?PHP isActive使用的例子?那么, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了isActive函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: replaceTemplateValues
function replaceTemplateValues($string, $siteid, $page_title)
{
$db = Database::obtain();
$sql = "SELECT * FROM " . TABLE_WEBSITES . "\n\t\t\t\t\tWHERE `id` =" . $siteid . "";
$websitedata = $db->query_first($sql);
$website_template = $websitedata['website_template'];
$website_protect_value = $websitedata['website_protect'];
$website_name = $websitedata['website_name'];
$meta_description = $websitedata['website_description'];
$meta_keywords = $websitedata['website_keywords'];
$creator_name = $websitedata['creator_name'];
$creator_website = $websitedata['creator_website'];
$website_template = $websitedata['website_template'];
$default_file_extension = '.html';
if (isUser($_SESSION['userid']) or isActive($_SESSION['userid']) == false) {
$website_footer = MSG00010 . ' <a href ="' . szUrl() . '" >' . szName() . '</a> - ' . MSG00082 . ' ' . szYear() . ' ' . $website_name . '. ' . MSG00057 . ' ';
} else {
$website_footer = MSG00009 . ' <a href="http://' . $creator_website . '" target="_blank" alt="' . $creator_name . '" title="' . $creator_name . '">' . $creator_name . '</a> - ' . MSG00082 . ' ' . szYear() . ' ' . $website_name . '. ' . MSG00057 . ' ';
}
$meta_generator_name = szName();
$meta_language = szLanguage();
if ($website_protect_value == '1') {
$website_protect = protectSite();
} else {
$website_protect = '';
}
$website_header = '
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<title>' . $page_title . ' - ' . $website_name . '</title>
<meta name="description" content="' . $meta_description . '">
<meta name="keywords" content="' . $meta_keywords . '">
<meta http-equiv="Copyright" content="' . $website_name . '" />
<meta name="generator" content="' . $meta_generator_name . '" />
<meta http-equiv="content-language" content="' . $meta_language . '" />
<meta name="robots" content="index, follow" />
<link rel="shortcut icon" href="favicon.ico"/>
<link href="sitezilla.css" rel="stylesheet" type="text/css">
<link href="templates/' . $website_template . '/style.css" rel="stylesheet" type="text/css">
' . ie6Css($website_template) . ie7Css($website_template) . $website_protect . '';
$webauthor = getAuthor($website_template);
if ($webauthor == MSG00007) {
$author = '';
} else {
if (strlen(stristr($webauthor, szCompany())) > 0) {
$author = '';
} else {
$author = ' ' . MSG00008 . ' ' . $webauthor;
}
}
$placeholders = array('WEBSITE_HEADER', 'WEBSITE_NAME', 'WEBSITE_FOOTER', 'TEMPLATE_AUTHOR');
$new_vals = array($website_header, '<a href="index' . $default_file_extension . '" alt="' . $website_name . '" title="' . $website_name . '">' . $website_name . '</a>', $website_footer, $author);
$newString = str_replace($placeholders, $new_vals, $string);
return $newString;
}
示例2: test_is_active
public function test_is_active()
{
Route::shouldReceive('currentRouteName')->once()->andReturn('about');
$this->assertEquals('active', isActive(['faq', 'about']));
Route::shouldReceive('currentRouteName')->once()->andReturn('home');
$this->assertEquals('active', isActive('home'));
URL::shouldReceive('current')->once()->andReturn('http://localhost:8000/about');
$this->assertEquals('custom-clas-name', isActive('about', 'custom-clas-name'));
Route::shouldReceive('currentRouteName')->once()->andReturn('news');
$this->assertEquals('', isActive('home'));
}
示例3: isActive
?>
</td>
<td><?php
echo $core->formatMoney($row['price']);
?>
</td>
<td><?php
echo $row['days'] . ' ' . $member->getPeriod($row['period']);
?>
</td>
<td><?php
echo $row['description'];
?>
</td>
<td align="center"><?php
echo isActive($row['active']);
?>
</td>
<td align="center"><a href="index.php?do=memberships&action=edit&id=<?php
echo $row['id'];
?>
"><img src="../images/edit.png" alt="" class="tooltip img-wrap2" title="Edit: <?php
echo $row['title'];
?>
"/></a></td>
<td align="center"><a href="javascript:void(0);" class="delete" rel="<?php
echo $row['title'];
?>
" id="item_<?php
echo $row['id'];
?>
示例4: session_start
// * *
// *************************************************************************
session_start();
if (!isset($_SESSION['userid'])) {
header("Location: index.php");
}
include_once 'functions/functions.php';
if (!isset($_GET['preview'])) {
include_once 'admin_template/header.php';
}
$userid = checkSession();
//END SESSION CHECK
$passw_changed = false;
$showindex = true;
if (isset($_GET['activate'])) {
if (!isActive($userid)) {
activateAccount($userid);
}
} elseif (isset($_GET['user']) && $_GET['user'] == 'save' && $userid != 0) {
if ($_POST['id'] != '' && $_POST['username'] != '' && $_POST['fullnames'] != '' && $_POST['phone'] != '' && $_POST['email'] != '') {
$savedetails = true;
//UpdateUser
$userdata = array();
$userdata['id'] = cleanPost($_POST['id']);
$userdata['username'] = cleanPost($_POST['username']);
$userdata['group'] = cleanPost($_POST['group']);
$userdata['account_active'] = cleanPost($_POST['account_active']);
$userdata['fullnames'] = cleanPost($_POST['fullnames']);
$userdata['phone'] = cleanPost($_POST['phone']);
$userdata['user_website'] = cleanPost($_POST['user_website']);
$userdata['email'] = cleanPost($_POST['email']);
示例5: isActive
<div id="navbar" class="navbar-collapse collapse">
<ul class="nav navbar-nav">
<li class="<?php
echo isActive('index.php');
?>
"><a href="index.php">Icons <span class="sr-only">(current)</span></a></li>
<li class="<?php
echo isActive('start.php');
?>
"><a href="start.php">Getting started</a></li>
<li class="<?php
echo isActive('ico.php');
?>
"><a href="ico.php">Examples</a></li>
<li class="<?php
echo isActive('license.php');
?>
"><a href="license.php">License</a></li>
</ul>
</div><!--/.navbar-collapse -->
</div>
</nav>
<?php
echo $content;
?>
<!-- jQuery (necessary for Bootstrap's JavaScript plugins) -->
<script src="js/jquery.min.js"></script>
<!-- Include all compiled plugins (below), or include individual files as needed -->
<script src="js/bootstrap.min.js"></script>
示例6: elseif
} elseif (isset($_GET['down'])) {
$mitemid = cleanGet($_GET['down']);
editWebsiteMenuOrder($siteid, $mitemid, 'down');
} elseif (isset($_GET['addpage']) && isset($_POST['page_title']) && strlen($_POST['page_title']) > 1) {
$page_title = cleanGet($_POST['page_title']);
if (isActive($userid)) {
if (maxSitePages($siteid) == false) {
addPage($siteid, $page_title);
} else {
sysMsg(MSG00119);
}
} else {
demoMsg();
}
} elseif (isset($_GET['changetitle']) && isset($_POST['old_page_id'])) {
$pageid = cleanPost($_POST['old_page_id']);
$title = cleanPost($_POST['new_page_title']);
if (isActive($userid)) {
changePageTitle($pageid, $title);
} else {
demoMsg();
}
}
if ($siteid != 0 && $showmenu == true) {
editWebsiteMenu($siteid);
}
} else {
giveWarning();
}
//END MENU
include_once 'admin_template/footer.php';
示例7: getLeft
<?php
//Author: Kadir CETINKAYA - breakv0id@0xdeffbeef
require_once "base.php";
if (isActive()) {
$active = "Active";
} else {
$active = "Frozen";
}
$left = getLeft();
$left = sprintf("%02d:%02d:%02d", (int) ($left / 3600), $left / 60 % 60, $left % 60);
?>
<div class="container">
<div class="panel panel-default">
<div class="panel-heading"><?php
echo $board[0];
?>
[<?php
echo $active;
?>
: <?php
echo $left;
?>
]</div>
<table class="table">
<thead>
<tr>
<th>#</th>
<th><?php
echo $board[1];
?>
示例8: message
<?php
message();
if (isActive('previous_taxonomy')) {
$prev = tpl('previous_taxonomy', 0);
?>
<ul class="breadcrumb">
<li>
<a href="<?php
qoolinfo('home');
?>
/admin/taxonomies"><?php
t("Taxonomies");
?>
</a> <span class="divider">/</span>
</li>
<?php
foreach ($prev as $k => $v) {
?>
<li>
<a href="<?php
qoolinfo('home');
?>
/admin/taxonomies?id=<?php
echo $v['id'];
?>
"><?php
echo $v['title'];
?>
</a> <span class="divider">/</span>
</li>
示例9: isActive
echo isActive($sideOrder, "createactivity");
?>
>
<a href="/tpvote/index.php/Home/admin/createactivity">创建活动</a>
</li>
<li <?php
echo isActive($sideOrder, "activitylist");
?>
>
<a href="/tpvote/index.php/Home/admin/activitylist">活动列表</a>
</li>
<li class="nav-header">
选项维护
</li>
<li <?php
echo isActive($sideOrder, "addoptions");
?>
>
<a href="/tpvote/index.php/Home/admin/addoptions">添加选项</a>
</li>
<li class="divider">
</li>
<!-- <li>
<a href="#">帮助</a>
</li> -->
</ul>
<!-- <div class="accordion" id="accordion-910278">
<div class="accordion-group">
<div class="accordion-heading">
<button class="accordion-toggle btn btn-primary btn-block" data-toggle="collapse" data-parent="#accordion-910278" href="#accordion-element-314631">用户维护</button>
</div>
示例10: isActive
<li <?php
echo isActive("index");
?>
>
<a href="/">
<span class="fa fa-fw fa-home"></span>
Home
</a>
</li>
<li>
<a href="https://github.com/devzero-xyz" target="_blank">
<span class="fa fa-fw fa-github"></span>
GitHub
</a>
</li>
<li <?php
echo isActive("contact");
?>
>
<a href="contact.php">
<span class="fa fa-fw fa-envelope"></span>
Contact
</a>
</li>
</ul>
</div>
</div>
</nav>
</body>
</html>
示例11: base_url
echo base_url();
?>
footnotes">Nifty Footnotes</a></li>
<li class="<?php
echo isActive($page_id, "automatictabs");
?>
"><a href="<?php
echo base_url();
?>
automatictabs">Automatic Tabs</a></li>
<li class="<?php
echo isActive($page_id, "portfolio");
?>
"><a href="<?php
echo base_url();
?>
portfolio">Portfolio</a></li>
<li class="<?php
echo isActive($page_id, "helpers");
?>
"><a href="<?php
echo base_url();
?>
helpers">Helpers</a></li>
</ul>
</li>
</ul>
</div>
</div><!--/.sidebar -->
</nav>
示例12: array
$bageBooking = $countNewPending > 0 ? " <span class=\"badge\">{$countNewPending}</span>" : '';
}
$bageMessages = '';
if (issetModule('messages')) {
$countMessagesUnread = Messages::getCountUnread(Yii::app()->user->id);
$bageMessages = $countMessagesUnread > 0 ? " <span class=\"badge\">{$countMessagesUnread}</span>" : '';
}
?>
<div class="bootnavbar-delimiter"></div>
<div class="container-fluid">
<div class="row-fluid">
<div class="span3">
<div class="well sidebar-nav">
<?php
$this->widget('bootstrap.widgets.TbMenu', array('type' => 'list', 'encodeLabel' => false, 'items' => array(array('label' => tc('Listings'), 'visible' => Yii::app()->user->checkAccess('apartments_admin') || Yii::app()->user->checkAccess('comments_admin') || Yii::app()->user->checkAccess('apartmentsComplain_admin')), array('label' => tc('Listings') . $bageListings, 'icon' => 'icon-list-alt', 'url' => $baseUrl . '/apartments/backend/main/admin', 'active' => isActive('apartments'), 'visible' => Yii::app()->user->checkAccess('apartments_admin')), array('label' => tc('List your property'), 'icon' => 'icon-plus-sign', 'url' => $baseUrl . '/apartments/backend/main/create', 'active' => isActive('apartments.create'), 'visible' => Yii::app()->user->checkAccess('apartments_admin')), array('label' => tc('Comments') . $bageComments, 'icon' => 'icon-list-alt', 'url' => $baseUrl . '/comments/backend/main/admin', 'active' => isActive('comments'), 'visible' => Yii::app()->user->checkAccess('comments_admin')), array('label' => tc('Complains') . $bageComplain, 'icon' => 'icon-list-alt', 'url' => $baseUrl . '/apartmentsComplain/backend/main/admin', 'active' => isActive('apartmentsComplain'), 'visible' => issetModule('apartmentsComplain') && Yii::app()->user->checkAccess('apartmentsComplain_admin')), array('label' => tt('Booking apartment', 'booking') . $bageBooking, 'icon' => 'icon-file', 'url' => $baseUrl . '/bookingtable/backend/main/admin', 'active' => isActive('bookingtable'), 'visible' => issetModule('bookingtable') && Yii::app()->user->checkAccess('bookingtable_admin')), array('label' => tc('Users'), 'visible' => Yii::app()->user->checkAccess('users_admin')), array('label' => tc('Users'), 'icon' => 'icon-list-alt', 'url' => $baseUrl . '/users/backend/main/admin', 'active' => isActive('users'), 'visible' => Yii::app()->user->checkAccess('users_admin')), array('label' => tt('Reviews', 'reviews'), 'visible' => Yii::app()->user->checkAccess('reviews_admin')), array('label' => tt('Reviews_management', 'reviews') . $bageReviews, 'icon' => 'icon-list-alt', 'url' => $baseUrl . '/reviews/backend/main/admin', 'active' => isActive('reviews'), 'visible' => Yii::app()->user->checkAccess('reviews_admin')), array('label' => tt('Add_feedback', 'reviews'), 'icon' => 'icon-plus-sign', 'url' => $baseUrl . '/reviews/backend/main/create', 'active' => isActive('reviews.create'), 'visible' => Yii::app()->user->checkAccess('reviews_admin')), array('label' => tt('Vacancy', 'vacancy'), 'visible' => Yii::app()->user->checkAccess('vacancy_admin')), array('label' => tt('Vacancy_management', 'vacancy') . $bageVacancy, 'icon' => 'icon-list-alt', 'url' => $baseUrl . '/vacancy/backend/main/admin', 'active' => isActive('vacancy'), 'visible' => Yii::app()->user->checkAccess('vacancy_admin')), array('label' => tt('Add_feedback', 'vacancy'), 'icon' => 'icon-plus-sign', 'url' => $baseUrl . '/vacancy/backend/main/create', 'active' => isActive('vacancy.create'), 'visible' => Yii::app()->user->checkAccess('vacancy_admin')), array('label' => tt('Clients', 'clients'), 'visible' => Yii::app()->user->checkAccess('clients_admin')), array('label' => tt('Clients', 'clients'), 'icon' => 'icon-list-alt', 'url' => $baseUrl . '/clients/backend/main/admin', 'active' => isActive('clients'), 'visible' => Yii::app()->user->checkAccess('clients_admin')), array('label' => tc('Content'), 'visible' => Yii::app()->user->checkAccess('news_admin') || Yii::app()->user->checkAccess('articles_admin') || Yii::app()->user->checkAccess('menumanager_admin')), array('label' => tc('News'), 'icon' => 'icon-file', 'url' => $baseUrl . '/news/backend/main/admin', 'active' => isActive('news'), 'visible' => Yii::app()->user->checkAccess('news_admin')), array('label' => tc('Blog'), 'icon' => 'icon-file', 'url' => $baseUrl . '/blog/backend/main/admin', 'active' => isActive('blog'), 'visible' => Yii::app()->user->checkAccess('blog_admin')), array('label' => tc('Q&As'), 'icon' => 'icon-file', 'url' => $baseUrl . '/articles/backend/main/admin', 'active' => isActive('articles'), 'visible' => Yii::app()->user->checkAccess('articles_admin')), array('label' => tc('Top menu items'), 'icon' => 'icon-file', 'url' => $baseUrl . '/menumanager/backend/main/admin', 'active' => isActive('menumanager'), 'visible' => Yii::app()->user->checkAccess('menumanager_admin')), array('label' => tc('Info pages'), 'icon' => 'icon-file', 'url' => $baseUrl . '/infopages/backend/main/admin', 'active' => isActive('infopages'), 'visible' => Yii::app()->user->checkAccess('infopages_admin')), array('label' => tt('Messages', 'messages'), 'visible' => issetModule('messages') && Yii::app()->user->checkAccess('messages_admin')), array('label' => tt('Messages', 'messages') . $bageMessages, 'icon' => 'icon-list-alt', 'url' => $baseUrl . '/messages/backend/main/admin', 'active' => isActive('messages') || isActive('messages.read'), 'visible' => issetModule('messages') && Yii::app()->user->checkAccess('messages_admin')), array('label' => tt('Mailing messages', 'messages'), 'icon' => 'icon-list-alt', 'url' => $baseUrl . '/messages/backend/mailing/admin', 'active' => isActive('messages.mailing'), 'visible' => issetModule('messages') && Yii::app()->user->checkAccess('messages_admin')), array('label' => tc('Payments'), 'visible' => issetModule('payment') && (Yii::app()->user->checkAccess('payment_admin') || Yii::app()->user->checkAccess('paidservices_admin'))), array('label' => tc('Tariff Plans'), 'icon' => 'icon-shopping-cart', 'url' => $baseUrl . '/tariffPlans/backend/main/admin', 'active' => isActive('tariffPlans'), 'visible' => issetModule('tariffPlans') && issetModule('paidservices') && Yii::app()->user->checkAccess('tariff_plans_admin')), array('label' => tc('Paid services'), 'icon' => 'icon-shopping-cart', 'url' => $baseUrl . '/paidservices/backend/main/admin', 'active' => isActive('paidservices'), 'visible' => issetModule('payment') && Yii::app()->user->checkAccess('paidservices_admin')), array('label' => tc('Manage payments') . $bagePayments, 'icon' => 'icon-shopping-cart', 'url' => $baseUrl . '/payment/backend/main/admin', 'active' => isActive('payment'), 'visible' => issetModule('payment') && Yii::app()->user->checkAccess('payment_admin')), array('label' => tc('Payment systems'), 'icon' => 'icon-wrench', 'url' => $baseUrl . '/payment/backend/paysystem/admin', 'active' => isActive('payment.paysystem'), 'visible' => issetModule('payment') && Yii::app()->user->checkAccess('payment_admin')), array('label' => tc('References'), 'visible' => Yii::app()->user->checkAccess('all_reference_admin')), array('label' => tc('Categories of references'), 'icon' => 'icon-asterisk', 'url' => $baseUrl . '/referencecategories/backend/main/admin', 'active' => isActive('referencecategories'), 'visible' => Yii::app()->user->checkAccess('all_reference_admin')), array('label' => tc('Values of references'), 'icon' => 'icon-asterisk', 'url' => $baseUrl . '/referencevalues/backend/main/admin', 'active' => isActive('referencevalues'), 'visible' => Yii::app()->user->checkAccess('all_reference_admin')), array('label' => tc('Reference "View:"'), 'icon' => 'icon-asterisk', 'url' => $baseUrl . '/windowto/backend/main/admin', 'active' => isActive('windowto'), 'visible' => Yii::app()->user->checkAccess('all_reference_admin')), array('label' => tc('Reference "Check-in"'), 'icon' => 'icon-asterisk', 'url' => $baseUrl . '/timesin/backend/main/admin', 'active' => isActive('timesin'), 'visible' => Yii::app()->user->checkAccess('all_reference_admin')), array('label' => tc('Reference "Check-out"'), 'icon' => 'icon-asterisk', 'url' => $baseUrl . '/timesout/backend/main/admin', 'active' => isActive('timesout'), 'visible' => Yii::app()->user->checkAccess('all_reference_admin')), array('label' => tc('Reference "Property types"'), 'icon' => 'icon-asterisk', 'url' => $baseUrl . '/apartmentObjType/backend/main/admin', 'active' => isActive('apartmentObjType'), 'visible' => Yii::app()->user->checkAccess('all_reference_admin')), array('label' => tc('Reference "City/Cities"'), 'icon' => 'icon-asterisk', 'url' => $baseUrl . '/apartmentCity/backend/main/admin', 'active' => isActive('apartmentCity'), 'visible' => !issetModule('location') && Yii::app()->user->checkAccess('all_reference_admin')), array('label' => tc('Blockip'), 'visible' => Yii::app()->user->checkAccess('blockip_admin')), array('label' => tc('Blockip'), 'icon' => 'icon-list-alt', 'url' => $baseUrl . '/blockIp/backend/main/admin', 'active' => isActive('blockIp'), 'visible' => Yii::app()->user->checkAccess('blockip_admin')), array('label' => tc('Settings'), 'visible' => Yii::app()->user->checkAccess('all_settings_admin')), array('label' => tc('Settings'), 'icon' => 'icon-wrench', 'url' => $baseUrl . '/configuration/backend/main/admin', 'active' => isActive('configuration'), 'visible' => Yii::app()->user->checkAccess('all_settings_admin')), array('label' => tc('Manage modules'), 'icon' => 'icon-wrench', 'url' => $baseUrl . '/modules/backend/main/admin', 'active' => isActive('modules'), 'visible' => Yii::app()->user->checkAccess('all_settings_admin')), array('label' => tc('Images'), 'icon' => 'icon-wrench', 'url' => $baseUrl . '/images/backend/main/index', 'active' => isActive('images'), 'visible' => Yii::app()->user->checkAccess('all_settings_admin')), array('label' => tc('Change admin password'), 'icon' => 'icon-wrench', 'url' => $baseUrl . '/adminpass/backend/main/index', 'active' => isActive('adminpass'), 'visible' => Yii::app()->user->checkAccess('all_settings_admin')), array('label' => tc('Site service '), 'icon' => 'icon-wrench', 'url' => $baseUrl . '/service/backend/main/admin', 'active' => isActive('service'), 'visible' => issetModule('service'), 'visible' => Yii::app()->user->checkAccess('all_settings_admin')), array('label' => tc('Authentication services'), 'icon' => 'icon-wrench', 'url' => $baseUrl . '/socialauth/backend/main/admin', 'active' => isActive('socialauth'), 'visible' => issetModule('socialauth'), 'visible' => Yii::app()->user->checkAccess('all_settings_admin')), array('label' => tc('Manage themes'), 'icon' => 'icon-wrench', 'url' => $baseUrl . '/themes/backend/main/admin', 'active' => isActive('themes'), 'visible' => issetModule('themes'), 'visible' => Yii::app()->user->checkAccess('all_settings_admin')), array('label' => tc('Languages and currency'), 'visible' => Yii::app()->user->checkAccess('all_lang_and_currency_admin')), array('label' => tc('Languages'), 'icon' => 'icon-globe', 'url' => $baseUrl . '/lang/backend/main/admin', 'active' => isActive('lang'), 'visible' => !isFree() && Yii::app()->user->checkAccess('all_lang_and_currency_admin')), array('label' => tc('Translations'), 'icon' => 'icon-wrench', 'url' => $baseUrl . '/translateMessage/backend/main/admin', 'active' => isActive('translateMessage'), 'visible' => Yii::app()->user->checkAccess('all_lang_and_currency_admin')), array('label' => tc('Currencies'), 'icon' => 'icon-wrench', 'url' => $baseUrl . '/currency/backend/main/admin', 'active' => isActive('currency'), 'visible' => issetModule('currency') && Yii::app()->user->checkAccess('all_lang_and_currency_admin')), array('label' => tc('Modules'), 'visible' => Yii::app()->user->checkAccess('all_modules_admin') && (issetModule('notifier') || issetModule('slider') || issetModule('advertising') || issetModule('iecsv') || issetModule('formdesigner') || issetModule('socialposting'))), array('label' => tc('Mail editor'), 'icon' => 'icon-circle-arrow-right', 'url' => $baseUrl . '/notifier/backend/main/admin', 'active' => isActive('notifier'), 'visible' => issetModule('notifier') && Yii::app()->user->checkAccess('all_modules_admin')), array('label' => tc('Slide-show on the Home page'), 'icon' => 'icon-circle-arrow-right', 'url' => $baseUrl . '/slider/backend/main/admin', 'active' => isActive('slider'), 'visible' => issetModule('slider') && Yii::app()->user->checkAccess('all_modules_admin')), array('label' => tc('Import / Export'), 'icon' => 'icon-circle-arrow-right', 'url' => $baseUrl . '/iecsv/backend/main/admin', 'active' => isActive('iecsv'), 'visible' => issetModule('iecsv') && Yii::app()->user->checkAccess('all_modules_admin')), array('label' => tc('Advertising banners'), 'icon' => 'icon-circle-arrow-right', 'url' => $baseUrl . '/advertising/backend/advert/admin', 'active' => isActive('advertising'), 'visible' => issetModule('advertising') && Yii::app()->user->checkAccess('all_modules_admin')), array('label' => tc('The forms designer'), 'icon' => 'icon-circle-arrow-right', 'url' => $baseUrl . '/formdesigner/backend/main/admin', 'active' => isActive('formdesigner') || isActive('formeditor'), 'visible' => issetModule('formdesigner') && Yii::app()->user->checkAccess('all_modules_admin')), array('label' => tt('Services of automatic posting', 'socialposting'), 'icon' => 'icon-circle-arrow-right', 'url' => $baseUrl . '/socialposting/backend/main/admin', 'active' => isActive('socialposting'), 'visible' => issetModule('socialposting') && Yii::app()->user->checkAccess('all_modules_admin')), array('label' => tc('Location module'), 'visible' => issetModule('location') && Yii::app()->user->checkAccess('all_reference_admin')), array('label' => tc('Countries'), 'icon' => 'icon-globe', 'url' => $baseUrl . '/location/backend/country/admin', 'visible' => issetModule('location') && Yii::app()->user->checkAccess('all_reference_admin'), 'active' => isActive('location.country')), array('label' => tc('Regions'), 'icon' => 'icon-globe', 'url' => $baseUrl . '/location/backend/region/admin', 'visible' => issetModule('location') && Yii::app()->user->checkAccess('all_reference_admin'), 'active' => isActive('location.region')), array('label' => tc('Cities'), 'icon' => 'icon-globe', 'url' => $baseUrl . '/location/backend/city/admin', 'visible' => issetModule('location') && Yii::app()->user->checkAccess('all_reference_admin'), 'active' => isActive('location.city')))));
?>
</div>
<!--/.well -->
</div>
<!--/span-->
<div class="span9">
<?php
echo $content;
?>
</div>
<!--/span-->
</div>
<!--/row-->
<hr>
示例13: isset
$tags = isset($_GET['tags']) ? explode('+', urldecode($_GET['tags'])) : array();
}
if (false !== ($k = array_search($tag, $tags))) {
$x = $tags;
unset($x[$k]);
return urlencode(implode('+', $x));
}
$x = $tags;
$x[] = $tag;
return urlencode(implode('+', $x));
}
$contacts = explode(';', $office->contacts);
foreach ($cats as $cat) {
?>
<a class="<?php
echo isActive($cat['name']) ? 'active' : '';
?>
" href="<?php
echo $this->createUrl('office/items/index', array('oid' => $office->id, 'tags' => append($cat['name'])));
?>
"><?php
echo $cat['title'];
?>
</a> <span class="count">(<?php
echo $cat['cnt'];
?>
)</span><br />
<br />
<?php
}
?>
示例14: isActive
<tr>
<td class='nav_cell' >
</td>
<td class='nav_cell' width='14%'>
<div<?php
isActive($cat, 'introduction');
?>
id='introduction'><?php
echo $lang_menu_intro;
?>
</div>
</td>
<td class='nav_cell' width='14%'>
<div<?php
isActive($cat, 'upgrade');
?>
id='upgrade'><?php
echo $lang_menu_upgrade;
?>
</div>
</td>
<td class='nav_cell' >
</td>
</tr>
</table>
<div class="content">
<?php
示例15: basePath
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a class="navbar-brand" href="<?php
echo basePath();
?>
"><img src="<?php
echo asset('pulseLogo.png');
?>
" width="25"> PULSE Framework</a>
</div>
<div id="navbar" class="collapse navbar-collapse">
<ul class="nav navbar-nav">
<li<?php
if (isActive() == '/') {
echo ' class="active"';
}
?>
><a href="<?php
echo basePath();
?>
">Welcome</a></li>
<li><a href="<?php
echo uri('documentationUrl');
?>
">Documentation</a></li>
<li><a href="<?php
echo uri('communityUrl');
?>
">Pulse Community</a></li>