本文整理汇总了PHP中mslib_fe::getActiveShop方法的典型用法代码示例。如果您正苦于以下问题:PHP mslib_fe::getActiveShop方法的具体用法?PHP mslib_fe::getActiveShop怎么用?PHP mslib_fe::getActiveShop使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类mslib_fe
的用法示例。
在下文中一共展示了mslib_fe::getActiveShop方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: jQueryAdminMenu
//.........这里部分代码省略.........
$ms_menu['header']['ms_admin_invoices']['description'] = $this->pi_getLL('admin_invoices_overview_description');
$ms_menu['header']['ms_admin_invoices']['link'] = mslib_fe::typolink($this->shop_pid . ',2003', 'tx_multishop_pi1[page_section]=admin_invoices');
$ms_menu['header']['ms_admin_invoices']['class'] = 'fa fa-file';
if ($this->get['tx_multishop_pi1']['page_section'] == 'admin_invoices' || $this->post['tx_multishop_pi1']['page_section'] == 'admin_invoices') {
$ms_menu['header']['ms_admin_invoices']['active'] = 1;
}
$ms_menu['header']['ms_admin_invoices']['subs']['admin_invoices']['label'] = $this->pi_getLL('overview');
$ms_menu['header']['ms_admin_invoices']['subs']['admin_invoices']['link'] = mslib_fe::typolink($this->shop_pid . ',2003', 'tx_multishop_pi1[page_section]=admin_invoices');
$ms_menu['header']['ms_admin_invoices']['subs']['admin_invoices']['class'] = 'fa fa-info-circle';
if ($this->get['tx_multishop_pi1']['page_section'] == 'admin_invoices' || $this->post['tx_multishop_pi1']['page_section'] == 'admin_invoices') {
$ms_menu['header']['ms_admin_invoices']['subs']['admin_invoices']['active'] = 1;
}
// invoices export wizard
$ms_menu['header']['ms_admin_invoices']['subs']['admin_invoices_export']['label'] = $this->pi_getLL('export');
$ms_menu['header']['ms_admin_invoices']['subs']['admin_invoices_export']['link'] = mslib_fe::typolink($this->shop_pid . ',2003', 'tx_multishop_pi1[page_section]=admin_export_invoices');
$ms_menu['header']['ms_admin_invoices']['subs']['admin_invoices_export']['class'] = 'fa fa-upload';
if ($this->get['tx_multishop_pi1']['page_section'] == 'admin_export_invoices' || $this->post['tx_multishop_pi1']['page_section'] == 'admin_export_invoices') {
$ms_menu['header']['ms_admin_invoices']['subs']['admin_invoices_export']['active'] = 1;
}
}
}
// END IF $this->ORDERSADMIN_USER
// new header TOP
$key = 'header';
if ($this->post['tx_multishop_pi1']['type'] == '2003') {
$key = 'newheader';
}
$ms_menu['footer']['ms_version']['label'] = 'V' . $this->ms['MODULES']['GLOBAL_MODULES']['MULTISHOP_VERSION'];
$ms_menu['footer']['ms_version']['link'] = '';
$ms_menu['footer']['ms_version']['class'] = '';
if ($this->ROOTADMIN_USER or $this->STORESADMIN_USER) {
// multishops
// now grab the active shops
$multishop_content_objects = mslib_fe::getActiveShop();
if (count($multishop_content_objects)) {
$counter = 0;
$total = count($multishop_content_objects);
foreach ($multishop_content_objects as $pageinfo) {
$pageTitle = $pageinfo['title'];
if ($pageinfo['nav_title']) {
$pageTitle = $pageinfo['nav_title'];
}
$counter++;
if (is_numeric($pageinfo['uid']) and $pageinfo['uid'] == $this->shop_pid) {
$ms_menu['footer']['ms_admin_stores']['label'] = $pageTitle . ' (' . $pageinfo["uid"] . ')';
$ms_menu['footer']['ms_admin_stores']['class'] = 'fa fa-shopping-cart';
} elseif (is_numeric($pageinfo['uid']) and $pageinfo['uid'] != $this->shop_pid) {
$ms_menu['footer']['ms_admin_stores']['subs']['shop_' . $counter]['label'] = $pageTitle . ' (' . $pageinfo["uid"] . ')';
$ms_menu['footer']['ms_admin_stores']['subs']['shop_' . $counter]['description'] = $this->pi_getLL('switch_to') . ' ' . $pageTitle . ' ' . $this->pi_getLL('web_shop');
$ms_menu['footer']['ms_admin_stores']['subs']['shop_' . $counter]['link'] = mslib_fe::typolink($pageinfo["uid"] . ',2003', 'tx_multishop_pi1[page_section]=admin_home');
$ms_menu['footer']['ms_admin_stores']['subs']['shop_' . $counter]['class'] = 'fa fa-shopping-cart';
}
if (is_array($GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['ext/multishop/pi1/classes/class.mslib_fe.php']['adminPanelStoreItemPostProc'])) {
$params = array('pageinfo' => &$pageinfo, 'ms_menu' => &$ms_menu, 'counter' => &$counter);
foreach ($GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['ext/multishop/pi1/classes/class.mslib_fe.php']['adminPanelStoreItemPostProc'] as $funcRef) {
\TYPO3\CMS\Core\Utility\GeneralUtility::callUserFunction($funcRef, $params, $this);
}
}
}
}
if (!is_array($ms_menu['footer']['ms_admin_stores']['subs'])) {
unset($ms_menu['footer']['ms_admin_stores']);
}
$this->ms_menu = $ms_menu;
// multishops eof
}
示例2: header
$res = $GLOBALS['TYPO3_DB']->sql_query($query);
} else {
$updateArray['id'] = $row['id'];
$updateArray['language_id'] = $key;
$query = $GLOBALS['TYPO3_DB']->INSERTquery('tx_multishop_payment_methods_description', $updateArray);
$res = $GLOBALS['TYPO3_DB']->sql_query($query);
}
}
$this->ms['show_main'] = 1;
header('Location: ' . $this->FULL_HTTP_URL . mslib_fe::typolink($this->shop_pid . ',2003', '&tx_multishop_pi1[page_section]=' . $this->ms['page']));
exit;
}
}
}
}
$active_shop = mslib_fe::getActiveShop();
$GLOBALS['TSFE']->additionalHeaderData['admin_payment_methods_edit'] = '
<script type="text/javascript">
function mathRound(float) {
//return float;
return Math.round(float*100)/100;
}
jQuery(document).ready(function($) {
$("#add_payment_method").click(function(e){
e.preventDefault();
$(\'#admin_payment_methods_list\').slideToggle(\'slow\', function(){});
});
$(document).on("keyup", ".msHandlingCostExcludingVat", function(e) {
if (e.keyCode!=9) {
console.log(\'ssss\');
priceEditRealtimeCalc(true, this);
示例3: switch
$subpartArray['###VALUE_DELIVERY_HIDDEN_BIRTHDATE###'] = '';
// delivery address default value EOL
switch ($_REQUEST['action']) {
case 'edit_customer':
if (is_numeric($user['uid']) && $user['uid'] > 0) {
$subpartArray['###LABEL_USERNAME###'] = ucfirst($this->pi_getLL('username')) . '<span class="text-danger">*</span>';
if ($this->ms['MODULES']['ADMIN_EDIT_CUSTOMER_USERNAME_READONLY'] > 0 || !isset($this->ms['MODULES']['ADMIN_EDIT_CUSTOMER_USERNAME_READONLY'])) {
$subpartArray['###USERNAME_READONLY###'] = $this->get['action'] == 'edit_customer' && $this->get['tx_multishop_pi1']['cid'] > 0 ? 'readonly="readonly"' : '';
} else {
$subpartArray['###USERNAME_READONLY###'] = '';
}
$subpartArray['###EDIT_CUSTOMER_HEADER###'] = htmlspecialchars($this->pi_getLL('admin_label_tabs_edit_customer'));
$subpartArray['###VALUE_USERNAME###'] = htmlspecialchars($this->post['username']);
$subpartArray['###LABEL_PASSWORD###'] = ucfirst($this->pi_getLL('password'));
if ($this->masterShop) {
$multishop_content_objects = mslib_fe::getActiveShop();
if (count($multishop_content_objects) > 1) {
$counter = 0;
$total = count($multishop_content_objects);
$selectContent .= '<select name="page_uid"><option value="">' . ucfirst($this->pi_getLL('choose')) . '</option>' . "\n";
foreach ($multishop_content_objects as $pageinfo) {
$selectContent .= '<option value="' . $pageinfo['uid'] . '"' . ($pageinfo['uid'] == $this->post['page_uid'] ? ' selected' : '') . '>' . htmlspecialchars($pageinfo['title']) . '</option>';
$counter++;
}
$selectContent .= '</select>' . "\n";
if ($selectContent) {
$subpartArray['###MASTER_SHOP###'] = '
<div class="form-group">
<label for="store" id="account-store">' . $this->pi_getLL('store') . '</label>
' . $selectContent . '
</div>