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


PHP theme::init方法代碼示例

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


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

示例1: init

 /**
  * Configure the system and display the theme
  * 
  * @param  string $config_file Custom path to the config file
  * @return void
  */
 public static function init($config_file = '')
 {
     if (empty($config_file)) {
         self::$config_file = __DIR__ . '/../config.php';
     }
     self::$error = new error();
     self::$config = self::_get_config($config_file);
     self::_check_config(self::$config);
     self::set_vars(self::$config);
     debug::init();
     self::update_check();
     theme::init();
     theme::display();
 }
開發者ID:rezgui,項目名稱:LastAutoIndex,代碼行數:20,代碼來源:main.php

示例2: janitor

 janitor();
 // article or form preview
 if (isset($_POST['form_preview']) || isset($_GET['txpreview'])) {
     include txpath . '/publish.php';
     textpattern();
     exit;
 }
 if (!empty($admin_side_plugins) and gps('event') != 'plugin') {
     load_plugins(1);
 }
 // plugins may have altered privilege settings
 if (!defined('TXP_UPDATE_DONE') && !gps('event') && !empty($default_event) && has_privs($default_event)) {
     $event = $default_event;
 }
 // init private theme
 $theme = theme::init();
 include txpath . '/lib/txplib_head.php';
 // ugly hack, for the people that don't update their admin_config.php
 // Get rid of this when we completely remove admin_config and move privs to db
 if ($event == 'list') {
     require_privs('article');
 } else {
     require_privs($event);
 }
 callback_event($event, $step, 1);
 $inc = txpath . '/include/txp_' . $event . '.php';
 if (is_readable($inc)) {
     include $inc;
 }
 callback_event($event, $step, 0);
 $microdiff = getmicrotime() - $microstart;
開發者ID:bgarrels,項目名稱:textpattern,代碼行數:31,代碼來源:index.php

示例3:

<?php

/**
 * Semanitic UI for WordPress functions file
 */
// PSR-4 Autoloader
require_once __DIR__ . '/includes/autoload.php';
// Put any alias classes here
class theme extends \semantic\theme
{
}
// Run any init methods here
theme::init();
// Get Custom Functions
theme::part('custom-functions', 'include', 'custom-functions');
// Initialize WordPress
theme::part('wp-init', 'include', 'wp-init');
開發者ID:jw-psychopomp,項目名稱:NewOrleansGlassworks-wordpress,代碼行數:17,代碼來源:functions.php

示例4: theme

<?php

/****************************/
/*  Galore                  */
/*  reviews.php             */
/*  Dummy reviews php page  */
/****************************/
require "config.php";
require $init->pathObjects . "/theme.php";
$object = new theme();
$object->object = "reviews";
echo $object->init();
開發者ID:BackupTheBerlios,項目名稱:galore,代碼行數:12,代碼來源:reviews.php

示例5: get_template_directory

<?php

/**
 * Theme initialization
 */
require get_template_directory() . '/lib/theme.php';
$theme = new theme();
$theme->init();
開發者ID:CitlalliARSM,項目名稱:citlalli-blog,代碼行數:8,代碼來源:functions.php


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