Version Description
Download this release
Release Info
Developer | namith.jawahar |
Plugin | Wp-Insert |
Version | 1.6.0 |
Comparing to | |
See all releases |
Code changes from version 1.5.3 to 1.6.0
- includes/ads.php +1 -1
- includes/essentials.php +1 -0
- includes/privacypolicy.php +103 -0
- readme.txt +11 -3
- screenshot-8.png +0 -0
- wp-insert.php +1 -1
includes/ads.php
CHANGED
@@ -6,7 +6,7 @@ function smart_add_menu() {
|
|
6 |
add_menu_page('Wp-Insert', 'Wp-Insert', 8, __FILE__);
|
7 |
add_submenu_page(__FILE__, 'wp-insert', 'Manage Ads<br/>(Posts and Sidebars)', 8, __FILE__, 'wp_insert_add_adspage');
|
8 |
add_submenu_page(__FILE__, 'wp-insert', 'Manage Ads<br/>(Template Tags)', 8, 'Manage Ads Advanced', 'wp_insert_add_advanced_spage');
|
9 |
-
|
10 |
add_submenu_page(__FILE__, 'wp-insert', 'Manage Feeds', 8, 'Manage Feeds', 'smart_add_feedspage');
|
11 |
add_submenu_page(__FILE__, 'wp-insert', 'Tracking Codes', 8, 'Tracking Codes', 'smart_add_analytics');
|
12 |
add_submenu_page(__FILE__, 'wp-insert', 'WYSIWYG Editor', 8, 'WYSIWYG Editor', 'smart_add_wysiwyg_pages');
|
6 |
add_menu_page('Wp-Insert', 'Wp-Insert', 8, __FILE__);
|
7 |
add_submenu_page(__FILE__, 'wp-insert', 'Manage Ads<br/>(Posts and Sidebars)', 8, __FILE__, 'wp_insert_add_adspage');
|
8 |
add_submenu_page(__FILE__, 'wp-insert', 'Manage Ads<br/>(Template Tags)', 8, 'Manage Ads Advanced', 'wp_insert_add_advanced_spage');
|
9 |
+
add_submenu_page(__FILE__, 'wp-insert', 'Manage Privacy Policy', 8, 'Manage Privacy Policy', 'wp_insert_privacy_policy_page');
|
10 |
add_submenu_page(__FILE__, 'wp-insert', 'Manage Feeds', 8, 'Manage Feeds', 'smart_add_feedspage');
|
11 |
add_submenu_page(__FILE__, 'wp-insert', 'Tracking Codes', 8, 'Tracking Codes', 'smart_add_analytics');
|
12 |
add_submenu_page(__FILE__, 'wp-insert', 'WYSIWYG Editor', 8, 'WYSIWYG Editor', 'smart_add_wysiwyg_pages');
|
includes/essentials.php
CHANGED
@@ -126,5 +126,6 @@ require_once (dirname(__FILE__) . '/widgethook.php');
|
|
126 |
require_once (dirname(__FILE__) . '/contenthook.php');
|
127 |
require_once (dirname(__FILE__) . '/ads.php');
|
128 |
require_once (dirname(__FILE__) . '/adsadvanced.php');
|
|
|
129 |
require_once (dirname(__FILE__) . '/feeds.php');
|
130 |
?>
|
126 |
require_once (dirname(__FILE__) . '/contenthook.php');
|
127 |
require_once (dirname(__FILE__) . '/ads.php');
|
128 |
require_once (dirname(__FILE__) . '/adsadvanced.php');
|
129 |
+
require_once (dirname(__FILE__) . '/privacypolicy.php');
|
130 |
require_once (dirname(__FILE__) . '/feeds.php');
|
131 |
?>
|
includes/privacypolicy.php
ADDED
@@ -0,0 +1,103 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
$Domain = str_replace('', "www.", $_SERVER['HTTP_HOST']);
|
3 |
+
$PrivacyPolicyText = '<p>At <a href="'.get_bloginfo('url').'">'.$Domain.'</a>, the privacy of our visitors is of extreme importance to us (See <a target="_blank" href="http://www.wp-insert.smartlogix.co.in/what-is-a-privacy-policy/">this article</a> to learn more about Privacy Policies.). This privacy policy document outlines the types of personal information is received and collected by <a href="'.get_bloginfo('url').'">'.$Domain.'</a> and how it is used.</p>
|
4 |
+
<p><b>Log Files</b><br/>Like many other Web sites, <a href="'.get_bloginfo('url').'">'.$Domain.'</a> makes use of log files. The information inside the log files includes internet protocol ( IP ) addresses, type of browser, Internet Service Provider ( ISP ), date/time stamp, referring/exit pages, and number of clicks to analyze trends, administer the site, track user’s movement around the site, and gather demographic information. IP addresses, and other such information are not linked to any information that is personally identifiable.</p>
|
5 |
+
<p><b>Cookies and Web Beacons</b><br/><a href="'.get_bloginfo('url').'">'.$Domain.'</a> does use cookies to store information about visitors preferences, record user-specific information on which pages the user access or visit, customize Web page content based on visitors browser type or other information that the visitor sends via their browser.</p>
|
6 |
+
<p><b>DoubleClick DART Cookie</b></p><ul><li>Google, as a third party vendor, uses cookies to serve ads on <a href="'.get_bloginfo('url').'">'.$Domain.'</a>.</li><li>Google\'s use of the DART cookie enables it to serve ads to users based on their visit to <a href="'.get_bloginfo('url').'">'.$Domain.'</a> and other sites on the Internet.</li><li>Users may opt out of the use of the DART cookie by visiting the Google ad and content network privacy policy at the following URL - <a href="http://www.google.com/privacy_ads.html">http://www.google.com/privacy_ads.html</a>.</li></ul>
|
7 |
+
<p>These third-party ad servers or ad networks use technology to the advertisements and links that appear on <a href="'.get_bloginfo('url').'">'.$Domain.'</a> send directly to your browsers. They automatically receive your IP address when this occurs. Other technologies ( such as cookies, JavaScript, or Web Beacons ) may also be used by the third-party ad networks to measure the effectiveness of their advertisements and / or to personalize the advertising content that you see.</p>
|
8 |
+
<p><a href="'.get_bloginfo('url').'">'.$Domain.'</a> has no access to or control over these cookies that are used by third-party advertisers.</p>
|
9 |
+
<p>You should consult the respective privacy policies of these third-party ad servers for more detailed information on their practices as well as for instructions about how to opt-out of certain practices. <a href="'.get_bloginfo('url').'">'.$Domain.'\'s</a> privacy policy does not apply to, and we cannot control the activities of, such other advertisers or web sites.</p>
|
10 |
+
<p>If you wish to disable cookies, you may do so through your individual browser options. More detailed information about cookie management with specific web browsers can be found at the browsers\' respective websites.</p>';
|
11 |
+
if(get_option('wp_insert_privacy_policy_content') == "") { add_option("wp_insert_privacy_policy_content", $PrivacyPolicyText, '', 'yes'); }
|
12 |
+
|
13 |
+
add_shortcode('Privacy', 'wp_insert_privacy_policy_shortcode');
|
14 |
+
|
15 |
+
function wp_insert_privacy_policy_shortcode() {
|
16 |
+
return get_option('wp_insert_privacy_policy_content');
|
17 |
+
}
|
18 |
+
|
19 |
+
function wp_insert_privacy_policy_page() {
|
20 |
+
if(isset($_GET["assign"])) {
|
21 |
+
$my_post = array();
|
22 |
+
$my_post['ID'] = $_GET["assign"];
|
23 |
+
$my_post['post_content'] = '[Privacy]';
|
24 |
+
wp_update_post($my_post);
|
25 |
+
header("Location: ".get_bloginfo('url')."/wp-admin/admin.php?page=Manage Privacy Policy");
|
26 |
+
}
|
27 |
+
else if(isset($_GET["create"])) {
|
28 |
+
$my_post = array();
|
29 |
+
$my_post['post_title'] = 'Privacy Policy';
|
30 |
+
$my_post['post_content'] = '[Privacy]';
|
31 |
+
$my_post['post_status'] = 'publish';
|
32 |
+
$my_post['post_author'] = 1;
|
33 |
+
$my_post['post_type'] = 'page';
|
34 |
+
wp_insert_post($my_post);
|
35 |
+
header("Location: ".get_bloginfo('url')."/wp-admin/admin.php?page=Manage Privacy Policy");
|
36 |
+
}
|
37 |
+
else if(isset($_GET["reset"])) {
|
38 |
+
$Domain = str_replace('', "www.", $_SERVER['HTTP_HOST']);
|
39 |
+
$PrivacyPolicyText = '<p>At <a href="'.get_bloginfo('url').'">'.$Domain.'</a>, the privacy of our visitors is of extreme importance to us (See <a target="_blank" href="http://www.wp-insert.smartlogix.co.in/what-is-a-privacy-policy/">this article</a> to learn more about Privacy Policies.). This privacy policy document outlines the types of personal information is received and collected by <a href="'.get_bloginfo('url').'">'.$Domain.'</a> and how it is used.</p>
|
40 |
+
<p><b>Log Files</b><br/>Like many other Web sites, <a href="'.get_bloginfo('url').'">'.$Domain.'</a> makes use of log files. The information inside the log files includes internet protocol ( IP ) addresses, type of browser, Internet Service Provider ( ISP ), date/time stamp, referring/exit pages, and number of clicks to analyze trends, administer the site, track user’s movement around the site, and gather demographic information. IP addresses, and other such information are not linked to any information that is personally identifiable.</p>
|
41 |
+
<p><b>Cookies and Web Beacons</b><br/><a href="'.get_bloginfo('url').'">'.$Domain.'</a> does use cookies to store information about visitors preferences, record user-specific information on which pages the user access or visit, customize Web page content based on visitors browser type or other information that the visitor sends via their browser.</p>
|
42 |
+
<p><b>DoubleClick DART Cookie</b></p><ul><li>Google, as a third party vendor, uses cookies to serve ads on <a href="'.get_bloginfo('url').'">'.$Domain.'</a>.</li><li>Google\'s use of the DART cookie enables it to serve ads to users based on their visit to <a href="'.get_bloginfo('url').'">'.$Domain.'</a> and other sites on the Internet.</li><li>Users may opt out of the use of the DART cookie by visiting the Google ad and content network privacy policy at the following URL - <a href="http://www.google.com/privacy_ads.html">http://www.google.com/privacy_ads.html</a>.</li></ul>
|
43 |
+
<p>These third-party ad servers or ad networks use technology to the advertisements and links that appear on <a href="'.get_bloginfo('url').'">'.$Domain.'</a> send directly to your browsers. They automatically receive your IP address when this occurs. Other technologies ( such as cookies, JavaScript, or Web Beacons ) may also be used by the third-party ad networks to measure the effectiveness of their advertisements and / or to personalize the advertising content that you see.</p>
|
44 |
+
<p><a href="'.get_bloginfo('url').'">'.$Domain.'</a> has no access to or control over these cookies that are used by third-party advertisers.</p>
|
45 |
+
<p>You should consult the respective privacy policies of these third-party ad servers for more detailed information on their practices as well as for instructions about how to opt-out of certain practices. <a href="'.get_bloginfo('url').'">'.$Domain.'\'s</a> privacy policy does not apply to, and we cannot control the activities of, such other advertisers or web sites.</p>
|
46 |
+
<p>If you wish to disable cookies, you may do so through your individual browser options. More detailed information about cookie management with specific web browsers can be found at the browsers\' respective websites.</p>';
|
47 |
+
|
48 |
+
update_option("wp_insert_privacy_policy_content", $PrivacyPolicyText);
|
49 |
+
header("Location: ".get_bloginfo('url')."/wp-admin/admin.php?page=Manage Privacy Policy");
|
50 |
+
}
|
51 |
+
global $screen_layout_columns;
|
52 |
+
|
53 |
+
add_meta_box('wp_insert_edit_privacy_policy', 'Finetune your Privacy Policy', 'wp_insert_edit_privacy_policy_HTML', 'col_1');
|
54 |
+
add_meta_box('wp_insert_edit_assign_privacy_policy_page', 'Assign Page for Privacy Policy', 'wp_insert_edit_assign_privacy_policy_page_HTML', 'col_1');
|
55 |
+
|
56 |
+
$parameters = 'wp_insert_privacy_policy_content';
|
57 |
+
wp_insert_settings_page_layout($parameters, 'WP-INSERT : Manage Privacy Policy', 'ads');
|
58 |
+
}
|
59 |
+
|
60 |
+
function wp_insert_edit_assign_privacy_policy_page_HTML() { ?>
|
61 |
+
<div>
|
62 |
+
<p>Assign
|
63 |
+
<select id="wp_insert_select_assign_pages" onchange="UpdateAssignlink()">
|
64 |
+
<option value="#" selected="selected">-- Select a Page --</option>
|
65 |
+
<?php
|
66 |
+
$count = 0;
|
67 |
+
$pages = get_pages('sort_column=menu_order');
|
68 |
+
foreach($pages as $page) {
|
69 |
+
if($count < 100) {
|
70 |
+
echo "<option value='".get_bloginfo('url')."/wp-admin/admin.php?page=Manage Privacy Policy&assign=".$page->ID."'>".$page->post_title."</option>";
|
71 |
+
}
|
72 |
+
$count++;
|
73 |
+
}
|
74 |
+
?>
|
75 |
+
</select>
|
76 |
+
<script type="text/javascript">
|
77 |
+
document.getElementById('wp_insert_select_assign_pages').selectedIndex = 0;
|
78 |
+
function UpdateAssignlink() {
|
79 |
+
document.getElementById('wp_insert_assign_now_link').href = document.getElementById('wp_insert_select_assign_pages')[document.getElementById('wp_insert_select_assign_pages').selectedIndex].value;
|
80 |
+
}
|
81 |
+
</script>
|
82 |
+
as Privacy Policy page : <a id="wp_insert_assign_now_link" href="#" class="button-secondary">Assign Now</a></p>
|
83 |
+
<p><b>OR</b></p>
|
84 |
+
<p>Create Privacy Policy Page Automatically : <a href="<?php echo get_bloginfo('url')."/wp-admin/admin.php?page=Manage Privacy Policy&create=1"; ?>" class="button-secondary">Create Now</a></p>
|
85 |
+
</div>
|
86 |
+
<?php }
|
87 |
+
|
88 |
+
function wp_insert_edit_privacy_policy_HTML() { ?>
|
89 |
+
<script type="text/javascript" src="<?php echo WP_PLUGIN_URL; ?>/wp-insert/fckeditor/fckeditor.js"></script>
|
90 |
+
<textarea id="wp_insert_privacy_policy_content" name="wp_insert_privacy_policy_content" style="width:100%; height: 400px;">
|
91 |
+
<?php echo get_option('wp_insert_privacy_policy_content'); ?>
|
92 |
+
</textarea>
|
93 |
+
<p><a href="<?php echo get_bloginfo('url')."/wp-admin/admin.php?page=Manage Privacy Policy&reset=1"; ?>" class="button-secondary alignright">Reset</a></p><p><small>This is an automatically generated Privacy Policy.</small></p>
|
94 |
+
<script type="text/javascript">
|
95 |
+
if(document.getElementById('wp_insert_privacy_policy_content')) {
|
96 |
+
var wp_insert_fckeditor = new FCKeditor('wp_insert_privacy_policy_content') ;
|
97 |
+
wp_insert_fckeditor.Height = "400"
|
98 |
+
wp_insert_fckeditor.BasePath = '<?php echo WP_PLUGIN_URL; ?>/wp-insert/fckeditor/';
|
99 |
+
wp_insert_fckeditor.ReplaceTextarea() ;
|
100 |
+
}
|
101 |
+
</script>
|
102 |
+
<?php }
|
103 |
+
?>
|
readme.txt
CHANGED
@@ -1,10 +1,10 @@
|
|
1 |
=== Wp-Insert ===
|
2 |
Contributors: Namith Jawahar
|
3 |
Donate link:http://www.wp-insert.smartlogix.co.in/
|
4 |
-
Tags: adsense,google,widget,post,admin,plugin,rss,feedburner,ads,subscribe,fck editor,category description editor,excerpt,WYSIWYG,WYSIWYG editor,in post ads,feed logo,smartlogix,ads in feeds,analytics,google analytics,header,footer,ad management,advertisements,content,ad,advertising,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
|
5 |
Requires at least: 2.7
|
6 |
Tested up to: 2.9
|
7 |
-
Stable tag: 1.
|
8 |
|
9 |
Wp-Insert is the most powerful yet easiest to use wordpress ad management plugin which does a lot more than ad management.
|
10 |
|
@@ -44,6 +44,13 @@ Manage Ads (Completely Rewritten with a New and Powerful Interface)
|
|
44 |
* Try different ad sizes and positions easily.
|
45 |
|
46 |
Run adsense ads along with yahoo, adbrite, chitika or any other ad network without interfering with the terms of each network.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
47 |
|
48 |
**Manage Feeds**
|
49 |
|
@@ -68,7 +75,7 @@ Manage Ads (Completely Rewritten with a New and Powerful Interface)
|
|
68 |
**Syntax Highlighting**
|
69 |
|
70 |
* Syntax HighLighting for theme editor
|
71 |
-
* Syntax Highlighting
|
72 |
* Different highlighting for different file types
|
73 |
|
74 |
All these features in an easy to use and novice user friendly interface which can still cater to the geekiest of webmasters.
|
@@ -90,6 +97,7 @@ Extract the zip file and just drop the contents in the wp-content/plugins/ direc
|
|
90 |
5. Wp-Insert in action.
|
91 |
6. Wp-Insert in action.
|
92 |
7. Wp-Insert in action.
|
|
|
93 |
|
94 |
|
95 |
== Frequently Asked Questions ==
|
1 |
=== Wp-Insert ===
|
2 |
Contributors: Namith Jawahar
|
3 |
Donate link:http://www.wp-insert.smartlogix.co.in/
|
4 |
+
Tags: adsense,google,widget,post,admin,plugin,rss,feedburner,ads,subscribe,fck editor,category description editor,excerpt,WYSIWYG,WYSIWYG editor,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
|
5 |
Requires at least: 2.7
|
6 |
Tested up to: 2.9
|
7 |
+
Stable tag: 1.6.0
|
8 |
|
9 |
Wp-Insert is the most powerful yet easiest to use wordpress ad management plugin which does a lot more than ad management.
|
10 |
|
44 |
* Try different ad sizes and positions easily.
|
45 |
|
46 |
Run adsense ads along with yahoo, adbrite, chitika or any other ad network without interfering with the terms of each network.
|
47 |
+
|
48 |
+
**Manage Privacy Policy**
|
49 |
+
|
50 |
+
* Readymade Adsense Compatible privacy policy for your site.
|
51 |
+
* Create a Privacy policy page without even typing a Word.
|
52 |
+
* Assign Privacy Policy to an existing page or create one automatically.
|
53 |
+
* WYSIWYG Editor to finetune the Privacy Policy to your requirements.
|
54 |
|
55 |
**Manage Feeds**
|
56 |
|
75 |
**Syntax Highlighting**
|
76 |
|
77 |
* Syntax HighLighting for theme editor
|
78 |
+
* Syntax Highlighting for plugin editor
|
79 |
* Different highlighting for different file types
|
80 |
|
81 |
All these features in an easy to use and novice user friendly interface which can still cater to the geekiest of webmasters.
|
97 |
5. Wp-Insert in action.
|
98 |
6. Wp-Insert in action.
|
99 |
7. Wp-Insert in action.
|
100 |
+
8. Wp-Insert in action.
|
101 |
|
102 |
|
103 |
== Frequently Asked Questions ==
|
screenshot-8.png
ADDED
Binary file
|
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: The ultimate wordpress plugin
|
6 |
-
Version: 1.
|
7 |
Author: Namith Jawahar
|
8 |
Author URI: http://www.smartlogix.co.in/
|
9 |
WP-INSERT by SMARTLOGIX : The ultimate wordpress plugin
|
3 |
Plugin Name: wp-insert
|
4 |
Plugin URI: http://www.wp-insert.smartlogix.co.in/
|
5 |
Description: The ultimate wordpress plugin
|
6 |
+
Version: 1.6.0
|
7 |
Author: Namith Jawahar
|
8 |
Author URI: http://www.smartlogix.co.in/
|
9 |
WP-INSERT by SMARTLOGIX : The ultimate wordpress plugin
|