本文整理汇总了PHP中theme_css函数的典型用法代码示例。如果您正苦于以下问题:PHP theme_css函数的具体用法?PHP theme_css怎么用?PHP theme_css使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了theme_css函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: bigtouch_theme_css
function bigtouch_theme_css()
{
$out = '<link rel="stylesheet" href="browsers/bigtouch.css" />';
$out .= theme_css();
$out .= '<script type="text/javascript">' . file_get_contents('browsers/touch.js') . '</script>';
return $out;
}
示例2: crunch
function crunch($dev = false)
{
$filename = md5(serialize($this->files)) . '.css';
if (!file_exists(theme_path() . 'assets/css/' . $filename . '.css')) {
$buffer = "";
foreach ($this->files as $cssFile) {
$buffer .= file_get_contents(theme_path() . 'assets/css/' . $cssFile . '.css');
if ($dev) {
echo theme_css($cssFile . '.css', true);
continue;
}
}
if ($dev) {
return;
}
// Remove comments
$buffer = preg_replace('!/\\*[^*]*\\*+([^/][^*]*\\*+)*/!', '', $buffer);
// Remove space after colons
$buffer = str_replace(': ', ':', $buffer);
// Remove whitespace
$buffer = str_replace(array("\r\n", "\r", "\n", "\t", ' ', ' ', ' '), '', $buffer);
file_put_contents(theme_path() . 'assets/css/' . $filename, $buffer);
}
echo '<link href="' . theme_css($filename) . '" type="text/css" rel="stylesheet" />';
$this->files = [];
}
示例3: touch_theme_css
function touch_theme_css()
{
$out = '<link rel="stylesheet" href="browsers/touch.css" />';
//~ $out .= '<style type="text/css">body { word-wrap: break-word; text-overflow: ellipsis; } table {width: 320px;}</style>';
$out .= theme_css();
$out .= '<script type="text/javascript">' . file_get_contents('browsers/touch.js') . '</script>';
return $out;
}
示例4: desktop_theme_css
function desktop_theme_css()
{
$out = theme_css();
if (setting_fetch('avataro', 'yes') == 'yes') {
$out .= '<link rel="stylesheet" href="' . BASE_URL . 'browsers/desktop.avatar.css" />';
}
$out .= '<style type="text/css">' . setting_fetch('css') . '</style>';
return $out;
}
示例5: __construct
public function __construct()
{
parent::__construct();
// set default timezone for all acsess
date_default_timezone_set('Asia/Jakarta');
// load helper
$this->load->helper(array('form', 'url', 'func'));
if (ci()->controller == 'reg' || ci()->controller == 'home') {
$this->login_lib->a_check_has_login();
} else {
$this->login_lib->a_check_not_login();
}
// for construction only
if (CONSTRUCTION == TRUE && $this->controller != 'construction') {
$isbeta = $this->session->userdata('_IS_BETA');
if ($isbeta == 'true') {
} else {
redirect('construction');
}
} elseif (CONSTRUCTION == FALSE) {
// remove beta session if needed
$this->session->unset_userdata(SESS_BETA);
}
// set user id for global
$theid = $this->session->userdata('_GLOBAL_USER');
if (!$theid) {
$rand = mt_rand() . time();
$this->session->set_userdata('_GLOBAL_USER', $rand);
$theid = $rand;
}
ci()->globals = new stdClass();
ci()->globaluser = $theid;
ci()->globals->user_global = $theid;
// sama dengan diatas
CI()->globals->lang = 'english';
// template config
$this->load->library(array('template'));
$this->template->add_theme_location(config_item('theme_path') . '/');
ci()->curtheme = config_item('theme_name');
// Template configuration
$this->template->enable_parser(false)->set('title', config_item('site_title'))->set('keyword', config_item('site_keyword'))->set('description', config_item('site_desc'))->set_theme(ci()->curtheme)->set_layout('index');
// load model utama
$this->load->model('home/global_model', 'gm');
// component top sidebar
$var['list_kat_sub'] = $this->gm->get_kat_sub();
$var['list_katalog'] = $this->gm->get_katalog();
$var['cats'] = $this->gm->get_menu();
$var['more'] = $this->gm->get_menu_more();
$this->template->append_metadata(theme_css('top-sidebar.css'))->set_partial('pg_topbar', 'top-sidebar', $var);
// banner slider
//$this->template->set_partial('pg_banner','slider');
// hitung cart
$this->template->set('count_cart', $this->gm->count_cart($theid, $this->login_lib->m_get_data('id')));
}
示例6: __construct
function __construct()
{
parent::Public_Controller();
$this->load->model('forums_m');
$this->load->model('forum_categories_m');
$this->load->model('forum_posts_m');
$this->lang->load('forums');
$this->load->config('forums');
$this->template->enable_parser_body(FALSE);
//$this->template->set_module_layout('default');
$this->template->append_metadata(theme_css('forums.css'));
$this->template->set_breadcrumb('Home', '/');
}
示例7: __construct
/**
* Constructor
*
* Loads dependencies and template settings
*
* @access public
* @return void
*/
public function __construct()
{
parent::Public_Controller();
// Load dependencies
$this->load->models(array('forums_m', 'forum_posts_m', 'forum_subscriptions_m'));
$this->load->helpers(array('bbcode', 'smiley'));
$this->lang->load('forums');
$this->load->config('forums');
// Set Template Settings
$this->template->enable_parser_body(FALSE);
//$this->template->set_module_layout('default');
$this->template->append_metadata(theme_css('forums.css'))->append_metadata(js('bbcode.js', 'forums'))->append_metadata(js('forums.js', 'forums'));
$this->template->set_breadcrumb('Home', '/')->set_breadcrumb('Forums', 'forums');
}
示例8: theme_css
//combine all css files in live mode
$_css->crunch();
$_js->crunch();
}
//with this I can put header data in the header instead of in the body.
if (isset($additional_header_info)) {
echo $additional_header_info;
}
?>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/js/bootstrap.min.js"></script>
<link href='<?php
echo theme_css('gumboIcons.css');
?>
' rel='stylesheet' type='text/css'>
<link href='<?php
echo theme_css('gumbo/elem-grid.css');
?>
' rel='stylesheet' type='text/css'>
</head>
<body>
<header>
<div class="container">
<div class="col-nest">
<div class="col" data-cols="1/2">
<a class="logo" href="<?php
echo base_url();
?>
"><img src="<?php
echo theme_img('logo.png');
示例9: theme_js
<?php
include 'header.php';
echo theme_js('jquery-ui.js', true);
echo theme_js('popup.js', true);
echo theme_css('themes/base/jquery.ui.all.css', true);
?>
<script type="text/javascript" src="<?php
echo theme_js('jquery.validate.js');
?>
"></script>
<?php
echo theme_js('pager.js', true);
?>
<script>
$(document).ready(function() {
$('#regular').attr('checked',true);
$('#search_results').scrollPagination({
nop : 3, // The number of posts per scroll to be loaded
offset : 0, // Initial offset, begins at 0 in this case
error : '<?php
echo lang('no_more_trips');
?>
', // When the user reaches the end this is the message that is
// displayed. You can change this if you want.
delay : 500, // When you scroll down the posts will load after a delayed amount of time.
// This is mainly for usability concerns. You can alter this as you see fit
示例10: blackberry_theme_css
function blackberry_theme_css()
{
$out = theme_css();
$out .= '<style type="text/css">.avatar{display:block; height:50px; width:50px; left:5px; margin:0; overflow:hidden; position:absolute;}.shift{margin-left:58px;min-height:48px;}</style>';
return $out;
}
示例11: theme_js
echo theme_js('../owl-carousel/iosOverlay.js', true);
echo theme_js('../owl-carousel/modernizr-2.0.6.min.js', true);
?>
-->
<?php
echo theme_js('../owl-carousel/owl.carousel.js', true);
?>
<?php
echo theme_css('../owl-carousel/owl.carousel.css', true);
echo theme_css('../owl-carousel/owl.transitions.css', true);
echo theme_css('../owl-carousel/owl.theme.css', true);
?>
<!--
<?php
echo theme_css('../owl-carousel/iosOverlay.css', true);
?>
-->
<?php
//with this I can put header data in the header instead of in the body.
if (isset($additional_header_info)) {
echo $additional_header_info;
}
?>
<style>
body{
padding: 0 !important;
}
</style>
</head>
示例12: desktop_theme_css
function desktop_theme_css()
{
$out = theme_css();
$out .= '<link rel="stylesheet" href="browsers/desktop.css" />';
return $out;
}
示例13: theme_css
<?php
echo theme_css('tab_menu.css', true);
//$page_menu=''
//echo $ci_uri; die;
//echo strstr($ci_uri,'merchants/my_account'); die;
?>
<ul id="nav">
<li <?php
echo strstr($ci_uri, 'merchants/my_account') || strstr($ci_uri, 'merchants/edit_profile') ? 'class="current"' : '';
?>
><a href="<?php
echo site_url('merchants/my_account');
?>
">My Profile</a></li>
<li <?php
echo strstr($ci_uri, 'deals/form') ? 'class="current"' : '';
?>
><a href="<?php
echo site_url('deals/form');
?>
">Create/Edit Deal</a></li>
<li <?php
echo strstr($ci_uri, 'deals/draft') ? 'class="current"' : '';
?>
><a href="<?php
echo site_url('deals/draft');
?>
">Draft Deals</a></li>
<li <?php
echo strstr($ci_uri, 'deals/upcoming') ? 'class="current"' : '';
示例14: theme_css
<?php
include 'header.php';
echo theme_css('reveal.css', true);
?>
<?php
echo theme_js('deal-pop-up.js', true);
echo theme_js('jquery.reveal.js', true);
?>
<?php
function create_datelist($dates_container_id, $id, $name)
{
$datetd_id = $dates_container_id . $id;
return '
<tr id="date_' . $datetd_id . '">
<td width="70%">
<input type="hidden" name="date[' . $dates_container_id . '][]" value="' . $name . '"/>
' . $name . '</td>
<td width="30%" align="right">
<a class="btn btn-danger pull-right btn-mini" href="javascript:void(0);" onclick="remove_category(' . $datetd_id . '); return false;"><i class="icon-trash icon-white"></i> Remove</a>
</td>
</tr>
';
}
function status_bar($status)
{
if ($status['is_approved']) {
return array('px' => '186px', 'prs' => '100', 'img' => 'status_step4.png', 'buy_btw' => 'none', 'forApproval_btw' => 'none', 'edit_btw' => 'none', 'delete_btw' => 'none');
} elseif ($status['is_request_approve']) {
示例15: theme_css
echo theme_css('style.css', true);
?>
<?php
echo theme_css('fuentes.css', true);
?>
<?php
echo theme_css('responsive.css', true);
?>
<?php
echo theme_css('bootstrap-datetimepicker.min.css', true);
?>
<?php
echo theme_css('jquery.bxslider.css', true);
?>
<?php
echo theme_css('animsition.min.css', true);
?>
<!-- HTML5 shim and Respond.js IE8 support of HTML5 elements and media queries -->
<!--[if lt IE 9]>
<script src="../../assets/js/html5shiv.js"></script>
<script src="../../assets/js/respond.min.js"></script>
<![endif]-->
<?php
echo theme_js('jquery.js', true);
?>
<?php
echo theme_js('bootstrap.min.js', true);
?>