diff --git a/CHANGELOG.md b/CHANGELOG.md index 342a108..97552b6 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,38 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). +## [0.8.0] - 2025-12-21 + +This version requires WordPress 6.4 and PHP 7.4 as a minimum. + +### Added +- Dedicated edit page for ad codes, replacing inline edit functionality by @GaryJones in https://github.com/Automattic/ad-code-manager/pull/196 +- Autocomplete for conditional arguments using Select2 (categories, tags, pages, posts) by @GaryJones in https://github.com/Automattic/ad-code-manager/pull/194 +- Wrapper div with CSS classes for improved ad styling and targeting by @GaryJones in https://github.com/Automattic/ad-code-manager/pull/188 +- wp-env configuration for local development by @GaryJones in https://github.com/Automattic/ad-code-manager/pull/178 + +### Fixed +- Validate unique tag IDs for DFP Async provider by @GaryJones in https://github.com/Automattic/ad-code-manager/pull/190 +- Prevent empty widget wrapper output when no ad codes found by @GaryJones in https://github.com/Automattic/ad-code-manager/pull/186 +- Ensure row actions display in first data column by @GaryJones in https://github.com/Automattic/ad-code-manager/pull/189 + +### Changed +- Update minimum WordPress version to 6.4 by @GaryJones in https://github.com/Automattic/ad-code-manager/pull/181 + +### Documentation +- Add PHPDoc documentation for all hooks by @GaryJones in https://github.com/Automattic/ad-code-manager/pull/193 +- Add contextual help for DFP and AdSense provider fields by @GaryJones in https://github.com/Automattic/ad-code-manager/pull/191 + +### Maintenance +- Standardise GitHub Actions, add unit test workflow with Brain Monkey by @GaryJones in https://github.com/Automattic/ad-code-manager/pull/184 +- Migrate integration tests from SVN to wp-env by @GaryJones in https://github.com/Automattic/ad-code-manager/pull/182 +- Migrate dependabot reviewers to CODEOWNERS by @GaryJones in https://github.com/Automattic/ad-code-manager/pull/185 +- Standardise test matrix and update readme by @GaryJones in https://github.com/Automattic/ad-code-manager/pull/187 +- Add .npmrc and update package-lock by @GaryJones in https://github.com/Automattic/ad-code-manager/pull/198 +- Bump actions/checkout from 5 to 6 by @dependabot in https://github.com/Automattic/ad-code-manager/pull/183 +- Bump codecov/codecov-action from 3 to 5 by @dependabot in https://github.com/Automattic/ad-code-manager/pull/174 +- Bump ramsey/composer-install from 2 to 3 by @dependabot in https://github.com/Automattic/ad-code-manager/pull/173 + ## [0.7.1] - 2023-09-09 ### Changed @@ -166,6 +198,7 @@ Bug fix release. Initial release. +[0.8.0]: https://github.com/Automattic/ad-code-manager/compare/0.7.1...0.8.0 [0.7.1]: https://github.com/Automattic/ad-code-manager/compare/0.7.0...0.7.1 [0.7.0]: https://github.com/Automattic/ad-code-manager/compare/0.6.0...0.7.0 [0.6.0]: https://github.com/Automattic/ad-code-manager/compare/0.5...0.6.0 diff --git a/README.md b/README.md index 54b5d06..5ca169c 100644 --- a/README.md +++ b/README.md @@ -1,13 +1,13 @@ # Ad Code Manager -Stable tag: 0.7.1 +Stable tag: 0.8.0 Requires at least: 6.4 Tested up to: 6.9 Requires PHP: 7.4 License: GPLv2 or later License URI: https://www.gnu.org/licenses/gpl-2.0.html Tags: advertising, ad codes, ads, adsense, dfp, doubleclick for publishers -Contributors: rinatkhaziev, jeremyfelt, danielbachhuber, carldanley, zztimur, automattic, doejo +Contributors: rinatkhaziev, jeremyfelt, danielbachhuber, carldanley, zztimur, automattic, doejo, garyj Manage your ad codes through the WordPress admin safely and easily. diff --git a/ad-code-manager.php b/ad-code-manager.php index 7d2c051..2dc00a3 100644 --- a/ad-code-manager.php +++ b/ad-code-manager.php @@ -11,7 +11,7 @@ * Plugin Name: Ad Code Manager * Plugin URI: https://wordpress.org/plugins/ad-code-manager/ * Description: Easy ad code management. - * Version: 0.7.1 + * Version: 0.8.0 * Author: Automattic and contributors * Author URI: https://github.com/Automattic/ad-code-manager/graphs/contributors * Text Domain: ad-code-manager @@ -31,7 +31,7 @@ use Automattic\AdCodeManager\UI\Contextual_Help; use Automattic\AdCodeManager\UI\Plugin_Actions; -const AD_CODE_MANAGER_VERSION = '0.7.1'; +const AD_CODE_MANAGER_VERSION = '0.8.0'; const AD_CODE_MANAGER_FILE = __FILE__; require_once __DIR__ . '/src/class-acm-provider.php'; diff --git a/languages/ad-code-manager.pot b/languages/ad-code-manager.pot index cce69bb..9ccf27a 100644 --- a/languages/ad-code-manager.pot +++ b/languages/ad-code-manager.pot @@ -1,213 +1,488 @@ -# Copyright (C) 2013 Ad Code Manager -# This file is distributed under the same license as the Ad Code Manager package. +# Copyright (C) 2025 Automattic and contributors +# This file is distributed under the GPL-2.0-or-later. msgid "" msgstr "" -"Project-Id-Version: Ad Code Manager 0.4\n" -"Report-Msgid-Bugs-To: http://wordpress.org/tag/ad-code-manager\n" -"POT-Creation-Date: 2013-04-16 05:02:49+00:00\n" +"Project-Id-Version: Ad Code Manager 0.8.0\n" +"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/ad-code-manager\n" +"Last-Translator: FULL NAME \n" +"Language-Team: LANGUAGE \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"PO-Revision-Date: 2013-MO-DA HO:MI+ZONE\n" -"Last-Translator: FULL NAME \n" -"Language-Team: LANGUAGE \n" +"POT-Creation-Date: 2025-12-21T23:37:35+00:00\n" +"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" +"X-Generator: WP-CLI 2.12.0\n" +"X-Domain: ad-code-manager\n" + +#. Plugin Name of the plugin +#: ad-code-manager.php +#: src/class-ad-code-manager.php:694 +#: src/class-ad-code-manager.php:695 +msgid "Ad Code Manager" +msgstr "" -#: ad-code-manager.php:154 -msgid "Ad Codes" +#. Plugin URI of the plugin +#: ad-code-manager.php +msgid "https://wordpress.org/plugins/ad-code-manager/" msgstr "" -#: ad-code-manager.php:155 -msgid "Ad Code" +#. Description of the plugin +#: ad-code-manager.php +msgid "Easy ad code management." msgstr "" -#: ad-code-manager.php:276 -msgid "Doing something fishy, eh?" +#. Author of the plugin +#: ad-code-manager.php +msgid "Automattic and contributors" msgstr "" -#: ad-code-manager.php:279 -msgid "You do not have the necessary permissions to perform this action" +#. Author URI of the plugin +#: ad-code-manager.php +msgid "https://github.com/Automattic/ad-code-manager/graphs/contributors" msgstr "" -#: common/lib/acm-provider.php:27 common/lib/acm-wp-list-table.php:31 +#: src/class-acm-provider.php:29 +#: src/class-acm-wp-list-table.php:44 msgid "Name" msgstr "" -#: common/lib/acm-widget.php:14 +#: src/class-acm-widget.php:14 msgid "Display an Ad Code Manager ad zone within a widget area" msgstr "" -#: common/lib/acm-widget.php:16 +#: src/class-acm-widget.php:16 msgid "Ad Code Manager Ad Zone" msgstr "" -#: common/lib/acm-widget.php:46 +#. translators: %s is the URL to the Ad Code Manager settings page. +#: src/class-acm-widget.php:48 +#, php-format msgid "No ad codes have been added yet. Please create one." msgstr "" -#: common/lib/acm-wp-list-table.php:30 common/lib/acm-wp-list-table.php:39 -#: providers/doubleclick-for-publishers-async.php:189 -#: providers/doubleclick-for-publishers.php:101 -#: providers/google-adsense.php:168 +#: src/class-acm-wp-list-table.php:43 +#: src/class-acm-wp-list-table.php:52 +#: src/Providers/class-doubleclick-for-publishers-async.php:326 +#: src/Providers/class-doubleclick-for-publishers.php:104 +#: src/Providers/class-google-adsense-async.php:172 +#: src/Providers/class-google-adsense.php:171 msgid "ID" msgstr "" -#: common/lib/acm-wp-list-table.php:32 common/lib/acm-wp-list-table.php:43 -#: common/lib/acm-wp-list-table.php:243 -#: providers/doubleclick-for-publishers-async.php:194 -#: providers/doubleclick-for-publishers.php:104 -#: providers/google-adsense.php:172 +#: src/class-acm-wp-list-table.php:45 +#: src/class-acm-wp-list-table.php:56 +#: src/Providers/class-doubleclick-for-publishers-async.php:331 +#: src/Providers/class-doubleclick-for-publishers.php:107 +#: src/Providers/class-google-adsense-async.php:176 +#: src/Providers/class-google-adsense.php:175 +#: views/edit-ad-code.tpl.php:108 msgid "Priority" msgstr "" -#: common/lib/acm-wp-list-table.php:33 common/lib/acm-wp-list-table.php:44 -#: common/lib/acm-wp-list-table.php:248 -#: providers/doubleclick-for-publishers-async.php:195 -#: providers/doubleclick-for-publishers.php:105 -#: providers/google-adsense.php:173 +#: src/class-acm-wp-list-table.php:46 +#: src/class-acm-wp-list-table.php:57 +#: src/Providers/class-doubleclick-for-publishers-async.php:332 +#: src/Providers/class-doubleclick-for-publishers.php:108 +#: src/Providers/class-google-adsense-async.php:177 +#: src/Providers/class-google-adsense.php:176 +#: views/edit-ad-code.tpl.php:191 msgid "Logical Operator" msgstr "" -#: common/lib/acm-wp-list-table.php:34 common/lib/acm-wp-list-table.php:45 -#: common/lib/acm-wp-list-table.php:198 -#: common/views/ad-code-manager.tpl.php:125 -#: providers/doubleclick-for-publishers-async.php:196 -#: providers/doubleclick-for-publishers.php:106 -#: providers/google-adsense.php:174 +#: src/class-acm-wp-list-table.php:47 +#: src/class-acm-wp-list-table.php:58 +#: src/Providers/class-doubleclick-for-publishers-async.php:333 +#: src/Providers/class-doubleclick-for-publishers.php:109 +#: src/Providers/class-google-adsense-async.php:178 +#: src/Providers/class-google-adsense.php:177 +#: src/UI/class-contextual-help.php:171 +#: views/ad-code-manager.tpl.php:151 +#: views/edit-ad-code.tpl.php:124 msgid "Conditionals" msgstr "" -#: common/lib/acm-wp-list-table.php:60 common/lib/acm-wp-list-table.php:307 +#: src/class-acm-wp-list-table.php:73 +#: src/class-acm-wp-list-table.php:302 msgid "Delete" msgstr "" -#: common/lib/acm-wp-list-table.php:128 +#: src/class-acm-wp-list-table.php:152 msgid "No ad codes have been configured." msgstr "" -#: common/lib/acm-wp-list-table.php:205 -#: common/views/ad-code-manager.tpl.php:129 -msgid "Select conditional" +#: src/class-acm-wp-list-table.php:265 +msgid "None" msgstr "" -#: common/lib/acm-wp-list-table.php:217 -msgid "Add more" +#: src/class-acm-wp-list-table.php:293 +msgid "Edit" +msgstr "" + +#: src/class-ad-code-manager.php:258 +msgctxt "Post Type General Name" +msgid "Ad Codes" msgstr "" -#: common/lib/acm-wp-list-table.php:221 -msgid "URL Variables" +#: src/class-ad-code-manager.php:259 +msgctxt "Post Type Singular Name" +msgid "Ad Code" msgstr "" -#: common/lib/acm-wp-list-table.php:251 -msgid "OR" +#: src/class-ad-code-manager.php:326 +msgid "Doing something fishy, eh?" msgstr "" -#: common/lib/acm-wp-list-table.php:252 -msgid "AND" +#: src/class-ad-code-manager.php:330 +msgid "You do not have the necessary permissions to perform this action" msgstr "" -#: common/lib/acm-wp-list-table.php:280 -msgid "None" +#: src/class-ad-code-manager.php:753 +msgid "Invalid ad code ID." msgstr "" -#: common/lib/acm-wp-list-table.php:298 -msgid "Edit Ad Code" +#: src/class-ad-code-manager.php:754 +msgid "Error" +msgstr "" + +#: src/Providers/class-doubleclick-for-publishers-async.php:73 +#: src/Providers/class-doubleclick-for-publishers-async.php:327 +#: src/Providers/class-google-adsense-async.php:96 +#: src/Providers/class-google-adsense-async.php:173 +#: src/Providers/class-google-adsense.php:95 +#: src/Providers/class-google-adsense.php:172 +#: src/UI/class-contextual-help.php:117 +msgid "Tag" +msgstr "" + +#: src/Providers/class-doubleclick-for-publishers-async.php:83 +#: src/Providers/class-doubleclick-for-publishers-async.php:328 +#: src/Providers/class-google-adsense-async.php:106 +#: src/Providers/class-google-adsense-async.php:174 +#: src/Providers/class-google-adsense.php:105 +#: src/Providers/class-google-adsense.php:173 +#: src/UI/class-contextual-help.php:120 +msgid "Tag ID" +msgstr "" + +#: src/Providers/class-doubleclick-for-publishers-async.php:89 +#: src/Providers/class-doubleclick-for-publishers-async.php:329 +#: src/UI/class-contextual-help.php:123 +msgid "DFP ID" +msgstr "" + +#: src/Providers/class-doubleclick-for-publishers-async.php:95 +#: src/Providers/class-doubleclick-for-publishers-async.php:330 +#: src/UI/class-contextual-help.php:132 +msgid "Tag Name" +msgstr "" + +#. translators: %s: the duplicate tag ID +#: src/Providers/class-doubleclick-for-publishers-async.php:279 +#, php-format +msgid "The Tag ID \"%s\" is already in use. Each Tag ID must be unique to prevent conflicts with DFP Async." +msgstr "" + +#: src/Providers/class-doubleclick-for-publishers.php:69 +#: src/Providers/class-doubleclick-for-publishers.php:105 +msgid "Site Name" +msgstr "" + +#: src/Providers/class-doubleclick-for-publishers.php:75 +msgid "zone1" +msgstr "" + +#: src/Providers/class-doubleclick-for-publishers.php:106 +msgid "Zone1" +msgstr "" + +#: src/Providers/class-google-adsense-async.php:112 +#: src/Providers/class-google-adsense-async.php:175 +#: src/Providers/class-google-adsense.php:111 +#: src/Providers/class-google-adsense.php:174 +#: src/UI/class-contextual-help.php:142 +msgid "Publisher ID" +msgstr "" + +#: src/UI/class-conditional-autocomplete.php:107 +msgid "Searching..." +msgstr "" + +#: src/UI/class-conditional-autocomplete.php:108 +msgid "No results found" +msgstr "" + +#. translators: %d: minimum number of characters +#: src/UI/class-conditional-autocomplete.php:111 +#, php-format +msgid "Please enter %d or more characters" +msgstr "" + +#: src/UI/class-conditional-autocomplete.php:114 +msgid "Error loading results" +msgstr "" + +#: src/UI/class-conditional-autocomplete.php:182 +msgid "Permission denied." +msgstr "" + +#: src/UI/class-conditional-autocomplete.php:192 +msgid "Search term too short." +msgstr "" + +#: src/UI/class-contextual-help.php:46 +msgid "Ad Code Manager gives non-developers an interface in the WordPress admin for configuring your complex set of ad codes. Generally an \"Ad Code\" is a set of parameters you need to pass to an ad server, so it can serve the proper ad." +msgstr "" + +#: src/UI/class-contextual-help.php:47 +msgid "Some code-level configuration may be necessary to display the ads. See the GitHub repository for developer information." +msgstr "" + +#: src/UI/class-contextual-help.php:53 +msgid "Choose your ad network, and you will see a set of required fields to fill in, such as IDs. You can also set conditionals for each ad tag, which restricts the contexts for displaying the adverts. Priorities work pretty much the same way they work in WordPress. Lower numbers correspond with higher priority." +msgstr "" + +#: src/UI/class-contextual-help.php:54 +msgid "Once you've finished creating the ad codes, you can display them in your theme using:" +msgstr "" + +#: src/UI/class-contextual-help.php:56 +msgid "a template tag in your theme: <?php do_action( 'acm_tag', $tag_id ); ?>" +msgstr "" + +#: src/UI/class-contextual-help.php:57 +msgid "a shortcode: [acm-tag id=\"tag_id\"]" +msgstr "" + +#: src/UI/class-contextual-help.php:58 +msgid "or using a widget." +msgstr "" + +#: src/UI/class-contextual-help.php:65 +msgid "In the fields below, you can choose which conditionals you want. Some can take a value (i.e. define a specific category) in the second field." +msgstr "" + +#: src/UI/class-contextual-help.php:66 +msgid "Here's an overview of the conditionals; they work the same as the functions of the same name in WordPress." +msgstr "" + +#: src/UI/class-contextual-help.php:69 +msgid "When the main blog page is being displayed. This is the page which shows the time-based blog content of your site, so if you've set a static Page for the Front Page (see below), then this will only be true on the Page which you set as the \"Posts page\" in Settings > Reading." +msgstr "" + +#: src/UI/class-contextual-help.php:72 +msgid "When the front of the site is displayed, whether it is posts or a Page. Returns true when the main blog page is being displayed and the Settings > Reading > Front page displays is set to \"Your latest posts\", or when Settings > Reading > Front page displays is set to \"A static page\" and the \"Front Page\" value is the current page displayed." msgstr "" -#: common/lib/acm-wp-list-table.php:337 -msgid "Cancel" +#: src/UI/class-contextual-help.php:75 +msgid "When any Category archive page is being displayed." msgstr "" -#: common/lib/acm-wp-list-table.php:339 -msgid "Update" +#: src/UI/class-contextual-help.php:78 +msgid "When the archive page for Category 9 is being displayed." msgstr "" -#: common/views/ad-code-manager.tpl.php:11 +#: src/UI/class-contextual-help.php:80 +msgid "Stinky Cheeses" +msgstr "" + +#: src/UI/class-contextual-help.php:81 +msgid "When the archive page for the Category with Name \"Stinky Cheeses\" is being displayed." +msgstr "" + +#: src/UI/class-contextual-help.php:83 +msgid "blue-cheese" +msgstr "" + +#: src/UI/class-contextual-help.php:84 +msgid "When the archive page for the Category with Category Slug \"blue-cheese\" is being displayed." +msgstr "" + +#: src/UI/class-contextual-help.php:86 +msgid "array( 9, 'blue-cheese', 'Stinky Cheeses' )" +msgstr "" + +#: src/UI/class-contextual-help.php:87 +msgid "Returns true when the category of posts being displayed is either term_ID 9, or slug \"blue-cheese\", or name \"Stinky Cheeses\"." +msgstr "" + +#: src/UI/class-contextual-help.php:90 +msgid "Returns true if the current post is in the specified category id." +msgstr "" + +#: src/UI/class-contextual-help.php:93 +msgid "When any Tag archive page is being displayed." +msgstr "" + +#: src/UI/class-contextual-help.php:96 +msgid "When the archive page for tag with the slug of \"mild\" is being displayed." +msgstr "" + +#: src/UI/class-contextual-help.php:99 +msgid "Returns true when the tag archive being displayed has a slug of either \"sharp\", \"mild\", or \"extreme\"." +msgstr "" + +#: src/UI/class-contextual-help.php:102 +msgid "When the current post has a tag. Must be used inside The Loop." +msgstr "" + +#: src/UI/class-contextual-help.php:105 +msgid "When the current post has the tag \"mild\"." +msgstr "" + +#: src/UI/class-contextual-help.php:108 +msgid "When the current post has any of the tags in the array." +msgstr "" + +#: src/UI/class-contextual-help.php:115 +msgid "When using the DFP Async (DoubleClick for Publishers / Google Ad Manager) provider, you need to configure the following fields:" +msgstr "" + +#: src/UI/class-contextual-help.php:118 +msgid "The ad size/placement type (e.g., 728x90, 300x250). This determines which ad tag definition is used for this ad code." +msgstr "" + +#: src/UI/class-contextual-help.php:121 +msgid "A unique identifier for this specific ad unit placement. This is used as the HTML div ID where the ad will be rendered. Each Tag ID must be unique across all ad codes to prevent conflicts. Example: \"homepage-leaderboard\" or \"sidebar-mpu-1\"." +msgstr "" + +#: src/UI/class-contextual-help.php:125 +msgid "Your Google Ad Manager (formerly DFP) Network Code. This is a numeric identifier for your Ad Manager account." +msgstr "" + +#: src/UI/class-contextual-help.php:127 +msgid "Find it in Google Ad Manager: Admin > Global Settings > Network Code." +msgstr "" + +#: src/UI/class-contextual-help.php:129 +msgid "Example: 12345678" +msgstr "" + +#: src/UI/class-contextual-help.php:134 +msgid "The ad unit name/path as configured in Google Ad Manager. This is the hierarchical path to your ad unit." +msgstr "" + +#: src/UI/class-contextual-help.php:136 +msgid "Example: \"MySite/Homepage/Leaderboard\" or just \"Leaderboard\" for top-level units." +msgstr "" + +#: src/UI/class-contextual-help.php:139 +msgid "Google AdSense Provider" +msgstr "" + +#: src/UI/class-contextual-help.php:140 +msgid "When using the Google AdSense provider:" +msgstr "" + +#: src/UI/class-contextual-help.php:144 +msgid "Your AdSense Publisher ID. This starts with \"ca-pub-\" followed by a 16-digit number." +msgstr "" + +#: src/UI/class-contextual-help.php:146 +msgid "Example: ca-pub-1234567890123456" +msgstr "" + +#: src/UI/class-contextual-help.php:148 +msgid "Find it in your AdSense account: Account > Account Information > Publisher ID." +msgstr "" + +#: src/UI/class-contextual-help.php:157 +msgid "Overview" +msgstr "" + +#: src/UI/class-contextual-help.php:164 +#: views/ad-code-manager.tpl.php:52 +msgid "Configuration" +msgstr "" + +#: src/UI/class-contextual-help.php:178 +msgid "Provider Fields" +msgstr "" + +#: src/UI/class-plugin-actions.php:43 +msgid "Settings" +msgstr "" + +#: views/ad-code-manager.tpl.php:15 msgid "Ad code created." msgstr "" -#: common/views/ad-code-manager.tpl.php:14 +#: views/ad-code-manager.tpl.php:18 +#: views/edit-ad-code.tpl.php:33 +msgid "Ad code updated." +msgstr "" + +#: views/ad-code-manager.tpl.php:21 msgid "Ad code deleted." msgstr "" -#: common/views/ad-code-manager.tpl.php:17 +#: views/ad-code-manager.tpl.php:24 msgid "Ad codes deleted." msgstr "" -#: common/views/ad-code-manager.tpl.php:20 +#: views/ad-code-manager.tpl.php:27 msgid "Options saved." msgstr "" -#: common/views/ad-code-manager.tpl.php:57 -msgid "Configuration" +#: views/ad-code-manager.tpl.php:46 +msgid "Refer to help section for more information." msgstr "" -#: common/views/ad-code-manager.tpl.php:61 -msgid "Select a provider:" +#: views/ad-code-manager.tpl.php:55 +msgid "Provider:" msgstr "" -#: common/views/ad-code-manager.tpl.php:78 +#: views/ad-code-manager.tpl.php:79 msgid "Save Options" msgstr "" -#: common/views/ad-code-manager.tpl.php:83 -#: common/views/ad-code-manager.tpl.php:147 -msgid "Add New Ad Code" -msgstr "" - -#: providers/doubleclick-for-publishers-async.php:40 -#: providers/doubleclick-for-publishers-async.php:190 -#: providers/google-adsense.php:94 providers/google-adsense.php:169 -msgid "Tag" +#: views/ad-code-manager.tpl.php:91 +msgid "Existing Ad Codes" msgstr "" -#: providers/doubleclick-for-publishers-async.php:50 -#: providers/doubleclick-for-publishers-async.php:191 -#: providers/google-adsense.php:104 providers/google-adsense.php:170 -msgid "Tag ID" +#: views/ad-code-manager.tpl.php:108 +#: views/ad-code-manager.tpl.php:173 +msgid "Add New Ad Code" msgstr "" -#: providers/doubleclick-for-publishers-async.php:56 -#: providers/doubleclick-for-publishers-async.php:192 -msgid "DFP ID" +#: views/ad-code-manager.tpl.php:155 +#: views/edit-ad-code.tpl.php:134 +#: views/edit-ad-code.tpl.php:163 +msgid "Select conditional" msgstr "" -#: providers/doubleclick-for-publishers-async.php:62 -#: providers/doubleclick-for-publishers-async.php:193 -msgid "Tag Name" +#: views/ad-code-manager.tpl.php:169 +#: views/edit-ad-code.tpl.php:180 +msgid "Add another condition" msgstr "" -#: providers/doubleclick-for-publishers.php:67 -#: providers/doubleclick-for-publishers.php:102 -msgid "Site Name" +#: views/edit-ad-code.tpl.php:18 +msgid "Edit Ad Code" msgstr "" -#: providers/doubleclick-for-publishers.php:73 -msgid "zone1" +#: views/edit-ad-code.tpl.php:20 +msgid "Back to Ad Codes" msgstr "" -#: providers/doubleclick-for-publishers.php:103 -msgid "Zone1" +#: views/edit-ad-code.tpl.php:117 +msgid "Lower numbers have higher priority." msgstr "" -#: providers/google-adsense.php:110 providers/google-adsense.php:171 -msgid "Publisher ID" +#: views/edit-ad-code.tpl.php:151 +msgid "Remove" msgstr "" -#. Plugin Name of the plugin/theme -msgid "Ad Code Manager" +#: views/edit-ad-code.tpl.php:196 +msgid "OR (any condition)" msgstr "" -#. #-#-#-#-# plugin.pot (Ad Code Manager 0.4) #-#-#-#-# -#. Plugin URI of the plugin/theme -#. #-#-#-#-# plugin.pot (Ad Code Manager 0.4) #-#-#-#-# -#. Author URI of the plugin/theme -msgid "http://automattic.com" +#: views/edit-ad-code.tpl.php:199 +msgid "AND (all conditions)" msgstr "" -#. Description of the plugin/theme -msgid "Easy ad code management" +#: views/edit-ad-code.tpl.php:203 +msgid "How multiple conditionals are evaluated." msgstr "" -#. Author of the plugin/theme -msgid "Rinat Khaziev, Jeremy Felt, Daniel Bachhuber, Automattic, doejo" +#: views/edit-ad-code.tpl.php:210 +msgid "Update Ad Code" msgstr "" diff --git a/package.json b/package.json index 2bad730..6b591c9 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "ad-code-manager", - "version": "0.7.1", + "version": "0.8.0", "description": "Easy ad code management.", "license": "GPL-2.0-or-later", "author": "Automattic", diff --git a/src/class-acm-widget.php b/src/class-acm-widget.php index ec5724e..c31e993 100644 --- a/src/class-acm-widget.php +++ b/src/class-acm-widget.php @@ -43,7 +43,10 @@ function form( $instance ) { plugin_slug, admin_url( 'options-general.php' ) ); ?> - Please create one.", 'ad-code-manager' ), esc_url( $create_url ) ); ?> + Please create one.", 'ad-code-manager' ), esc_url( $create_url ) ); + ?>