當前位置: 首頁>>代碼示例>>PHP>>正文


PHP mslib_fe::updateCustomSettings方法代碼示例

本文整理匯總了PHP中mslib_fe::updateCustomSettings方法的典型用法代碼示例。如果您正苦於以下問題:PHP mslib_fe::updateCustomSettings方法的具體用法?PHP mslib_fe::updateCustomSettings怎麽用?PHP mslib_fe::updateCustomSettings使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在mslib_fe的用法示例。


在下文中一共展示了mslib_fe::updateCustomSettings方法的2個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: array

 }
 $subcats = array();
 // current cat
 if ($parent_id > 0) {
     $str = "SELECT * from tx_multishop_categories c, tx_multishop_categories_description cd where c.status=1 and c.categories_id='" . addslashes($parent_id) . "' and cd.language_id='" . $this->sys_language_uid . "' and c.page_uid='" . $this->showCatalogFromPage . "' and c.categories_id=cd.categories_id";
     $qry = $GLOBALS['TYPO3_DB']->sql_query($str);
     $current = $GLOBALS['TYPO3_DB']->sql_fetch_assoc($qry);
 } else {
     // default root has no current category. this is a bad query (bas)
     //$str="SELECT * from tx_multishop_categories c, tx_multishop_categories_description cd where c.status=1 and c.parent_id='".$parent_id."' and cd.language_id='".$this->sys_language_uid."' and c.page_uid='".$this->showCatalogFromPage."' and c.categories_id=cd.categories_id";
 }
 // first check if the meta_title exists
 $display_listing = false;
 if ($current['categories_id']) {
     if ($current['custom_settings']) {
         mslib_fe::updateCustomSettings($current['custom_settings']);
     }
     if ($current['meta_title']) {
         $meta_title = $current['meta_title'];
     } else {
         $meta_title = $current['categories_name'];
         $meta_title = $meta_title . $this->ms['MODULES']['PAGE_TITLE_DELIMETER'] . $this->ms['MODULES']['STORE_NAME'];
     }
     if ($current['meta_description']) {
         $meta_description = $current['meta_description'];
     } else {
         $meta_description = '';
     }
     if ($current['meta_keywords']) {
         $meta_keywords = $current['meta_keywords'];
     } else {
開發者ID:bvbmedia,項目名稱:multishop,代碼行數:31,代碼來源:products_listing.php

示例2:

                    }
                }
            }
        }
    }
}
if (is_numeric($this->get['products_id'])) {
    // overwrite multishop settings loaded from the product
    $product = mslib_fe::getProduct($this->get['products_id'], $this->get['categories_id'], 'p.custom_settings', 1, 1);
    if ($product['custom_settings']) {
        mslib_fe::updateCustomSettings($product['custom_settings']);
    }
}
// overwrite multishop settings loaded from the content element
if ($this->customSettings) {
    mslib_fe::updateCustomSettings($this->customSettings);
}
// overwrite multishop settings loaded from the content element eof
if (!$this->conf['admin_template_folder']) {
    $this->conf['admin_template_folder'] = 'admin_multishop';
}
// reset the fileadmin admin folder to local plugin location
if (!$this->conf['search_page_pid']) {
    $this->conf['search_page_pid'] = $this->shop_pid;
}
if (!$this->conf['shoppingcart_page_pid']) {
    $this->conf['shoppingcart_page_pid'] = $this->shop_pid;
}
if (!$this->conf['products_detail_page_pid']) {
    $this->conf['products_detail_page_pid'] = $this->shop_pid;
}
開發者ID:bvbmedia,項目名稱:multishop,代碼行數:31,代碼來源:application_top_always.php


注:本文中的mslib_fe::updateCustomSettings方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。