Wp-Insert - Version 2.1.1

Version Description

Download this release

Release Info

Developer namith.jawahar
Plugin Icon 128x128 Wp-Insert
Version 2.1.1
Comparing to
See all releases

Code changes from version 2.1 to 2.1.1

includes/assets/css/wp-insert.css CHANGED
@@ -1,3 +1,7 @@
 
 
 
 
1
  .wp-insert .upgrade-notice {
2
  background: #FFFFD1;
3
  padding: 10px;
1
+ .wp-insert #wpInsertLogo img {
2
+ max-width: 100%;
3
+ }
4
+
5
  .wp-insert .upgrade-notice {
6
  background: #FFFFD1;
7
  padding: 10px;
includes/common/control-panel.php CHANGED
@@ -22,8 +22,21 @@ function wp_insert_admin_enqueue_scripts($page) {
22
 
23
  function wp_insert_admin_page() { ?>
24
  <div class="wrap wp-insert">
25
- <a href="http://www.wp-insert.smartlogix.co.in"><img src="<?php echo WP_INSERT_URL; ?>/includes/assets/images/header-banner.png" /></a>
26
  <div class="wp-list-table widefat plugin-install">
 
 
 
 
 
 
 
 
 
 
 
 
 
 
27
  <div class="plugin-card">
28
  <div class="plugin-card-top">
29
  <h4>In-Post Ads</h4>
@@ -79,17 +92,18 @@ function wp_insert_admin_page() { ?>
79
  <p style="text-align: center; padding: 20px 0 10px;"><a id="wp_insert_inthemeads_new" href="#" class="button-secondary">Add New In-Theme Ad</a></p>
80
  </div>
81
  </div>
82
-
83
  <div class="plugin-card">
84
  <div class="plugin-card-top">
85
- <h4>Multiple Ad Networks / A-B Testing</h4>
86
- <p>Multiple Ad Networks can be setup to display ads from different networks without infringing the terms of any network.
87
- At a time only ads from one network (Randomly Choosen) will be shown.
88
- This feature can also be used to randomly display different sized Ads from the same network.
89
- Please note that this option is global and applied to In-Post Ads, Ad Widgets and In-Theme Ads.</p>
90
  </div>
91
  <div class="plugin-card-bottom">
92
- <p><a id="wp_insert_abtesting_configuration" href="javascript:;">Configuration</a></p>
 
 
 
 
93
  </div>
94
  </div>
95
 
@@ -107,15 +121,14 @@ function wp_insert_admin_page() { ?>
107
 
108
  <div class="plugin-card">
109
  <div class="plugin-card-top">
110
- <h4>Legal Pages</h4>
111
- <p>Legal Page Templates to kick start your Legal Notices.</p>
 
 
 
112
  </div>
113
  <div class="plugin-card-bottom">
114
- <p><a id="wp_insert_legalpages_privacy_policy" href="javascript:;">Privacy Policy</a></p>
115
- <p><a id="wp_insert_legalpages_terms_conditions" href="javascript:;">Terms and Conditions</a></p>
116
- <p><a id="wp_insert_legalpages_disclaimer" href="javascript:;">Disclaimer</a></p>
117
- <p><a id="wp_insert_legalpages_copyright" href="javascript:;">Copyright Notice</a></p>
118
- <!--<p><a href="#">EU Cookie Compliance</a></p>-->
119
  </div>
120
  </div>
121
 
22
 
23
  function wp_insert_admin_page() { ?>
24
  <div class="wrap wp-insert">
 
25
  <div class="wp-list-table widefat plugin-install">
26
+ <div class="plugin-card">
27
+ <div class="plugin-card-top">
28
+ <a id="wpInsertLogo" href="http://www.wp-insert.smartlogix.co.in"><img src="<?php echo WP_INSERT_URL; ?>/includes/assets/images/header-banner.png" /></a>
29
+ </div>
30
+ <div class="plugin-card-bottom">
31
+ <div id="wpInsertMeta">
32
+ <p><b>Donate :</b><br /><a target="_blank" href="http://wpinsert.smartlogix.co.in/support/">Click Here</a> to Donate and Promote further development of this plugin.</p>
33
+ <p><b>Like Us :</b><br /><a target="_blank" href="https://www.facebook.com/SmartLogix/">Click here</a> to like and support us on Facebook</p>
34
+ <p><b>Hire Me :</b><br /><a target="_blank" title="Hire me! on Freelancer.com" href="https://www.freelancer.com/affiliates/email/899781/" target="_blank">Hire Me on Freelancer</a> (<i>Hourly : $30 Minimum Hire Period 2 Hour / $60</i>)</p>
35
+ <p><b>Rate and Review :</b><br />If you find this plugin useful do leave a honest <a target="_blank" href="http://wordpress.org/plugins/wp-insert">RATING</a> and <a target="_blank" href="https://wordpress.org/support/view/plugin-reviews/wp-insert#postform">REVIEW</a></p>
36
+ </div>
37
+ </div>
38
+ </div>
39
+
40
  <div class="plugin-card">
41
  <div class="plugin-card-top">
42
  <h4>In-Post Ads</h4>
92
  <p style="text-align: center; padding: 20px 0 10px;"><a id="wp_insert_inthemeads_new" href="#" class="button-secondary">Add New In-Theme Ad</a></p>
93
  </div>
94
  </div>
95
+
96
  <div class="plugin-card">
97
  <div class="plugin-card-top">
98
+ <h4>Legal Pages</h4>
99
+ <p>Legal Page Templates to kick start your Legal Notices.</p>
 
 
 
100
  </div>
101
  <div class="plugin-card-bottom">
102
+ <p><a id="wp_insert_legalpages_privacy_policy" href="javascript:;">Privacy Policy</a></p>
103
+ <p><a id="wp_insert_legalpages_terms_conditions" href="javascript:;">Terms and Conditions</a></p>
104
+ <p><a id="wp_insert_legalpages_disclaimer" href="javascript:;">Disclaimer</a></p>
105
+ <p><a id="wp_insert_legalpages_copyright" href="javascript:;">Copyright Notice</a></p>
106
+ <!--<p><a href="#">EU Cookie Compliance</a></p>-->
107
  </div>
108
  </div>
109
 
121
 
122
  <div class="plugin-card">
123
  <div class="plugin-card-top">
124
+ <h4>Multiple Ad Networks / A-B Testing</h4>
125
+ <p>Multiple Ad Networks can be setup to display ads from different networks without infringing the terms of any network.
126
+ At a time only ads from one network (Randomly Choosen) will be shown.
127
+ This feature can also be used to randomly display different sized Ads from the same network.
128
+ Please note that this option is global and applied to In-Post Ads, Ad Widgets and In-Theme Ads.</p>
129
  </div>
130
  <div class="plugin-card-bottom">
131
+ <p><a id="wp_insert_abtesting_configuration" href="javascript:;">Configuration</a></p>
 
 
 
 
132
  </div>
133
  </div>
134
 
includes/controls/controls.php CHANGED
@@ -468,7 +468,7 @@ class smartlogixControls {
468
  switch($type) {
469
  case 'pages':
470
  if(!is_array($this->pages)) {
471
- $pages = get_pages('numberposts=-1');
472
  if(isset($pages) && is_array($pages)) {
473
  $this->pages = array();
474
  foreach($pages as $page) {
@@ -479,7 +479,7 @@ class smartlogixControls {
479
  break;
480
  case 'posts':
481
  if(!is_array($this->posts)) {
482
- $posts = get_posts('numberposts=-1');
483
  if(isset($posts) && is_array($posts)) {
484
  $this->posts = array();
485
  foreach($posts as $post) {
468
  switch($type) {
469
  case 'pages':
470
  if(!is_array($this->pages)) {
471
+ $pages = get_pages('numberposts=100');
472
  if(isset($pages) && is_array($pages)) {
473
  $this->pages = array();
474
  foreach($pages as $page) {
479
  break;
480
  case 'posts':
481
  if(!is_array($this->posts)) {
482
+ $posts = get_posts('numberposts=100');
483
  if(isset($posts) && is_array($posts)) {
484
  $this->posts = array();
485
  foreach($posts as $post) {
readme.txt CHANGED
@@ -4,7 +4,7 @@ Tags: ads,adsense,advertising,advertisement,google ads,ad widget,analytics,googl
4
  Donate link: http://wpinsert.smartlogix.co.in/support/
5
  Requires at least: 4.1.0
6
  Tested up to: 4.3.1
7
- Stable tag: 2.1
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
4
  Donate link: http://wpinsert.smartlogix.co.in/support/
5
  Requires at least: 4.1.0
6
  Tested up to: 4.3.1
7
+ Stable tag: 2.1.1
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
wp-insert.php CHANGED
@@ -2,11 +2,11 @@
2
  /*
3
  Plugin Name: Wp-Insert
4
  Plugin URI: http://www.wp-insert.smartlogix.co.in/
5
- Description: WP-INSERT by SMARTLOGIX : The ultimate wordpress plugin (No1 Adsense Plugin for Wordpress)
6
- Version: 2.1
7
  Author: Namith Jawahar
8
  Author URI: http://www.smartlogix.co.in/
9
- WP-INSERT by SMARTLOGIX : The ultimate wordpress plugin (No1 Adsense Plugin for Wordpress)
10
  */
11
 
12
  /* Copyright 2015 NAMITH JAWAHAR (website : http://www.smartlogix.co.in)
@@ -31,7 +31,7 @@ if(!defined('WP_INSERT_URL'))
31
  if(!defined('WP_INSERT_DIR'))
32
  define('WP_INSERT_DIR', plugin_dir_path(__FILE__));
33
  if(!defined('WP_INSERT_VERSION'))
34
- define('WP_INSERT_VERSION', '2.1');
35
  /*Includes*/
36
  require_once(dirname(__FILE__).'/includes/common/common.php');
37
  require_once(dirname(__FILE__).'/includes/controls/controls.php');
2
  /*
3
  Plugin Name: Wp-Insert
4
  Plugin URI: http://www.wp-insert.smartlogix.co.in/
5
+ Description: WP-INSERT by SMARTLOGIX : The Ultimate Adsense / Ad-Management Plugin for WordPress
6
+ Version: 2.1.1
7
  Author: Namith Jawahar
8
  Author URI: http://www.smartlogix.co.in/
9
+ WP-INSERT by SMARTLOGIX : The Ultimate Adsense / Ad-Management Plugin for WordPress
10
  */
11
 
12
  /* Copyright 2015 NAMITH JAWAHAR (website : http://www.smartlogix.co.in)
31
  if(!defined('WP_INSERT_DIR'))
32
  define('WP_INSERT_DIR', plugin_dir_path(__FILE__));
33
  if(!defined('WP_INSERT_VERSION'))
34
+ define('WP_INSERT_VERSION', '2.1.1');
35
  /*Includes*/
36
  require_once(dirname(__FILE__).'/includes/common/common.php');
37
  require_once(dirname(__FILE__).'/includes/controls/controls.php');