' . sprintf( __('You are using a very old version of PHP which will not be supported as from the upcoming Autoptimize 2.4 any more, cfr. this blogpost for more info. please ask your hoster to provide you with an upgrade path to 7.x.','autoptimize'), '"https://blog.futtta.be/2018/02/13/introducing-zytzagoos-major-changes-for-autoptimize-2-4/" target="_blank"' ) . '

'; ?>
' . sprintf( __('You are forcing Autoptimize to use the "legacy minifiers" by setting the AUTOPTIMIZE_LEGACY_MINIFIERS constant in /wp-config.php. The "legacy minifiers" will not be supported as from the upcoming Autoptimize 2.4 any more, cfr. this blogpost for more info.','autoptimize'), '"https://blog.futtta.be/2018/02/13/introducing-zytzagoos-major-changes-for-autoptimize-2-4/" 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, wp-content/cache/, wp-content/uploads/", '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; } }