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; }
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 = []; }
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; }
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; }
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'))); }
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', '/'); }
/** * 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'); }
//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');
<?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
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; }
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>
function desktop_theme_css() { $out = theme_css(); $out .= '<link rel="stylesheet" href="browsers/desktop.css" />'; return $out; }
<?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"' : '';
<?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']) {
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); ?>
<head> <title><?php echo !empty($seo_title) ? $seo_title . ' - ' : ''; echo $this->config->item('company_name'); ?> </title> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <!-- Bootstrap --> <?php echo theme_css('bootstrap.min.css', true); ?> <?php echo theme_css('styles.css', true); ?> <?php echo theme_css('style.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); ?>
?> "> <?php } else { ?> <meta name="Description" content=""> <?php } ?> <!-- css files --> <?php echo theme_css('bootstrap.css', true); echo theme_css('bootstrap.min.css', true); echo theme_css('nxled-newdesign.css', true); ?> <style type="text/css"> .bord{ border-width:0px; border-style: dashed; border-color: #bebebd; } #printable { display: none; } @media print{ #non-printable { display: none; } #printable { display: block; } a {display:none;} }
/** * get HTML page header depending on current required files meta * and dojo required components * * @return string header tag contents (without the header tag itself) */ function theme_head() { $CI =& get_instance(); $head = theme_meta() . theme_title() . theme_css(); if (!$CI->config->item('js_at_foot')) { $head .= theme_js() . theme_dojo(); } return $head; }
<!-- js files --> <?php //echo theme_js('bootstrap.js', true); echo theme_js('bootstrap.min.js', true); echo theme_js('jquery.js', true); echo theme_js('jquery-ui.js', true); echo theme_js('equal_heights.js', true); echo theme_js('squard.js', true); ?> <?php echo theme_js('../owl-carousel/owl.carousel.js', true); 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 //with this I can put header data in the header instead of in the body. if (isset($additional_header_info)) { echo $additional_header_info; } $redirect = $this->Customer_model->is_logged_in(false, false); ?> </head> <body> <div class="mid-navbar" id="navi-bg"> <div class="container" style=""> <div class="row">
<link href="<?php echo theme_js('notification/goNotification.css'); ?> " rel="stylesheet" type="text/css"> <link rel="stylesheet" type="text/css" href="<?php echo theme_js('popup/css/jquery-confirm.css'); ?> " /> <link rel="stylesheet" href="<?php echo theme_js('popup/boxy.css'); ?> "> <?php echo theme_js('popup/jquery.boxy.js', true); echo theme_css('checkbox.css', true); ?> <script> $(document).ready(function() { <?php if (empty($txtphone)) { ?> $('#txtphone').attr('readonly', false); $('#txtphone').removeClass('disable'); <?php
echo base_url('application/themes/default/assets/buyshop_theme/buyshop_styles/fancybox/jquery.fancybox-buttons.css'); ?> " /> <link rel="stylesheet" type="text/css" href="<?php echo base_url('application/themes/default/assets/buyshop_theme/buyshop_styles/fancybox/jquery.fancybox-thumbs.css'); ?> " /> <link rel="stylesheet" type="text/css" href="<?php echo base_url('application/themes/default/assets/buyshop_theme/buyshop_styles/fancybox/jquery.fancybox.css'); ?> " /> <!-- new fancybox --> <?php echo theme_css('megastore.css', true); echo theme_css('light-theme.css', true); ?> <!--[if IE 8 ]><link rel="stylesheet" type="text/css" href="<?php echo base_url('application/themes/default/assets/buyshop_theme/buyshop_styles/styleie8.css'); ?> " /><![endif]--> <!--[if IE 9]><link rel="stylesheet" type="text/css" href="<?php echo base_url('application/themes/default/assets/buyshop_theme/buyshop_styles/styleie9.css'); ?> " /><![endif]--> <!--[if !IE]><!-->
<title><?php echo $this->settings->site_name; ?> - <?php echo lang('login_title'); ?> </title> <base href="<?php echo base_url(); ?> " /> <meta name="robots" content="noindex, nofollow" /> <?php echo theme_css('admin/style.css'); ?> <?php echo theme_js('jquery/jquery.min.js'); ?> <?php echo theme_js('admin/login.js'); ?> <!-- Place CSS bug fixes for IE 7 in this comment --> <!--[if IE 7]> <style type="text/css" media="screen"> #login-logo { margin: 15px auto 15px auto; } .input-email { margin: -24px 0 0 10px;} .input-password { margin: -30px 0 0 14px; } body#login #login-box input { height: 20px; padding: 10px 4px 4px 35px; }
<?php echo theme_css('style.css', true); echo theme_css('splash.css', true); ?> <?php echo theme_css('print.css', true); ?> <?php echo theme_css('swipebox.css', true); echo theme_css('font-awesome.min.css', true); ?> <?php echo theme_css('jquery-ui.css', true); ?> <!--google lato font family--> <link href='http://fonts.googleapis.com/css?family=Lato:300' rel='stylesheet' type='text/css'/> <meta name="twitter:widgets:theme" content="light"> <!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries --> <!--[if lt IE 9]> <script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script> <script src="https://oss.maxcdn.com/libs/respond.js/1.4.2/respond.min.js"></script>
defined('BASEPATH') or exit('No direct script access allowed'); echo html_tag('lang="' . $this->lang->code() . '" dir="' . $this->lang->direction() . '"'); echo head_tag(); echo meta_charset(); echo base_href(); echo ie_edge(); template_title(); template_metadata(); echo viewport(); echo favicon(); echo apple_touch_icon_precomposed(); echo cleartype_ie(); echo js_platform(); file_partial('webfontloader'); echo theme_css('front.min.css'); file_partial('css'); template_partial('css'); echo js('lib/phpjs/phpjs.min.js'); echo js_selectivizr(); echo js_modernizr(); echo js_respond(); echo js_jquery(); echo js('lib/jquery-json/jquery.json.js'); template_partial('ckeditor'); template_partial('head'); echo head_close_tag(); echo body_tag('id="page-top"'); ?> <!-- Wrap all page content here -->
<?php /** * @author ohyeah * @copyright 2013 */ $tr_loop_color = '#EEEEEE'; $tr_heading_color = '#DDDDDD'; ?> <!DOCTYPE html> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <?php echo theme_css('print.css', true); ?> <script> function printpage() { document.getElementById('print_bt').style.display='none'; window.print(); } document.getElementById('print_bt').style.display=''; </script> </head> <body> <table width="600" cellpadding="0" cellspacing="0"> <tr> <td><h1>Coupon Code</h1></td> <td align="right"> <div class="print-button" id="print_bt"> <a href="javascript:void(0)" onclick="printpage();">Print</a>
if (isset($additional_header_info)) { echo $additional_header_info; } ?> <!-- Google Web Fonts --> <link href="http://fonts.googleapis.com/css?family=Roboto+Condensed:300italic,400italic,700italic,400,300,700" rel="stylesheet" type="text/css"> <link href="http://fonts.googleapis.com/css?family=Oswald:400,700,300" rel="stylesheet" type="text/css"> <link href='http://fonts.googleapis.com/css?family=Open+Sans:300italic,400italic,600italic,700italic,800italic,400,300,600,700,800' rel='stylesheet' type='text/css'> <!-- CSS Files --> <link href="<?php echo theme_url('assets'); ?> /font-awesome/css/font-awesome.min.css" rel="stylesheet"> <link href='<?php echo theme_css('gumboIcons.css'); ?> ' rel='stylesheet' type='text/css'> </head> <body> <!-- Header Section Starts --> <header id="header-area"> <!-- Header Top Starts --> <div class="header-top"> <div class="container"> <div class="row"> <!-- Header Links Starts --> <div class="col-sm-8 col-xs-12"> <div class="header-links"> <ul class="nav navbar-nav pull-left">
function touch_theme_css() { $out = theme_css() . '<link rel="stylesheet" href="' . BASE_URL . 'browsers/touch.css" /><script type="text/javascript">' . file_get_contents('browsers/touch.js') . '</script>'; $out .= '<style type="text/css">' . setting_fetch('css') . '</style>'; return $out; }
echo $meta; } else { ?> <meta name="Keywords" content="Shopping Cart, eCommerce, Code Igniter"> <meta name="Description" content="Go Cart is an open source shopping cart built on the Code Igniter framework"> <?php } ?> <!-- Makes your prototype chrome-less once bookmarked to your phone's home screen --> <meta name="apple-mobile-web-app-capable" content="yes"> <meta name="apple-mobile-web-app-status-bar-style" content="black"> <?php echo theme_css('ratchet.css', true); echo theme_css('ratchet-theme-ios.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; } ?> </head> <body>
timeout: 200000, // time in milliseconds to self-close; false for disable 4000 | false animation: 'fade', // fade | slide animationSpeed: 'slow', // slow | normal | fast allowClose: true, // display shadow?true | false }); <?php } ?> }); </script> <?php echo theme_css('jquery.tagbox.css', true); echo theme_js('jquery.tagbox.js', true); ?> <script type="text/javascript" src="<?php echo theme_js('jquery.validate.js'); ?> "></script> <script type="text/javascript"> var baseurl = "<?php print base_url(); ?> "; var country = '<?php print $this->config->item('country_code') != '' ? $this->config->item('country_code') : ''; ?> ';
</style> <style type="text/css" media="screen"> #custom-tweet-button a { width: 23px; height: 23px; display: block; background: url('<?php echo base_url('assets/img/twit.png'); ?> ') left center no-repeat; } </style> <?php echo theme_css('styles.css', true); echo theme_css('menu_week.css', true); echo theme_js('jquery-1.8.3.js', true); ?> <link rel="stylesheet" media="all" type="text/css" href="http://code.jquery.com/ui/1.9.1/themes/smoothness/jquery-ui.css" /> <script type="text/javascript" src="<?php echo base_url('assets/js/jquery-ui.js'); ?> "></script> <!--<script type="text/javascript" src="<?php echo base_url('assets/js/jquery-ui-timepicker-addon.js'); ?> "></script>--> <script type="text/javascript"> $(document).ready(function(){ $('.datepicker').datepicker({dateFormat: 'yy-mm-dd'});