<?php
/* 
* Theme: PREMIUMPRESS CORE FRAMEWORK FILE
* Url: www.premiumpress.com
* Author: Mark Fail
*
* THIS FILE WILL BE UPDATED WITH EVERY UPDATE
* IF YOU WANT TO MODIFY THIS FILE, CREATE A CHILD THEME
*
* http://codex.wordpress.org/Child_Themes
*/
if (!defined('THEME_VERSION')) {	header('HTTP/1.0 403 Forbidden'); exit; }


// LOAD IN MAIN DEFAULTS 
$core_admin_values = get_option("core_admin_values");  
  
?> 


<div class="heading2">Popular Plugins </div>

 
<?php

$plugins = array(

1 => array("title" => "SEO Plugins"),

	"wordpress-seo" => array("t" => "Yoast SEO", "d" => "Improve your WordPress SEO: Write better content and have a fully optimized WordPress site using Yoast SEO plugin.", "i" => "http://ps.w.org/wordpress-seo/assets/icon.svg?rev=1203032",  ),
	
 
	
2 => array("title" => "Clean-up &amp; Maintenance Plugins"),

	"wp-clean-up-optimizer" => array("t" => "Optimize & Clean Database", "d" => "WP Clean Up Optimizer will extensively clean up your WordPress database along with Optimizing without manual queries.", "i" => "http://ps.w.org/wp-clean-up-optimizer/assets/icon-256x256.png",  ),
	
	
	"query-monitor" => array("t" => "Query Monitor", "d" => "View debugging and performance information on database queries, hooks, conditionals, HTTP requests, redirects and more.", "i" => "http://ps.w.org/wincher-rank-tracker/assets/icon-128x128.png",  ),
	
		
	
	
	
3 => array("title" => "Language Plugins"),

	
	"loco-translate" => array("t" => "Loco Translate", "d" => "Translate WordPress themes directly in your browser", "i" => "http://ps.w.org/loco-translate/assets/icon-256x256.png",  ),
 	

4 => array("title" => "Performance Plugins"),

	
	"wp-super-cache" => array("t" => "WP Super Cache", "d" => "A very fast caching engine for WordPress that produces static html files.", "i" => "http://ps.w.org/wp-super-cache/assets/icon-256x256.png?rev=1095422",  ),
	
	"db-cache-reloaded-fix" => array("t" => "Database Cache", "d" => "This plugin caches every database query with given lifetime. It is much faster than other html caching plugins and uses less disk space for caching.", "i" => "http://ps.w.org/quick-cache/assets/icon-256x256.png?rev=1000299",  ),
		
	
	
	
 
	"autoptimize" => array("t" => "Autoptimize", "d" => "Autoptimize speeds up your website and helps you save bandwidth by aggregating and minimizing JS, CSS and HTML.", "i" => "data:image/svg+xml;base64,[encoded data, 10692 characters]" ),
	
	
	
	"leverage-browser-caching-ninjas" => array("t" => "Leverage Browser Caching ", "d" => "Very simple plugin that allows you to quickly leverage browser caching on your website making you 100% compliant with Google's PageSpeed Insight rules.", "i" => "data:image/svg+xml;base64,[encoded data, 9128 characters]"),
	
	"check-and-enable-gzip-compression" => array("t" => "Enable GZIP compression", "d" => "This handy tool checks if you have GZIP compression enabled, and makes it possible to turn on GZIP compression", "i" => "http://ps.w.org/check-and-enable-gzip-compression/assets/icon.svg?rev=1176583",  ),


5 => array("title" => "Media Plugins"),

	"ewww-image-optimizer" => array("t" => "EWWW Image Optimizer", "d" => "Reduce file sizes for images in WordPress including NextGEN, GRAND FlAGallery and more using lossless/lossy methods and image format conversion", "i" => "http://ps.w.org/ewww-image-optimizer/assets/icon-256x256.jpg?rev=1001583",  ),
	
	
6 => array("title" => "Security Plugins"),

	"wordfence" => array("t" => "Wordfence Security", "d" => "The Wordfence WordPress security plugin provides free enterprise-class WordPress security, protecting your website from hacks and malware", "i" => "http://ps.w.org/wordfence/assets/icon-256x256.png?rev=1208450",  ),

);


?>



 
<?php
 

foreach($plugins as $key => $p){ ?>

<?php if(isset($p['title'])){ ?>

<div class="heading">
<h4 class="clear heading1"><?php echo $p['title']; ?></h4>
</div>

<?php }else{ ?>

 
<div class="thumbnail1" style="  padding-bottom:10px;">

<div style="float:left; margin:10px; margin-right:20px; ">
<img src="<?php echo $p['i']; ?>" style="width:100px;" />
</div>

<h4 style="margin-top:0px;margin-bottom:0px; font-weight:bold;"><?php echo $p['t']; ?></h4>

<p><?php echo $p['d']; ?></p>
 

<a href="<?php echo home_url(); ?>/wp-admin/plugin-install.php?tab=plugin-information&plugin=<?php echo $key; ?>&TB_iframe=true&width=772&height=513" class="button btn" style="margin-top:10px;">Install Now</a>

</div>

<?php }?>

<?php } ?>