function ssfa_add_custom_css() { $ssfa_customcss = ssfa_customcss(); if (!empty($ssfa_customcss)) { echo "\n<!-- File Away Custom CSS Begins -->\n<style type=\"text/css\">\n@import url('" . css_url() . "?" . filemtime(css_path()) . "');\n\n</style>\n<!-- File Away Custom CSS Concludes -->\n"; } }
/** * add_news. * * Displays a default list of news articles. The nbumber of articles displayed is managed via * the news.default_article_count setting. * * @return <void> This function outputs to the Template::render() function * */ public function add_news() { $settings = $this->_settings; if ($this->input->post('submit')) { $this->load->module('news/content'); $uploadData = array(); $upload = true; if (isset($_FILES['attachment']) && is_array($_FILES['attachment']) && $_FILES['attachment']['error'] != 4) { $uploadData = $this->content->handle_upload(); if (isset($uploadData['error']) && !empty($uploadData['error'])) { $upload = false; } } if (count($uploadData) > 0 && $upload || count($uploadData) == 0 && $upload) { if ($id = $this->content->save_article($uploadData)) { $article = $this->news_model->find($id); $this->load->model('activities/activity_model'); $this->activity_model->log_activity($this->current_user->id, 'Created Article: ' . $article->id, 'news'); Template::set_message('Article successfully submitted. It will be reviewed by the news moderator.', 'success'); Template::set_view('index'); Template::render(); } else { Template::set_message('There was a problem creating the article: ' . $this->news_model->error); } } else { Template::set_message('There was a problem saving the file attachment: ' . $uploadData['error']); } } if ($settings['news.public_submissions'] == 1) { $showForm = true; if ($settings['news.public_submitters'] == 1) { $cookie = unserialize($this->input->cookie($this->config->item('sess_cookie_name'))); $showForm = isset($cookie['logged_in']); $error = 'You must be <a href="' . site_url('/login/') . '">logged in</a> to post news to this site.'; unset($cookie); } if ($showForm) { $this->load->helper('form'); Assets::add_css(array(Template::theme_url('js/editors/markitup/skins/markitup/style.css'), Template::theme_url('js/editors/markitup/sets/default/style.css'), css_path() . 'chosen.css', css_path() . 'bootstrap-datepicker.css')); Assets::add_js(array(Template::theme_url('js/editors/markitup/jquery.markitup.js'), Template::theme_url('js/editors/markitup/sets/default/set.js'), js_path() . 'chosen.jquery.min.js', js_path() . 'bootstrap-datepicker.js')); Template::set('public', true); Template::set('settings', $settings); Template::set('toolbar_title', lang('us_create_news')); Template::set_view('content/news_form'); Template::render(); } else { show_error($error, 501, 'Form Access Error'); } } else { show_error('<h2>Sorry</h2><br />Public news submissions are not currently available.<br /><a href="' . site_url() . '">Return to the site</a>.', 501, 'Public News Submission not available'); } }
/** * Checks Auth Permissions and setups all java-scripts and other stuff * * @property CI_Pagination $pagination * @property MY_Model $my_model * @property news_model $news_model * @property author_model $author_model * * @return void */ public function __construct() { parent::__construct(); $this->auth->restrict('News.Content.View'); $this->load->model('news/news_model'); $this->load->model('news/author_model'); $this->load->helper('news'); $this->lang->load('news'); $this->load->helper('author'); $this->load->library('pagination'); $this->_settings = $this->settings_model->select('name,value')->find_all_by('module', 'news'); Assets::add_css(array(Template::theme_url('js/editors/markitup/skins/markitup/style.css'), Template::theme_url('js/editors/markitup/sets/default/style.css'), css_path() . 'chosen.css', css_path() . 'bootstrap-datepicker.css')); Assets::add_js(array(Template::theme_url('js/editors/markitup/jquery.markitup.js'), Template::theme_url('js/editors/markitup/sets/default/set.js'), js_path() . 'chosen.jquery.min.js', js_path() . 'bootstrap-datepicker.js')); $the_path = $this->_settings['news.upload_dir_path']; $this->_news_dir = realpath($the_path); if (!is_dir($this->_news_dir) && !is_writeable($this->_news_dir)) { Template::set_message('Attachment Upload Directory is not write-able: ' . $this->_news_dir, 'error'); log_message('error', 'Attachment Upload Directory is not write-able: ' . $this->_news_dir); } Template::set_block('sub_nav', 'content/_sub_nav'); }
function js_platform() { ci()->load->helper('asset'); ci()->load->helper('user_agent'); $asset_uri = config_item('asset_dir'); $asset_img_uri = image_path(''); $asset_js_uri = js_path(''); $asset_css_dir = css_path(''); return "\n <script type=\"text/javascript\">\n //<![CDATA[\n var BASE_URL = '" . BASE_URL . "';\n var BASE_URI = '" . BASE_URI . "';\n var SERVER_URL = '" . SERVER_URL . "';\n var SITE_URL = '" . SITE_URL . "';\n var SITE_URI = '" . SITE_URI . "';\n var CURRENT_URL = '" . CURRENT_URL . "';\n var CURRENT_URI = '" . CURRENT_URI . "';\n var ASSET_URI = '" . config_item('asset_dir') . "';\n var ASSET_IMG_URI = '" . image_path('') . "';\n var ASSET_JS_URI = '" . js_path('') . "';\n var ASSET_CSS_URI = '" . css_path('') . "';\n var PUBLIC_UPLOAD_URL = '" . PUBLIC_UPLOAD_URL . "';\n var UA_IS_MOBILE = " . (user_agent_is_mobile() ? 'true' : 'false') . ";\n //]]>\n </script>"; }
function js_platform() { ci()->load->helper('asset'); $asset_uri = config_item('asset_dir'); $asset_img_uri = image_path(''); $asset_js_uri = js_path(''); $asset_css_dir = css_path(''); return "\n <script type=\"text/javascript\">\n //<![CDATA[\n var BASE_URL = '" . BASE_URL . "';\n var BASE_URI = '" . BASE_URI . "';\n var SERVER_URL = '" . SERVER_URL . "';\n var SITE_URL = '" . SITE_URL . "';\n var site_url = '" . site_url() . "'; // The language segment is added.\n var SITE_URI = '" . SITE_URI . "';\n var site_uri = '" . site_uri() . "'; // The language segment is added.\n var CURRENT_URL = '" . CURRENT_URL . "';\n var CURRENT_URI = '" . CURRENT_URI . "';\n var DEFAULT_BASE_URL = '" . DEFAULT_BASE_URL . "';\n var DEFAULT_BASE_URI = '" . DEFAULT_BASE_URI . "';\n var ASSET_URI = '" . config_item('asset_dir') . "';\n var ASSET_IMG_URI = '" . image_path('') . "';\n var ASSET_JS_URI = '" . js_path('') . "';\n var ASSET_CSS_URI = '" . css_path('') . "';\n var PUBLIC_UPLOAD_URL = '" . PUBLIC_UPLOAD_URL . "';\n //]]>\n </script>"; }
function makecss() { $makecss = file_put_contents(css_path(), "/********* Do not edit this file *********/\n/*\nMy Custom CSS - Maked by Salvatore Noschese\na.k.a. L'altroWeb - https://laltroweb.it/\n*/\n/********* Do not edit this file *********/\n\n" . mycustomcss()); return $makecss; }
function theme_css_path($asset_name) { return css_path($asset_name, '_theme_'); }
function fuelify($output) { // if not logged in then we remove the markers if (!$this->_CI->config->item('admin_enabled', 'fuel') or $this->variables('fuelified') === FALSE or !$this->_fuelified or empty($output) or defined('FUELIFY') and FUELIFY === FALSE) { return $this->remove_markers($output); } $this->_CI->load->library('session'); // add top edit bar for fuel $this->_CI->config->module_load('fuel', 'fuel', TRUE); // render the markers to the proper html $output = $this->render_all_markers($output); // set main image and assets path before switching to fuel assets path $vars['init_params'] = array('assetsImgPath' => img_path(''), 'assetsPath' => assets_path('')); $this->_CI->asset->assets_path = $this->_CI->config->item('fuel_assets_path', 'fuel'); $this->_CI->load->helper('ajax'); $this->_CI->load->library('form'); $vars['page'] = $this->properties(); $vars['layouts'] = $this->_CI->fuel_layouts->layouts_list(TRUE); $editable_asset_types = $this->_CI->config->item('editable_asset_filetypes', 'fuel'); // add javascript $vars['init_params']['pageId'] = !empty($vars['page']['id']) ? $vars['page']['id'] : 0; $vars['init_params']['basePath'] = WEB_PATH; $vars['init_params']['imgPath'] = img_path('', 'fuel'); $vars['init_params']['cssPath'] = css_path('', 'fuel'); $vars['init_params']['jsPath'] = js_path('', 'fuel'); $vars['assetsAccept']['assetsAccept'] = !empty($editable_asset_types['media']) ? $editable_asset_types['media'] : 'jpg|gif|png'; // database specific... so we must check the fuel mode to see if we actually need to make a call to the database. // otherwise we get an error when the mode is set to views if ($this->_CI->config->item('fuel_mode', 'fuel') == 'views') { $vars['others'] = array(); } else { $this->_CI->load->module_model(FUEL_FOLDER, 'pages_model'); $vars['others'] = $this->_CI->pages_model->get_others('location', $this->location, 'location'); } if (!$this->_fuelified_processed) { $inline_edit_bar = $this->_CI->load->module_view(FUEL_FOLDER, '_blocks/inline_edit_bar', $vars, TRUE); $output = str_replace('</head>', css('fuel_inline', 'fuel') . "\n</head>", $output); $output = str_replace('</body>', $inline_edit_bar . "\n</body>", $output); $this->_CI->config->set_item('assets_path', $this->_CI->config->item('assets_path')); } $this->_fuelified_processed = TRUE; return $output; }
skin_variant : "silver", theme_advanced_buttons1 : "bold,italic,underline,strikethrough,blockquote,|,bullist,numlist,|,justifyleft,justifycenter,justifyright,justifyfull,|,styleselect,formatselect,fontselect,fontsizeselect,pdw_toggle", theme_advanced_buttons2 : "cut,copy,paste,pastetext,pasteword,|,outdent,indent,|,bullist,numlist,|,sub,sup,|,link,unlink,anchor,|,image,tinycimm-image,media,|,forecolor,backcolor,|,charmap,emotions,advhr,|,preview,fullscreen,code,|,undo,redo", theme_advanced_buttons3 : "", theme_advanced_toolbar_location : "top", theme_advanced_toolbar_align : "left", theme_advanced_resizing : true, theme_advanced_statusbar_location : "bottom", theme_advanced_resize_horizontal : false, document_base_url: "<?php echo BASE_URI; ?> ", content_css : "<?php echo css_path('style.css'); ?> ", pdw_toggle_on : 1, pdw_toggle_toolbars : "2,3", button_tile_map : true, media_strict: false, file_browser_callback : 'tinycimm', tinycimm_image_controller : '<?php echo $this->config->item('tinycimm_image_controller'); ?> ', tinycimm_link_controller : '<?php
echo Asset::render_js('admin'); */ ?> <link rel="stylesheet" href="<?php echo css_asset_url('bootstrap.min.css'); ?> "> <link rel="stylesheet" href="<?php echo css_asset_url('animate.css'); ?> "> <link rel="stylesheet" href="<?php echo css_asset_url('chosen.min.css'); ?> "> <link rel="stylesheet" href="<?php echo css_path('manage.css'); ?> "> <script type="text/javascript" src="<?php echo js_asset_url('jquery.min.js'); ?> "></script> <script type="text/javascript" src="<?php echo js_asset_url('jquery.tablesorter.min.js'); ?> "></script> <script type="text/javascript" src="<?php echo js_asset_url('bootstrap.min.js'); ?> "></script>
"; jqx_config.uriPath = "<?php echo uri_path(FALSE); ?> "; jqx_config.assetsImgPath = "<?php echo img_path(''); ?> "; jqx_config.assetsPath = "<?php echo assets_path(''); ?> "; jqx_config.assetsCssPath = "<?php echo css_path(''); ?> "; jqx_config.controllerName = 'fuel'; jqx_config.jqxPath = jqx_config.jsPath + "jqx/"; jqx_config.controllerPath = jqx_config.jsPath + "fuel/controller/"; jqx_config.pluginPath = jqx_config.jsPath + 'jquery/plugins/'; jqx_config.fuelPath = '<?php echo site_url($this->fuel->config('fuel_path')); ?> '; jqx_config.cookieDefaultPath = '<?php echo $this->fuel->config('fuel_cookie_path'); ?> '; <?php
function mccss_options() { ?> <div class="wrap"> <h2><?php _e('Custom CSS Panel', 'mccss'); ?> </h2> <form method="post" action="options.php"> <?php settings_fields('mccss_settings'); ?> <p><?php _e('Place your custom CSS code here:', 'mccss'); ?> <input type="submit" class="button-secondary" value="<?php _e('Save', 'mccss'); ?> " style="font-size: 20px; height: 35px; position: fixed; top: 35px; right: 15px; z-index: 5;" /></p> <textarea name="my_custom_css" id="my_custom_css" dir="ltr" style="width:100%;height:350px;"><?php echo get_option('my_custom_css'); ?> </textarea> <script language="javascript">var editor = CodeMirror.fromTextArea(document.getElementById("my_custom_css"), { lineNumbers: true });</script> <p> <input type="submit" class="button-primary" value="<?php _e('Save', 'mccss'); ?> " /> <input type="button" class="button-secondary" value="Top^" onclick="self.scrollTo(0, 0); return false;" style="float: right;" /> </p> </form> </div> <?php // Save also in *.css file! $mycustomcss = mycustomcss(); if (!empty($mycustomcss)) { makecss(); } elseif (empty($mycustomcss) && file_exists(css_path())) { unlink(css_path()); } }
function fuelify($output) { // if not logged in then we remove the markers if (!$this->_CI->config->item('admin_enabled', 'fuel') OR $this->variables('fuelified') === FALSE OR !$this->_fuelified OR empty($output) OR (defined('FUELIFY') AND FUELIFY === FALSE)) { return $this->remove_markers($output); } $this->_CI->load->library('session'); $this->_CI->load->helper('convert'); // add top edit bar for fuel $this->_CI->config->module_load('fuel', 'fuel', TRUE); // render the markers to the proper html $output = $this->render_all_markers($output); // set main image and assets path before switching to fuel assets path $vars['init_params'] = array( 'assetsImgPath' => img_path(''), 'assetsPath' => assets_path(''), ); $this->_CI->asset->assets_path = $this->_CI->config->item('fuel_assets_path', 'fuel'); $this->_CI->load->helper('ajax'); $this->_CI->load->library('form'); $vars['page'] = $this->properties(); $vars['layouts'] = $this->_CI->fuel_layouts->layouts_list(TRUE); $last_page = uri_path(); if (empty($last_page)) $last_page = $this->_CI->config->item('default_home_view', 'fuel'); $vars['last_page'] = uri_safe_encode($last_page); $editable_asset_types = $this->_CI->config->item('editable_asset_filetypes', 'fuel'); // add javascript $vars['init_params']['pageId'] = (!empty($vars['page']['id']) ? $vars['page']['id'] : 0); $vars['init_params']['basePath'] = WEB_PATH; $vars['init_params']['imgPath'] = img_path('', 'fuel'); $vars['init_params']['cssPath'] = css_path('', 'fuel'); $vars['init_params']['jsPath'] = js_path('', 'fuel'); $vars['init_params']['editor'] = $this->_CI->config->item('text_editor', 'fuel'); $vars['init_params']['editorConfig'] = $this->_CI->config->item('ck_editor_settings', 'fuel'); // load language files $this->_CI->load->module_language(FUEL_FOLDER, 'fuel_inline_edit'); $this->_CI->load->module_language(FUEL_FOLDER, 'fuel_js'); // json localization $vars['js_localized'] = json_lang('fuel/fuel_js'); $vars['assetsAccept']['assetsAccept'] = (!empty($editable_asset_types['media']) ? $editable_asset_types['media'] : 'jpg|gif|png'); // database specific... so we must check the fuel mode to see if we actually need to make a call to the database. // otherwise we get an error when the mode is set to views if ($this->_CI->config->item('fuel_mode', 'fuel') == 'views') { $vars['others'] = array(); } else { $this->_CI->load->module_model(FUEL_FOLDER, 'pages_model'); $vars['others'] = $this->_CI->pages_model->get_others('location', $this->location, 'location'); } if (!$this->_fuelified_processed) { $inline_edit_bar = $this->_CI->load->module_view(FUEL_FOLDER, '_blocks/inline_edit_bar', $vars, TRUE); $output = preg_replace('#(</head>)#i', css('fuel_inline', 'fuel')."\n$1", $output); $output = preg_replace('#(</body>)#i', $inline_edit_bar."\n$1", $output); $this->_CI->config->set_item('assets_path', $this->_CI->config->item('assets_path')); } $this->_fuelified_processed = TRUE; return $output; }
public function display_page() { if (SSFA_ADMINSTYLE === 'minimal') { unset($this->sections['about']); } $randysave = rand(1, 5); if (SSFA_ADMINSTYLE !== 'minimal') { if ($randysave < 4) { $saving = 'Filing away...'; $saved = 'Oh Glory!'; } elseif ($randysave === 4) { $saving = 'Gettin\' saved...'; $saved = 'Hallelujah, by and by.'; } elseif ($randysave === 5) { $saving = 'Just a few more weary days and then...'; $saved = '...your settings will be saved.'; } $savinganimation = "<img src='" . SSFA_IMAGES_URL . "saving.gif'>"; $bannersize = '500px'; } else { $saving = 'Saving changes...'; $saved = 'Changes saved.'; $savinganimation = null; $bannersize = '300px'; } echo '<div class="wrap"> <img src="' . SSFA_IMAGES_URL . 'fileaway_banner.png" style="width:' . $bannersize . ';">'; if (isset($_GET['settings-updated']) and $_GET['settings-updated'] == true) { echo '<div class="updated fade"><p>' . __('Settings Saved.') . '</p></div>'; } echo '<form action="options.php" method="post" id="ssfa-form">'; settings_fields('fileaway_options'); echo '<div class="ssfa-ui-tabs"> <ul class="ssfa-ui-tabs-nav">'; foreach ($this->sections as $section_slug => $section) { echo "<li class='{$section_slug}'><a href='#{$section_slug}' class='{$section_slug}'>{$section}</a></li>"; } echo '</ul>'; do_settings_sections($_GET['page']); echo "</div>\r\n\t\t<div id='ssfa-saving-backdrop'>\r\n\t\t<div id='ssfa-saving'>{$saving}</div>\r\n\t\t<div id='ssfa-saving-img'>{$savinganimation}</div>\t\t\r\n\t\t<div id='ssfa-settings-saved'>{$saved}</div>\r\n\t\t</div>\r\n\t\t</form>"; echo '<script type="text/javascript"> jQuery(document).ready(function($){ var sections = [];'; foreach ($this->sections as $section_slug => $section) { echo "sections['{$section}'] = '{$section_slug}';"; } echo 'var wrapped = $(".wrap h3").wrap("<div class=\\"ssfa-ui-tabs-panel\\">"); wrapped.each(function(){ $(this).parent().append($(this).parent().nextUntil("div.ssfa-ui-tabs-panel")); }); $(".ssfa-ui-tabs-panel").each(function(index){ $(this).attr("id", sections[$(this).children("h3").text()]); if (index > 0) $(this).addClass("ssfa-ui-tabs-hide"); }); $(".ssfa-ui-tabs").tabs({ show: { effect: "fadeIn", duration: 500, delay: 500 }, hide: { effect: "fadeOut", duration: 500, }, activate: function(event, ui){ ui.newTab.index(); cminst.refresh(); } }); $("input[type=text], textarea").each(function(){ if ($(this).val() == $(this).attr("placeholder") || $(this).val() == "") $(this).css("color", "#BBBBBB"); }); $("input[type=text], textarea").focus(function(){ if ($(this).val() == $(this).attr("placeholder") || $(this).val() == ""){ $(this).val(""); $(this).css("color", "#666666"); } }).blur(function(){ if ($(this).val() == "" || $(this).val() == $(this).attr("placeholder")){ $(this).val($(this).attr("placeholder")); $(this).css("color", "#BBBBBB"); } }); $(".wrap h3, .wrap table").show(); $(".warning").change(function(){ if ($(this).is(":checked")) $(this).parent().css("background", "#AB7137").css("color", "#fff").css("fontWeight", "normal"); else $(this).parent().css("background", "none").css("color", "inherit").css("fontWeight", "normal"); }); // Browser compatibility if ($.browser.mozilla) $("form").attr("autocomplete", "off"); }); </script>'; include_once SSFA_ADMIN_RESOURCES . 'options-help.php'; echo '</div>'; // PUSH CUSTOM CSS $ssfa_customcss = ssfa_customcss(); if (!empty($ssfa_customcss)) { ssfa_create_css(); } elseif (empty($ssfa_customcss) and file_exists(css_path())) { unlink(css_path()); } }
/** * Returns the inline editing toolbar HTML * * @access public * @return void */ public function toolbar() { $user_lang = $this->fuel->auth->user_lang(); $this->fuel->load_language('fuel_inline_edit', $user_lang); $this->fuel->load_language('fuel_js', $user_lang); $vars['page'] = $this->fuel->page->properties(); $vars['layouts'] = $this->fuel->layouts->options_list(); $vars['language'] = $this->fuel->language->detect(); $vars['language_mode'] = $this->fuel->language->mode(); $vars['language_default'] = $this->fuel->language->default_option(); $vars['tools'] = $this->toolbar_tools(); $vars['js_localized'] = json_lang('fuel/fuel_js', $user_lang); $vars['is_fuelified'] = is_fuelified(); $vars['can_edit_pages'] = $this->CI->fuel->auth->has_permission('pages', 'edit'); if ($this->fuel->pages->mode() == 'views') { $vars['others'] = array(); } else { $location = uri_path(); $this->CI->load->module_model(FUEL_FOLDER, 'fuel_pages_model'); $vars['others'] = $this->CI->fuel_pages_model->get_others('location', $location, 'location'); } $vars['init_params']['pageId'] = !empty($vars['page']['id']) ? $vars['page']['id'] : 0; $vars['init_params']['pageLocation'] = !empty($vars['page']['location']) ? $vars['page']['location'] : uri_path(); $vars['init_params']['basePath'] = WEB_PATH; $vars['init_params']['cookiePath'] = $this->CI->fuel->config('fuel_cookie_path'); $vars['init_params']['imgPath'] = img_path('', 'fuel'); $vars['init_params']['cssPath'] = css_path('', 'fuel'); $vars['init_params']['jsPath'] = js_path('', 'fuel'); $vars['init_params']['editor'] = $this->fuel->config('text_editor'); $vars['init_params']['editorConfig'] = $this->fuel->config('ck_editor_settings'); $last_page = uri_path(); if (empty($last_page)) { $last_page = $this->fuel->config('default_home_view'); } $vars['last_page'] = uri_safe_encode($last_page); $output = $this->CI->load->module_view(FUEL_FOLDER, '_blocks/inline_edit_bar', $vars, TRUE); return $output; }
/** * Applies the CSS for the fields. A variable of $css must exist for the page to render * * @access protected * @return string */ protected function _apply_css() { if (empty($this->css) or $this->no_css_js) { return; } // static way but won't work if the form is ajaxed int' // $css = $this->CI->load->get_vars('css'); // foreach($this->css as $c) // { // $css[] = $c; // } //$this->CI->load->vars(array('css' => $css)); // set as global variable to help with nested forms if (empty($GLOBALS['__css_files__'])) { $GLOBALS['__css_files__'] = array(); } $add_css = array(); $file = ''; $out = ''; foreach ($this->css as $css) { if (is_string($css)) { $css = preg_split('#\\s*,\\s*#', $css); } foreach ($css as $k => $c) { $module = is_string($k) ? $k : NULL; if (is_array($c)) { foreach ($c as $file) { $f = css_path($file, $module); if (!empty($f) and !in_array($f, $GLOBALS['__css_files__'])) { array_push($GLOBALS['__css_files__'], $f); $add_css[] = $f; } } } else { $file = css_path($c, $module); if (!empty($file) and !in_array($file, $GLOBALS['__css_files__'])) { array_push($GLOBALS['__css_files__'], $file); $add_css[] = $file; } } } } // must use javascript to do this because forms may get ajaxed in and we need to inject their CSS into the head if (!empty($add_css)) { $out .= "<script type=\"text/javascript\">\n"; $out .= "//<![CDATA[\n"; $out .= 'if (jQuery){ (function($) { var cssFiles = ' . json_encode($add_css) . '; var css = []; $("head link").each(function(i){ css.push($(this).attr("href")); }); for(var n in cssFiles){ if ($.inArray(cssFiles[n], css) == -1){ // for IE 8 if (document.createStyleSheet){ var stylesheet = document.createStyleSheet(cssFiles[n]) } else { var stylesheet = "<link rel=\\"stylesheet\\" type=\\"text/css\\" href=\\"" + cssFiles[n] + "\\" />"; } jQuery("head").append(stylesheet); } } })(jQuery)}'; $out .= "\n//]]>\n"; $out .= "</script>\n"; } return $out; }
<link rel="stylesheet" href="<?php echo css_path(); ?> jquery/jquery-ui-1.9.2.custom.min.css"> <script src="<?php echo js_path(); ?> jquery-ui-1.9.2.custom.min.js"></script> <meta charset="UTF-8"> <style> .ui-autocomplete { position: absolute; cursor: default; } .ui-autocomplete-loading { background: white url('<?php echo base_url(); ?> assets/images/ui-anim_basic_16x16.gif') right center no-repeat; } </style> <link rel="stylesheet" href="<?php echo base_url(); ?> assets/css/chosen.css" /> <?php if (validation_errors()) { ?> <div class="alert alert-block alert-error fade in "> <a class="close" data-dismiss="alert">×</a> <h4 class="alert-heading">Please fix the following errors :</h4> <?php echo validation_errors(); ?> </div>
<html class="no-js" lang="en"> <head> <meta charset="utf-8" /> <meta name="viewport" content="width=device-width, initial-scale=1"> <link rel="profile" href="http://gmpg.org/xfn/11"> <link rel="dns-prefetch" href="https://fonts.googleapis.com" /> <link rel="dns-prefetch" href="https://cdnjs.cloudflare.com" /> <title><?php site_title(); ?> </title> <link rel="stylesheet" href="<?php echo css_path('css/styles.css'); ?> " /> <link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Lato:100,300,400,300italic" /> <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.6.3/css/font-awesome.css" /> <link type="text/plain" rel="author" href="<?php echo path('humans.txt'); ?> " /> <meta name="google-site-verification" content="VDLz-TZD53CTCmTol81Cd1UoOyz5RuAjdyjiP4irmsk" /> <meta name="description" content="<?php site_description('', true); ?> ">