当前位置: 首页>>代码示例>>PHP>>正文


PHP Marketplace::getSitePageURL方法代码示例

本文整理汇总了PHP中Marketplace::getSitePageURL方法的典型用法代码示例。如果您正苦于以下问题:PHP Marketplace::getSitePageURL方法的具体用法?PHP Marketplace::getSitePageURL怎么用?PHP Marketplace::getSitePageURL使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在Marketplace的用法示例。


在下文中一共展示了Marketplace::getSitePageURL方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: view

 public function view($updated = false, $aux = false)
 {
     $u = new User();
     $this->set('site_tracking_code', Config::get('SITE_TRACKING_CODE'));
     $this->set('url_rewriting', URL_REWRITING);
     $this->set('marketplace_enabled_in_config', Config::get('ENABLE_MARKETPLACE_SUPPORT'));
     $this->set('site', SITE);
     $this->set('ui_breadcrumb', $u->config('UI_BREADCRUMB'));
     $this->set('ui_filemanager', $u->config('UI_FILEMANAGER'));
     $this->set('ui_sitemap', $u->config('UI_SITEMAP'));
     $this->set('api_key_picnik', Config::get('API_KEY_PICNIK'));
     $txtEditorMode = Config::get('CONTENTS_TXT_EDITOR_MODE');
     $this->set('txtEditorMode', $txtEditorMode);
     $this->set('rewriteRules', $this->getRewriteRules());
     $textEditorWidth = Config::get('CONTENTS_TXT_EDITOR_WIDTH');
     $this->set('textEditorWidth', $textEditorWidth);
     $textEditorHeight = Config::get('CONTENTS_TXT_EDITOR_HEIGHT');
     $this->set('textEditorHeight', $textEditorHeight);
     $txtEditorCstmCode = Config::get('CONTENTS_TXT_EDITOR_CUSTOM_CODE');
     if (!strlen($txtEditorCstmCode) || $txtEditorMode != 'CUSTOM') {
         $txtEditorCstmCode = $this->get_txt_editor_default();
     }
     $this->set('txtEditorCstmCode', $txtEditorCstmCode);
     Loader::library('marketplace');
     $mi = Marketplace::getInstance();
     if ($mi->isConnected()) {
         $this->set('marketplacePageURL', Marketplace::getSitePageURL());
     }
     if ($updated) {
         switch ($updated) {
             case 'statistics_saved':
                 $this->set('message', t('Statistics tracking preference saved.'));
                 break;
             case "tracking_code_saved":
                 $this->set('message', t('Your tracking code has been saved.'));
                 break;
                 /*
                 //moved to set_permissions
                 case "maintenance_enabled";
                 	$this->set('message', t('Maintenance Mode turned on. Your site is now private.'));	
                 	break;
                 case "maintenance_disabled":
                 	$this->set('message', t('Maintenance Mode turned off. Your site is public.'));	
                 	break;
                 */
             /*
             //moved to set_permissions
             case "maintenance_enabled";
             	$this->set('message', t('Maintenance Mode turned on. Your site is now private.'));	
             	break;
             case "maintenance_disabled":
             	$this->set('message', t('Maintenance Mode turned off. Your site is public.'));	
             	break;
             */
             case "marketplace_turned_on":
                 $this->set('message', t('Marketplace support is now enabled.'));
                 break;
             case "marketplace_turned_off":
                 $this->set('message', t('Marketplace support is now disabled.'));
                 break;
             case "favicon_saved":
                 $this->set('message', t('Bookmark icon saved.'));
                 break;
             case "favicon_removed":
                 $this->set('message', t('Bookmark icon removed.'));
                 break;
             case "editing_preferences_saved":
                 $this->set('message', t('Editing preferences saved.'));
                 break;
             case "sitename_saved":
                 $this->set('message', t("Your site's name has been saved."));
                 break;
             case "image_editing_saved":
                 $this->set('message', t("Image editing options have been saved."));
                 break;
             case "debug_saved":
                 $this->set('message', t('Debug configuration saved.'));
                 break;
             case "cache_cleared":
                 $this->set('message', t('Cached files removed.'));
                 break;
             case "cache_updated":
                 $this->set('message', t('Cache settings saved.'));
                 break;
             case "txt_editor_config_saved":
                 $this->set('message', t('Content text editor settings saved.'));
                 break;
             case "rewriting_saved":
                 if (URL_REWRITING) {
                     if ($aux == 0) {
                         $this->set('message', t('URL rewriting enabled. Make sure you copy the lines below these URL Rewriting settings area and place them in your .htaccess or web server configuration file.'));
                     } else {
                         $this->set('message', t('URL rewriting enabled. .htaccess file updated.'));
                     }
                 } else {
                     $this->set('message', t('URL rewriting disabled.'));
                 }
                 break;
         }
     }
//.........这里部分代码省略.........
开发者ID:VonUniGE,项目名称:concrete5-1,代码行数:101,代码来源:controller.php


注:本文中的Marketplace::getSitePageURL方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。