Ejemplo n.º 1
0
        <meta http-equiv="X-UA-Compatible" content="IE=edge">
        <meta name="description" content="Phalcon is a web framework delivered as a C extension providing high performance and lower resource consumption"/>
        <meta content="initial-scale=1, minimum-scale=1, user-scalable=no, maximum-scale=1, width=device-width" name="viewport">
        
        <title><?php 
echo $site_title;
?>
 · BestPrice Camp</title>
        
        <base href="<?php 
echo base_url();
?>
" />

        <link rel="shortcut icon" href="<?php 
echo get_static_resources('img/favicon.ico');
?>
">

        <!-- Script -->
		<?php 
echo $css_files;
?>
		
		<?php 
echo $js_files;
?>
		
		<!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
		<!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
		<!--[if lt IE 9]>
Ejemplo n.º 2
0
 private function get_javascripts()
 {
     // jquery framework
     $system_js = get_static_resources('jquery-1.12.0.min.js', '/libs/');
     // bootstrap
     $system_js .= get_static_resources('bootstrap.min.js', '/libs/bootstrap-3.3.6/js/');
     // get library
     if (!empty($this->libraries['lib_js'])) {
         $system_js .= $this->libraries['lib_js'];
     }
     $system_js .= get_static_resources('global.js');
     $system_js .= $this->page_js;
     return $system_js;
 }
Ejemplo n.º 3
0
 function get_libraries($names, $data = array())
 {
     $css_lib = '';
     $js_lib = '';
     $store_lib_css = isset($data['lib_css']) ? $data['lib_css'] : '';
     $store_lib_js = isset($data['lib_js']) ? $data['lib_js'] : '';
     // --- Get content
     $libs = explode(',', trim($names));
     foreach ($libs as $lib) {
         switch ($lib) {
             case 'tinymce':
                 $js_lib = get_static_resources('tinymce.min.js', '/libs/tinymce/');
                 break;
             case 'ckeditor':
                 $js_lib = get_static_resources('ckeditor.js', '/libs/ckeditor/');
                 break;
             case 'upload':
                 $js_lib = get_static_resources('upload.js', '/libs/upload/');
                 $css_lib = get_static_resources('upload.css', '/libs/upload/');
                 break;
             case 'formValidation':
                 $js_lib = get_static_resources('formValidation.js, bootstrap.js', '/libs/formValidation/');
                 $css_lib = get_static_resources('formValidation.css', '/libs/formValidation/');
                 break;
             case 'jquery-ui':
                 $css_lib = get_static_resources('jquery-ui-1.10.3.custom.min.css', '/libs/jquery-ui-1.10.3.custom/css/ui-lightness/');
                 $js_lib = get_static_resources('jquery-ui-1.10.3.custom.min.js', '/libs/jquery-ui-1.10.3.custom/js/');
                 break;
             case 'google-map':
                 $js_lib = '<script type="text/javascript" src="//maps.googleapis.com/maps/api/js?libraries=geometry&sensor=false&language=en"></script>';
                 $js_lib .= get_static_resources('curved_polylines.js', '/libs/map/');
                 $js_lib .= get_static_resources('map_label.js', '/libs/map/');
                 break;
         }
         $store_lib_css .= $css_lib;
         $store_lib_js .= $js_lib;
     }
     $data['lib_css'] = $store_lib_css;
     $data['lib_js'] = $store_lib_js;
     return $data;
 }