' . sprintf( __('You are using a very old version of PHP (5.2.x or older) which has serious security and performance issues. Support for PHP 5.5 and below will be removed in one of the next AO released, please ask your hoster to provide you with an upgrade path to 7.x.','autoptimize'), '"http://blog.futtta.be/2016/03/15/why-would-you-still-be-on-php-5-2/" target="_blank"') . '

'; ?>

ao_admin_tabs(); ?>
  • />
  • />
    '. __('(deprecated)','autoptimize') . ''; ?>
  • />
    '. __('(deprecated)','autoptimize') . ''; ?>

%s', __('Settings')); array_unshift($links,$settings_link); } else { //2.8 //If it's us, add the link if($file === $plugin) { $newlink = array(sprintf('%s',__('Settings'))); $links = array_merge($links,$newlink); } } return $links; } public function get($key) { if(!is_array($this->config)) { //Default config $config = array('autoptimize_html' => 0, 'autoptimize_html_keepcomments' => 0, 'autoptimize_js' => 0, 'autoptimize_js_exclude' => "seal.js, js/jquery/jquery.js", 'autoptimize_js_trycatch' => 0, 'autoptimize_js_justhead' => 0, 'autoptimize_js_include_inline' => 0, 'autoptimize_js_forcehead' => 0, 'autoptimize_css' => 0, 'autoptimize_css_exclude' => "admin-bar.min.css, dashicons.min.css", 'autoptimize_css_justhead' => 0, 'autoptimize_css_include_inline' => 1, 'autoptimize_css_defer' => 0, 'autoptimize_css_defer_inline' => "", 'autoptimize_css_inline' => 0, 'autoptimize_css_datauris' => 0, 'autoptimize_cdn_url' => "", 'autoptimize_cache_nogzip' => 1, 'autoptimize_show_adv' => 0, 'autoptimize_optimize_logged' => 1, 'autoptimize_optimize_checkout' => 1 ); //Override with user settings foreach(array_keys($config) as $name) { $conf = get_option($name); if($conf!==false) { //It was set before! $config[$name] = $conf; } } //Save for next question $this->config = apply_filters( 'autoptimize_filter_get_config', $config ); } if(isset($this->config[$key])) return $this->config[$key]; return false; } private function getFutttaFeeds($url) { if (apply_filters('autoptimize_settingsscreen_remotehttp',true)) { $rss = fetch_feed( $url ); $maxitems = 0; if ( ! is_wp_error( $rss ) ) { $maxitems = $rss->get_item_quantity( 7 ); $rss_items = $rss->get_items( 0, $maxitems ); } ?> __('Main','autoptimize'))); $tabContent=""; if (count($tabs)>1) { if(isset($_GET['page'])){ $currentId = $_GET['page']; } else { $currentId = "autoptimize"; } $tabContent .= "

"; foreach($tabs as $tabId => $tabName){ if($currentId == $tabId){ $class = " nav-tab-active"; } else{ $class = ""; } $tabContent .= ''.$tabName.''; } $tabContent .= "

"; } else { $tabContent = "
"; } return $tabContent; } }