当前位置: 首页>>代码示例>>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;未经允许,请勿转载。