Version Description
Download this release
Release Info
Developer | namith.jawahar |
Plugin | Wp-Insert |
Version | 2.0.7 |
Comparing to | |
See all releases |
Code changes from version 2.0.6 to 2.0.7
- includes/adwidgets/admin-page.php +9 -1
- includes/common/popups/categories.php +1 -1
- includes/common/popups/posts.php +1 -1
- includes/common/status.php +3 -0
- includes/common/support.php +10 -1
- includes/inpostads/admin-page.php +10 -2
- includes/syntax-highlighting/codes.php +8 -1
- includes/templateads/admin-page.php +9 -1
- readme.txt +2 -2
- wp-insert.php +3 -3
includes/adwidgets/admin-page.php
CHANGED
@@ -43,7 +43,7 @@ function wp_insert_adwidgets_content($post, $args) {
|
|
43 |
$name = $args['args']['name'].'['.$location.']';
|
44 |
|
45 |
if(!isset($data[$location])) { $data[$location] = array(); }
|
46 |
-
$data = wp_insert_sanitize_array($data[$location], array('status', 'ad_code_1', 'ad_code_2', 'ad_code_3', 'country_1', 'country_code_1', 'rules_exclude_home', 'rules_exclude_archives', 'rules_exclude_categories', 'rules_categories_exceptions', 'rules_exclude_search', 'rules_exclude_page', 'rules_page_exceptions', 'rules_exclude_post', 'rules_post_exceptions', 'styles'));
|
47 |
|
48 |
$controls = array();
|
49 |
$controls['status'] = wp_insert_get_control('tz-checkbox', false, $name.'[status]', $id.'-status', $data['status']);
|
@@ -58,6 +58,7 @@ function wp_insert_adwidgets_content($post, $args) {
|
|
58 |
$controls['rules_exclude_archives'] = wp_insert_get_control('ip-checkbox', false, $name.'[rules_exclude_archives]', $id.'-rules_exclude_archives', $data['rules_exclude_archives'], '', '', null, '', false);
|
59 |
$controls['rules_exclude_categories'] = wp_insert_get_control('ip-checkbox', false, $name.'[rules_exclude_categories]', $id.'-rules_exclude_categories', $data['rules_exclude_categories'], '', '', null, '', false);
|
60 |
$controls['rules_categories_exceptions'] = wp_insert_get_control('popup', false, $name.'[rules_categories_exceptions]', $id.'-rules_categories_exceptions', $data['rules_categories_exceptions'], '', '', array('type' => 'categories'), '', false);
|
|
|
61 |
$controls['rules_exclude_search'] = wp_insert_get_control('ip-checkbox', false, $name.'[rules_exclude_search]', $id.'-rules_exclude_search', $data['rules_exclude_search'], '', '', null, '', false);
|
62 |
$controls['rules_exclude_page'] = wp_insert_get_control('ip-checkbox', false, $name.'[rules_exclude_page]', $id.'-rules_exclude_page', $data['rules_exclude_page'], '', '', null, '', false);
|
63 |
$controls['rules_page_exceptions'] = wp_insert_get_control('popup', false, $name.'[rules_page_exceptions]', $id.'-rules_page_exceptions', $data['rules_page_exceptions'], '', '', array('type' => 'pages'), '', false);
|
@@ -171,6 +172,13 @@ function wp_insert_adwidgets_rules_content($controls) {
|
|
171 |
array('content' => ' : '),
|
172 |
array('content' => $controls['rules_categories_exceptions']['html'])
|
173 |
)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
174 |
)
|
175 |
);
|
176 |
array_push(
|
43 |
$name = $args['args']['name'].'['.$location.']';
|
44 |
|
45 |
if(!isset($data[$location])) { $data[$location] = array(); }
|
46 |
+
$data = wp_insert_sanitize_array($data[$location], array('status', 'ad_code_1', 'ad_code_2', 'ad_code_3', 'country_1', 'country_code_1', 'rules_exclude_home', 'rules_exclude_archives', 'rules_exclude_categories', 'rules_categories_exceptions', 'rules_categories_post_exceptions', 'rules_exclude_search', 'rules_exclude_page', 'rules_page_exceptions', 'rules_exclude_post', 'rules_post_exceptions', 'styles'));
|
47 |
|
48 |
$controls = array();
|
49 |
$controls['status'] = wp_insert_get_control('tz-checkbox', false, $name.'[status]', $id.'-status', $data['status']);
|
58 |
$controls['rules_exclude_archives'] = wp_insert_get_control('ip-checkbox', false, $name.'[rules_exclude_archives]', $id.'-rules_exclude_archives', $data['rules_exclude_archives'], '', '', null, '', false);
|
59 |
$controls['rules_exclude_categories'] = wp_insert_get_control('ip-checkbox', false, $name.'[rules_exclude_categories]', $id.'-rules_exclude_categories', $data['rules_exclude_categories'], '', '', null, '', false);
|
60 |
$controls['rules_categories_exceptions'] = wp_insert_get_control('popup', false, $name.'[rules_categories_exceptions]', $id.'-rules_categories_exceptions', $data['rules_categories_exceptions'], '', '', array('type' => 'categories'), '', false);
|
61 |
+
$controls['rules_categories_post_exceptions'] = wp_insert_get_control('popup', false, $name.'[rules_categories_post_exceptions]', $id.'-rules_categories_post_exceptions', $data['rules_categories_post_exceptions'], '', '', array('type' => 'categories'), '', false);
|
62 |
$controls['rules_exclude_search'] = wp_insert_get_control('ip-checkbox', false, $name.'[rules_exclude_search]', $id.'-rules_exclude_search', $data['rules_exclude_search'], '', '', null, '', false);
|
63 |
$controls['rules_exclude_page'] = wp_insert_get_control('ip-checkbox', false, $name.'[rules_exclude_page]', $id.'-rules_exclude_page', $data['rules_exclude_page'], '', '', null, '', false);
|
64 |
$controls['rules_page_exceptions'] = wp_insert_get_control('popup', false, $name.'[rules_page_exceptions]', $id.'-rules_page_exceptions', $data['rules_page_exceptions'], '', '', array('type' => 'pages'), '', false);
|
172 |
array('content' => ' : '),
|
173 |
array('content' => $controls['rules_categories_exceptions']['html'])
|
174 |
)
|
175 |
+
),
|
176 |
+
array(
|
177 |
+
'cells' => array(
|
178 |
+
array('content' => 'Post Exceptions'),
|
179 |
+
array('content' => ' : '),
|
180 |
+
array('content' => $controls['rules_categories_post_exceptions']['html'])
|
181 |
+
)
|
182 |
)
|
183 |
);
|
184 |
array_push(
|
includes/common/popups/categories.php
CHANGED
@@ -29,7 +29,7 @@ require('../../../../../../wp-blog-header.php');
|
|
29 |
</head>
|
30 |
<body>
|
31 |
<?php
|
32 |
-
$categories = get_categories('number=100');
|
33 |
$selected = null;
|
34 |
if(isset($_GET['data'])) {
|
35 |
$selected = split(',', urldecode((string)$_GET['data']));
|
29 |
</head>
|
30 |
<body>
|
31 |
<?php
|
32 |
+
$categories = get_categories('number=100&hide_empty=0');
|
33 |
$selected = null;
|
34 |
if(isset($_GET['data'])) {
|
35 |
$selected = split(',', urldecode((string)$_GET['data']));
|
includes/common/popups/posts.php
CHANGED
@@ -29,7 +29,7 @@ require('../../../../../../wp-blog-header.php');
|
|
29 |
</head>
|
30 |
<body>
|
31 |
<?php
|
32 |
-
$
|
33 |
$selected = null;
|
34 |
if(isset($_GET['data'])) {
|
35 |
$selected = split(',', urldecode((string)$_GET['data']));
|
29 |
</head>
|
30 |
<body>
|
31 |
<?php
|
32 |
+
$posts = get_posts('numberposts=100');
|
33 |
$selected = null;
|
34 |
if(isset($_GET['data'])) {
|
35 |
$selected = split(',', urldecode((string)$_GET['data']));
|
includes/common/status.php
CHANGED
@@ -39,6 +39,7 @@ function wp_insert_get_page_details() {
|
|
39 |
} else if(is_single()) {
|
40 |
if(is_singular('post')) {
|
41 |
$page_details['type'] = 'POST';
|
|
|
42 |
} else {
|
43 |
$page_details['type'] = 'CUSTOM';
|
44 |
$page_details['type_name'] = $post->post_type;
|
@@ -100,6 +101,8 @@ function wp_insert_get_ad_status($rules) {
|
|
100 |
return false;
|
101 |
} else if($rules['rules_post_exceptions'] && (in_array($page_details['ID'], split(',', $rules['rules_post_exceptions'])))) {
|
102 |
return false;
|
|
|
|
|
103 |
}
|
104 |
break;
|
105 |
case 'CUSTOM':
|
39 |
} else if(is_single()) {
|
40 |
if(is_singular('post')) {
|
41 |
$page_details['type'] = 'POST';
|
42 |
+
$page_details['categories'] = wp_get_post_categories($page_details['ID']);
|
43 |
} else {
|
44 |
$page_details['type'] = 'CUSTOM';
|
45 |
$page_details['type_name'] = $post->post_type;
|
101 |
return false;
|
102 |
} else if($rules['rules_post_exceptions'] && (in_array($page_details['ID'], split(',', $rules['rules_post_exceptions'])))) {
|
103 |
return false;
|
104 |
+
} else if($rules['rules_categories_post_exceptions'] && is_array($page_details['categories']) && (count(array_intersect(array_unique($page_details['categories']), array_unique(split(',', $rules['rules_categories_post_exceptions'])))) > 0)) {
|
105 |
+
return false;
|
106 |
}
|
107 |
break;
|
108 |
case 'CUSTOM':
|
includes/common/support.php
CHANGED
@@ -17,6 +17,8 @@ function wp_insert_support_admin_init() {
|
|
17 |
add_settings_section('wp-insert-support-top', '', 'wp_insert_support_section', 'wp-insert-support');
|
18 |
add_meta_box('wp_insert_facebook', 'Like Us On Facebook', 'wp_insert_facebook_content', 'wp-insert-support-top', 'advanced', 'high');
|
19 |
add_meta_box('wp_insert_donate', 'Donate and Support Free Plugins', 'wp_insert_donate_content', 'wp-insert-support-top', 'advanced', 'high');
|
|
|
|
|
20 |
if(get_option('wp_insert_showcase_submission') != 'SUBMITTED') {
|
21 |
add_meta_box('wp_insert_showcase', 'Showcase your Site', 'wp_insert_showcase_content', 'wp-insert-support-bottom', 'advanced', 'high');
|
22 |
}
|
@@ -36,6 +38,13 @@ function wp_insert_donate_content() {
|
|
36 |
echo '<a href="http://www.wp-insert.smartlogix.co.in/support/"><img src="'.WP_INSERT_URL.'/includes/common/images/donate_btn.png" style="margin-top: 5px;" /></a><br /><small style="display: block; text-align: center;"><a href="http://wordpress.org/extend/plugins/wp-insert/">Rate the plugin in Wordpress Plugin Repository</a></small>';
|
37 |
}
|
38 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
39 |
function wp_insert_showcase_content() {
|
40 |
if(get_option('wp_insert_showcase_submission') == 'PENDING') {
|
41 |
echo '<div id="message" class="updated" style="margin-top: 15px;"><p>Thank you for submitting your site to the Wp-Insert user directory. You will receive a notification Email when the site is published in the Directory</p></div>';
|
@@ -145,7 +154,7 @@ function wp_insert_showcase_content() {
|
|
145 |
echo '<option value="622">World News</option>';
|
146 |
echo '</select>';
|
147 |
echo '</p>';
|
148 |
-
echo '<p><label for="admin_email">Admin Email</label></br /><input type="
|
149 |
echo '<p><input type="hidden" id="is_showcase_submission" name="is_showcase_submission" value="false" /><input type="button" class="button-secondary" value="Submit" style="float: right" onclick="showcase_submit()" /></p><div style="clear: both;"></div>';
|
150 |
echo '<script type="text/javascript">';
|
151 |
echo 'function showcase_submit() {';
|
17 |
add_settings_section('wp-insert-support-top', '', 'wp_insert_support_section', 'wp-insert-support');
|
18 |
add_meta_box('wp_insert_facebook', 'Like Us On Facebook', 'wp_insert_facebook_content', 'wp-insert-support-top', 'advanced', 'high');
|
19 |
add_meta_box('wp_insert_donate', 'Donate and Support Free Plugins', 'wp_insert_donate_content', 'wp-insert-support-top', 'advanced', 'high');
|
20 |
+
add_meta_box('wp_insert_hate_campaign', 'Save Wp-Insert', 'wp_insert_hate_campaign_content', 'wp-insert-support-top', 'advanced', 'high');
|
21 |
+
delete_option('wp_insert_showcase_submission');
|
22 |
if(get_option('wp_insert_showcase_submission') != 'SUBMITTED') {
|
23 |
add_meta_box('wp_insert_showcase', 'Showcase your Site', 'wp_insert_showcase_content', 'wp-insert-support-bottom', 'advanced', 'high');
|
24 |
}
|
38 |
echo '<a href="http://www.wp-insert.smartlogix.co.in/support/"><img src="'.WP_INSERT_URL.'/includes/common/images/donate_btn.png" style="margin-top: 5px;" /></a><br /><small style="display: block; text-align: center;"><a href="http://wordpress.org/extend/plugins/wp-insert/">Rate the plugin in Wordpress Plugin Repository</a></small>';
|
39 |
}
|
40 |
|
41 |
+
function wp_insert_hate_campaign_content() {
|
42 |
+
echo '<p>Some users (most likely sponsored by some premium plugin) are spreading a Hate Campaign against Wp-Insert churning away Forum Posts and Negative reviews about the plugin on different sites.</p>';
|
43 |
+
echo '<p>Please help us defend these unscrupulous activities by writing a honest <a href="http://wordpress.org/support/view/plugin-reviews/wp-insert">review</a> about the plugin and <a href="http://wordpress.org/plugins/wp-insert">rating</a> the plugin in the Plugin Repository.</p>';
|
44 |
+
echo '<p>Most of you will think about leaving a rating or visiting the forum only when something goes wrong while thousands are using the plugin satisfactorily which unfortunately is not Reported OR Documented.</p>';
|
45 |
+
echo '<p style="font-weight: bold; color: #FF0000;"">IF YOU FIND THIS PLUGIN USEFUL DO LEAVE A HONEST <a href="http://wordpress.org/plugins/wp-insert">RATING</a> AND <a href="http://wordpress.org/support/view/plugin-reviews/wp-insert">REVIEW</a> IN THE REPOSITORY AND HELP US AGAINST THE MARKETING CAMPAIGN AIMED TO TARNISH A HIGHLY USEFUL, FREE, FEATURE RICH PLUGIN.</p>';
|
46 |
+
}
|
47 |
+
|
48 |
function wp_insert_showcase_content() {
|
49 |
if(get_option('wp_insert_showcase_submission') == 'PENDING') {
|
50 |
echo '<div id="message" class="updated" style="margin-top: 15px;"><p>Thank you for submitting your site to the Wp-Insert user directory. You will receive a notification Email when the site is published in the Directory</p></div>';
|
154 |
echo '<option value="622">World News</option>';
|
155 |
echo '</select>';
|
156 |
echo '</p>';
|
157 |
+
echo '<p><label for="admin_email">Admin Email</label></br /><input type="email" class="widefat" id="admin_email" name="admin_email" value="" /><br /><small style="text-align: justify; display: block">Your Email wont be shared with any third party and will only be used to sent notifications about SmartLogix Services related to WordPress. All data provided to SmartLogix is bound by our <a href="http://smartlogix.co.in/privacy-policy/">privacy policy</a></small></p>';
|
158 |
echo '<p><input type="hidden" id="is_showcase_submission" name="is_showcase_submission" value="false" /><input type="button" class="button-secondary" value="Submit" style="float: right" onclick="showcase_submit()" /></p><div style="clear: both;"></div>';
|
159 |
echo '<script type="text/javascript">';
|
160 |
echo 'function showcase_submit() {';
|
includes/inpostads/admin-page.php
CHANGED
@@ -29,9 +29,9 @@ function wp_insert_inpostads_content($post, $args) {
|
|
29 |
|
30 |
if(!isset($data[$location])) { $data[$location] = array(); }
|
31 |
if($location == 'middle') {
|
32 |
-
$data = wp_insert_sanitize_array($data[$location], array('status', 'ad_code_1', 'ad_code_2', 'ad_code_3', 'country_1', 'country_code_1', 'rules_exclude_home', 'rules_exclude_archives', 'rules_exclude_categories', 'rules_categories_exceptions', 'rules_exclude_search', 'rules_exclude_page', 'rules_page_exceptions', 'rules_exclude_post', 'rules_post_exceptions', 'styles', 'minimum_character_count', 'paragraph_buffer_count'));
|
33 |
} else {
|
34 |
-
$data = wp_insert_sanitize_array($data[$location], array('status', 'ad_code_1', 'ad_code_2', 'ad_code_3', 'country_1', 'country_code_1', 'rules_exclude_home', 'rules_exclude_archives', 'rules_exclude_categories', 'rules_categories_exceptions', 'rules_exclude_search', 'rules_exclude_page', 'rules_page_exceptions', 'rules_exclude_post', 'rules_post_exceptions', 'styles'));
|
35 |
}
|
36 |
|
37 |
$controls = array();
|
@@ -50,6 +50,7 @@ function wp_insert_inpostads_content($post, $args) {
|
|
50 |
$controls['rules_exclude_categories'] = wp_insert_get_control('ip-checkbox', false, $name.'[rules_exclude_categories]', $id.'-rules_exclude_categories', $data['rules_exclude_categories'], '', '', null, '', false);
|
51 |
$controls['rules_categories_instances'] = wp_insert_get_control('popup', false, $name.'[rules_categories_instances]', $id.'-rules_categories_instances', $data['rules_categories_instances'], '', '', array('type' => 'instances'), '', false);
|
52 |
$controls['rules_categories_exceptions'] = wp_insert_get_control('popup', false, $name.'[rules_categories_exceptions]', $id.'-rules_categories_exceptions', $data['rules_categories_exceptions'], '', '', array('type' => 'categories'), '', false);
|
|
|
53 |
$controls['rules_exclude_search'] = wp_insert_get_control('ip-checkbox', false, $name.'[rules_exclude_search]', $id.'-rules_exclude_search', $data['rules_exclude_search'], '', '', null, '', false);
|
54 |
$controls['rules_search_instances'] = wp_insert_get_control('popup', false, $name.'[rules_search_instances]', $id.'-rules_search_instances', $data['rules_search_instances'], '', '', array('type' => 'instances'), '', false);
|
55 |
$controls['rules_exclude_page'] = wp_insert_get_control('ip-checkbox', false, $name.'[rules_exclude_page]', $id.'-rules_exclude_page', $data['rules_exclude_page'], '', '', null, '', false);
|
@@ -199,6 +200,13 @@ function wp_insert_inpostads_rules_content($controls) {
|
|
199 |
array('content' => ' : '),
|
200 |
array('content' => $controls['rules_categories_exceptions']['html'])
|
201 |
)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
202 |
)
|
203 |
);
|
204 |
array_push(
|
29 |
|
30 |
if(!isset($data[$location])) { $data[$location] = array(); }
|
31 |
if($location == 'middle') {
|
32 |
+
$data = wp_insert_sanitize_array($data[$location], array('status', 'ad_code_1', 'ad_code_2', 'ad_code_3', 'country_1', 'country_code_1', 'rules_exclude_home', 'rules_exclude_archives', 'rules_exclude_categories', 'rules_categories_exceptions', 'rules_categories_post_exceptions', 'rules_exclude_search', 'rules_exclude_page', 'rules_page_exceptions', 'rules_exclude_post', 'rules_post_exceptions', 'styles', 'minimum_character_count', 'paragraph_buffer_count'));
|
33 |
} else {
|
34 |
+
$data = wp_insert_sanitize_array($data[$location], array('status', 'ad_code_1', 'ad_code_2', 'ad_code_3', 'country_1', 'country_code_1', 'rules_exclude_home', 'rules_exclude_archives', 'rules_exclude_categories', 'rules_categories_exceptions', 'rules_categories_post_exceptions', 'rules_exclude_search', 'rules_exclude_page', 'rules_page_exceptions', 'rules_exclude_post', 'rules_post_exceptions', 'styles'));
|
35 |
}
|
36 |
|
37 |
$controls = array();
|
50 |
$controls['rules_exclude_categories'] = wp_insert_get_control('ip-checkbox', false, $name.'[rules_exclude_categories]', $id.'-rules_exclude_categories', $data['rules_exclude_categories'], '', '', null, '', false);
|
51 |
$controls['rules_categories_instances'] = wp_insert_get_control('popup', false, $name.'[rules_categories_instances]', $id.'-rules_categories_instances', $data['rules_categories_instances'], '', '', array('type' => 'instances'), '', false);
|
52 |
$controls['rules_categories_exceptions'] = wp_insert_get_control('popup', false, $name.'[rules_categories_exceptions]', $id.'-rules_categories_exceptions', $data['rules_categories_exceptions'], '', '', array('type' => 'categories'), '', false);
|
53 |
+
$controls['rules_categories_post_exceptions'] = wp_insert_get_control('popup', false, $name.'[rules_categories_post_exceptions]', $id.'-rules_categories_post_exceptions', $data['rules_categories_post_exceptions'], '', '', array('type' => 'categories'), '', false);
|
54 |
$controls['rules_exclude_search'] = wp_insert_get_control('ip-checkbox', false, $name.'[rules_exclude_search]', $id.'-rules_exclude_search', $data['rules_exclude_search'], '', '', null, '', false);
|
55 |
$controls['rules_search_instances'] = wp_insert_get_control('popup', false, $name.'[rules_search_instances]', $id.'-rules_search_instances', $data['rules_search_instances'], '', '', array('type' => 'instances'), '', false);
|
56 |
$controls['rules_exclude_page'] = wp_insert_get_control('ip-checkbox', false, $name.'[rules_exclude_page]', $id.'-rules_exclude_page', $data['rules_exclude_page'], '', '', null, '', false);
|
200 |
array('content' => ' : '),
|
201 |
array('content' => $controls['rules_categories_exceptions']['html'])
|
202 |
)
|
203 |
+
),
|
204 |
+
array(
|
205 |
+
'cells' => array(
|
206 |
+
array('content' => 'Post Exceptions'),
|
207 |
+
array('content' => ' : '),
|
208 |
+
array('content' => $controls['rules_categories_post_exceptions']['html'])
|
209 |
+
)
|
210 |
)
|
211 |
);
|
212 |
array_push(
|
includes/syntax-highlighting/codes.php
CHANGED
@@ -4,7 +4,8 @@ function wp_insert_syntax_highlighting_admin_scripts() {
|
|
4 |
$options = get_option('wp_insert_syntax_highlighting_options');
|
5 |
if($options) {
|
6 |
if($options['editor']['status']) {
|
7 |
-
|
|
|
8 |
add_action('admin_footer', 'wp_insert_syntax_highlighting_admin_footer');
|
9 |
}
|
10 |
|
@@ -16,6 +17,12 @@ function wp_insert_syntax_highlighting_admin_scripts() {
|
|
16 |
}
|
17 |
}
|
18 |
|
|
|
|
|
|
|
|
|
|
|
|
|
19 |
function wp_insert_syntax_highlighting_shortcode_code($atts, $content = null) {
|
20 |
extract(shortcode_atts(array('language' => 'php', 'custom' => ''), $atts));
|
21 |
$random = rand(0,999999);
|
4 |
$options = get_option('wp_insert_syntax_highlighting_options');
|
5 |
if($options) {
|
6 |
if($options['editor']['status']) {
|
7 |
+
add_action('admin_enqueue_scripts', 'wp_insert_syntax_highlighting_admin_enqueue_scripts');
|
8 |
+
|
9 |
add_action('admin_footer', 'wp_insert_syntax_highlighting_admin_footer');
|
10 |
}
|
11 |
|
17 |
}
|
18 |
}
|
19 |
|
20 |
+
function wp_insert_syntax_highlighting_admin_enqueue_scripts($page) {
|
21 |
+
if(('theme-editor.php' == $page) || ('plugin-editor.php' == $page)) {
|
22 |
+
wp_enqueue_script('editarea', WP_INSERT_URL.'/includes/syntax-highlighting/editarea/edit_area_full.js');
|
23 |
+
}
|
24 |
+
}
|
25 |
+
|
26 |
function wp_insert_syntax_highlighting_shortcode_code($atts, $content = null) {
|
27 |
extract(shortcode_atts(array('language' => 'php', 'custom' => ''), $atts));
|
28 |
$random = rand(0,999999);
|
includes/templateads/admin-page.php
CHANGED
@@ -43,7 +43,7 @@ function wp_insert_templateads_content($post, $args) {
|
|
43 |
$name = $args['args']['name'].'['.$location.']';
|
44 |
|
45 |
if(!isset($data[$location])) { $data[$location] = array(); }
|
46 |
-
$data = wp_insert_sanitize_array($data[$location], array('status', 'ad_code_1', 'ad_code_2', 'ad_code_3', 'country_1', 'country_code_1', 'rules_exclude_home', 'rules_exclude_archives', 'rules_exclude_categories', 'rules_categories_exceptions', 'rules_exclude_search', 'rules_exclude_page', 'rules_page_exceptions', 'rules_exclude_post', 'rules_post_exceptions', 'styles'));
|
47 |
|
48 |
$controls = array();
|
49 |
$controls['status'] = wp_insert_get_control('tz-checkbox', false, $name.'[status]', $id.'-status', $data['status']);
|
@@ -58,6 +58,7 @@ function wp_insert_templateads_content($post, $args) {
|
|
58 |
$controls['rules_exclude_archives'] = wp_insert_get_control('ip-checkbox', false, $name.'[rules_exclude_archives]', $id.'-rules_exclude_archives', $data['rules_exclude_archives'], '', '', null, '', false);
|
59 |
$controls['rules_exclude_categories'] = wp_insert_get_control('ip-checkbox', false, $name.'[rules_exclude_categories]', $id.'-rules_exclude_categories', $data['rules_exclude_categories'], '', '', null, '', false);
|
60 |
$controls['rules_categories_exceptions'] = wp_insert_get_control('popup', false, $name.'[rules_categories_exceptions]', $id.'-rules_categories_exceptions', $data['rules_categories_exceptions'], '', '', array('type' => 'categories'), '', false);
|
|
|
61 |
$controls['rules_exclude_search'] = wp_insert_get_control('ip-checkbox', false, $name.'[rules_exclude_search]', $id.'-rules_exclude_search', $data['rules_exclude_search'], '', '', null, '', false);
|
62 |
$controls['rules_exclude_page'] = wp_insert_get_control('ip-checkbox', false, $name.'[rules_exclude_page]', $id.'-rules_exclude_page', $data['rules_exclude_page'], '', '', null, '', false);
|
63 |
$controls['rules_page_exceptions'] = wp_insert_get_control('popup', false, $name.'[rules_page_exceptions]', $id.'-rules_page_exceptions', $data['rules_page_exceptions'], '', '', array('type' => 'pages'), '', false);
|
@@ -175,6 +176,13 @@ function wp_insert_templateads_rules_content($controls) {
|
|
175 |
array('content' => ' : '),
|
176 |
array('content' => $controls['rules_categories_exceptions']['html'])
|
177 |
)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
178 |
)
|
179 |
);
|
180 |
array_push(
|
43 |
$name = $args['args']['name'].'['.$location.']';
|
44 |
|
45 |
if(!isset($data[$location])) { $data[$location] = array(); }
|
46 |
+
$data = wp_insert_sanitize_array($data[$location], array('status', 'ad_code_1', 'ad_code_2', 'ad_code_3', 'country_1', 'country_code_1', 'rules_exclude_home', 'rules_exclude_archives', 'rules_exclude_categories', 'rules_categories_exceptions', 'rules_categories_post_exceptions', 'rules_exclude_search', 'rules_exclude_page', 'rules_page_exceptions', 'rules_exclude_post', 'rules_post_exceptions', 'styles'));
|
47 |
|
48 |
$controls = array();
|
49 |
$controls['status'] = wp_insert_get_control('tz-checkbox', false, $name.'[status]', $id.'-status', $data['status']);
|
58 |
$controls['rules_exclude_archives'] = wp_insert_get_control('ip-checkbox', false, $name.'[rules_exclude_archives]', $id.'-rules_exclude_archives', $data['rules_exclude_archives'], '', '', null, '', false);
|
59 |
$controls['rules_exclude_categories'] = wp_insert_get_control('ip-checkbox', false, $name.'[rules_exclude_categories]', $id.'-rules_exclude_categories', $data['rules_exclude_categories'], '', '', null, '', false);
|
60 |
$controls['rules_categories_exceptions'] = wp_insert_get_control('popup', false, $name.'[rules_categories_exceptions]', $id.'-rules_categories_exceptions', $data['rules_categories_exceptions'], '', '', array('type' => 'categories'), '', false);
|
61 |
+
$controls['rules_categories_post_exceptions'] = wp_insert_get_control('popup', false, $name.'[rules_categories_post_exceptions]', $id.'-rules_categories_post_exceptions', $data['rules_categories_post_exceptions'], '', '', array('type' => 'categories'), '', false);
|
62 |
$controls['rules_exclude_search'] = wp_insert_get_control('ip-checkbox', false, $name.'[rules_exclude_search]', $id.'-rules_exclude_search', $data['rules_exclude_search'], '', '', null, '', false);
|
63 |
$controls['rules_exclude_page'] = wp_insert_get_control('ip-checkbox', false, $name.'[rules_exclude_page]', $id.'-rules_exclude_page', $data['rules_exclude_page'], '', '', null, '', false);
|
64 |
$controls['rules_page_exceptions'] = wp_insert_get_control('popup', false, $name.'[rules_page_exceptions]', $id.'-rules_page_exceptions', $data['rules_page_exceptions'], '', '', array('type' => 'pages'), '', false);
|
176 |
array('content' => ' : '),
|
177 |
array('content' => $controls['rules_categories_exceptions']['html'])
|
178 |
)
|
179 |
+
),
|
180 |
+
array(
|
181 |
+
'cells' => array(
|
182 |
+
array('content' => 'Post Exceptions'),
|
183 |
+
array('content' => ' : '),
|
184 |
+
array('content' => $controls['rules_categories_post_exceptions']['html'])
|
185 |
+
)
|
186 |
)
|
187 |
);
|
188 |
array_push(
|
readme.txt
CHANGED
@@ -3,8 +3,8 @@ Contributors: Namith Jawahar
|
|
3 |
Donate link:www.wp-insert.smartlogix.co.in/support
|
4 |
Tags: adsense,google,widget,post,admin,plugin,ads,in post ads,feed logo,smartlogix,ads in feeds,analytics,google analytics,header,footer,ad management,advertisements,content,ad,advertising,privacy policy,privacy,policy,automatic privacy policy,blog,feed,feeds,formatting,html,javascript,manage,post,posts,seo,sidebar,widget,widgets,wordpress,tracking,syntex highlighter,highlighting,theme tools,plugin tools,developer tools,highlighting,theme editor,plugin editor,middle ad,ad filtration,pagewise ad filtration,template ads,ad tags,adbrite ads,adsense ready,easy adsense,adsense optimized,terms and conditions,terms,conditions,automatic terms and conditions
|
5 |
Requires at least: 3.2
|
6 |
-
Tested up to: 3.
|
7 |
-
Stable tag: 2.0.
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
3 |
Donate link:www.wp-insert.smartlogix.co.in/support
|
4 |
Tags: adsense,google,widget,post,admin,plugin,ads,in post ads,feed logo,smartlogix,ads in feeds,analytics,google analytics,header,footer,ad management,advertisements,content,ad,advertising,privacy policy,privacy,policy,automatic privacy policy,blog,feed,feeds,formatting,html,javascript,manage,post,posts,seo,sidebar,widget,widgets,wordpress,tracking,syntex highlighter,highlighting,theme tools,plugin tools,developer tools,highlighting,theme editor,plugin editor,middle ad,ad filtration,pagewise ad filtration,template ads,ad tags,adbrite ads,adsense ready,easy adsense,adsense optimized,terms and conditions,terms,conditions,automatic terms and conditions
|
5 |
Requires at least: 3.2
|
6 |
+
Tested up to: 3.6
|
7 |
+
Stable tag: 2.0.7
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
wp-insert.php
CHANGED
@@ -3,7 +3,7 @@
|
|
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.0.
|
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)
|
@@ -27,11 +27,11 @@ WP-INSERT by SMARTLOGIX : The ultimate wordpress plugin (No1 Adsense Plugin for
|
|
27 |
*/
|
28 |
/*Definitions*/
|
29 |
if(!defined('WP_INSERT_URL'))
|
30 |
-
define('WP_INSERT_URL',
|
31 |
if(!defined('WP_INSERT_DIR'))
|
32 |
define('WP_INSERT_DIR',WP_PLUGIN_DIR.'/wp-insert');
|
33 |
if(!defined('WP_INSERT_VERSION'))
|
34 |
-
define('WP_INSERT_VERSION', '2.0.
|
35 |
/*Includes*/
|
36 |
require_once (dirname(__FILE__).'/includes/includes.php');
|
37 |
?>
|
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.0.7
|
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)
|
27 |
*/
|
28 |
/*Definitions*/
|
29 |
if(!defined('WP_INSERT_URL'))
|
30 |
+
define('WP_INSERT_URL',plugins_url().'/wp-insert');
|
31 |
if(!defined('WP_INSERT_DIR'))
|
32 |
define('WP_INSERT_DIR',WP_PLUGIN_DIR.'/wp-insert');
|
33 |
if(!defined('WP_INSERT_VERSION'))
|
34 |
+
define('WP_INSERT_VERSION', '2.0.7');
|
35 |
/*Includes*/
|
36 |
require_once (dirname(__FILE__).'/includes/includes.php');
|
37 |
?>
|