/>

/>

/>

%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_js' => 0, 'autoptimize_js_justhead' => 0, 'autoptimize_css' => 0, 'autoptimize_css_justhead' => 0); //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 = $config; } if(isset($this->config[$key])) return $this->config[$key]; return false; } }