Version Description
Download this release
Release Info
| Developer | n7studios |
| Plugin | |
| Version | 1.0.6 |
| Comparing to | |
| See all releases | |
Code changes from version 1.0.4 to 1.0.6
- insert-post-ads.php +10 -9
- languages/insert-post-ads.pot +68 -27
- readme.txt +5 -1
insert-post-ads.php
CHANGED
|
@@ -2,7 +2,7 @@
|
|
| 2 |
/**
|
| 3 |
* Plugin Name: Insert Post Ads
|
| 4 |
* Plugin URI: http://www.wpbeginner.com/
|
| 5 |
-
* Version: 1.0.
|
| 6 |
* Author: WPBeginner
|
| 7 |
* Author URI: http://www.wpbeginner.com/
|
| 8 |
* Description: Allows you to insert ads after paragraphs of your post content
|
|
@@ -33,15 +33,16 @@ class InsertPostAds {
|
|
| 33 |
* Constructor
|
| 34 |
*/
|
| 35 |
public function __construct() {
|
|
|
|
| 36 |
// Plugin Details
|
| 37 |
-
$this->plugin
|
| 38 |
-
$this->plugin->name
|
| 39 |
-
$this->plugin->displayName
|
| 40 |
-
$this->plugin->posttype
|
| 41 |
-
$this->plugin->version
|
| 42 |
-
$this->plugin->folder
|
| 43 |
-
$this->plugin->url
|
| 44 |
-
|
| 45 |
// Dashboard Submodule
|
| 46 |
if (!class_exists('WPBeginnerDashboardWidget')) {
|
| 47 |
require_once($this->plugin->folder.'/_modules/dashboard/dashboard.php');
|
| 2 |
/**
|
| 3 |
* Plugin Name: Insert Post Ads
|
| 4 |
* Plugin URI: http://www.wpbeginner.com/
|
| 5 |
+
* Version: 1.0.6
|
| 6 |
* Author: WPBeginner
|
| 7 |
* Author URI: http://www.wpbeginner.com/
|
| 8 |
* Description: Allows you to insert ads after paragraphs of your post content
|
| 33 |
* Constructor
|
| 34 |
*/
|
| 35 |
public function __construct() {
|
| 36 |
+
|
| 37 |
// Plugin Details
|
| 38 |
+
$this->plugin = new stdClass;
|
| 39 |
+
$this->plugin->name = 'insert-post-ads'; // Plugin Folder
|
| 40 |
+
$this->plugin->displayName = 'Post Adverts'; // Plugin Name
|
| 41 |
+
$this->plugin->posttype = 'insertpostads';
|
| 42 |
+
$this->plugin->version = '1.0.6';
|
| 43 |
+
$this->plugin->folder = plugin_dir_path( __FILE__ );
|
| 44 |
+
$this->plugin->url = plugin_dir_url( __FILE__ );
|
| 45 |
+
|
| 46 |
// Dashboard Submodule
|
| 47 |
if (!class_exists('WPBeginnerDashboardWidget')) {
|
| 48 |
require_once($this->plugin->folder.'/_modules/dashboard/dashboard.php');
|
languages/insert-post-ads.pot
CHANGED
|
@@ -1,18 +1,18 @@
|
|
| 1 |
-
# Copyright (C)
|
| 2 |
# This file is distributed under the same license as the Insert Post Ads package.
|
| 3 |
msgid ""
|
| 4 |
msgstr ""
|
| 5 |
-
"Project-Id-Version: Insert Post Ads 1.0\n"
|
| 6 |
"Report-Msgid-Bugs-To: http://wordpress.org/support/plugin/insert-post-ads\n"
|
| 7 |
-
"POT-Creation-Date:
|
| 8 |
"MIME-Version: 1.0\n"
|
| 9 |
"Content-Type: text/plain; charset=UTF-8\n"
|
| 10 |
"Content-Transfer-Encoding: 8bit\n"
|
| 11 |
-
"PO-Revision-Date:
|
| 12 |
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
|
| 13 |
"Language-Team: LANGUAGE <LL@li.org>\n"
|
| 14 |
|
| 15 |
-
#: _modules/dashboard/dashboard.php:41 views/settings.php:
|
| 16 |
msgid "Latest from WPBeginner"
|
| 17 |
msgstr ""
|
| 18 |
|
|
@@ -70,92 +70,133 @@ msgstr ""
|
|
| 70 |
msgid "Donate to WPBeginner"
|
| 71 |
msgstr ""
|
| 72 |
|
| 73 |
-
#: insert-post-ads.php:
|
| 74 |
msgctxt "post type general name"
|
| 75 |
msgid "Post Adverts"
|
| 76 |
msgstr ""
|
| 77 |
|
| 78 |
-
#: insert-post-ads.php:
|
| 79 |
msgctxt "post type singular name"
|
| 80 |
msgid "Post Advert"
|
| 81 |
msgstr ""
|
| 82 |
|
| 83 |
-
#: insert-post-ads.php:
|
| 84 |
msgctxt "insertpostads"
|
| 85 |
msgid "Add New"
|
| 86 |
msgstr ""
|
| 87 |
|
| 88 |
-
#: insert-post-ads.php:
|
| 89 |
msgid "Add New Post Advert"
|
| 90 |
msgstr ""
|
| 91 |
|
| 92 |
-
#: insert-post-ads.php:
|
| 93 |
msgid "Edit Post Advert"
|
| 94 |
msgstr ""
|
| 95 |
|
| 96 |
-
#: insert-post-ads.php:
|
| 97 |
msgid "New Post Advert"
|
| 98 |
msgstr ""
|
| 99 |
|
| 100 |
-
#: insert-post-ads.php:
|
| 101 |
msgid "View Post Adverts"
|
| 102 |
msgstr ""
|
| 103 |
|
| 104 |
-
#: insert-post-ads.php:
|
| 105 |
msgid "Search Post Adverts"
|
| 106 |
msgstr ""
|
| 107 |
|
| 108 |
-
#: insert-post-ads.php:
|
| 109 |
msgid "No post adverts found"
|
| 110 |
msgstr ""
|
| 111 |
|
| 112 |
-
#: insert-post-ads.php:
|
| 113 |
msgid "No post adverts found in Trash"
|
| 114 |
msgstr ""
|
| 115 |
|
| 116 |
-
#: insert-post-ads.php:
|
| 117 |
msgid "Settings"
|
| 118 |
msgstr ""
|
| 119 |
|
| 120 |
-
#: insert-post-ads.php:
|
| 121 |
msgid "Advert Code"
|
| 122 |
msgstr ""
|
| 123 |
|
| 124 |
-
#: insert-post-ads.php:
|
| 125 |
msgid "Post Advert Settings Saved."
|
| 126 |
msgstr ""
|
| 127 |
|
| 128 |
-
#: insert-post-ads.php:
|
| 129 |
-
msgid "Display the advert
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 130 |
msgstr ""
|
| 131 |
|
| 132 |
-
#: insert-post-ads.php:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 133 |
msgid "Advert Title"
|
| 134 |
msgstr ""
|
| 135 |
|
| 136 |
-
#: insert-post-ads.php:
|
| 137 |
msgid "Advert updated."
|
| 138 |
msgstr ""
|
| 139 |
|
| 140 |
-
#: insert-post-ads.php:
|
| 141 |
msgid "Advert deleted."
|
| 142 |
msgstr ""
|
| 143 |
|
| 144 |
-
#: insert-post-ads.php:
|
| 145 |
msgid "Advert published."
|
| 146 |
msgstr ""
|
| 147 |
|
| 148 |
-
#: views/settings.php:
|
| 149 |
msgid "Where do you want ads to display?"
|
| 150 |
msgstr ""
|
| 151 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 152 |
#. Plugin Name of the plugin/theme
|
| 153 |
msgid "Insert Post Ads"
|
| 154 |
msgstr ""
|
| 155 |
|
| 156 |
-
#. #-#-#-#-# insert-post-ads.pot (Insert Post Ads 1.0) #-#-#-#-#
|
| 157 |
#. Plugin URI of the plugin/theme
|
| 158 |
-
#. #-#-#-#-# insert-post-ads.pot (Insert Post Ads 1.0) #-#-#-#-#
|
| 159 |
#. Author URI of the plugin/theme
|
| 160 |
msgid "http://www.wpbeginner.com/"
|
| 161 |
msgstr ""
|
| 1 |
+
# Copyright (C) 2015 Insert Post Ads
|
| 2 |
# This file is distributed under the same license as the Insert Post Ads package.
|
| 3 |
msgid ""
|
| 4 |
msgstr ""
|
| 5 |
+
"Project-Id-Version: Insert Post Ads 1.0.4\n"
|
| 6 |
"Report-Msgid-Bugs-To: http://wordpress.org/support/plugin/insert-post-ads\n"
|
| 7 |
+
"POT-Creation-Date: 2015-03-26 11:33:01+00:00\n"
|
| 8 |
"MIME-Version: 1.0\n"
|
| 9 |
"Content-Type: text/plain; charset=UTF-8\n"
|
| 10 |
"Content-Transfer-Encoding: 8bit\n"
|
| 11 |
+
"PO-Revision-Date: 2015-MO-DA HO:MI+ZONE\n"
|
| 12 |
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
|
| 13 |
"Language-Team: LANGUAGE <LL@li.org>\n"
|
| 14 |
|
| 15 |
+
#: _modules/dashboard/dashboard.php:41 views/settings.php:74
|
| 16 |
msgid "Latest from WPBeginner"
|
| 17 |
msgstr ""
|
| 18 |
|
| 70 |
msgid "Donate to WPBeginner"
|
| 71 |
msgstr ""
|
| 72 |
|
| 73 |
+
#: insert-post-ads.php:70
|
| 74 |
msgctxt "post type general name"
|
| 75 |
msgid "Post Adverts"
|
| 76 |
msgstr ""
|
| 77 |
|
| 78 |
+
#: insert-post-ads.php:71
|
| 79 |
msgctxt "post type singular name"
|
| 80 |
msgid "Post Advert"
|
| 81 |
msgstr ""
|
| 82 |
|
| 83 |
+
#: insert-post-ads.php:72
|
| 84 |
msgctxt "insertpostads"
|
| 85 |
msgid "Add New"
|
| 86 |
msgstr ""
|
| 87 |
|
| 88 |
+
#: insert-post-ads.php:73
|
| 89 |
msgid "Add New Post Advert"
|
| 90 |
msgstr ""
|
| 91 |
|
| 92 |
+
#: insert-post-ads.php:74
|
| 93 |
msgid "Edit Post Advert"
|
| 94 |
msgstr ""
|
| 95 |
|
| 96 |
+
#: insert-post-ads.php:75
|
| 97 |
msgid "New Post Advert"
|
| 98 |
msgstr ""
|
| 99 |
|
| 100 |
+
#: insert-post-ads.php:76
|
| 101 |
msgid "View Post Adverts"
|
| 102 |
msgstr ""
|
| 103 |
|
| 104 |
+
#: insert-post-ads.php:77
|
| 105 |
msgid "Search Post Adverts"
|
| 106 |
msgstr ""
|
| 107 |
|
| 108 |
+
#: insert-post-ads.php:78
|
| 109 |
msgid "No post adverts found"
|
| 110 |
msgstr ""
|
| 111 |
|
| 112 |
+
#: insert-post-ads.php:79
|
| 113 |
msgid "No post adverts found in Trash"
|
| 114 |
msgstr ""
|
| 115 |
|
| 116 |
+
#: insert-post-ads.php:113 views/settings.php:2
|
| 117 |
msgid "Settings"
|
| 118 |
msgstr ""
|
| 119 |
|
| 120 |
+
#: insert-post-ads.php:114
|
| 121 |
msgid "Advert Code"
|
| 122 |
msgstr ""
|
| 123 |
|
| 124 |
+
#: insert-post-ads.php:145
|
| 125 |
msgid "Post Advert Settings Saved."
|
| 126 |
msgstr ""
|
| 127 |
|
| 128 |
+
#: insert-post-ads.php:181
|
| 129 |
+
msgid "Display the advert:"
|
| 130 |
+
msgstr ""
|
| 131 |
+
|
| 132 |
+
#: insert-post-ads.php:183
|
| 133 |
+
msgid "Before Content"
|
| 134 |
+
msgstr ""
|
| 135 |
+
|
| 136 |
+
#: insert-post-ads.php:184
|
| 137 |
+
msgid "After Paragraph Number"
|
| 138 |
+
msgstr ""
|
| 139 |
+
|
| 140 |
+
#: insert-post-ads.php:185
|
| 141 |
+
msgid "After Content"
|
| 142 |
msgstr ""
|
| 143 |
|
| 144 |
+
#: insert-post-ads.php:205
|
| 145 |
+
msgid "Disable Adverts"
|
| 146 |
+
msgstr ""
|
| 147 |
+
|
| 148 |
+
#: insert-post-ads.php:209
|
| 149 |
+
msgid ""
|
| 150 |
+
"Check this option if you wish to disable all Post Ads from displaying on "
|
| 151 |
+
"this content."
|
| 152 |
+
msgstr ""
|
| 153 |
+
|
| 154 |
+
#: insert-post-ads.php:262
|
| 155 |
msgid "Advert Title"
|
| 156 |
msgstr ""
|
| 157 |
|
| 158 |
+
#: insert-post-ads.php:276 insert-post-ads.php:277 insert-post-ads.php:279
|
| 159 |
msgid "Advert updated."
|
| 160 |
msgstr ""
|
| 161 |
|
| 162 |
+
#: insert-post-ads.php:278
|
| 163 |
msgid "Advert deleted."
|
| 164 |
msgstr ""
|
| 165 |
|
| 166 |
+
#: insert-post-ads.php:280
|
| 167 |
msgid "Advert published."
|
| 168 |
msgstr ""
|
| 169 |
|
| 170 |
+
#: views/settings.php:24
|
| 171 |
msgid "Where do you want ads to display?"
|
| 172 |
msgstr ""
|
| 173 |
|
| 174 |
+
#: views/settings.php:47 views/settings.php:66
|
| 175 |
+
msgid "Save Settings"
|
| 176 |
+
msgstr ""
|
| 177 |
+
|
| 178 |
+
#: views/settings.php:54
|
| 179 |
+
msgid "Display Styling"
|
| 180 |
+
msgstr ""
|
| 181 |
+
|
| 182 |
+
#: views/settings.php:58
|
| 183 |
+
msgid "Exclude CSS"
|
| 184 |
+
msgstr ""
|
| 185 |
+
|
| 186 |
+
#: views/settings.php:62
|
| 187 |
+
msgid ""
|
| 188 |
+
"By default, Post Ads are wrapped in a container that has some CSS to aid "
|
| 189 |
+
"layout. Developers may wish to use their own CSS, and should check this "
|
| 190 |
+
"Exclude CSS option."
|
| 191 |
+
msgstr ""
|
| 192 |
+
|
| 193 |
#. Plugin Name of the plugin/theme
|
| 194 |
msgid "Insert Post Ads"
|
| 195 |
msgstr ""
|
| 196 |
|
| 197 |
+
#. #-#-#-#-# insert-post-ads.pot (Insert Post Ads 1.0.4) #-#-#-#-#
|
| 198 |
#. Plugin URI of the plugin/theme
|
| 199 |
+
#. #-#-#-#-# insert-post-ads.pot (Insert Post Ads 1.0.4) #-#-#-#-#
|
| 200 |
#. Author URI of the plugin/theme
|
| 201 |
msgid "http://www.wpbeginner.com/"
|
| 202 |
msgstr ""
|
readme.txt
CHANGED
|
@@ -3,7 +3,7 @@ Contributors: WPbeginner, smub, iamdpegg, n7studios
|
|
| 3 |
Donate link:http://www.wpbeginner.com/wpbeginner-needs-your-help/
|
| 4 |
Tags: ads, adsense, google adsense, insert ads in post, wordpress ads plugin, advertising plugin, banners plugin, post ads, insert post ads
|
| 5 |
Requires at least: 3.6
|
| 6 |
-
Tested up to: 4.
|
| 7 |
Stable tag: trunk
|
| 8 |
License: GPLv2 or later
|
| 9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
|
@@ -46,6 +46,10 @@ Lastly, if you like this plugin then follow WPBeginner on <a href="http://twitte
|
|
| 46 |
|
| 47 |
== Changelog ==
|
| 48 |
|
|
|
|
|
|
|
|
|
|
|
|
|
| 49 |
= 1.0.4 =
|
| 50 |
* Added: New options to position advert before content or after content
|
| 51 |
* Added: WordPress 4.0 compatibility
|
| 3 |
Donate link:http://www.wpbeginner.com/wpbeginner-needs-your-help/
|
| 4 |
Tags: ads, adsense, google adsense, insert ads in post, wordpress ads plugin, advertising plugin, banners plugin, post ads, insert post ads
|
| 5 |
Requires at least: 3.6
|
| 6 |
+
Tested up to: 4.3
|
| 7 |
Stable tag: trunk
|
| 8 |
License: GPLv2 or later
|
| 9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
| 46 |
|
| 47 |
== Changelog ==
|
| 48 |
|
| 49 |
+
= 1.0.5 =
|
| 50 |
+
* Tested with WordPress 4.3
|
| 51 |
+
* Fix: plugin_dir_path() and plugin_dir_url() used for Multisite / symlink support
|
| 52 |
+
|
| 53 |
= 1.0.4 =
|
| 54 |
* Added: New options to position advert before content or after content
|
| 55 |
* Added: WordPress 4.0 compatibility
|
