• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    公众号

PHP get_active_theme函数代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了PHP中get_active_theme函数的典型用法代码示例。如果您正苦于以下问题:PHP get_active_theme函数的具体用法?PHP get_active_theme怎么用?PHP get_active_theme使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。



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

示例1: __construct

 public function __construct()
 {
     parent::__construct();
     is_installed();
     #defined in auth helper
     $this->active_theme = get_active_theme();
 }
开发者ID:Ripudamangithub,项目名称:donopen,代码行数:7,代码来源:show404_core.php


示例2: __construct

 function __construct()
 {
     $this->CI =& get_instance();
     $this->CI->config->load('twig');
     ini_set('include_path', ini_get('include_path') . PATH_SEPARATOR . APPPATH . 'libraries/Twig');
     require_once (string) 'Autoloader.php';
     log_message('debug', "Twig Autoloader Loaded");
     Twig_Autoloader::register();
     if ($this->CI->uri->segment(1) == 'setup') {
         $this->_template_dir = $this->CI->config->item('template_dir') . '/install';
     } else {
         $this->_template_dir = $this->CI->config->item('template_dir') . '/' . get_active_theme();
     }
     $this->_cache_dir = $this->CI->config->item('cache_dir');
     $loader = new Twig_Loader_Filesystem($this->_template_dir);
     $this->_twig = new Twig_Environment($loader, array('cache' => $this->_cache_dir, 'debug' => true));
     foreach (get_defined_functions() as $functions) {
         foreach ($functions as $function) {
             $this->_twig->addFunction($function, new Twig_Function_Function($function));
         }
     }
     # untuk decode iframe youtube yang di encode
     $filter = new Twig_SimpleFilter('raw_youtube', function ($string) {
         if (strpos($string, '<iframe src="http://www.youtube.com/embed/') !== false) {
             $string = str_replace('&lt;iframe src="http://www.youtube.com/embed/', '<iframe src="http://www.youtube.com/embed/', $string);
             $string .= str_replace('&gt;&lt;/iframe>', '></iframe>', $string);
         }
         return $string;
     });
     $this->_twig->addFilter($filter);
 }
开发者ID:Raniratna,项目名称:new_elearning,代码行数:31,代码来源:Twig.php


示例3: __construct

 public function __construct()
 {
     parent::__construct();
     is_installed();
     #defined in auth helper
     remove_featured_if_expired();
     $this->PER_PAGE = get_per_page_value();
     #defined in auth helper
     $this->active_theme = get_active_theme();
     $this->load->model('show_model');
     $this->load->model('user/user_model');
     $this->load->library('encrypt');
     $this->load->helper('text');
     $this->output->enable_profiler($this->config->item('debug_site'));
     if (isset($_POST['view_orderby'])) {
         $this->session->set_userdata('view_orderby', $this->input->post('view_orderby'));
     }
     if (isset($_POST['view_ordertype'])) {
         $this->session->set_userdata('view_ordertype', $this->input->post('view_ordertype'));
     }
     $system_currency_type = get_settings('realestate_settings', 'system_currency_type', 0);
     if ($system_currency_type == 0) {
         $system_currency = get_currency_icon(get_settings('realestate_settings', 'system_currency', 'USD'));
     } else {
         $system_currency = get_settings('realestate_settings', 'system_currency', 'USD');
     }
     $this->session->set_userdata('system_currency', $system_currency);
     $this->form_validation->set_error_delimiters('<div class="alert alert-danger">', '</div>');
 }
开发者ID:ageo80,项目名称:test,代码行数:29,代码来源:show_core.php


示例4: __construct

 function __construct()
 {
     parent::__construct();
     //$this->auth->check_access('Admin', true);
     $this->output->enable_profiler($this->config->item('debug_site'));
     $this->load->model(array('Product_model'));
     $this->load->helper('form');
     $this->active_theme = get_active_theme();
     //$this->lang->load('product');
 }
开发者ID:ageo80,项目名称:test,代码行数:10,代码来源:products.php


示例5: __construct

 public function __construct()
 {
     parent::__construct();
     is_installed();
     #defined in auth helper
     //$this->PER_PAGE = get_per_page_value();#defined in auth helper
     $this->PER_PAGE = get_settings('business_settings', 'posts_per_page', 6);
     $this->active_theme = get_active_theme();
     $this->load->model('review_model');
     $this->form_validation->set_error_delimiters('<div class="alert alert-danger">', '</div>');
 }
开发者ID:GiovanniV,项目名称:Santa-Barbara-Business-Directory,代码行数:11,代码来源:review_core.php


示例6: __construct

 public function __construct()
 {
     parent::__construct();
     $this->load->database();
     $this->active_theme = get_active_theme();
     $this->per_page = get_per_page_value();
     #defined in auth helper
     $this->form_validation->set_error_delimiters('<div class="alert alert-danger" style="margin-bottom:0;">', '</div>');
     $this->load->helper('date');
     $this->load->model('auth_model');
 }
开发者ID:priyranjansingh,项目名称:classified,代码行数:11,代码来源:account_core.php


示例7: __construct

 public function __construct()
 {
     parent::__construct();
     is_installed();
     #defined in auth helper
     $this->load->database();
     $this->active_theme = get_active_theme();
     $this->load->model('ajax_model');
     //$this->load->model('show/post_model');
     $this->load->helper('dbcvote');
     $this->form_validation->set_error_delimiters('<label class="col-lg-2 control-label">&nbsp;</label><div class="col-lg-8"><div class="alert alert-danger" style="margin-bottom:0;">', '</div></div>');
     //$this->output->enable_profiler(TRUE);
 }
开发者ID:ageo80,项目名称:test,代码行数:13,代码来源:ajax_core.php


示例8: __construct

 public function __construct()
 {
     parent::__construct();
     is_installed();
     #defined in auth helper
     // if(!is_loggedin())
     // {
     // 	if(count($_POST)<=0)
     // 	$this->session->set_userdata('req_url',current_url());
     // 	redirect(site_url('account/trylogin'));
     // }
     $this->per_page = get_per_page_value();
     $this->load->database();
     $this->active_theme = get_active_theme();
     $this->load->model('user/payment_model');
     $this->form_validation->set_error_delimiters('<div class="alert alert-danger form-error">', '</div>');
 }
开发者ID:GiovanniV,项目名称:Santa-Barbara-Business-Directory,代码行数:17,代码来源:payment_core.php


示例9: __construct

 function __construct()
 {
     $this->CI =& get_instance();
     $this->CI->config->load('twig');
     ini_set('include_path', ini_get('include_path') . PATH_SEPARATOR . APPPATH . 'libraries/Twig');
     require_once (string) 'Autoloader.php';
     log_message('debug', "Twig Autoloader Loaded");
     Twig_Autoloader::register();
     $this->_template_dir = $this->CI->config->item('template_dir') . '/' . get_active_theme();
     $this->_cache_dir = $this->CI->config->item('cache_dir');
     $loader = new Twig_Loader_Filesystem($this->_template_dir);
     $this->_twig = new Twig_Environment($loader, array('cache' => $this->_cache_dir, 'debug' => true));
     foreach (get_defined_functions() as $functions) {
         foreach ($functions as $function) {
             $this->_twig->addFunction($function, new Twig_Function_Function($function));
         }
     }
 }
开发者ID:nicefirework,项目名称:new_elearning,代码行数:18,代码来源:Twig.php


示例10: __construct

 public function __construct()
 {
     parent::__construct();
     is_installed();
     #defined in auth helper
     expiration_cron();
     //$this->PER_PAGE = get_per_page_value();#defined in auth helper
     $this->PER_PAGE = get_settings('business_settings', 'posts_per_page', 6);
     $this->active_theme = get_active_theme();
     $this->load->model('show_model');
     $system_currency_type = get_settings('business_settings', 'system_currency_type', 0);
     if ($system_currency_type == 0) {
         $system_currency = get_currency_icon(get_settings('business_settings', 'system_currency', 'USD'));
     } else {
         $system_currency = get_settings('business_settings', 'system_currency', 'USD');
     }
     $this->session->set_userdata('system_currency', $system_currency);
     $this->form_validation->set_error_delimiters('<div class="alert alert-danger">', '</div>');
 }
开发者ID:GiovanniV,项目名称:Santa-Barbara-Business-Directory,代码行数:19,代码来源:show_core.php


示例11: __construct

 public function __construct()
 {
     parent::__construct();
     is_installed();
     #defined in auth helper
     if (!is_loggedin()) {
         if (count($_POST) <= 0) {
             $this->session->set_userdata('req_url', current_url());
         }
         redirect(site_url('account/trylogin'));
     }
     //$this->per_page = get_per_page_value();
     $this->load->database();
     $this->active_theme = get_active_theme();
     $this->load->model('user_model');
     $this->load->model('show/post_model');
     $this->load->helper('dbcvote');
     $this->form_validation->set_error_delimiters('<label class="col-lg-2 control-label">&nbsp;</label><div class="col-lg-8"><div class="alert alert-danger" style="margin-bottom:0;">', '</div></div>');
     //$this->output->enable_profiler(TRUE);
 }
开发者ID:ageo80,项目名称:test,代码行数:20,代码来源:user_core.php


示例12: __construct

 public function __construct()
 {
     parent::__construct();
     is_installed();
     #defined in auth helper
     if (!is_loggedin()) {
         $this->load->helper("url_helper");
         if ($this->uri->segment(2) == "post-ad" or $this->uri->segment(2) == "create-ad") {
         } else {
             if (count($_POST) <= 0) {
                 $this->session->set_userdata('req_url', current_url());
             }
             redirect(site_url('account/trylogin'));
         }
     }
     $this->per_page = get_per_page_value();
     $this->load->database();
     $this->active_theme = get_active_theme();
     $this->load->model('user/post_model');
     $this->form_validation->set_error_delimiters('<div class="alert alert-danger form-error">', '</div>');
 }
开发者ID:Ripudamangithub,项目名称:donopen,代码行数:21,代码来源:user_core.php


示例13: lang_key

echo lang_key('available_themes');
?>
</h3>
        <div class="box-tool">
          <a href="#" data-action="collapse"><i class="fa fa-chevron-up"></i></a>

        </div>
      </div>
      <div class="box-content">

        <div class="row bs-examples">
        <?php 
$this->load->helper('directory');
$map = directory_map('./application/modules/themes/views', 1);
foreach ($map as $theme) {
    if ($theme == get_active_theme()) {
        continue;
    }
    $file = './application/modules/themes/views/' . $theme . '/assets/config.xml';
    $xmlstr = file_get_contents($file);
    $xml = simplexml_load_string($xmlstr);
    $config = $xml->xpath('//config');
    ?>
              <div class="col-xs-6 col-md-4" style="margin-bottom:30px;">
                <a href="javascript:void(0);" class="thumbnail">
                  <img alt="" src="<?php 
    echo base_url('application/modules/themes/views/' . $theme . '/assets/screen.jpg');
    ?>
">
                </a>
                <h4><?php 
开发者ID:GiovanniV,项目名称:Santa-Barbara-Business-Directory,代码行数:31,代码来源:index_view.php


示例14: get_active_theme

<?php 
}
?>
  <meta name="description" content="Sistema informático para la gestión de bibliotecas y biblioteca digital, basado en Openbiblio">

<link href="../css/style.css" rel="stylesheet" type="text/css" media="screen" />
<style type="text/css">
  <?php 
include "../css/style.php";
?>
</style>
<?php 
if (!isset($_SESSION["active_theme"])) {
    require_once "../shared/theme.php";
    $_SESSION["active_theme"] = get_active_theme();
}
if (strcmp($_SESSION["active_theme"], "") != 0) {
    echo '<link href="../themes/' . $_SESSION["active_theme"] . '/style.css" rel="stylesheet" type="text/css" media="screen" />';
}
?>
<title><?php 
echo H(OBIB_LIBRARY_NAME);
?>
</title>
<script language="JavaScript">
<!--
function popSecondary(url) {
    var SecondaryWin;
    SecondaryWin = window.open(url,"secondary","resizable=yes,scrollbars=yes,width=535,height=400");
    self.name="main";
开发者ID:uniedpa,项目名称:espabiblio,代码行数:30,代码来源:header_top.php


示例15: lang_key

<div class="row">
  <div class="col-md-12">
    <div class="box">
      <div class="box-title">
        <h3><i class="fa fa-bars"></i> <?php 
echo lang_key('active_theme');
?>
</h3>
        <div class="box-tool">
          <a href="#" data-action="collapse"><i class="fa fa-chevron-up"></i></a>

        </div>
      </div>
      <div class="box-content">
        <?php 
$theme = get_active_theme();
$file = './application/modules/themes/views/' . $theme . '/assets/config.xml';
@($xmlstr = file_get_contents($file));
if ($xmlstr == '') {
    echo 'Theme config file not found';
    die;
}
$xml = simplexml_load_string($xmlstr);
@($config = $xml->xpath('//config'));
?>
        <div class="row bs-examples">
          <div class="col-xs-6 col-md-4">
            <a href="javascript:void(0);" class="thumbnail">
              <img alt="" src="<?php 
echo base_url('application/modules/themes/views/' . $theme . '/assets/screen.png');
?>
开发者ID:firastunsi,项目名称:oskon,代码行数:31,代码来源:index_view.php


示例16: base_url_theme

/**
 * Method untuk mendapatkan link base url ke template yang sedang aktif
 *
 * @param  string $add_link string tambahan untuk link
 * @return string link template
 */
function base_url_theme($add_link = '')
{
    $active_theme = get_active_theme();
    return base_url('assets/themes/' . $active_theme . '/' . $add_link);
}
开发者ID:Raniratna,项目名称:new_elearning,代码行数:11,代码来源:elearning_helper.php


示例17: load_view

 function load_view($view = '', $data = array(), $buffer = FALSE, $theme = '')
 {
     $CI = get_instance();
     if ($theme == '') {
         $theme = get_active_theme();
     }
     if ($buffer == FALSE) {
         if (@file_exists(APPPATH . "modules/themes/views/" . $theme . "/" . $view . ".php")) {
             $CI->load->view('themes/' . $theme . '/' . $view, $data);
         } else {
             $CI->load->view('themes/default/' . $view, $data);
         }
     } else {
         if (@file_exists(APPPATH . "modules/themes/views/" . $theme . "/" . $view . ".php")) {
             $view_data = $CI->load->view('themes/' . $theme . '/' . $view, $data, TRUE);
         } else {
             $view_data = $CI->load->view('themes/default/' . $view, $data, TRUE);
         }
         return $view_data;
     }
 }
开发者ID:firastunsi,项目名称:oskon,代码行数:21,代码来源:dbcbase_helper.php


示例18: __construct

 function __construct()
 {
     $this->CI =& get_instance();
     $this->CI->config->load('twig');
     ini_set('include_path', ini_get('include_path') . PATH_SEPARATOR . APPPATH . 'libraries/Twig');
     require_once (string) 'Autoloader.php';
     log_message('debug', "Twig Autoloader Loaded");
     Twig_Autoloader::register();
     if ($this->CI->uri->segment(1) == 'setup') {
         $this->_template_dir = $this->CI->config->item('template_dir') . '/install';
     } else {
         $this->_template_dir = $this->CI->config->item('template_dir') . '/' . get_active_theme();
     }
     $this->_cache_dir = $this->CI->config->item('cache_dir');
     $path_plugin_view = './plugins/views/';
     if (is_dir($path_plugin_view)) {
         $twig_template_dir = array($path_plugin_view, $this->_template_dir);
     } else {
         $twig_template_dir = array($this->_template_dir);
     }
     $loader = new Twig_Loader_Filesystem($twig_template_dir);
     $this->_twig = new Twig_Environment($loader, array('cache' => $this->_cache_dir, 'debug' => true));
     foreach (get_defined_functions() as $functions) {
         foreach ($functions as $function) {
             $this->_twig->addFunction($function, new Twig_Function_Function($function));
         }
     }
     $filter = new Twig_SimpleFilter('raw_media', function ($string) {
         # untuk decode iframe youtube yang di encode
         if (strpos($string, "&lt;iframe src=\"http://www.youtube.com/embed/") !== false) {
             $string = str_replace('&lt;iframe src="http://www.youtube.com/embed/', '<iframe src="http://www.youtube.com/embed/', $string);
             $string = str_replace("&gt;&lt;/iframe>", "></iframe>", $string);
             $string = str_replace("&gt;&lt;/iframe&gt;", "></iframe>", $string);
         }
         # untuk audio
         if (strpos($string, "&lt;audio width=") !== false) {
             $string = str_replace("&lt;audio width=", "<audio width=", $string);
             $string = str_replace("&gt;&lt;/audio>", "></audio>", $string);
             $string = str_replace("&gt;&lt;/audio&gt;", "></audio>", $string);
         }
         # untuk video
         if (strpos($string, "&lt;video width=") !== false) {
             $string = str_replace("&lt;video width=", "<video width=", $string);
             $string = str_replace("&gt;&lt;/video>", "></video>", $string);
             $string = str_replace("&gt;&lt;/video&gt;", "></video>", $string);
         }
         # untuk object
         if (strpos($string, "&lt;object width=") !== false) {
             $string = str_replace("&lt;object width=", "<object width=", $string);
             $string = str_replace("&gt;&lt;/object>", "></object>", $string);
             $string = str_replace("&gt;&lt;/object&gt;", "></object>", $string);
         }
         # untuk decode iframe
         $base_url = base_url();
         if (strpos($string, "&lt;iframe src=\"{$base_url}") !== false) {
             $string = str_replace("&lt;iframe src=\"{$base_url}", "<iframe src=\"{$base_url}", $string);
             $string = str_replace("&gt;&lt;/iframe>", "></iframe>", $string);
             $string = str_replace("&gt;&lt;/iframe&gt;", "></iframe>", $string);
         }
         # ini untuk wiris
         if (strpos($string, "&lt;math xmlns=\"http://www.w3.org/1998/Math") !== false) {
             $string = str_replace("&lt;math xmlns=\"http://www.w3.org/1998/Math", "<math xmlns=\"http://www.w3.org/1998/Math", $string);
             $string = str_replace("/MathML\"&gt;", "/MathML\">", $string);
             $string = str_replace("&lt;/math&gt;", "</math>", $string);
         }
         return $string;
     });
     $this->_twig->addFilter($filter);
 }
开发者ID:pancamedia,项目名称:Marlina-Sabil,代码行数:69,代码来源:Twig.php



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


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
PHP get_activity_message函数代码示例发布时间:2022-05-15
下一篇:
PHP get_active_blog_for_user函数代码示例发布时间:2022-05-15
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap