Version Description
- last settings tab is now opened again after being saved
- exchanged text domain constants with string to match wp.org translate criteria
Download this release
Release Info
Developer | webzunft |
Plugin | Advanced Ads |
Version | 1.6.9.4 |
Comparing to | |
See all releases |
Code changes from version 1.6.9.3 to 1.6.9.4
- admin/assets/js/admin.js +20 -0
- admin/class-advanced-ads-admin.php +66 -66
- admin/includes/class-ad-groups-list.php +15 -15
- admin/includes/class-display-condition-callbacks.php +25 -25
- admin/includes/class-notices.php +3 -3
- admin/includes/class-overview-widgets.php +56 -56
- admin/includes/notices.php +10 -10
- admin/views/ad-display-metabox.php +11 -11
- admin/views/ad-group-edit.php +3 -3
- admin/views/ad-group-list-form-row.php +10 -10
- admin/views/ad-group-list-header.php +3 -3
- admin/views/ad-group-list-row.php +6 -6
- admin/views/ad-group.php +16 -16
- admin/views/ad-info-top.php +20 -20
- admin/views/ad-info.php +7 -7
- admin/views/ad-main-metabox.php +1 -1
- admin/views/ad-output-metabox.php +14 -14
- admin/views/ad-parameters-metabox.php +3 -3
- admin/views/ad-submitbox-meta.php +4 -4
- admin/views/ad-visitor-metabox.php +13 -13
- admin/views/debug.php +5 -5
- admin/views/intro.php +19 -19
- admin/views/notices/adblock.php +1 -1
- admin/views/notices/inline.php +1 -1
- admin/views/notices/subscribe.php +1 -1
- admin/views/overview.php +1 -1
- admin/views/placements.php +39 -39
- admin/views/post-ad-settings-metabox.php +1 -1
- admin/views/setting-license.php +6 -6
- admin/views/settings-disable-ads.php +8 -8
- admin/views/settings.php +7 -7
- admin/views/support.php +19 -19
- advanced-ads.php +3 -3
- classes/EDD_SL_Plugin_Updater.php +3 -3
- classes/ad_ajax_callbacks.php +3 -3
- classes/ad_placements.php +16 -16
- classes/ad_type_content.php +3 -3
- classes/ad_type_plain.php +4 -4
- classes/visitor-conditions.php +17 -17
- classes/widget.php +4 -4
- languages/advanced-ads-de_DE.mo +0 -0
- languages/advanced-ads-de_DE.po +285 -273
- languages/advanced-ads.pot +162 -153
- modules/gadsense/admin/admin.php +16 -16
- modules/gadsense/admin/views/adsense-ad-parameters.php +12 -12
- modules/gadsense/includes/class-ad-type-adsense.php +4 -4
- modules/gadsense/includes/class-gadsense-data.php +1 -1
- modules/gadsense/main.php +1 -1
- public/class-advanced-ads.php +27 -27
- readme.txt +6 -1
admin/assets/js/admin.js
CHANGED
@@ -191,6 +191,8 @@ jQuery( document ).ready(function ($) {
|
|
191 |
$( '#' + active_tab ).addClass( 'active' );
|
192 |
$( '#' + active_tab + '-tab' ).addClass( 'nav-tab-active' );
|
193 |
$( '.nav-tab-active' ).click();
|
|
|
|
|
194 |
|
195 |
/**
|
196 |
* SETTINGS PAGE
|
@@ -241,6 +243,24 @@ jQuery( document ).ready(function ($) {
|
|
241 |
});
|
242 |
});
|
243 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
244 |
/**
|
245 |
* callback for term search autocomplete
|
246 |
*
|
191 |
$( '#' + active_tab ).addClass( 'active' );
|
192 |
$( '#' + active_tab + '-tab' ).addClass( 'nav-tab-active' );
|
193 |
$( '.nav-tab-active' ).click();
|
194 |
+
// set all tab urls
|
195 |
+
advads_set_tab_hashes();
|
196 |
|
197 |
/**
|
198 |
* SETTINGS PAGE
|
243 |
});
|
244 |
});
|
245 |
|
246 |
+
/**
|
247 |
+
* store the action hash in settings form action
|
248 |
+
* thanks for Yoast SEO for this idea
|
249 |
+
*/
|
250 |
+
function advads_set_tab_hashes() {
|
251 |
+
// iterate through forms
|
252 |
+
jQuery( '#advads-tabs' ).find( 'a' ).each(function () {
|
253 |
+
var id = jQuery( this ).attr( 'id' ).replace( '-tab', '' );
|
254 |
+
var optiontab = jQuery( '#' + id );
|
255 |
+
|
256 |
+
var form = optiontab.parent('form');
|
257 |
+
if ( form.length ) {
|
258 |
+
var currentUrl = form.attr( 'action' ).split( '#' )[ 0 ];
|
259 |
+
form.attr( 'action', currentUrl + jQuery( this ).attr( 'href' ) );
|
260 |
+
}
|
261 |
+
});
|
262 |
+
}
|
263 |
+
|
264 |
/**
|
265 |
* callback for term search autocomplete
|
266 |
*
|
admin/class-advanced-ads-admin.php
CHANGED
@@ -237,35 +237,35 @@ class Advanced_Ads_Admin {
|
|
237 |
|
238 |
// add main menu item with overview page
|
239 |
add_menu_page(
|
240 |
-
__( 'Overview',
|
241 |
);
|
242 |
|
243 |
add_submenu_page(
|
244 |
-
$this->plugin_slug, __( 'Ads',
|
245 |
);
|
246 |
|
247 |
$this->ad_group_hook_suffix = add_submenu_page(
|
248 |
-
$this->plugin_slug, __( 'Ad Groups',
|
249 |
);
|
250 |
|
251 |
// add placements page
|
252 |
add_submenu_page(
|
253 |
-
$this->plugin_slug, __( 'Ad Placements',
|
254 |
);
|
255 |
// add settings page
|
256 |
$this->plugin_screen_hook_suffix = add_submenu_page(
|
257 |
-
$this->plugin_slug, __( 'Advanced Ads Settings',
|
258 |
);
|
259 |
add_submenu_page(
|
260 |
-
null, __( 'Advanced Ads Debugging',
|
261 |
);
|
262 |
// intro page
|
263 |
add_submenu_page(
|
264 |
-
null, __( 'Advanced Ads Intro',
|
265 |
);
|
266 |
// add support page
|
267 |
add_submenu_page(
|
268 |
-
$this->plugin_slug, __( 'Support',
|
269 |
);
|
270 |
|
271 |
// allows extensions to insert sub menu pages
|
@@ -395,7 +395,7 @@ class Advanced_Ads_Admin {
|
|
395 |
check_admin_referer( 'update-group_' . $group_id );
|
396 |
|
397 |
if ( ! current_user_can( $tax->cap->edit_terms ) ) {
|
398 |
-
wp_die( __( 'Sorry, you are not allowed to access this feature.',
|
399 |
|
400 |
// handle new groups
|
401 |
if ( 0 == $group_id ) {
|
@@ -408,7 +408,7 @@ class Advanced_Ads_Admin {
|
|
408 |
} else {
|
409 |
$tag = get_term( $group_id, $taxonomy );
|
410 |
if ( ! $tag ) {
|
411 |
-
wp_die( __( 'You attempted to edit an ad group that doesn’t exist. Perhaps it was deleted?',
|
412 |
|
413 |
$ret = wp_update_term( $group_id, $taxonomy, $_POST );
|
414 |
if ( $ret && ! is_wp_error( $ret ) ) {
|
@@ -422,7 +422,7 @@ class Advanced_Ads_Admin {
|
|
422 |
check_admin_referer( 'delete-tag_' . $group_id );
|
423 |
|
424 |
if ( ! current_user_can( $tax->cap->delete_terms ) ) {
|
425 |
-
wp_die( __( 'Sorry, you are not allowed to access this feature.',
|
426 |
|
427 |
wp_delete_term( $group_id, $taxonomy );
|
428 |
|
@@ -481,7 +481,7 @@ class Advanced_Ads_Admin {
|
|
481 |
|
482 |
return array_merge(
|
483 |
array(
|
484 |
-
'settings' => '<a href="' . admin_url( 'edit.php?post_type=advanced_ads&page=advanced-ads-settings' ) . '">' . __( 'Settings',
|
485 |
), $links
|
486 |
);
|
487 |
}
|
@@ -523,19 +523,19 @@ class Advanced_Ads_Admin {
|
|
523 |
*/
|
524 |
public function add_meta_boxes() {
|
525 |
add_meta_box(
|
526 |
-
'ad-main-box', __( 'Ad Type',
|
527 |
);
|
528 |
add_meta_box(
|
529 |
-
'ad-parameters-box', __( 'Ad Parameters',
|
530 |
);
|
531 |
add_meta_box(
|
532 |
-
'ad-output-box', __( 'Layout / Output',
|
533 |
);
|
534 |
add_meta_box(
|
535 |
-
'ad-display-box', __( 'Display Conditions',
|
536 |
);
|
537 |
add_meta_box(
|
538 |
-
'ad-visitor-box', __( 'Visitor Conditions',
|
539 |
);
|
540 |
}
|
541 |
|
@@ -711,19 +711,19 @@ class Advanced_Ads_Admin {
|
|
711 |
|
712 |
$messages[Advanced_Ads::POST_TYPE_SLUG] = array(
|
713 |
0 => '', // Unused. Messages start at index 1.
|
714 |
-
1 => __( 'Ad updated.',
|
715 |
-
4 => __( 'Ad updated.',
|
716 |
/* translators: %s: date and time of the revision */
|
717 |
-
5 => isset( $_GET['revision'] ) ? sprintf( __( 'Ad restored to revision from %s',
|
718 |
-
6 => __( 'Ad published.',
|
719 |
-
7 => __( 'Ad saved.',
|
720 |
-
8 => __( 'Ad submitted.',
|
721 |
9 => sprintf(
|
722 |
-
__( 'Ad scheduled for: <strong>%1$s</strong>.',
|
723 |
// translators: Publish box date format, see http://php.net/date
|
724 |
-
date_i18n( __( 'M j, Y @ G:i',
|
725 |
),
|
726 |
-
10 => __( 'Ad draft updated.',
|
727 |
);
|
728 |
return $messages;
|
729 |
}
|
@@ -781,7 +781,7 @@ class Advanced_Ads_Admin {
|
|
781 |
// general settings section
|
782 |
add_settings_section(
|
783 |
'advanced_ads_setting_section',
|
784 |
-
__( 'General',
|
785 |
array($this, 'render_settings_section_callback'),
|
786 |
$hook
|
787 |
);
|
@@ -793,7 +793,7 @@ class Advanced_Ads_Admin {
|
|
793 |
|
794 |
add_settings_section(
|
795 |
'advanced_ads_settings_license_section',
|
796 |
-
__( 'Licenses',
|
797 |
array($this, 'render_settings_licenses_section_callback'),
|
798 |
'advanced-ads-settings-license-page'
|
799 |
);
|
@@ -804,7 +804,7 @@ class Advanced_Ads_Admin {
|
|
804 |
// add setting fields to disable ads
|
805 |
add_settings_field(
|
806 |
'disable-ads',
|
807 |
-
__( 'Disable ads',
|
808 |
array($this, 'render_settings_disable_ads'),
|
809 |
$hook,
|
810 |
'advanced_ads_setting_section'
|
@@ -812,7 +812,7 @@ class Advanced_Ads_Admin {
|
|
812 |
// add setting fields for user role
|
813 |
add_settings_field(
|
814 |
'hide-for-user-role',
|
815 |
-
__( 'Hide ads for logged in users',
|
816 |
array($this, 'render_settings_hide_for_users'),
|
817 |
$hook,
|
818 |
'advanced_ads_setting_section'
|
@@ -820,7 +820,7 @@ class Advanced_Ads_Admin {
|
|
820 |
// add setting fields for advanced js
|
821 |
add_settings_field(
|
822 |
'activate-advanced-js',
|
823 |
-
__( 'Use advanced JavaScript',
|
824 |
array($this, 'render_settings_advanced_js'),
|
825 |
$hook,
|
826 |
'advanced_ads_setting_section'
|
@@ -828,7 +828,7 @@ class Advanced_Ads_Admin {
|
|
828 |
// add setting fields for content injection protection
|
829 |
add_settings_field(
|
830 |
'content-injection-everywhere',
|
831 |
-
__( 'Unlimited ad injection',
|
832 |
array($this, 'render_settings_content_injection_everywhere'),
|
833 |
$hook,
|
834 |
'advanced_ads_setting_section'
|
@@ -836,7 +836,7 @@ class Advanced_Ads_Admin {
|
|
836 |
// add setting fields for content injection priority
|
837 |
add_settings_field(
|
838 |
'content-injection-priority',
|
839 |
-
__( 'Priority of content injection filter',
|
840 |
array($this, 'render_settings_content_injection_priority'),
|
841 |
$hook,
|
842 |
'advanced_ads_setting_section'
|
@@ -844,7 +844,7 @@ class Advanced_Ads_Admin {
|
|
844 |
// add setting fields for content injection priority
|
845 |
add_settings_field(
|
846 |
'block-bots',
|
847 |
-
__( 'Hide ads from bots',
|
848 |
array($this, 'render_settings_block_bots'),
|
849 |
$hook,
|
850 |
'advanced_ads_setting_section'
|
@@ -852,7 +852,7 @@ class Advanced_Ads_Admin {
|
|
852 |
// opt out from internal notices
|
853 |
add_settings_field(
|
854 |
'disable-notices',
|
855 |
-
__( 'Disable notices',
|
856 |
array($this, 'render_settings_disabled_notices'),
|
857 |
$hook,
|
858 |
'advanced_ads_setting_section'
|
@@ -860,7 +860,7 @@ class Advanced_Ads_Admin {
|
|
860 |
// opt out from internal notices
|
861 |
add_settings_field(
|
862 |
'front-prefix',
|
863 |
-
__( 'ID prefix',
|
864 |
array($this, 'render_settings_front_prefix'),
|
865 |
$hook,
|
866 |
'advanced_ads_setting_section'
|
@@ -868,7 +868,7 @@ class Advanced_Ads_Admin {
|
|
868 |
// remove id from widgets
|
869 |
add_settings_field(
|
870 |
'remove-widget-id',
|
871 |
-
__( 'Remove Widget ID',
|
872 |
array($this, 'render_settings_remove_widget_id'),
|
873 |
$hook,
|
874 |
'advanced_ads_setting_section'
|
@@ -889,7 +889,7 @@ class Advanced_Ads_Admin {
|
|
889 |
'page' => 'advanced-ads-settings-license-page',
|
890 |
'group' => ADVADS_SLUG . '-licenses',
|
891 |
'tabid' => 'licenses',
|
892 |
-
'title' => __( 'Licenses',
|
893 |
);
|
894 |
|
895 |
return $tabs;
|
@@ -910,7 +910,7 @@ class Advanced_Ads_Admin {
|
|
910 |
* @since 1.5.1
|
911 |
*/
|
912 |
public function render_settings_licenses_section_callback(){
|
913 |
-
echo '<p>'. __( 'Enter license keys for our powerful <a href="'.ADVADS_URL.'add-ons/" target="_blank">add-ons</a>.',
|
914 |
// nonce field
|
915 |
echo '<input type="hidden" id="advads-licenses-ajax-referrer" value="' . wp_create_nonce( "advads_ajax_license_nonce" ) . '"/>';
|
916 |
}
|
@@ -943,12 +943,12 @@ class Advanced_Ads_Admin {
|
|
943 |
$current_capability_role = isset($options['hide-for-user-role']) ? $options['hide-for-user-role'] : 0;
|
944 |
|
945 |
$capability_roles = array(
|
946 |
-
'' => __( '(display to all)',
|
947 |
-
'read' => __( 'Subscriber',
|
948 |
-
'delete_posts' => __( 'Contributor',
|
949 |
-
'edit_posts' => __( 'Author',
|
950 |
-
'edit_pages' => __( 'Editor',
|
951 |
-
'activate_plugins' => __( 'Admin',
|
952 |
);
|
953 |
echo '<select name="'.ADVADS_SLUG.'[hide-for-user-role]">';
|
954 |
foreach ( $capability_roles as $_capability => $_role ) {
|
@@ -956,7 +956,7 @@ class Advanced_Ads_Admin {
|
|
956 |
}
|
957 |
echo '</select>';
|
958 |
|
959 |
-
echo '<p class="description">'. __( 'Choose the lowest role a user must have in order to not see any ads.',
|
960 |
}
|
961 |
|
962 |
/**
|
@@ -970,10 +970,10 @@ class Advanced_Ads_Admin {
|
|
970 |
|
971 |
// display notice if js file was overridden
|
972 |
if( ! $checked && apply_filters( 'advanced-ads-activate-advanced-js', $checked ) ){
|
973 |
-
echo '<p>' . __( '<strong>notice: </strong>the file is currently enabled by an add-on that needs it.',
|
974 |
}
|
975 |
echo '<input id="advanced-ads-advanced-js" type="checkbox" value="1" name="'.ADVADS_SLUG.'[advanced-js]" '.checked( $checked, 1, false ).'>';
|
976 |
-
echo '<p class="description">'. sprintf( __( 'Enable advanced JavaScript functions (<a href="%s" target="_blank">here</a>). Some features and add-ons might override this setting if they need features from this file.',
|
977 |
}
|
978 |
|
979 |
/**
|
@@ -986,7 +986,7 @@ class Advanced_Ads_Admin {
|
|
986 |
$everywhere = ( isset($options['content-injection-everywhere']) ) ? true : false;
|
987 |
|
988 |
echo '<input id="advanced-ads-injection-everywhere" type="checkbox" value="true" name="'.ADVADS_SLUG.'[content-injection-everywhere]" '.checked( $everywhere, true, false ).'>';
|
989 |
-
echo '<p class="description">'. __( 'Some plugins and themes trigger ad injection where it shouldn’t happen. Therefore, Advanced Ads ignores injected placements on non-singular pages and outside the loop. However, this can cause problems with some themes. You can enable this option if you don’t see ads or want to enable ad injections on archive pages AT YOUR OWN RISK.',
|
990 |
|
991 |
}
|
992 |
|
@@ -1000,7 +1000,7 @@ class Advanced_Ads_Admin {
|
|
1000 |
$priority = ( isset($options['content-injection-priority'])) ? intval( $options['content-injection-priority'] ) : 100;
|
1001 |
|
1002 |
echo '<input id="advanced-ads-content-injection-priority" type="number" value="'.$priority.'" name="'.ADVADS_SLUG.'[content-injection-priority]" size="3"/>';
|
1003 |
-
echo '<p class="description">'. __( 'Play with this value in order to change the priority of the injected ads compared to other auto injected elements in the post content.',
|
1004 |
}
|
1005 |
|
1006 |
/**
|
@@ -1013,8 +1013,8 @@ class Advanced_Ads_Admin {
|
|
1013 |
$checked = ( ! empty($options['block-bots'])) ? 1 : 0;
|
1014 |
|
1015 |
echo '<input id="advanced-ads-block-bots" type="checkbox" value="1" name="'.ADVADS_SLUG.'[block-bots]" '.checked( $checked, 1, false ).'>';
|
1016 |
-
echo '<p class="description">'. sprintf( __( 'Hide ads from crawlers, bots and empty user agents. Also prevents counting impressions for bots when using the <a href="%s" target="_blank">Tracking Add-On</a>.',
|
1017 |
-
. __( 'Disabling this option only makes sense if your ads contain content you want to display to bots (like search engines) or your site is cached and bots could create a cached version without the ads.',
|
1018 |
}
|
1019 |
|
1020 |
/**
|
@@ -1027,7 +1027,7 @@ class Advanced_Ads_Admin {
|
|
1027 |
$checked = ( ! empty($options['disable-notices'])) ? 1 : 0;
|
1028 |
|
1029 |
echo '<input id="advanced-ads-disabled-notices" type="checkbox" value="1" name="'.ADVADS_SLUG.'[disable-notices]" '.checked( $checked, 1, false ).'>';
|
1030 |
-
echo '<p class="description">'. __( 'Disable internal notices like tips, tutorials, email newsletters and update notices. Disabling notices is recommended if you run multiple blogs with Advanced Ads already.',
|
1031 |
}
|
1032 |
|
1033 |
/**
|
@@ -1049,7 +1049,7 @@ class Advanced_Ads_Admin {
|
|
1049 |
echo '<input id="advanced-ads-front-prefix" type="text" value="' .$prefix .'" name="'.ADVADS_SLUG.'[front-prefix]" />';
|
1050 |
// deprecated
|
1051 |
echo '<input type="hidden" value="' .$old_prefix .'" name="'.ADVADS_SLUG.'[id-prefix]" />';
|
1052 |
-
echo '<p class="description">'. __( 'Prefix of class or id attributes in the frontend. Change it if you don’t want <strong>ad blockers</strong> to mark these blocks as ads.<br/>You might need to <strong>rewrite css rules afterwards</strong>.',
|
1053 |
}
|
1054 |
|
1055 |
/**
|
@@ -1070,7 +1070,7 @@ class Advanced_Ads_Admin {
|
|
1070 |
}
|
1071 |
|
1072 |
echo '<input id="advanced-ads-remove-widget-id" type="checkbox" ' . checked( $remove, true, false ) . ' name="'.ADVADS_SLUG.'[remove-widget-id]" />';
|
1073 |
-
echo '<p class="description">'. __( 'Remove the ID attribute from widgets in order to not make them an easy target of ad blockers.',
|
1074 |
}
|
1075 |
|
1076 |
/**
|
@@ -1123,7 +1123,7 @@ class Advanced_Ads_Admin {
|
|
1123 |
foreach( $columns as $key => $value ) {
|
1124 |
$new_columns[ $key ] = $value;
|
1125 |
if ( $key == 'title' ){
|
1126 |
-
$new_columns[ 'ad_details' ] = __( 'Ad Details',
|
1127 |
}
|
1128 |
}
|
1129 |
|
@@ -1197,7 +1197,7 @@ class Advanced_Ads_Admin {
|
|
1197 |
if ( in_array( $post_type, $public_post_types ) ) {
|
1198 |
add_meta_box(
|
1199 |
'advads-ad-settings',
|
1200 |
-
__( 'Ad Settings',
|
1201 |
array( $this, 'render_post_meta_box' ),
|
1202 |
$post_type,
|
1203 |
'advanced',
|
@@ -1276,7 +1276,7 @@ class Advanced_Ads_Admin {
|
|
1276 |
if( ! current_user_can('publish_posts') ) {
|
1277 |
return;
|
1278 |
}
|
1279 |
-
add_meta_box( 'advads_dashboard_widget', __( 'Ads Dashboard',
|
1280 |
}
|
1281 |
|
1282 |
/**
|
@@ -1288,7 +1288,7 @@ class Advanced_Ads_Admin {
|
|
1288 |
array(
|
1289 |
'link' => 'http://webgilde.com/en/ad-optimization/',
|
1290 |
'url' => 'http://webgilde.com/en/ad-optimization/feed/',
|
1291 |
-
'title' => __( 'From the ad optimization universe',
|
1292 |
'items' => 2,
|
1293 |
'show_summary' => 0,
|
1294 |
'show_author' => 0,
|
@@ -1297,7 +1297,7 @@ class Advanced_Ads_Admin {
|
|
1297 |
array(
|
1298 |
'link' => ADVADS_URL,
|
1299 |
'url' => ADVADS_URL . 'feed/',
|
1300 |
-
'title' => __( 'Advanced Ads Tutorials',
|
1301 |
'items' => 2,
|
1302 |
'show_summary' => 0,
|
1303 |
'show_author' => 0,
|
@@ -1308,7 +1308,7 @@ class Advanced_Ads_Admin {
|
|
1308 |
// get number of ads
|
1309 |
$recent_ads = Advanced_Ads::get_instance()->get_model()->get_ads();
|
1310 |
echo '<p>';
|
1311 |
-
printf(__( '%d ads – <a href="%s">manage</a> - <a href="%s">new</a>',
|
1312 |
count( $recent_ads ),
|
1313 |
'edit.php?post_type='. Advanced_Ads::POST_TYPE_SLUG,
|
1314 |
'post-new.php?post_type='. Advanced_Ads::POST_TYPE_SLUG);
|
@@ -1319,21 +1319,21 @@ class Advanced_Ads_Admin {
|
|
1319 |
if ( isset($advads_plugin_data['Version']) ){
|
1320 |
$version = $advads_plugin_data['Version'];
|
1321 |
echo '<p><a href="'.ADVADS_URL.'" target="_blank" title="'.
|
1322 |
-
__( 'plugin manual and homepage',
|
1323 |
}
|
1324 |
|
1325 |
$notice_options = Advanced_Ads_Admin_Notices::get_instance()->options();
|
1326 |
$_notice = 'nl_first_steps';
|
1327 |
if ( ! isset($notice_options['closed'][ $_notice ] ) ) {
|
1328 |
?><div class="advads-admin-notice">
|
1329 |
-
<p><button type="button" class="button-primary advads-notices-button-subscribe" data-notice="<?php echo $_notice ?>"><?php _e('Get the tutorial via email',
|
1330 |
</div><?php
|
1331 |
}
|
1332 |
|
1333 |
$_notice = 'nl_adsense';
|
1334 |
if ( ! isset($notice_options['closed'][ $_notice ] ) ) {
|
1335 |
?><div class="advads-admin-notice">
|
1336 |
-
<p><button type="button" class="button-primary advads-notices-button-subscribe" data-notice="<?php echo $_notice ?>"><?php _e('Get AdSense tips via email',
|
1337 |
</div><?php
|
1338 |
}
|
1339 |
|
@@ -1412,13 +1412,13 @@ class Advanced_Ads_Admin {
|
|
1412 |
public function activate_license( $addon = '', $plugin_name = '', $options_slug = '' ) {
|
1413 |
|
1414 |
if ( '' === $addon || '' === $plugin_name || '' === $options_slug ) {
|
1415 |
-
return __( 'Error while trying to register the license. Please contact support.',
|
1416 |
}
|
1417 |
|
1418 |
$licenses = get_option(ADVADS_SLUG . '-licenses', array());
|
1419 |
$license_key = isset($licenses[$addon]) ? $licenses[$addon] : '';
|
1420 |
if ( '' == $license_key ) {
|
1421 |
-
return __( 'Please enter and save a valid license key first.',
|
1422 |
}
|
1423 |
|
1424 |
$api_params = array(
|
237 |
|
238 |
// add main menu item with overview page
|
239 |
add_menu_page(
|
240 |
+
__( 'Overview', 'advanced-ads' ), 'Advanced Ads', 'manage_options', $this->plugin_slug, array($this, 'display_overview_page'), 'dashicons-chart-line', '58.74'
|
241 |
);
|
242 |
|
243 |
add_submenu_page(
|
244 |
+
$this->plugin_slug, __( 'Ads', 'advanced-ads' ), __( 'Ads', 'advanced-ads' ), 'manage_options', 'edit.php?post_type=' . Advanced_Ads::POST_TYPE_SLUG
|
245 |
);
|
246 |
|
247 |
$this->ad_group_hook_suffix = add_submenu_page(
|
248 |
+
$this->plugin_slug, __( 'Ad Groups', 'advanced-ads' ), __( 'Groups', 'advanced-ads' ), 'manage_options', $this->plugin_slug . '-groups', array($this, 'ad_group_admin_page')
|
249 |
);
|
250 |
|
251 |
// add placements page
|
252 |
add_submenu_page(
|
253 |
+
$this->plugin_slug, __( 'Ad Placements', 'advanced-ads' ), __( 'Placements', 'advanced-ads' ), 'manage_options', $this->plugin_slug . '-placements', array($this, 'display_placements_page')
|
254 |
);
|
255 |
// add settings page
|
256 |
$this->plugin_screen_hook_suffix = add_submenu_page(
|
257 |
+
$this->plugin_slug, __( 'Advanced Ads Settings', 'advanced-ads' ), __( 'Settings', 'advanced-ads' ), 'manage_options', $this->plugin_slug . '-settings', array($this, 'display_plugin_settings_page')
|
258 |
);
|
259 |
add_submenu_page(
|
260 |
+
null, __( 'Advanced Ads Debugging', 'advanced-ads' ), __( 'Debug', 'advanced-ads' ), 'manage_options', $this->plugin_slug . '-debug', array($this, 'display_plugin_debug_page')
|
261 |
);
|
262 |
// intro page
|
263 |
add_submenu_page(
|
264 |
+
null, __( 'Advanced Ads Intro', 'advanced-ads' ), __( 'Advanced Ads Intro', 'advanced-ads' ), 'manage_options', $this->plugin_slug . '-intro', array($this, 'display_plugin_intro_page')
|
265 |
);
|
266 |
// add support page
|
267 |
add_submenu_page(
|
268 |
+
$this->plugin_slug, __( 'Support', 'advanced-ads' ), __( 'Support', 'advanced-ads' ), 'manage_options', $this->plugin_slug . '-support', array($this, 'display_support_page')
|
269 |
);
|
270 |
|
271 |
// allows extensions to insert sub menu pages
|
395 |
check_admin_referer( 'update-group_' . $group_id );
|
396 |
|
397 |
if ( ! current_user_can( $tax->cap->edit_terms ) ) {
|
398 |
+
wp_die( __( 'Sorry, you are not allowed to access this feature.', 'advanced-ads' ) ); }
|
399 |
|
400 |
// handle new groups
|
401 |
if ( 0 == $group_id ) {
|
408 |
} else {
|
409 |
$tag = get_term( $group_id, $taxonomy );
|
410 |
if ( ! $tag ) {
|
411 |
+
wp_die( __( 'You attempted to edit an ad group that doesn’t exist. Perhaps it was deleted?', 'advanced-ads' ) ); }
|
412 |
|
413 |
$ret = wp_update_term( $group_id, $taxonomy, $_POST );
|
414 |
if ( $ret && ! is_wp_error( $ret ) ) {
|
422 |
check_admin_referer( 'delete-tag_' . $group_id );
|
423 |
|
424 |
if ( ! current_user_can( $tax->cap->delete_terms ) ) {
|
425 |
+
wp_die( __( 'Sorry, you are not allowed to access this feature.', 'advanced-ads' ) ); }
|
426 |
|
427 |
wp_delete_term( $group_id, $taxonomy );
|
428 |
|
481 |
|
482 |
return array_merge(
|
483 |
array(
|
484 |
+
'settings' => '<a href="' . admin_url( 'edit.php?post_type=advanced_ads&page=advanced-ads-settings' ) . '">' . __( 'Settings', 'advanced-ads' ) . '</a>'
|
485 |
), $links
|
486 |
);
|
487 |
}
|
523 |
*/
|
524 |
public function add_meta_boxes() {
|
525 |
add_meta_box(
|
526 |
+
'ad-main-box', __( 'Ad Type', 'advanced-ads' ), array($this, 'markup_meta_boxes'), Advanced_Ads::POST_TYPE_SLUG, 'normal', 'high'
|
527 |
);
|
528 |
add_meta_box(
|
529 |
+
'ad-parameters-box', __( 'Ad Parameters', 'advanced-ads' ), array($this, 'markup_meta_boxes'), Advanced_Ads::POST_TYPE_SLUG, 'normal', 'high'
|
530 |
);
|
531 |
add_meta_box(
|
532 |
+
'ad-output-box', __( 'Layout / Output', 'advanced-ads' ), array($this, 'markup_meta_boxes'), Advanced_Ads::POST_TYPE_SLUG, 'normal', 'high'
|
533 |
);
|
534 |
add_meta_box(
|
535 |
+
'ad-display-box', __( 'Display Conditions', 'advanced-ads' ), array($this, 'markup_meta_boxes'), Advanced_Ads::POST_TYPE_SLUG, 'normal', 'high'
|
536 |
);
|
537 |
add_meta_box(
|
538 |
+
'ad-visitor-box', __( 'Visitor Conditions', 'advanced-ads' ), array($this, 'markup_meta_boxes'), Advanced_Ads::POST_TYPE_SLUG, 'normal', 'high'
|
539 |
);
|
540 |
}
|
541 |
|
711 |
|
712 |
$messages[Advanced_Ads::POST_TYPE_SLUG] = array(
|
713 |
0 => '', // Unused. Messages start at index 1.
|
714 |
+
1 => __( 'Ad updated.', 'advanced-ads' ),
|
715 |
+
4 => __( 'Ad updated.', 'advanced-ads' ),
|
716 |
/* translators: %s: date and time of the revision */
|
717 |
+
5 => isset( $_GET['revision'] ) ? sprintf( __( 'Ad restored to revision from %s', 'advanced-ads' ), wp_post_revision_title( (int) $_GET['revision'], false ) ) : false,
|
718 |
+
6 => __( 'Ad published.', 'advanced-ads' ),
|
719 |
+
7 => __( 'Ad saved.', 'advanced-ads' ),
|
720 |
+
8 => __( 'Ad submitted.', 'advanced-ads' ),
|
721 |
9 => sprintf(
|
722 |
+
__( 'Ad scheduled for: <strong>%1$s</strong>.', 'advanced-ads' ),
|
723 |
// translators: Publish box date format, see http://php.net/date
|
724 |
+
date_i18n( __( 'M j, Y @ G:i', 'advanced-ads' ), strtotime( $post->post_date ) )
|
725 |
),
|
726 |
+
10 => __( 'Ad draft updated.', 'advanced-ads' )
|
727 |
);
|
728 |
return $messages;
|
729 |
}
|
781 |
// general settings section
|
782 |
add_settings_section(
|
783 |
'advanced_ads_setting_section',
|
784 |
+
__( 'General', 'advanced-ads' ),
|
785 |
array($this, 'render_settings_section_callback'),
|
786 |
$hook
|
787 |
);
|
793 |
|
794 |
add_settings_section(
|
795 |
'advanced_ads_settings_license_section',
|
796 |
+
__( 'Licenses', 'advanced-ads' ),
|
797 |
array($this, 'render_settings_licenses_section_callback'),
|
798 |
'advanced-ads-settings-license-page'
|
799 |
);
|
804 |
// add setting fields to disable ads
|
805 |
add_settings_field(
|
806 |
'disable-ads',
|
807 |
+
__( 'Disable ads', 'advanced-ads' ),
|
808 |
array($this, 'render_settings_disable_ads'),
|
809 |
$hook,
|
810 |
'advanced_ads_setting_section'
|
812 |
// add setting fields for user role
|
813 |
add_settings_field(
|
814 |
'hide-for-user-role',
|
815 |
+
__( 'Hide ads for logged in users', 'advanced-ads' ),
|
816 |
array($this, 'render_settings_hide_for_users'),
|
817 |
$hook,
|
818 |
'advanced_ads_setting_section'
|
820 |
// add setting fields for advanced js
|
821 |
add_settings_field(
|
822 |
'activate-advanced-js',
|
823 |
+
__( 'Use advanced JavaScript', 'advanced-ads' ),
|
824 |
array($this, 'render_settings_advanced_js'),
|
825 |
$hook,
|
826 |
'advanced_ads_setting_section'
|
828 |
// add setting fields for content injection protection
|
829 |
add_settings_field(
|
830 |
'content-injection-everywhere',
|
831 |
+
__( 'Unlimited ad injection', 'advanced-ads' ),
|
832 |
array($this, 'render_settings_content_injection_everywhere'),
|
833 |
$hook,
|
834 |
'advanced_ads_setting_section'
|
836 |
// add setting fields for content injection priority
|
837 |
add_settings_field(
|
838 |
'content-injection-priority',
|
839 |
+
__( 'Priority of content injection filter', 'advanced-ads' ),
|
840 |
array($this, 'render_settings_content_injection_priority'),
|
841 |
$hook,
|
842 |
'advanced_ads_setting_section'
|
844 |
// add setting fields for content injection priority
|
845 |
add_settings_field(
|
846 |
'block-bots',
|
847 |
+
__( 'Hide ads from bots', 'advanced-ads' ),
|
848 |
array($this, 'render_settings_block_bots'),
|
849 |
$hook,
|
850 |
'advanced_ads_setting_section'
|
852 |
// opt out from internal notices
|
853 |
add_settings_field(
|
854 |
'disable-notices',
|
855 |
+
__( 'Disable notices', 'advanced-ads' ),
|
856 |
array($this, 'render_settings_disabled_notices'),
|
857 |
$hook,
|
858 |
'advanced_ads_setting_section'
|
860 |
// opt out from internal notices
|
861 |
add_settings_field(
|
862 |
'front-prefix',
|
863 |
+
__( 'ID prefix', 'advanced-ads' ),
|
864 |
array($this, 'render_settings_front_prefix'),
|
865 |
$hook,
|
866 |
'advanced_ads_setting_section'
|
868 |
// remove id from widgets
|
869 |
add_settings_field(
|
870 |
'remove-widget-id',
|
871 |
+
__( 'Remove Widget ID', 'advanced-ads' ),
|
872 |
array($this, 'render_settings_remove_widget_id'),
|
873 |
$hook,
|
874 |
'advanced_ads_setting_section'
|
889 |
'page' => 'advanced-ads-settings-license-page',
|
890 |
'group' => ADVADS_SLUG . '-licenses',
|
891 |
'tabid' => 'licenses',
|
892 |
+
'title' => __( 'Licenses', 'advanced-ads' )
|
893 |
);
|
894 |
|
895 |
return $tabs;
|
910 |
* @since 1.5.1
|
911 |
*/
|
912 |
public function render_settings_licenses_section_callback(){
|
913 |
+
echo '<p>'. __( 'Enter license keys for our powerful <a href="'.ADVADS_URL.'add-ons/" target="_blank">add-ons</a>.', 'advanced-ads' ) .'</p>';
|
914 |
// nonce field
|
915 |
echo '<input type="hidden" id="advads-licenses-ajax-referrer" value="' . wp_create_nonce( "advads_ajax_license_nonce" ) . '"/>';
|
916 |
}
|
943 |
$current_capability_role = isset($options['hide-for-user-role']) ? $options['hide-for-user-role'] : 0;
|
944 |
|
945 |
$capability_roles = array(
|
946 |
+
'' => __( '(display to all)', 'advanced-ads' ),
|
947 |
+
'read' => __( 'Subscriber', 'advanced-ads' ),
|
948 |
+
'delete_posts' => __( 'Contributor', 'advanced-ads' ),
|
949 |
+
'edit_posts' => __( 'Author', 'advanced-ads' ),
|
950 |
+
'edit_pages' => __( 'Editor', 'advanced-ads' ),
|
951 |
+
'activate_plugins' => __( 'Admin', 'advanced-ads' ),
|
952 |
);
|
953 |
echo '<select name="'.ADVADS_SLUG.'[hide-for-user-role]">';
|
954 |
foreach ( $capability_roles as $_capability => $_role ) {
|
956 |
}
|
957 |
echo '</select>';
|
958 |
|
959 |
+
echo '<p class="description">'. __( 'Choose the lowest role a user must have in order to not see any ads.', 'advanced-ads' ) .'</p>';
|
960 |
}
|
961 |
|
962 |
/**
|
970 |
|
971 |
// display notice if js file was overridden
|
972 |
if( ! $checked && apply_filters( 'advanced-ads-activate-advanced-js', $checked ) ){
|
973 |
+
echo '<p>' . __( '<strong>notice: </strong>the file is currently enabled by an add-on that needs it.', 'advanced-ads' ) . '</p>';
|
974 |
}
|
975 |
echo '<input id="advanced-ads-advanced-js" type="checkbox" value="1" name="'.ADVADS_SLUG.'[advanced-js]" '.checked( $checked, 1, false ).'>';
|
976 |
+
echo '<p class="description">'. sprintf( __( 'Enable advanced JavaScript functions (<a href="%s" target="_blank">here</a>). Some features and add-ons might override this setting if they need features from this file.', 'advanced-ads' ), ADVADS_URL . 'javascript-functions/' ) .'</p>';
|
977 |
}
|
978 |
|
979 |
/**
|
986 |
$everywhere = ( isset($options['content-injection-everywhere']) ) ? true : false;
|
987 |
|
988 |
echo '<input id="advanced-ads-injection-everywhere" type="checkbox" value="true" name="'.ADVADS_SLUG.'[content-injection-everywhere]" '.checked( $everywhere, true, false ).'>';
|
989 |
+
echo '<p class="description">'. __( 'Some plugins and themes trigger ad injection where it shouldn’t happen. Therefore, Advanced Ads ignores injected placements on non-singular pages and outside the loop. However, this can cause problems with some themes. You can enable this option if you don’t see ads or want to enable ad injections on archive pages AT YOUR OWN RISK.', 'advanced-ads' ) .'</p>';
|
990 |
|
991 |
}
|
992 |
|
1000 |
$priority = ( isset($options['content-injection-priority'])) ? intval( $options['content-injection-priority'] ) : 100;
|
1001 |
|
1002 |
echo '<input id="advanced-ads-content-injection-priority" type="number" value="'.$priority.'" name="'.ADVADS_SLUG.'[content-injection-priority]" size="3"/>';
|
1003 |
+
echo '<p class="description">'. __( 'Play with this value in order to change the priority of the injected ads compared to other auto injected elements in the post content.', 'advanced-ads' ) .'</p>';
|
1004 |
}
|
1005 |
|
1006 |
/**
|
1013 |
$checked = ( ! empty($options['block-bots'])) ? 1 : 0;
|
1014 |
|
1015 |
echo '<input id="advanced-ads-block-bots" type="checkbox" value="1" name="'.ADVADS_SLUG.'[block-bots]" '.checked( $checked, 1, false ).'>';
|
1016 |
+
echo '<p class="description">'. sprintf( __( 'Hide ads from crawlers, bots and empty user agents. Also prevents counting impressions for bots when using the <a href="%s" target="_blank">Tracking Add-On</a>.', 'advanced-ads' ), ADVADS_URL . 'add-ons/tracking/' ) .'<br/>'
|
1017 |
+
. __( 'Disabling this option only makes sense if your ads contain content you want to display to bots (like search engines) or your site is cached and bots could create a cached version without the ads.', 'advanced-ads' ) . '</p>';
|
1018 |
}
|
1019 |
|
1020 |
/**
|
1027 |
$checked = ( ! empty($options['disable-notices'])) ? 1 : 0;
|
1028 |
|
1029 |
echo '<input id="advanced-ads-disabled-notices" type="checkbox" value="1" name="'.ADVADS_SLUG.'[disable-notices]" '.checked( $checked, 1, false ).'>';
|
1030 |
+
echo '<p class="description">'. __( 'Disable internal notices like tips, tutorials, email newsletters and update notices. Disabling notices is recommended if you run multiple blogs with Advanced Ads already.', 'advanced-ads' ) . '</p>';
|
1031 |
}
|
1032 |
|
1033 |
/**
|
1049 |
echo '<input id="advanced-ads-front-prefix" type="text" value="' .$prefix .'" name="'.ADVADS_SLUG.'[front-prefix]" />';
|
1050 |
// deprecated
|
1051 |
echo '<input type="hidden" value="' .$old_prefix .'" name="'.ADVADS_SLUG.'[id-prefix]" />';
|
1052 |
+
echo '<p class="description">'. __( 'Prefix of class or id attributes in the frontend. Change it if you don’t want <strong>ad blockers</strong> to mark these blocks as ads.<br/>You might need to <strong>rewrite css rules afterwards</strong>.', 'advanced-ads' ) .'</p>';
|
1053 |
}
|
1054 |
|
1055 |
/**
|
1070 |
}
|
1071 |
|
1072 |
echo '<input id="advanced-ads-remove-widget-id" type="checkbox" ' . checked( $remove, true, false ) . ' name="'.ADVADS_SLUG.'[remove-widget-id]" />';
|
1073 |
+
echo '<p class="description">'. __( 'Remove the ID attribute from widgets in order to not make them an easy target of ad blockers.', 'advanced-ads' ) .'</p>';
|
1074 |
}
|
1075 |
|
1076 |
/**
|
1123 |
foreach( $columns as $key => $value ) {
|
1124 |
$new_columns[ $key ] = $value;
|
1125 |
if ( $key == 'title' ){
|
1126 |
+
$new_columns[ 'ad_details' ] = __( 'Ad Details', 'advanced-ads' );
|
1127 |
}
|
1128 |
}
|
1129 |
|
1197 |
if ( in_array( $post_type, $public_post_types ) ) {
|
1198 |
add_meta_box(
|
1199 |
'advads-ad-settings',
|
1200 |
+
__( 'Ad Settings', 'advanced-ads' ),
|
1201 |
array( $this, 'render_post_meta_box' ),
|
1202 |
$post_type,
|
1203 |
'advanced',
|
1276 |
if( ! current_user_can('publish_posts') ) {
|
1277 |
return;
|
1278 |
}
|
1279 |
+
add_meta_box( 'advads_dashboard_widget', __( 'Ads Dashboard', 'advanced-ads' ), array($this, 'dashboard_widget_function'), 'dashboard', 'side', 'high' );
|
1280 |
}
|
1281 |
|
1282 |
/**
|
1288 |
array(
|
1289 |
'link' => 'http://webgilde.com/en/ad-optimization/',
|
1290 |
'url' => 'http://webgilde.com/en/ad-optimization/feed/',
|
1291 |
+
'title' => __( 'From the ad optimization universe', 'advanced-ads' ),
|
1292 |
'items' => 2,
|
1293 |
'show_summary' => 0,
|
1294 |
'show_author' => 0,
|
1297 |
array(
|
1298 |
'link' => ADVADS_URL,
|
1299 |
'url' => ADVADS_URL . 'feed/',
|
1300 |
+
'title' => __( 'Advanced Ads Tutorials', 'advanced-ads' ),
|
1301 |
'items' => 2,
|
1302 |
'show_summary' => 0,
|
1303 |
'show_author' => 0,
|
1308 |
// get number of ads
|
1309 |
$recent_ads = Advanced_Ads::get_instance()->get_model()->get_ads();
|
1310 |
echo '<p>';
|
1311 |
+
printf(__( '%d ads – <a href="%s">manage</a> - <a href="%s">new</a>', 'advanced-ads' ),
|
1312 |
count( $recent_ads ),
|
1313 |
'edit.php?post_type='. Advanced_Ads::POST_TYPE_SLUG,
|
1314 |
'post-new.php?post_type='. Advanced_Ads::POST_TYPE_SLUG);
|
1319 |
if ( isset($advads_plugin_data['Version']) ){
|
1320 |
$version = $advads_plugin_data['Version'];
|
1321 |
echo '<p><a href="'.ADVADS_URL.'" target="_blank" title="'.
|
1322 |
+
__( 'plugin manual and homepage', 'advanced-ads' ).'">Advanced Ads</a> '. $version .'</p>';
|
1323 |
}
|
1324 |
|
1325 |
$notice_options = Advanced_Ads_Admin_Notices::get_instance()->options();
|
1326 |
$_notice = 'nl_first_steps';
|
1327 |
if ( ! isset($notice_options['closed'][ $_notice ] ) ) {
|
1328 |
?><div class="advads-admin-notice">
|
1329 |
+
<p><button type="button" class="button-primary advads-notices-button-subscribe" data-notice="<?php echo $_notice ?>"><?php _e('Get the tutorial via email', 'advanced-ads'); ?></button></p>
|
1330 |
</div><?php
|
1331 |
}
|
1332 |
|
1333 |
$_notice = 'nl_adsense';
|
1334 |
if ( ! isset($notice_options['closed'][ $_notice ] ) ) {
|
1335 |
?><div class="advads-admin-notice">
|
1336 |
+
<p><button type="button" class="button-primary advads-notices-button-subscribe" data-notice="<?php echo $_notice ?>"><?php _e('Get AdSense tips via email', 'advanced-ads'); ?></button></p>
|
1337 |
</div><?php
|
1338 |
}
|
1339 |
|
1412 |
public function activate_license( $addon = '', $plugin_name = '', $options_slug = '' ) {
|
1413 |
|
1414 |
if ( '' === $addon || '' === $plugin_name || '' === $options_slug ) {
|
1415 |
+
return __( 'Error while trying to register the license. Please contact support.', 'advanced-ads' );
|
1416 |
}
|
1417 |
|
1418 |
$licenses = get_option(ADVADS_SLUG . '-licenses', array());
|
1419 |
$license_key = isset($licenses[$addon]) ? $licenses[$addon] : '';
|
1420 |
if ( '' == $license_key ) {
|
1421 |
+
return __( 'Please enter and save a valid license key first.', 'advanced-ads' );
|
1422 |
}
|
1423 |
|
1424 |
$api_params = array(
|
admin/includes/class-ad-groups-list.php
CHANGED
@@ -155,21 +155,21 @@ class Advanced_Ads_Groups_List {
|
|
155 |
$status = get_post_status();
|
156 |
switch ( $status ){
|
157 |
case 'future' :
|
158 |
-
$line_output .= '<i>(' . __( 'scheduled',
|
159 |
break;
|
160 |
case 'pending' :
|
161 |
-
$line_output .= '<i>(' . __( 'pending',
|
162 |
break;
|
163 |
}
|
164 |
// check expiry date
|
165 |
$ad = new Advanced_Ads_Ad( get_the_ID() );
|
166 |
if( ! $ad->can_display_by_expiry_date() ) {
|
167 |
-
$line_output .= '<i>(' . __( 'expired',
|
168 |
}
|
169 |
|
170 |
$_weight = (isset($weights[get_the_ID()])) ? $weights[get_the_ID()] : Advanced_Ads_Group::MAX_AD_GROUP_WEIGHT;
|
171 |
if ( $group->type == 'default' && $weight_sum ) {
|
172 |
-
$line_output .= '<span class="ad-weight" title="'.__( 'Ad weight',
|
173 |
}
|
174 |
$ads_output[get_the_ID()] = $line_output;
|
175 |
}
|
@@ -179,12 +179,12 @@ class Advanced_Ads_Groups_List {
|
|
179 |
echo implode( '', $ads_output );
|
180 |
echo ($group->type == 'default' && $weight_sum) ? '</ul>' : '</ol>';
|
181 |
if ( $group->ad_count === 'all' ) {
|
182 |
-
echo '<p>' . __( 'all published ads are displayed',
|
183 |
} elseif ( $group->ad_count > 1 ) {
|
184 |
-
echo '<p>' . sprintf( __( 'up to %d ads displayed',
|
185 |
}
|
186 |
} else {
|
187 |
-
_e( 'No ads assigned',
|
188 |
}
|
189 |
// Restore original Post Data
|
190 |
wp_reset_postdata();
|
@@ -232,12 +232,12 @@ class Advanced_Ads_Groups_List {
|
|
232 |
public function get_ad_group_types(){
|
233 |
$types = array(
|
234 |
'default' => array(
|
235 |
-
'title' => __( 'Random ads',
|
236 |
-
'description' => __( 'Display random ads based on ad weight',
|
237 |
),
|
238 |
'ordered' => array(
|
239 |
-
'title' => __( 'Ordered ads',
|
240 |
-
'description' => __( 'Display ads with the highest ad weight first',
|
241 |
)
|
242 |
);
|
243 |
|
@@ -256,8 +256,8 @@ class Advanced_Ads_Groups_List {
|
|
256 |
|
257 |
$actions = array();
|
258 |
if ( current_user_can( $tax->cap->edit_terms ) ) {
|
259 |
-
$actions['edit'] = '<a class="edit">' . __( 'Edit',
|
260 |
-
$actions['usage'] = '<a class="usage">' . __( 'Usage',
|
261 |
}
|
262 |
|
263 |
if ( current_user_can( $tax->cap->delete_terms ) ){
|
@@ -287,12 +287,12 @@ class Advanced_Ads_Groups_List {
|
|
287 |
if ( ! isset( $_POST['advads-group-update-nonce'] )
|
288 |
|| ! wp_verify_nonce( $_POST['advads-group-update-nonce'], 'update-advads-groups' ) ){
|
289 |
|
290 |
-
return new WP_Error( 'invalid_ad_group', __( 'Invalid Ad Group',
|
291 |
}
|
292 |
|
293 |
// check user rights
|
294 |
if ( ! current_user_can( 'manage_options' ) ){
|
295 |
-
return new WP_Error( 'invalid_ad_group_rights', __( 'You don’t have permission to change the ad groups',
|
296 |
}
|
297 |
|
298 |
// iterate through groups
|
155 |
$status = get_post_status();
|
156 |
switch ( $status ){
|
157 |
case 'future' :
|
158 |
+
$line_output .= '<i>(' . __( 'scheduled', 'advanced-ads' ) . ')</i>';
|
159 |
break;
|
160 |
case 'pending' :
|
161 |
+
$line_output .= '<i>(' . __( 'pending', 'advanced-ads' ) . ')</i>';
|
162 |
break;
|
163 |
}
|
164 |
// check expiry date
|
165 |
$ad = new Advanced_Ads_Ad( get_the_ID() );
|
166 |
if( ! $ad->can_display_by_expiry_date() ) {
|
167 |
+
$line_output .= '<i>(' . __( 'expired', 'advanced-ads' ) . ')</i>';
|
168 |
}
|
169 |
|
170 |
$_weight = (isset($weights[get_the_ID()])) ? $weights[get_the_ID()] : Advanced_Ads_Group::MAX_AD_GROUP_WEIGHT;
|
171 |
if ( $group->type == 'default' && $weight_sum ) {
|
172 |
+
$line_output .= '<span class="ad-weight" title="'.__( 'Ad weight', 'advanced-ads' ).'">' . number_format( ($_weight / $weight_sum) * 100 ) .'%</span></li>';
|
173 |
}
|
174 |
$ads_output[get_the_ID()] = $line_output;
|
175 |
}
|
179 |
echo implode( '', $ads_output );
|
180 |
echo ($group->type == 'default' && $weight_sum) ? '</ul>' : '</ol>';
|
181 |
if ( $group->ad_count === 'all' ) {
|
182 |
+
echo '<p>' . __( 'all published ads are displayed', 'advanced-ads' ) . '</p>';
|
183 |
} elseif ( $group->ad_count > 1 ) {
|
184 |
+
echo '<p>' . sprintf( __( 'up to %d ads displayed', 'advanced-ads' ), $group->ad_count ) . '</p>';
|
185 |
}
|
186 |
} else {
|
187 |
+
_e( 'No ads assigned', 'advanced-ads' );
|
188 |
}
|
189 |
// Restore original Post Data
|
190 |
wp_reset_postdata();
|
232 |
public function get_ad_group_types(){
|
233 |
$types = array(
|
234 |
'default' => array(
|
235 |
+
'title' => __( 'Random ads', 'advanced-ads' ),
|
236 |
+
'description' => __( 'Display random ads based on ad weight', 'advanced-ads' )
|
237 |
),
|
238 |
'ordered' => array(
|
239 |
+
'title' => __( 'Ordered ads', 'advanced-ads' ),
|
240 |
+
'description' => __( 'Display ads with the highest ad weight first', 'advanced-ads' ),
|
241 |
)
|
242 |
);
|
243 |
|
256 |
|
257 |
$actions = array();
|
258 |
if ( current_user_can( $tax->cap->edit_terms ) ) {
|
259 |
+
$actions['edit'] = '<a class="edit">' . __( 'Edit', 'advanced-ads' ) . '</a>';
|
260 |
+
$actions['usage'] = '<a class="usage">' . __( 'Usage', 'advanced-ads' ) . '</a>';
|
261 |
}
|
262 |
|
263 |
if ( current_user_can( $tax->cap->delete_terms ) ){
|
287 |
if ( ! isset( $_POST['advads-group-update-nonce'] )
|
288 |
|| ! wp_verify_nonce( $_POST['advads-group-update-nonce'], 'update-advads-groups' ) ){
|
289 |
|
290 |
+
return new WP_Error( 'invalid_ad_group', __( 'Invalid Ad Group', 'advanced-ads' ) );
|
291 |
}
|
292 |
|
293 |
// check user rights
|
294 |
if ( ! current_user_can( 'manage_options' ) ){
|
295 |
+
return new WP_Error( 'invalid_ad_group_rights', __( 'You don’t have permission to change the ad groups', 'advanced-ads' ) );
|
296 |
}
|
297 |
|
298 |
// iterate through groups
|
admin/includes/class-display-condition-callbacks.php
CHANGED
@@ -25,10 +25,10 @@ class Advanced_Ads_Display_Condition_Callbacks {
|
|
25 |
}
|
26 |
|
27 |
?><h4><label class="advads-conditions-all"><input type="checkbox" name="advanced_ad[conditions][posttypes][all]" value="1" <?php checked( $_all, 1 ); ?>><?php
|
28 |
-
_e( 'Display on all public <strong>post types</strong>.',
|
29 |
$post_types = get_post_types( array('public' => true, 'publicly_queryable' => true), 'object', 'or' );
|
30 |
?><div class="advads-conditions-single">
|
31 |
-
<p class="description"><?php _e( 'Choose the public post types on which to display the ad.',
|
32 |
// backward compatibility
|
33 |
// TODO: remove in a later version
|
34 |
$_includes = ( ! empty($ad->conditions['posttypes']['include']) && is_string( $ad->conditions['posttypes']['include'] )) ? explode( ',', $ad->conditions['posttypes']['include'] ) : array();
|
@@ -83,8 +83,8 @@ class Advanced_Ads_Display_Condition_Callbacks {
|
|
83 |
}
|
84 |
|
85 |
?><h4><label class="advads-conditions-all"><input type="checkbox" name="advanced_ad[conditions][categoryids][all]" value="1" <?php checked( $_all, 1 ); ?>><?php
|
86 |
-
_e( 'Display for all <strong>categories, tags and taxonomies</strong>.',
|
87 |
-
?><div class="advads-conditions-single advads-buttonset"><h5 class="header"><?php _e( 'Display here',
|
88 |
<table><?php
|
89 |
self::_display_taxonomy_term_list( $_includes, 'include', 'advanced_ad[conditions][categoryids][include][]', 'categoryids' );
|
90 |
?></table><?php
|
@@ -101,7 +101,7 @@ if ( ! empty($ad->conditions['categoryids']['exclude']) ){
|
|
101 |
$_excludes = array();
|
102 |
}
|
103 |
|
104 |
-
?><h5 class="header"><?php _e( 'Hide from here',
|
105 |
<table><?php
|
106 |
self::_display_taxonomy_term_list( $_excludes, 'exclude', 'advanced_ad[conditions][categoryids][exclude][]', 'categoryids' );
|
107 |
?></table></div><?php
|
@@ -146,11 +146,11 @@ if ( is_array( $checked ) && count( $checked ) ){
|
|
146 |
}
|
147 |
|
148 |
?></div><span class="advads-conditions-terms-show-search button" title="<?php
|
149 |
-
_ex( 'add more terms', 'display the terms search field on ad edit page',
|
150 |
-
?>">+</span><span class="description"><?php _e( 'add more terms',
|
151 |
?></span><br/><input type="text" class="advads-conditions-terms-search" data-tag-name="<?php echo $_tax->name;
|
152 |
?>" data-include-type="<?php echo $includetype; ?>" data-group="<?php echo $group; ?>" placeholder="<?php
|
153 |
-
_e( 'term name or id',
|
154 |
else :
|
155 |
?><div class="advads-conditions-terms-buttons advads-buttonset"><?php
|
156 |
foreach ( $terms as $_term ) :
|
@@ -194,10 +194,10 @@ foreach ( $terms as $_term ) :
|
|
194 |
}
|
195 |
|
196 |
?><h4><label class="advads-conditions-all"><input type="checkbox" name="advanced_ad[conditions][categoryarchiveids][all]" value="1" <?php checked( $_all, 1 ); ?>><?php
|
197 |
-
_e( 'Display on all <strong>category archive pages</strong>.',
|
198 |
$taxonomies = get_taxonomies( array('public' => true, 'publicly_queryable' => true), 'objects', 'or' );
|
199 |
?><div class="advads-conditions-single advads-buttonset"><table>
|
200 |
-
<p class="description"><?php _e( 'Choose the terms from public categories, tags and other taxonomies on which\'s archive page ads can appear',
|
201 |
<table><?php
|
202 |
self::_display_taxonomy_term_list( $_includes, 'include', 'advanced_ad[conditions][categoryarchiveids][include][]', 'categoryarchiveids' );
|
203 |
?></table><?php
|
@@ -214,7 +214,7 @@ if ( ! empty($ad->conditions['categoryarchiveids']['exclude']) ){
|
|
214 |
$_excludes = array();
|
215 |
}
|
216 |
|
217 |
-
?><h5 class="header"><?php _e( 'Hide from here',
|
218 |
<table><?php
|
219 |
self::_display_taxonomy_term_list( $_excludes, 'exclude', 'advanced_ad[conditions][categoryarchiveids][exclude][]', 'categoryarchiveids' );
|
220 |
?></table></div><?php
|
@@ -236,10 +236,10 @@ if ( ! empty($ad->conditions['categoryarchiveids']['exclude']) ){
|
|
236 |
}
|
237 |
|
238 |
?><h4><label class="advads-conditions-all"><input type="checkbox" name="advanced_ad[conditions][postids][all]" value="1" <?php
|
239 |
-
checked( $_all, 1 ); ?>><?php _e( 'Display an all <strong>individual posts, pages</strong> and public post type pages',
|
240 |
|
241 |
?><div class="advads-conditions-single">
|
242 |
-
<p class="description"><?php _e( 'Choose on which individual posts, pages and public post type pages you want to display or hide ads.',
|
243 |
|
244 |
// derrive method from previous setup
|
245 |
// set defaults
|
@@ -256,10 +256,10 @@ if ( ! empty($ad->conditions['categoryarchiveids']['exclude']) ){
|
|
256 |
}
|
257 |
}
|
258 |
|
259 |
-
?><p><?php _e( 'What should happen with ads on the list of individual posts below?',
|
260 |
-
<label><input type="radio" name='advanced_ad[conditions][postids][method]' value='' <?php checked( '', $_method ); ?>><?php _e( 'ignore the list',
|
261 |
-
<label><input type="radio" name='advanced_ad[conditions][postids][method]' value='include' <?php checked( 'include', $_method ); ?>><?php _e( 'display the ad only there',
|
262 |
-
<label><input type="radio" name='advanced_ad[conditions][postids][method]' value='exclude' <?php checked( 'exclude', $_method ); ?>><?php _e( 'hide the ad here',
|
263 |
<?php
|
264 |
|
265 |
/**
|
@@ -267,12 +267,12 @@ if ( ! empty($ad->conditions['categoryarchiveids']['exclude']) ){
|
|
267 |
* @todo remove on a later version, if no longer needed
|
268 |
*/
|
269 |
if ( ! empty($ad->conditions['postids']['include']) && ! empty($ad->conditions['postids']['exclude']) ){
|
270 |
-
?><div style="color: red;"><p><strong><?php _e( 'Update warning',
|
271 |
-
<p><?php _e( 'Due to some conflicts before version 1.2.6, it is from now on only possible to choose either individual pages to include or exclude an ad, but not both with mixed settings. It seems you are still using mixed settings on this page. Please consider changing your setup for this ad.',
|
272 |
-
<p><?php _e( 'Your old values are:',
|
273 |
-
<p><?php _e( 'Post IDs the ad is displayed on:',
|
274 |
-
<p><?php _e( 'Post IDs the ad is hidden from:',
|
275 |
-
<p><?php _e( 'Below you find the pages the ad is displayed on. If this is ok, just save the ad. If not, please update your settings.',
|
276 |
|
277 |
</div><?php
|
278 |
}
|
@@ -315,9 +315,9 @@ if ( $_postids != array() ){
|
|
315 |
echo '<li><a class="remove" href="#">remove</a><a href="'.get_permalink( $the_query->post->ID ).'">' . get_the_title( $the_query->post->ID ) . '</a><input type="hidden" name="advanced_ad[conditions][postids][ids][]" value="'.$the_query->post->ID.'"></li>';
|
316 |
}
|
317 |
}
|
318 |
-
?><li class="show-search"><a href="#"><?php _e( 'new',
|
319 |
<input type="text" style="display:none;" id="advads-display-conditions-individual-post" value="" placeholder="<?php
|
320 |
-
_e( 'type the title',
|
321 |
<?php wp_nonce_field( 'internal-linking', '_ajax_linking_nonce', false ); ?>
|
322 |
</li>
|
323 |
</ul>
|
25 |
}
|
26 |
|
27 |
?><h4><label class="advads-conditions-all"><input type="checkbox" name="advanced_ad[conditions][posttypes][all]" value="1" <?php checked( $_all, 1 ); ?>><?php
|
28 |
+
_e( 'Display on all public <strong>post types</strong>.', 'advanced-ads' ); ?></label></h4><?php
|
29 |
$post_types = get_post_types( array('public' => true, 'publicly_queryable' => true), 'object', 'or' );
|
30 |
?><div class="advads-conditions-single">
|
31 |
+
<p class="description"><?php _e( 'Choose the public post types on which to display the ad.', 'advanced-ads' ); ?></p><?php
|
32 |
// backward compatibility
|
33 |
// TODO: remove in a later version
|
34 |
$_includes = ( ! empty($ad->conditions['posttypes']['include']) && is_string( $ad->conditions['posttypes']['include'] )) ? explode( ',', $ad->conditions['posttypes']['include'] ) : array();
|
83 |
}
|
84 |
|
85 |
?><h4><label class="advads-conditions-all"><input type="checkbox" name="advanced_ad[conditions][categoryids][all]" value="1" <?php checked( $_all, 1 ); ?>><?php
|
86 |
+
_e( 'Display for all <strong>categories, tags and taxonomies</strong>.', 'advanced-ads' ); ?></label></h4><?php
|
87 |
+
?><div class="advads-conditions-single advads-buttonset"><h5 class="header"><?php _e( 'Display here', 'advanced-ads' ); ?></h5><p class="description"><?php _e( 'Choose terms from public categories, tags and other taxonomies a post must belong to in order to have ads.', 'advanced-ads' ); ?></p>
|
88 |
<table><?php
|
89 |
self::_display_taxonomy_term_list( $_includes, 'include', 'advanced_ad[conditions][categoryids][include][]', 'categoryids' );
|
90 |
?></table><?php
|
101 |
$_excludes = array();
|
102 |
}
|
103 |
|
104 |
+
?><h5 class="header"><?php _e( 'Hide from here', 'advanced-ads' ); ?></h5><p class="description"><?php _e( 'Choose the terms from public categories, tags and other taxonomies a post must belong to hide the ad from it.', 'advanced-ads' ); ?></p>
|
105 |
<table><?php
|
106 |
self::_display_taxonomy_term_list( $_excludes, 'exclude', 'advanced_ad[conditions][categoryids][exclude][]', 'categoryids' );
|
107 |
?></table></div><?php
|
146 |
}
|
147 |
|
148 |
?></div><span class="advads-conditions-terms-show-search button" title="<?php
|
149 |
+
_ex( 'add more terms', 'display the terms search field on ad edit page', 'advanced-ads' );
|
150 |
+
?>">+</span><span class="description"><?php _e( 'add more terms', 'advanced-ads' );
|
151 |
?></span><br/><input type="text" class="advads-conditions-terms-search" data-tag-name="<?php echo $_tax->name;
|
152 |
?>" data-include-type="<?php echo $includetype; ?>" data-group="<?php echo $group; ?>" placeholder="<?php
|
153 |
+
_e( 'term name or id', 'advanced-ads' ); ?>"/><?php
|
154 |
else :
|
155 |
?><div class="advads-conditions-terms-buttons advads-buttonset"><?php
|
156 |
foreach ( $terms as $_term ) :
|
194 |
}
|
195 |
|
196 |
?><h4><label class="advads-conditions-all"><input type="checkbox" name="advanced_ad[conditions][categoryarchiveids][all]" value="1" <?php checked( $_all, 1 ); ?>><?php
|
197 |
+
_e( 'Display on all <strong>category archive pages</strong>.', 'advanced-ads' ); ?></label></h4><?php
|
198 |
$taxonomies = get_taxonomies( array('public' => true, 'publicly_queryable' => true), 'objects', 'or' );
|
199 |
?><div class="advads-conditions-single advads-buttonset"><table>
|
200 |
+
<p class="description"><?php _e( 'Choose the terms from public categories, tags and other taxonomies on which\'s archive page ads can appear', 'advanced-ads' ); ?></p>
|
201 |
<table><?php
|
202 |
self::_display_taxonomy_term_list( $_includes, 'include', 'advanced_ad[conditions][categoryarchiveids][include][]', 'categoryarchiveids' );
|
203 |
?></table><?php
|
214 |
$_excludes = array();
|
215 |
}
|
216 |
|
217 |
+
?><h5 class="header"><?php _e( 'Hide from here', 'advanced-ads' ); ?></h5><p class="description"><?php _e( 'Choose the terms from public categories, tags and other taxonomies on which\'s archive pages ads are hidden.', 'advanced-ads' ); ?></p>
|
218 |
<table><?php
|
219 |
self::_display_taxonomy_term_list( $_excludes, 'exclude', 'advanced_ad[conditions][categoryarchiveids][exclude][]', 'categoryarchiveids' );
|
220 |
?></table></div><?php
|
236 |
}
|
237 |
|
238 |
?><h4><label class="advads-conditions-all"><input type="checkbox" name="advanced_ad[conditions][postids][all]" value="1" <?php
|
239 |
+
checked( $_all, 1 ); ?>><?php _e( 'Display an all <strong>individual posts, pages</strong> and public post type pages', 'advanced-ads' ); ?></label></h4><?php
|
240 |
|
241 |
?><div class="advads-conditions-single">
|
242 |
+
<p class="description"><?php _e( 'Choose on which individual posts, pages and public post type pages you want to display or hide ads.', 'advanced-ads' ); ?></p><?php
|
243 |
|
244 |
// derrive method from previous setup
|
245 |
// set defaults
|
256 |
}
|
257 |
}
|
258 |
|
259 |
+
?><p><?php _e( 'What should happen with ads on the list of individual posts below?', 'advanced-ads' ); ?></p>
|
260 |
+
<label><input type="radio" name='advanced_ad[conditions][postids][method]' value='' <?php checked( '', $_method ); ?>><?php _e( 'ignore the list', 'advanced-ads' ); ?></label></li>
|
261 |
+
<label><input type="radio" name='advanced_ad[conditions][postids][method]' value='include' <?php checked( 'include', $_method ); ?>><?php _e( 'display the ad only there', 'advanced-ads' ); ?></label></li>
|
262 |
+
<label><input type="radio" name='advanced_ad[conditions][postids][method]' value='exclude' <?php checked( 'exclude', $_method ); ?>><?php _e( 'hide the ad here', 'advanced-ads' ); ?></label></li>
|
263 |
<?php
|
264 |
|
265 |
/**
|
267 |
* @todo remove on a later version, if no longer needed
|
268 |
*/
|
269 |
if ( ! empty($ad->conditions['postids']['include']) && ! empty($ad->conditions['postids']['exclude']) ){
|
270 |
+
?><div style="color: red;"><p><strong><?php _e( 'Update warning', 'advanced-ads' ); ?></strong></p>
|
271 |
+
<p><?php _e( 'Due to some conflicts before version 1.2.6, it is from now on only possible to choose either individual pages to include or exclude an ad, but not both with mixed settings. It seems you are still using mixed settings on this page. Please consider changing your setup for this ad.', 'advanced-ads' ); ?></p>
|
272 |
+
<p><?php _e( 'Your old values are:', 'advanced-ads' ); ?></p>
|
273 |
+
<p><?php _e( 'Post IDs the ad is displayed on:', 'advanced-ads' ); echo $ad->conditions['postids']['include']; ?></p>
|
274 |
+
<p><?php _e( 'Post IDs the ad is hidden from:', 'advanced-ads' ); echo $ad->conditions['postids']['exclude']; ?></p>
|
275 |
+
<p><?php _e( 'Below you find the pages the ad is displayed on. If this is ok, just save the ad. If not, please update your settings.', 'advanced-ads' ); ?></p>
|
276 |
|
277 |
</div><?php
|
278 |
}
|
315 |
echo '<li><a class="remove" href="#">remove</a><a href="'.get_permalink( $the_query->post->ID ).'">' . get_the_title( $the_query->post->ID ) . '</a><input type="hidden" name="advanced_ad[conditions][postids][ids][]" value="'.$the_query->post->ID.'"></li>';
|
316 |
}
|
317 |
}
|
318 |
+
?><li class="show-search"><a href="#"><?php _e( 'new', 'advanced-ads' ); ?></a>
|
319 |
<input type="text" style="display:none;" id="advads-display-conditions-individual-post" value="" placeholder="<?php
|
320 |
+
_e( 'type the title', 'advanced-ads' ); ?>"/>
|
321 |
<?php wp_nonce_field( 'internal-linking', '_ajax_linking_nonce', false ); ?>
|
322 |
</li>
|
323 |
</ul>
|
admin/includes/class-notices.php
CHANGED
@@ -356,7 +356,7 @@ class Advanced_Ads_Admin_Notices {
|
|
356 |
$user = wp_get_current_user();
|
357 |
|
358 |
if ( $user->user_email == '' ) {
|
359 |
-
return sprintf( __( 'You don’t seem to have an email address. Please use <a href="%s" target="_blank">this form</a> to sign up.',
|
360 |
}
|
361 |
|
362 |
$data = array(
|
@@ -374,12 +374,12 @@ class Advanced_Ads_Admin_Notices {
|
|
374 |
);
|
375 |
|
376 |
if ( is_wp_error( $result ) ) {
|
377 |
-
return __( 'How embarrassing. The email server seems to be down. Please try again later.',
|
378 |
} else {
|
379 |
// mark as subscribed and move notice from quere
|
380 |
$this->mark_as_subscribed();
|
381 |
$this->remove_from_queue( $notice );
|
382 |
-
return sprintf(__( 'Please check your email (%s) for the confirmation message. If you didn’t receive one or want to use another email address then please use <a href="%s" target="_blank">this form</a> to sign up.',
|
383 |
}
|
384 |
}
|
385 |
|
356 |
$user = wp_get_current_user();
|
357 |
|
358 |
if ( $user->user_email == '' ) {
|
359 |
+
return sprintf( __( 'You don’t seem to have an email address. Please use <a href="%s" target="_blank">this form</a> to sign up.', 'advanced-ads' ), 'http://eepurl.com/bk4z4P' );
|
360 |
}
|
361 |
|
362 |
$data = array(
|
374 |
);
|
375 |
|
376 |
if ( is_wp_error( $result ) ) {
|
377 |
+
return __( 'How embarrassing. The email server seems to be down. Please try again later.', 'advanced-ads' );
|
378 |
} else {
|
379 |
// mark as subscribed and move notice from quere
|
380 |
$this->mark_as_subscribed();
|
381 |
$this->remove_from_queue( $notice );
|
382 |
+
return sprintf(__( 'Please check your email (%s) for the confirmation message. If you didn’t receive one or want to use another email address then please use <a href="%s" target="_blank">this form</a> to sign up.', 'advanced-ads' ), $user->user_email, 'http://eepurl.com/bk4z4P' );
|
383 |
}
|
384 |
}
|
385 |
|
admin/includes/class-overview-widgets.php
CHANGED
@@ -42,25 +42,25 @@ class Advanced_Ads_Overview_Widgets_Callbacks {
|
|
42 |
// abort if not on the overview page
|
43 |
if ( ! isset($screen->id) || $screen->id !== 'toplevel_page_advanced-ads' ) { return; }
|
44 |
|
45 |
-
add_meta_box('advads_overview_news', __( 'Tips and Tutorials',
|
46 |
array('Advanced_Ads_Overview_Widgets_Callbacks', 'render_subscribe'), $screen->id, 'normal', 'high');
|
47 |
-
add_meta_box('advads_overview_addon_help', __( 'Setup and Optimization Help',
|
48 |
array('Advanced_Ads_Overview_Widgets_Callbacks', 'render_help'), $screen->id, 'normal', 'high');
|
49 |
-
add_meta_box('advads_overview_support', __( 'Manual and Support',
|
50 |
array('Advanced_Ads_Overview_Widgets_Callbacks', 'render_support'), $screen->id, 'normal', 'high');
|
51 |
|
52 |
// add widgets for pro add ons
|
53 |
-
add_meta_box('advads_overview_addon_pro', __( 'Advanced Ads Pro',
|
54 |
array('Advanced_Ads_Overview_Widgets_Callbacks', 'render_add_on_pro'), $screen->id, 'side', 'high');
|
55 |
-
add_meta_box('advads_overview_addon_tracking', __( 'Tracking and Stats',
|
56 |
array('Advanced_Ads_Overview_Widgets_Callbacks', 'render_add_on_tracking'), $screen->id, 'side', 'high');
|
57 |
-
add_meta_box('advads_overview_addon_responsive', __( 'Responsive and Mobile ads',
|
58 |
array('Advanced_Ads_Overview_Widgets_Callbacks', 'render_add_on_responsive'), $screen->id, 'side', 'high');
|
59 |
-
add_meta_box('advads_overview_addon_sticky', __( 'Sticky ads',
|
60 |
array('Advanced_Ads_Overview_Widgets_Callbacks', 'render_add_on_sticky'), $screen->id, 'side', 'high');
|
61 |
-
add_meta_box('advads_overview_addon_layer', __( 'PopUps and Layers',
|
62 |
array('Advanced_Ads_Overview_Widgets_Callbacks', 'render_add_on_layer'), $screen->id, 'side', 'high');
|
63 |
-
add_meta_box('advads_overview_addon_slider', __( 'Ad Slider',
|
64 |
array('Advanced_Ads_Overview_Widgets_Callbacks', 'render_add_on_slider'), $screen->id, 'side', 'high');
|
65 |
|
66 |
}
|
@@ -78,24 +78,24 @@ class Advanced_Ads_Overview_Widgets_Callbacks {
|
|
78 |
$_notice = 'nl_free_addons';
|
79 |
if ( ! isset($options['closed'][ $_notice ] ) && ! $is_subscribed ) {
|
80 |
?><div class="advads-admin-notice">
|
81 |
-
<p><?php _e( 'Get 2 <strong>free add-ons</strong> for joining the newsletter.',
|
82 |
-
<button type="button" class="button-primary advads-notices-button-subscribe" data-notice="<?php echo $_notice ?>"><?php _e('Join now',
|
83 |
</div><?php
|
84 |
}
|
85 |
|
86 |
$_notice = 'nl_adsense';
|
87 |
if ( ! isset($options['closed'][ $_notice ] ) ) {
|
88 |
?><div class="advads-admin-notice">
|
89 |
-
<p><?php _e( 'Learn more about how and <strong>how much you can earn with AdSense</strong> and Advanced Ads from the dedicated newsletter group.',
|
90 |
-
<button type="button" class="button-primary advads-notices-button-subscribe" data-notice="<?php echo $_notice ?>"><?php _e('Subscribe me now',
|
91 |
</div><?php
|
92 |
}
|
93 |
|
94 |
$_notice = 'nl_first_steps';
|
95 |
if ( ! isset($options['closed'][ $_notice ] ) && ! $is_subscribed ) {
|
96 |
?><div class="advads-admin-notice">
|
97 |
-
<p><?php _e( 'Get the first steps and more tutorials to your inbox.',
|
98 |
-
<button type="button" class="button-primary advads-notices-button-subscribe" data-notice="<?php echo $_notice ?>"><?php _e('Send it now',
|
99 |
</div><?php
|
100 |
}
|
101 |
|
@@ -118,22 +118,22 @@ class Advanced_Ads_Overview_Widgets_Callbacks {
|
|
118 |
|
119 |
if ( count( $recent_ads ) == 0 ) :
|
120 |
$next_steps[] = '<p><a class="button button-primary" href="' . admin_url( 'post-new.php?post_type=' . Advanced_Ads::POST_TYPE_SLUG ) .
|
121 |
-
'">' . __( 'Create your first ad',
|
122 |
endif;
|
123 |
if ( count( $groups ) == 0 ) :
|
124 |
-
$next_steps[] = '<p class="description">' . __( 'Ad Groups contain ads and are currently used to rotate multiple ads on a single spot.',
|
125 |
'<p><a class="button button-primary" href="' . admin_url( 'admin.php?action=edit&page=advanced-ads-groups' ) .
|
126 |
-
'">' . __( 'Create your first group',
|
127 |
endif;
|
128 |
if ( count( $placements ) == 0 ) :
|
129 |
-
$next_steps[] = '<p class="description">' . __( 'Ad Placements are the best way to manage where to display ads and groups.',
|
130 |
. '<p><a class="button button-primary" href="' . admin_url( 'admin.php?action=edit&page=advanced-ads-placements' ) .
|
131 |
-
'">' . __( 'Create your first placement',
|
132 |
endif;
|
133 |
|
134 |
// display all options
|
135 |
if ( count( $next_steps ) > 0 ){
|
136 |
-
?><br/><h4><?php _e( 'Next steps',
|
137 |
foreach ( $next_steps as $_step ){
|
138 |
echo $_step;
|
139 |
}
|
@@ -145,11 +145,11 @@ foreach ( $next_steps as $_step ){
|
|
145 |
*/
|
146 |
public static function render_support(){
|
147 |
?><ul>
|
148 |
-
<li><?php printf( __( '<a href="%s" target="_blank">Plugin Homepage</a>',
|
149 |
-
<?php printf( __( '<a href="%s" target="_blank">Manual</a>',
|
150 |
-
<li><?php printf( __( 'Ask other users in the <a href="%s" target="_blank">wordpress.org forum</a>',
|
151 |
-
<li><?php printf( __( 'Vote for a <a href="%s" target="_blank">feature</a>',
|
152 |
-
<li><?php printf( __( 'Thank the developer with a ★★★★★ review on <a href="%s" target="_blank">wordpress.org</a>',
|
153 |
</ul><?php
|
154 |
}
|
155 |
|
@@ -158,9 +158,9 @@ foreach ( $next_steps as $_step ){
|
|
158 |
*/
|
159 |
public static function render_help(){
|
160 |
|
161 |
-
?><p><?php _e( 'Need help to set up and optimize your ads? Need custom coding on your site? Ask me for a quote.',
|
162 |
-
<p><a class="button button-primary" href="mailto:support@wpadvancedads.com?subject=<?php printf( __( 'Help with ads on %s',
|
163 |
-
_e( 'Get an offer',
|
164 |
}
|
165 |
|
166 |
/**
|
@@ -168,12 +168,12 @@ foreach ( $next_steps as $_step ){
|
|
168 |
*/
|
169 |
public static function render_add_on_pro(){
|
170 |
|
171 |
-
?><p><?php _e( 'Ad management for advanced websites.',
|
172 |
-
<li><?php _e( 'Cache-busting',
|
173 |
-
<li><?php _e( 'Advanced visitor conditions',
|
174 |
-
<li><?php _e( 'Flash ads with fallback',
|
175 |
</ul><p><a class="button button-primary" href="<?php echo ADVADS_URL; ?>add-ons/advanced-ads-pro/" target="_blank"><?php
|
176 |
-
_e( 'Get Pro',
|
177 |
}
|
178 |
|
179 |
/**
|
@@ -181,13 +181,13 @@ foreach ( $next_steps as $_step ){
|
|
181 |
*/
|
182 |
public static function render_add_on_tracking(){
|
183 |
|
184 |
-
?><p><?php _e( 'Track the impressions of and clicks on your ads.',
|
185 |
-
<li><?php _e( '2 methods to count impressions',
|
186 |
-
<li><?php _e( 'beautiful stats for all or single ads',
|
187 |
-
<li><?php _e( 'get stats for predefined and custom persiods',
|
188 |
-
<li><?php _e( 'group stats by day, week or month',
|
189 |
</ul><p><a class="button button-primary" href="<?php echo ADVADS_URL; ?>add-ons/tracking/" target="_blank"><?php
|
190 |
-
_e( 'Get the Tracking add-on',
|
191 |
}
|
192 |
|
193 |
/**
|
@@ -195,12 +195,12 @@ foreach ( $next_steps as $_step ){
|
|
195 |
*/
|
196 |
public static function render_add_on_responsive(){
|
197 |
|
198 |
-
?><p><?php _e( 'Display ads based on the size of your visitor’s browser or device.',
|
199 |
-
<li><?php _e( 'set a range (from … to …) pixels for the browser size',
|
200 |
-
<li><?php _e( 'set custom sizes for AdSense responsive ads',
|
201 |
-
<li><?php _e( 'list all ads by their responsive settings',
|
202 |
</ul><p><a class="button button-primary" href="<?php echo ADVADS_URL; ?>add-ons/responsive-ads/" target="_blank"><?php
|
203 |
-
_e( 'Get the Responsive add-on',
|
204 |
}
|
205 |
|
206 |
/**
|
@@ -208,11 +208,11 @@ foreach ( $next_steps as $_step ){
|
|
208 |
*/
|
209 |
public static function render_add_on_sticky(){
|
210 |
|
211 |
-
?><p><?php _e( 'Fix ads to the browser while users are scrolling and create best performing anchor ads.',
|
212 |
-
<li><?php _e( 'position ads that don’t scroll with the screen',
|
213 |
-
<li><?php _e( 'build anchor ads not only on mobile devices',
|
214 |
</ul><p><a class="button button-primary" href="<?php echo ADVADS_URL; ?>add-ons/sticky-ads/" target="_blank"><?php
|
215 |
-
_e( 'Get the Sticky add-on',
|
216 |
}
|
217 |
|
218 |
/**
|
@@ -220,12 +220,12 @@ foreach ( $next_steps as $_step ){
|
|
220 |
*/
|
221 |
public static function render_add_on_layer(){
|
222 |
|
223 |
-
?><p><?php _e( 'Display content and ads in layers and popups on custom events.',
|
224 |
-
<li><?php _e( 'display a popup after a user interaction like scrolling',
|
225 |
-
<li><?php _e( 'optional backgroup overlay',
|
226 |
-
<li><?php _e( 'allow users to close the popup',
|
227 |
</ul><p><a class="button button-primary" href="<?php echo ADVADS_URL; ?>add-ons/popup-and-layer-ads/" target="_blank"><?php
|
228 |
-
_e( 'Get the PopUp and Layer add-on',
|
229 |
}
|
230 |
|
231 |
/**
|
@@ -233,9 +233,9 @@ foreach ( $next_steps as $_step ){
|
|
233 |
*/
|
234 |
public static function render_add_on_slider(){
|
235 |
|
236 |
-
?><p><?php _e( 'Create a beautiful and simple slider from your ads.',
|
237 |
<p><a class="button button-primary" href="<?php echo ADVADS_URL; ?>add-ons/slider/" target="_blank"><?php
|
238 |
-
_e( 'Get the Slider add-on',
|
239 |
}
|
240 |
|
241 |
}
|
42 |
// abort if not on the overview page
|
43 |
if ( ! isset($screen->id) || $screen->id !== 'toplevel_page_advanced-ads' ) { return; }
|
44 |
|
45 |
+
add_meta_box('advads_overview_news', __( 'Tips and Tutorials', 'advanced-ads' ),
|
46 |
array('Advanced_Ads_Overview_Widgets_Callbacks', 'render_subscribe'), $screen->id, 'normal', 'high');
|
47 |
+
add_meta_box('advads_overview_addon_help', __( 'Setup and Optimization Help', 'advanced-ads' ),
|
48 |
array('Advanced_Ads_Overview_Widgets_Callbacks', 'render_help'), $screen->id, 'normal', 'high');
|
49 |
+
add_meta_box('advads_overview_support', __( 'Manual and Support', 'advanced-ads' ),
|
50 |
array('Advanced_Ads_Overview_Widgets_Callbacks', 'render_support'), $screen->id, 'normal', 'high');
|
51 |
|
52 |
// add widgets for pro add ons
|
53 |
+
add_meta_box('advads_overview_addon_pro', __( 'Advanced Ads Pro', 'advanced-ads' ),
|
54 |
array('Advanced_Ads_Overview_Widgets_Callbacks', 'render_add_on_pro'), $screen->id, 'side', 'high');
|
55 |
+
add_meta_box('advads_overview_addon_tracking', __( 'Tracking and Stats', 'advanced-ads' ),
|
56 |
array('Advanced_Ads_Overview_Widgets_Callbacks', 'render_add_on_tracking'), $screen->id, 'side', 'high');
|
57 |
+
add_meta_box('advads_overview_addon_responsive', __( 'Responsive and Mobile ads', 'advanced-ads' ),
|
58 |
array('Advanced_Ads_Overview_Widgets_Callbacks', 'render_add_on_responsive'), $screen->id, 'side', 'high');
|
59 |
+
add_meta_box('advads_overview_addon_sticky', __( 'Sticky ads', 'advanced-ads' ),
|
60 |
array('Advanced_Ads_Overview_Widgets_Callbacks', 'render_add_on_sticky'), $screen->id, 'side', 'high');
|
61 |
+
add_meta_box('advads_overview_addon_layer', __( 'PopUps and Layers', 'advanced-ads' ),
|
62 |
array('Advanced_Ads_Overview_Widgets_Callbacks', 'render_add_on_layer'), $screen->id, 'side', 'high');
|
63 |
+
add_meta_box('advads_overview_addon_slider', __( 'Ad Slider', 'advanced-ads' ),
|
64 |
array('Advanced_Ads_Overview_Widgets_Callbacks', 'render_add_on_slider'), $screen->id, 'side', 'high');
|
65 |
|
66 |
}
|
78 |
$_notice = 'nl_free_addons';
|
79 |
if ( ! isset($options['closed'][ $_notice ] ) && ! $is_subscribed ) {
|
80 |
?><div class="advads-admin-notice">
|
81 |
+
<p><?php _e( 'Get 2 <strong>free add-ons</strong> for joining the newsletter.', 'advanced-ads' ); ?></p>
|
82 |
+
<button type="button" class="button-primary advads-notices-button-subscribe" data-notice="<?php echo $_notice ?>"><?php _e('Join now', 'advanced-ads'); ?></button>
|
83 |
</div><?php
|
84 |
}
|
85 |
|
86 |
$_notice = 'nl_adsense';
|
87 |
if ( ! isset($options['closed'][ $_notice ] ) ) {
|
88 |
?><div class="advads-admin-notice">
|
89 |
+
<p><?php _e( 'Learn more about how and <strong>how much you can earn with AdSense</strong> and Advanced Ads from the dedicated newsletter group.', 'advanced-ads' ); ?></p>
|
90 |
+
<button type="button" class="button-primary advads-notices-button-subscribe" data-notice="<?php echo $_notice ?>"><?php _e('Subscribe me now', 'advanced-ads'); ?></button>
|
91 |
</div><?php
|
92 |
}
|
93 |
|
94 |
$_notice = 'nl_first_steps';
|
95 |
if ( ! isset($options['closed'][ $_notice ] ) && ! $is_subscribed ) {
|
96 |
?><div class="advads-admin-notice">
|
97 |
+
<p><?php _e( 'Get the first steps and more tutorials to your inbox.', 'advanced-ads' ); ?></p>
|
98 |
+
<button type="button" class="button-primary advads-notices-button-subscribe" data-notice="<?php echo $_notice ?>"><?php _e('Send it now', 'advanced-ads'); ?></button>
|
99 |
</div><?php
|
100 |
}
|
101 |
|
118 |
|
119 |
if ( count( $recent_ads ) == 0 ) :
|
120 |
$next_steps[] = '<p><a class="button button-primary" href="' . admin_url( 'post-new.php?post_type=' . Advanced_Ads::POST_TYPE_SLUG ) .
|
121 |
+
'">' . __( 'Create your first ad', 'advanced-ads' ) . '</a></p>';
|
122 |
endif;
|
123 |
if ( count( $groups ) == 0 ) :
|
124 |
+
$next_steps[] = '<p class="description">' . __( 'Ad Groups contain ads and are currently used to rotate multiple ads on a single spot.', 'advanced-ads' ) . '</p>' .
|
125 |
'<p><a class="button button-primary" href="' . admin_url( 'admin.php?action=edit&page=advanced-ads-groups' ) .
|
126 |
+
'">' . __( 'Create your first group', 'advanced-ads' ) . '</a></p>';
|
127 |
endif;
|
128 |
if ( count( $placements ) == 0 ) :
|
129 |
+
$next_steps[] = '<p class="description">' . __( 'Ad Placements are the best way to manage where to display ads and groups.', 'advanced-ads' ) . '</p>'
|
130 |
. '<p><a class="button button-primary" href="' . admin_url( 'admin.php?action=edit&page=advanced-ads-placements' ) .
|
131 |
+
'">' . __( 'Create your first placement', 'advanced-ads' ) . '</a></p>';
|
132 |
endif;
|
133 |
|
134 |
// display all options
|
135 |
if ( count( $next_steps ) > 0 ){
|
136 |
+
?><br/><h4><?php _e( 'Next steps', 'advanced-ads' ); ?></h4><?php
|
137 |
foreach ( $next_steps as $_step ){
|
138 |
echo $_step;
|
139 |
}
|
145 |
*/
|
146 |
public static function render_support(){
|
147 |
?><ul>
|
148 |
+
<li><?php printf( __( '<a href="%s" target="_blank">Plugin Homepage</a>', 'advanced-ads' ), ADVADS_URL . 'advancedads/' ); ?> –
|
149 |
+
<?php printf( __( '<a href="%s" target="_blank">Manual</a>', 'advanced-ads' ), ADVADS_URL . 'manual/' ); ?></li>
|
150 |
+
<li><?php printf( __( 'Ask other users in the <a href="%s" target="_blank">wordpress.org forum</a>', 'advanced-ads' ), 'http://wordpress.org/plugins/advanced-ads/' ); ?></li>
|
151 |
+
<li><?php printf( __( 'Vote for a <a href="%s" target="_blank">feature</a>', 'advanced-ads' ), ADVADS_URL . 'feature-requests/' ); ?></li>
|
152 |
+
<li><?php printf( __( 'Thank the developer with a ★★★★★ review on <a href="%s" target="_blank">wordpress.org</a>', 'advanced-ads' ), 'https://wordpress.org/support/view/plugin-reviews/advanced-ads' ); ?></li>
|
153 |
</ul><?php
|
154 |
}
|
155 |
|
158 |
*/
|
159 |
public static function render_help(){
|
160 |
|
161 |
+
?><p><?php _e( 'Need help to set up and optimize your ads? Need custom coding on your site? Ask me for a quote.', 'advanced-ads' ); ?></p>
|
162 |
+
<p><a class="button button-primary" href="mailto:support@wpadvancedads.com?subject=<?php printf( __( 'Help with ads on %s', 'advanced-ads' ), home_url()); ?>"><?php
|
163 |
+
_e( 'Get an offer', 'advanced-ads' ); ?></a></p><?php
|
164 |
}
|
165 |
|
166 |
/**
|
168 |
*/
|
169 |
public static function render_add_on_pro(){
|
170 |
|
171 |
+
?><p><?php _e( 'Ad management for advanced websites.', 'advanced-ads' ); ?></p><ul class='list'>
|
172 |
+
<li><?php _e( 'Cache-busting', 'advanced-ads' ); ?></li>
|
173 |
+
<li><?php _e( 'Advanced visitor conditions', 'advanced-ads' ); ?></li>
|
174 |
+
<li><?php _e( 'Flash ads with fallback', 'advanced-ads' ); ?></li>
|
175 |
</ul><p><a class="button button-primary" href="<?php echo ADVADS_URL; ?>add-ons/advanced-ads-pro/" target="_blank"><?php
|
176 |
+
_e( 'Get Pro', 'advanced-ads' ); ?></a></p><?php
|
177 |
}
|
178 |
|
179 |
/**
|
181 |
*/
|
182 |
public static function render_add_on_tracking(){
|
183 |
|
184 |
+
?><p><?php _e( 'Track the impressions of and clicks on your ads.', 'advanced-ads' ); ?></p><ul class='list'>
|
185 |
+
<li><?php _e( '2 methods to count impressions', 'advanced-ads' ); ?></li>
|
186 |
+
<li><?php _e( 'beautiful stats for all or single ads', 'advanced-ads' ); ?></li>
|
187 |
+
<li><?php _e( 'get stats for predefined and custom persiods', 'advanced-ads' ); ?></li>
|
188 |
+
<li><?php _e( 'group stats by day, week or month', 'advanced-ads' ); ?></li>
|
189 |
</ul><p><a class="button button-primary" href="<?php echo ADVADS_URL; ?>add-ons/tracking/" target="_blank"><?php
|
190 |
+
_e( 'Get the Tracking add-on', 'advanced-ads' ); ?></a></p><?php
|
191 |
}
|
192 |
|
193 |
/**
|
195 |
*/
|
196 |
public static function render_add_on_responsive(){
|
197 |
|
198 |
+
?><p><?php _e( 'Display ads based on the size of your visitor’s browser or device.', 'advanced-ads' ); ?></p><ul class='list'>
|
199 |
+
<li><?php _e( 'set a range (from … to …) pixels for the browser size', 'advanced-ads' ); ?></li>
|
200 |
+
<li><?php _e( 'set custom sizes for AdSense responsive ads', 'advanced-ads' ); ?></li>
|
201 |
+
<li><?php _e( 'list all ads by their responsive settings', 'advanced-ads' ); ?></li>
|
202 |
</ul><p><a class="button button-primary" href="<?php echo ADVADS_URL; ?>add-ons/responsive-ads/" target="_blank"><?php
|
203 |
+
_e( 'Get the Responsive add-on', 'advanced-ads' ); ?></a></p><?php
|
204 |
}
|
205 |
|
206 |
/**
|
208 |
*/
|
209 |
public static function render_add_on_sticky(){
|
210 |
|
211 |
+
?><p><?php _e( 'Fix ads to the browser while users are scrolling and create best performing anchor ads.', 'advanced-ads' ); ?></p><ul class='list'>
|
212 |
+
<li><?php _e( 'position ads that don’t scroll with the screen', 'advanced-ads' ); ?></li>
|
213 |
+
<li><?php _e( 'build anchor ads not only on mobile devices', 'advanced-ads' ); ?></li>
|
214 |
</ul><p><a class="button button-primary" href="<?php echo ADVADS_URL; ?>add-ons/sticky-ads/" target="_blank"><?php
|
215 |
+
_e( 'Get the Sticky add-on', 'advanced-ads' ); ?></a></p><?php
|
216 |
}
|
217 |
|
218 |
/**
|
220 |
*/
|
221 |
public static function render_add_on_layer(){
|
222 |
|
223 |
+
?><p><?php _e( 'Display content and ads in layers and popups on custom events.', 'advanced-ads' ); ?></p><ul class='list'>
|
224 |
+
<li><?php _e( 'display a popup after a user interaction like scrolling', 'advanced-ads' ); ?></li>
|
225 |
+
<li><?php _e( 'optional backgroup overlay', 'advanced-ads' ); ?></li>
|
226 |
+
<li><?php _e( 'allow users to close the popup', 'advanced-ads' ); ?></li>
|
227 |
</ul><p><a class="button button-primary" href="<?php echo ADVADS_URL; ?>add-ons/popup-and-layer-ads/" target="_blank"><?php
|
228 |
+
_e( 'Get the PopUp and Layer add-on', 'advanced-ads' ); ?></a></p><?php
|
229 |
}
|
230 |
|
231 |
/**
|
233 |
*/
|
234 |
public static function render_add_on_slider(){
|
235 |
|
236 |
+
?><p><?php _e( 'Create a beautiful and simple slider from your ads.', 'advanced-ads' ); ?></p>
|
237 |
<p><a class="button button-primary" href="<?php echo ADVADS_URL; ?>add-ons/slider/" target="_blank"><?php
|
238 |
+
_e( 'Get the Slider add-on', 'advanced-ads' ); ?></a></p><?php
|
239 |
}
|
240 |
|
241 |
}
|
admin/includes/notices.php
CHANGED
@@ -11,25 +11,25 @@ $advanced_ads_admin_notices = array(
|
|
11 |
// email tutorial
|
12 |
'nl_intro' => array(
|
13 |
'type' => 'info',
|
14 |
-
'text' => sprintf(__( 'Advanced Ads successfully installed. Take a look at the <a href="%s">First Steps</a>.',
|
15 |
),
|
16 |
// email tutorial
|
17 |
'nl_first_steps' => array(
|
18 |
'type' => 'subscribe',
|
19 |
-
'text' => __( 'Thank you for activating <strong>Advanced Ads</strong>. Would you like to receive the first steps via email?',
|
20 |
-
'confirm_text' => __( 'Yes, send it',
|
21 |
),
|
22 |
// free add-ons
|
23 |
'nl_free_addons' => array(
|
24 |
'type' => 'subscribe',
|
25 |
-
'text' => __( 'Thank you for using <strong>Advanced Ads</strong>. Stay informed and receive <strong>2 free add-ons</strong> for joining the newsletter.',
|
26 |
-
'confirm_text' => __( 'Add me now',
|
27 |
),
|
28 |
// adsense newsletter group
|
29 |
'nl_adsense' => array(
|
30 |
'type' => 'subscribe',
|
31 |
-
'text' => __( 'Learn more about how and <strong>how much you can earn with AdSense</strong> and Advanced Ads from my dedicated newsletter.',
|
32 |
-
'confirm_text' => __( 'Subscribe me now',
|
33 |
),
|
34 |
// if users updated from a previous version to 1.5.4
|
35 |
'1.5.4' => array(
|
@@ -49,16 +49,16 @@ $advanced_ads_admin_notices = array(
|
|
49 |
// missing license codes
|
50 |
'license_invalid' => array(
|
51 |
'type' => 'plugin_error',
|
52 |
-
'text' => sprintf( __( 'One or more license keys for <strong>Advanced Ads add-ons are invalid or missing</strong>. Please add valid license keys <a href="%s">here</a>.',
|
53 |
),
|
54 |
// license expires
|
55 |
'license_expires' => array(
|
56 |
'type' => 'plugin_error',
|
57 |
-
'text' => sprintf( __( 'One or more licenses for your <strong>Advanced Ads add-ons are expiring soon</strong>. Don’t risk to lose support and updates and renew your license before it expires with a significant discount on <a href="%s" target="_blank">the add-on page</a>.',
|
58 |
),
|
59 |
// license expired
|
60 |
'license_expired' => array(
|
61 |
'type' => 'plugin_error',
|
62 |
-
'text' => sprintf( __( '<strong>Advanced Ads</strong> license(s) expired. Support and updates are disabled. Please visit <a href="%s"> the license page</a> for more information.',
|
63 |
),
|
64 |
);
|
11 |
// email tutorial
|
12 |
'nl_intro' => array(
|
13 |
'type' => 'info',
|
14 |
+
'text' => sprintf(__( 'Advanced Ads successfully installed. Take a look at the <a href="%s">First Steps</a>.', 'advanced-ads' ), admin_url( 'admin.php?page=advanced-ads-intro' )),
|
15 |
),
|
16 |
// email tutorial
|
17 |
'nl_first_steps' => array(
|
18 |
'type' => 'subscribe',
|
19 |
+
'text' => __( 'Thank you for activating <strong>Advanced Ads</strong>. Would you like to receive the first steps via email?', 'advanced-ads' ),
|
20 |
+
'confirm_text' => __( 'Yes, send it', 'advanced-ads' )
|
21 |
),
|
22 |
// free add-ons
|
23 |
'nl_free_addons' => array(
|
24 |
'type' => 'subscribe',
|
25 |
+
'text' => __( 'Thank you for using <strong>Advanced Ads</strong>. Stay informed and receive <strong>2 free add-ons</strong> for joining the newsletter.', 'advanced-ads' ),
|
26 |
+
'confirm_text' => __( 'Add me now', 'advanced-ads' )
|
27 |
),
|
28 |
// adsense newsletter group
|
29 |
'nl_adsense' => array(
|
30 |
'type' => 'subscribe',
|
31 |
+
'text' => __( 'Learn more about how and <strong>how much you can earn with AdSense</strong> and Advanced Ads from my dedicated newsletter.', 'advanced-ads' ),
|
32 |
+
'confirm_text' => __( 'Subscribe me now', 'advanced-ads' )
|
33 |
),
|
34 |
// if users updated from a previous version to 1.5.4
|
35 |
'1.5.4' => array(
|
49 |
// missing license codes
|
50 |
'license_invalid' => array(
|
51 |
'type' => 'plugin_error',
|
52 |
+
'text' => sprintf( __( 'One or more license keys for <strong>Advanced Ads add-ons are invalid or missing</strong>. Please add valid license keys <a href="%s">here</a>.', 'advanced-ads' ), admin_url( 'admin.php?page=advanced-ads-settings#top#licenses' ) )
|
53 |
),
|
54 |
// license expires
|
55 |
'license_expires' => array(
|
56 |
'type' => 'plugin_error',
|
57 |
+
'text' => sprintf( __( 'One or more licenses for your <strong>Advanced Ads add-ons are expiring soon</strong>. Don’t risk to lose support and updates and renew your license before it expires with a significant discount on <a href="%s" target="_blank">the add-on page</a>.', 'advanced-ads' ), 'https://wpadvancedads.com/add-ons/' ),
|
58 |
),
|
59 |
// license expired
|
60 |
'license_expired' => array(
|
61 |
'type' => 'plugin_error',
|
62 |
+
'text' => sprintf( __( '<strong>Advanced Ads</strong> license(s) expired. Support and updates are disabled. Please visit <a href="%s"> the license page</a> for more information.', 'advanced-ads' ), admin_url( 'admin.php?page=advanced-ads-settings#top#licenses' ) ),
|
63 |
),
|
64 |
);
|
admin/views/ad-display-metabox.php
CHANGED
@@ -5,16 +5,16 @@ $types = Advanced_Ads::get_instance()->ad_types;
|
|
5 |
$jquery_ui_buttons = array();
|
6 |
$conditions_enabled = isset( $ad->conditions['enabled'] ) && $ad->conditions['enabled'];
|
7 |
?>
|
8 |
-
<p class="description"><?php _e( 'Choose where to display the ad and where to hide it.',
|
9 |
<div id="advanced-ad-conditions-enable">
|
10 |
-
<input id="advads-condition-display-disabled" type="radio" name="advanced_ad[conditions][enabled]" value="0" <?php checked( ! $conditions_enabled ); ?>/><label for="advads-condition-display-disabled"><?php _e( 'Display ad everywhere',
|
11 |
-
<input id="advads-condition-display-enabled" type="radio" name="advanced_ad[conditions][enabled]" value="1" <?php checked( $conditions_enabled ); ?>/><label for="advads-condition-display-enabled"><?php _e( 'Set display conditions',
|
12 |
</div>
|
13 |
<div id="advanced-ad-conditions">
|
14 |
<ul id="advads-how-it-works">
|
15 |
-
<li><?php _e( 'If you want to display the ad everywhere, don\'t do anything here. ',
|
16 |
-
<li><?php _e( 'The fewer conditions you enter, the better the performance will be.',
|
17 |
-
<li><?php printf( __( 'Learn more about display conditions from the <a href="%s" target="_blank">manual</a>.',
|
18 |
</ul>
|
19 |
<?php
|
20 |
// -TODO use model
|
@@ -31,7 +31,7 @@ $conditions_enabled = isset( $ad->conditions['enabled'] ) && $ad->conditions['en
|
|
31 |
}
|
32 |
?></div><?php
|
33 |
endforeach;
|
34 |
-
?><h4><?php _e( 'Other conditions',
|
35 |
<table>
|
36 |
<tbody><?php
|
37 |
foreach ( $advanced_ads_ad_conditions as $_key => $_condition ) :
|
@@ -49,11 +49,11 @@ $conditions_enabled = isset( $ad->conditions['enabled'] ) && $ad->conditions['en
|
|
49 |
<input type="radio" name="advanced_ad[conditions][<?php
|
50 |
echo $_key; ?>]" id="advanced-ads-display-condition-<?php
|
51 |
echo $_key; ?>-1" value="1" <?php if ( ! isset($ad->conditions[$_key]) || $ad->conditions[$_key] ) { checked( 1 ); } ?>/>
|
52 |
-
<label for="advanced-ads-display-condition-<?php echo $_key; ?>-1"><?php _ex( 'on', 'button label',
|
53 |
<input type="radio" name="advanced_ad[conditions][<?php
|
54 |
echo $_key; ?>]" id="advanced-ads-display-condition-<?php
|
55 |
echo $_key; ?>-0" value="0" <?php if ( isset($ad->conditions[$_key]) ) { checked( $ad->conditions[$_key], 0 ); } ?>/>
|
56 |
-
<label for="advanced-ads-display-condition-<?php echo $_key; ?>-0"><?php _ex( 'off', 'button label',
|
57 |
</td>
|
58 |
<td>
|
59 |
<?php if ( ! empty($_condition['description']) ) : ?>
|
@@ -68,8 +68,8 @@ $conditions_enabled = isset( $ad->conditions['enabled'] ) && $ad->conditions['en
|
|
68 |
<?php
|
69 |
if ( WP_DEBUG ) : ?>
|
70 |
<fieldset class="advads-debug-output advads-debug-output-conditions"><legend onclick="advads_toggle('.advads-debug-output-conditions .inner')"><?php
|
71 |
-
_e( 'show debug output',
|
72 |
-
<p class="description"><?php _e( 'Values saved for this ad in the database (post metas)',
|
73 |
echo '<pre>';
|
74 |
print_r( $ad->conditions );
|
75 |
echo '</pre>';
|
5 |
$jquery_ui_buttons = array();
|
6 |
$conditions_enabled = isset( $ad->conditions['enabled'] ) && $ad->conditions['enabled'];
|
7 |
?>
|
8 |
+
<p class="description"><?php _e( 'Choose where to display the ad and where to hide it.', 'advanced-ads' ); ?></p>
|
9 |
<div id="advanced-ad-conditions-enable">
|
10 |
+
<input id="advads-condition-display-disabled" type="radio" name="advanced_ad[conditions][enabled]" value="0" <?php checked( ! $conditions_enabled ); ?>/><label for="advads-condition-display-disabled"><?php _e( 'Display ad everywhere', 'advanced-ads' ); ?></label>
|
11 |
+
<input id="advads-condition-display-enabled" type="radio" name="advanced_ad[conditions][enabled]" value="1" <?php checked( $conditions_enabled ); ?>/><label for="advads-condition-display-enabled"><?php _e( 'Set display conditions', 'advanced-ads' ); ?></label>
|
12 |
</div>
|
13 |
<div id="advanced-ad-conditions">
|
14 |
<ul id="advads-how-it-works">
|
15 |
+
<li><?php _e( 'If you want to display the ad everywhere, don\'t do anything here. ', 'advanced-ads' ); ?></li>
|
16 |
+
<li><?php _e( 'The fewer conditions you enter, the better the performance will be.', 'advanced-ads' ); ?></li>
|
17 |
+
<li><?php printf( __( 'Learn more about display conditions from the <a href="%s" target="_blank">manual</a>.', 'advanced-ads' ), ADVADS_URL . 'manual/display-conditions/' ); ?></li>
|
18 |
</ul>
|
19 |
<?php
|
20 |
// -TODO use model
|
31 |
}
|
32 |
?></div><?php
|
33 |
endforeach;
|
34 |
+
?><h4><?php _e( 'Other conditions', 'advanced-ads' ); ?></h4><br/>
|
35 |
<table>
|
36 |
<tbody><?php
|
37 |
foreach ( $advanced_ads_ad_conditions as $_key => $_condition ) :
|
49 |
<input type="radio" name="advanced_ad[conditions][<?php
|
50 |
echo $_key; ?>]" id="advanced-ads-display-condition-<?php
|
51 |
echo $_key; ?>-1" value="1" <?php if ( ! isset($ad->conditions[$_key]) || $ad->conditions[$_key] ) { checked( 1 ); } ?>/>
|
52 |
+
<label for="advanced-ads-display-condition-<?php echo $_key; ?>-1"><?php _ex( 'on', 'button label', 'advanced-ads' ); ?></label>
|
53 |
<input type="radio" name="advanced_ad[conditions][<?php
|
54 |
echo $_key; ?>]" id="advanced-ads-display-condition-<?php
|
55 |
echo $_key; ?>-0" value="0" <?php if ( isset($ad->conditions[$_key]) ) { checked( $ad->conditions[$_key], 0 ); } ?>/>
|
56 |
+
<label for="advanced-ads-display-condition-<?php echo $_key; ?>-0"><?php _ex( 'off', 'button label', 'advanced-ads' ); ?></label>
|
57 |
</td>
|
58 |
<td>
|
59 |
<?php if ( ! empty($_condition['description']) ) : ?>
|
68 |
<?php
|
69 |
if ( WP_DEBUG ) : ?>
|
70 |
<fieldset class="advads-debug-output advads-debug-output-conditions"><legend onclick="advads_toggle('.advads-debug-output-conditions .inner')"><?php
|
71 |
+
_e( 'show debug output', 'advanced-ads' ); ?></legend><div class="inner" style="display:none;">
|
72 |
+
<p class="description"><?php _e( 'Values saved for this ad in the database (post metas)', 'advanced-ads' ); ?></p><?php
|
73 |
echo '<pre>';
|
74 |
print_r( $ad->conditions );
|
75 |
echo '</pre>';
|
admin/views/ad-group-edit.php
CHANGED
@@ -37,7 +37,7 @@ wp_nonce_field( 'update-group_' . $group_id ); ?>
|
|
37 |
<tr class="form-field">
|
38 |
<th scope="row" valign="top"><label for="slug"><?php _ex( 'Slug', 'Taxonomy Slug' ); ?></label></th>
|
39 |
<td><input name="slug" id="slug" type="text" value="<?php if ( isset($tag->slug) ) { echo esc_attr( apply_filters( 'editable_slug', $tag->slug ) ); } ?>" size="40" />
|
40 |
-
<p class="description"><?php _e( 'An id-like string with only letters in lower case, numbers, and hyphens.',
|
41 |
</tr>
|
42 |
<?php }
|
43 |
$text = (isset($tag->description)) ? $tag->description : ''; ?>
|
@@ -54,9 +54,9 @@ wp_nonce_field( 'update-group_' . $group_id ); ?>
|
|
54 |
do_action( $taxonomy . '_edit_form', $tag, $taxonomy );
|
55 |
|
56 |
if ( $group_id == 0 ){
|
57 |
-
submit_button( __( 'Create new Ad Group',
|
58 |
} else {
|
59 |
-
submit_button( __( 'Update',
|
60 |
}
|
61 |
?>
|
62 |
</form>
|
37 |
<tr class="form-field">
|
38 |
<th scope="row" valign="top"><label for="slug"><?php _ex( 'Slug', 'Taxonomy Slug' ); ?></label></th>
|
39 |
<td><input name="slug" id="slug" type="text" value="<?php if ( isset($tag->slug) ) { echo esc_attr( apply_filters( 'editable_slug', $tag->slug ) ); } ?>" size="40" />
|
40 |
+
<p class="description"><?php _e( 'An id-like string with only letters in lower case, numbers, and hyphens.', 'advanced-ads' ); ?></p></td>
|
41 |
</tr>
|
42 |
<?php }
|
43 |
$text = (isset($tag->description)) ? $tag->description : ''; ?>
|
54 |
do_action( $taxonomy . '_edit_form', $tag, $taxonomy );
|
55 |
|
56 |
if ( $group_id == 0 ){
|
57 |
+
submit_button( __( 'Create new Ad Group', 'advanced-ads' ) );
|
58 |
} else {
|
59 |
+
submit_button( __( 'Update', 'advanced-ads' ) );
|
60 |
}
|
61 |
?>
|
62 |
</form>
|
admin/views/ad-group-list-form-row.php
CHANGED
@@ -1,10 +1,10 @@
|
|
1 |
<tr class="hidden advads-ad-group-form">
|
2 |
<td colspan="3">
|
3 |
-
<label><strong><?php _e( 'Name',
|
4 |
echo $group->id; ?>][name]" value="<?php echo $group->name; ?>"/></label><br/>
|
5 |
-
<label><strong><?php _e( 'Description',
|
6 |
echo $group->id; ?>][description]" value="<?php echo $group->description; ?>"/></label><br/>
|
7 |
-
<strong><?php _e( 'Type',
|
8 |
<ul class="advads-ad-group-type"><?php foreach ( $this->types as $_type_key => $_type ) :
|
9 |
?><li><label><input type="radio" name="advads-groups[<?php echo $group->id;
|
10 |
?>][type]" value="<?php echo $_type_key; ?>" <?php checked( $group->type, $_type_key )?>/><?php
|
@@ -13,27 +13,27 @@
|
|
13 |
</li><?php
|
14 |
endforeach; ?></ul><div class="clear"></div>
|
15 |
<div class="advads-ad-group-number">
|
16 |
-
<label><strong><?php _e( 'Number of visible ads',
|
17 |
<select name="advads-groups[<?php echo $group->id; ?>][ad_count]"><?php
|
18 |
for ( $i = 1; $i <= 10; $i++ ) : ?>
|
19 |
<option <?php selected( $group->ad_count, $i ); ?>><?php echo $i; ?></option>
|
20 |
<?php endfor;
|
21 |
-
?><option <?php selected( $group->ad_count, 'all' ); ?> value="all"><?php _ex('all', 'option to display all ads in an ad groups',
|
22 |
</select>
|
23 |
</label>
|
24 |
-
<p class="description"><?php _e( 'Number of ads that are visible at the same time',
|
25 |
</div>
|
26 |
<?php do_action( 'advanced-ads-group-form-options', $group ); ?>
|
27 |
-
<h3><?php _e( 'Ads',
|
28 |
<?php if ( count( $ad_form_rows ) ) : ?>
|
29 |
<table>
|
30 |
-
<thead><tr><th><?php _e( 'Ad',
|
31 |
-
?></th><th><?php _e( 'weight',
|
32 |
<?php foreach ( $ad_form_rows as $_row ){
|
33 |
echo $_row;
|
34 |
} ?></table><?php
|
35 |
else : ?>
|
36 |
-
<p><?php _e( 'No ads assigned',
|
37 |
endif; ?>
|
38 |
</td>
|
39 |
</tr>
|
1 |
<tr class="hidden advads-ad-group-form">
|
2 |
<td colspan="3">
|
3 |
+
<label><strong><?php _e( 'Name', 'advanced-ads' ); ?></strong><input type="text" name="advads-groups[<?php
|
4 |
echo $group->id; ?>][name]" value="<?php echo $group->name; ?>"/></label><br/>
|
5 |
+
<label><strong><?php _e( 'Description', 'advanced-ads' ); ?></strong><input type="text" name="advads-groups[<?php
|
6 |
echo $group->id; ?>][description]" value="<?php echo $group->description; ?>"/></label><br/>
|
7 |
+
<strong><?php _e( 'Type', 'advanced-ads' ); ?></strong>
|
8 |
<ul class="advads-ad-group-type"><?php foreach ( $this->types as $_type_key => $_type ) :
|
9 |
?><li><label><input type="radio" name="advads-groups[<?php echo $group->id;
|
10 |
?>][type]" value="<?php echo $_type_key; ?>" <?php checked( $group->type, $_type_key )?>/><?php
|
13 |
</li><?php
|
14 |
endforeach; ?></ul><div class="clear"></div>
|
15 |
<div class="advads-ad-group-number">
|
16 |
+
<label><strong><?php _e( 'Number of visible ads', 'advanced-ads' ); ?></strong>
|
17 |
<select name="advads-groups[<?php echo $group->id; ?>][ad_count]"><?php
|
18 |
for ( $i = 1; $i <= 10; $i++ ) : ?>
|
19 |
<option <?php selected( $group->ad_count, $i ); ?>><?php echo $i; ?></option>
|
20 |
<?php endfor;
|
21 |
+
?><option <?php selected( $group->ad_count, 'all' ); ?> value="all"><?php _ex('all', 'option to display all ads in an ad groups', 'advanced-ads'); ?></option>
|
22 |
</select>
|
23 |
</label>
|
24 |
+
<p class="description"><?php _e( 'Number of ads that are visible at the same time', 'advanced-ads' ); ?></p>
|
25 |
</div>
|
26 |
<?php do_action( 'advanced-ads-group-form-options', $group ); ?>
|
27 |
+
<h3><?php _e( 'Ads', 'advanced-ads' ); ?></h3>
|
28 |
<?php if ( count( $ad_form_rows ) ) : ?>
|
29 |
<table>
|
30 |
+
<thead><tr><th><?php _e( 'Ad', 'advanced-ads' );
|
31 |
+
?></th><th><?php _e( 'weight', 'advanced-ads' ); ?></th></tr></thead>
|
32 |
<?php foreach ( $ad_form_rows as $_row ){
|
33 |
echo $_row;
|
34 |
} ?></table><?php
|
35 |
else : ?>
|
36 |
+
<p><?php _e( 'No ads assigned', 'advanced-ads' ); ?></p><?php
|
37 |
endif; ?>
|
38 |
</td>
|
39 |
</tr>
|
admin/views/ad-group-list-header.php
CHANGED
@@ -1,7 +1,7 @@
|
|
1 |
<thead>
|
2 |
<tr>
|
3 |
-
<th><?php _e( 'Ad Group',
|
4 |
-
<th><?php _e( 'Details',
|
5 |
-
<th><?php _e( 'Ads',
|
6 |
</tr>
|
7 |
</thead>
|
1 |
<thead>
|
2 |
<tr>
|
3 |
+
<th><?php _e( 'Ad Group', 'advanced-ads' ); ?></th>
|
4 |
+
<th><?php _e( 'Details', 'advanced-ads' ); ?></th>
|
5 |
+
<th><?php _e( 'Ads', 'advanced-ads' ); ?></th>
|
6 |
</tr>
|
7 |
</thead>
|
admin/views/ad-group-list-row.php
CHANGED
@@ -5,20 +5,20 @@
|
|
5 |
<p class="description"><?php echo $group->description; ?></p>
|
6 |
<?php echo $this->render_action_links( $group ); ?>
|
7 |
<div class="hidden advads-usage">
|
8 |
-
<label><?php _e( 'shortcode',
|
9 |
<code><input type="text" onclick="this.select();" style="width: 200px;" value='[the_ad_group id="<?php echo $group->id; ?>"]'/></code>
|
10 |
</label><br/>
|
11 |
-
<label><?php _e( 'template',
|
12 |
<code><input type="text" onclick="this.select();" value="the_ad_group(<?php echo $group->id; ?>);"/></code>
|
13 |
</label>
|
14 |
-
<p><?php printf( __( 'Learn more about using groups in the <a href="%s" target="_blank">manual</a>.',
|
15 |
</div>
|
16 |
</td>
|
17 |
<td>
|
18 |
<ul><?php $_type = isset($this->types[$group->type]['title']) ? $this->types[$group->type]['title'] : 'default'; ?>
|
19 |
-
<li><strong><?php printf( __( 'Type: %s',
|
20 |
-
<li><?php printf( __( 'ID: %s',
|
21 |
-
<li><?php printf( __( 'Slug: %s',
|
22 |
</ul>
|
23 |
</td>
|
24 |
<td class="advads-ad-group-list-ads"><?php $this->render_ads_list( $group ); ?></td>
|
5 |
<p class="description"><?php echo $group->description; ?></p>
|
6 |
<?php echo $this->render_action_links( $group ); ?>
|
7 |
<div class="hidden advads-usage">
|
8 |
+
<label><?php _e( 'shortcode', 'advanced-ads' ); ?>
|
9 |
<code><input type="text" onclick="this.select();" style="width: 200px;" value='[the_ad_group id="<?php echo $group->id; ?>"]'/></code>
|
10 |
</label><br/>
|
11 |
+
<label><?php _e( 'template', 'advanced-ads' ); ?>
|
12 |
<code><input type="text" onclick="this.select();" value="the_ad_group(<?php echo $group->id; ?>);"/></code>
|
13 |
</label>
|
14 |
+
<p><?php printf( __( 'Learn more about using groups in the <a href="%s" target="_blank">manual</a>.', 'advanced-ads' ), ADVADS_URL . 'manual/ad-groups/' ); ?></p>
|
15 |
</div>
|
16 |
</td>
|
17 |
<td>
|
18 |
<ul><?php $_type = isset($this->types[$group->type]['title']) ? $this->types[$group->type]['title'] : 'default'; ?>
|
19 |
+
<li><strong><?php printf( __( 'Type: %s', 'advanced-ads' ), $_type ); ?></strong></li>
|
20 |
+
<li><?php printf( __( 'ID: %s', 'advanced-ads' ), $group->id ); ?></li>
|
21 |
+
<li><?php printf( __( 'Slug: %s', 'advanced-ads' ), $group->slug ); ?></li>
|
22 |
</ul>
|
23 |
</td>
|
24 |
<td class="advads-ad-group-list-ads"><?php $this->render_ads_list( $group ); ?></td>
|
admin/views/ad-group.php
CHANGED
@@ -15,18 +15,18 @@ if ( isset($_REQUEST['advads-group-update-nonce']) ){
|
|
15 |
$error_string = $udpate_result->get_error_message();
|
16 |
echo '<div id="message" class="error"><p>' . $error_string . '</p></div>';
|
17 |
} else {
|
18 |
-
echo '<div id="message" class="updated"><p>' . __( 'Ad Groups successfully updated',
|
19 |
}
|
20 |
}
|
21 |
|
22 |
/*$messages[$taxonomy] = array(
|
23 |
0 => '', // Unused. Messages start at index 1.
|
24 |
-
1 => __( 'Ad Group added.',
|
25 |
-
2 => __( 'Ad Group deleted.',
|
26 |
-
3 => __( 'Ad Group updated.',
|
27 |
-
4 => __( 'Ad Group not added.',
|
28 |
-
5 => __( 'Ad Group not updated.',
|
29 |
-
6 => __( 'Ad Group deleted.',
|
30 |
);
|
31 |
|
32 |
$message = false;
|
@@ -43,13 +43,13 @@ if ( isset($_REQUEST['message']) && ( $msg = (int) $_REQUEST['message'] ) || iss
|
|
43 |
<h1><?php
|
44 |
echo esc_html( $title );
|
45 |
if ( ! empty($_REQUEST['s']) ) {
|
46 |
-
printf( '<span class="subtitle">' . __( 'Search results for “%s”',
|
47 |
} else {
|
48 |
echo ' <a href="' . Advanced_Ads_Admin::group_page_url( array('action' => 'edit') ) . '" class="add-new-h2">' . $tax->labels->add_new_item . '</a>';
|
49 |
}
|
50 |
?>
|
51 |
</h1>
|
52 |
-
<p><?php _e( 'Ad Groups are a very flexible method to bundle ads. You can use them to display random ads in the frontend or run split tests, but also just for informational purposes. Not only can an Ad Groups have multiple ads, but an ad can belong to multiple ad groups.',
|
53 |
<?php if ( isset($message) ) : ?>
|
54 |
<div id="message" class="updated"><p><?php echo $message; ?></p></div>
|
55 |
<?php
|
@@ -57,14 +57,14 @@ if ( isset($_REQUEST['message']) && ( $msg = (int) $_REQUEST['message'] ) || iss
|
|
57 |
endif;
|
58 |
?>
|
59 |
<div id="ajax-response"></div>
|
60 |
-
<a onclick="advads_toggle('#advads-ad-group-display-info')"><?php _e( 'How to display an Ad Group?',
|
61 |
<div id="advads-ad-group-display-info" style="display: none;">
|
62 |
-
<p><?php printf( __( 'Examples on how to display an ad group? Find more help and examples in the <a href="%s" target="_blank">manual</a>',
|
63 |
-
<h4><?php _e( 'shortcode',
|
64 |
-
<p class="description"><?php _e( 'To display an ad group with the ID 6 in content fields',
|
65 |
<pre><input type="text" onclick="this.select();" style="width: 250px;" value='[the_ad_group id="6"]'/></pre>
|
66 |
-
<h4><?php _e( 'template',
|
67 |
-
<p class="description"><?php _e( 'To display an ad group with the ID 6 in template files',
|
68 |
<pre><input type="text" onclick="this.select();" value="the_ad_group(6);"/></pre>
|
69 |
</div>
|
70 |
|
@@ -84,7 +84,7 @@ if ( isset($_REQUEST['message']) && ( $msg = (int) $_REQUEST['message'] ) || iss
|
|
84 |
<?php $ad_groups_list->render_header(); ?>
|
85 |
<?php $ad_groups_list->render_rows(); ?>
|
86 |
</table>
|
87 |
-
<?php submit_button( __( 'Update Groups',
|
88 |
</form>
|
89 |
</div>
|
90 |
</div>
|
15 |
$error_string = $udpate_result->get_error_message();
|
16 |
echo '<div id="message" class="error"><p>' . $error_string . '</p></div>';
|
17 |
} else {
|
18 |
+
echo '<div id="message" class="updated"><p>' . __( 'Ad Groups successfully updated', 'advanced-ads' ) . '</p></div>';
|
19 |
}
|
20 |
}
|
21 |
|
22 |
/*$messages[$taxonomy] = array(
|
23 |
0 => '', // Unused. Messages start at index 1.
|
24 |
+
1 => __( 'Ad Group added.', 'advanced-ads' ),
|
25 |
+
2 => __( 'Ad Group deleted.', 'advanced-ads' ),
|
26 |
+
3 => __( 'Ad Group updated.', 'advanced-ads' ),
|
27 |
+
4 => __( 'Ad Group not added.', 'advanced-ads' ),
|
28 |
+
5 => __( 'Ad Group not updated.', 'advanced-ads' ),
|
29 |
+
6 => __( 'Ad Group deleted.', 'advanced-ads' )
|
30 |
);
|
31 |
|
32 |
$message = false;
|
43 |
<h1><?php
|
44 |
echo esc_html( $title );
|
45 |
if ( ! empty($_REQUEST['s']) ) {
|
46 |
+
printf( '<span class="subtitle">' . __( 'Search results for “%s”', 'advanced-ads' ) . '</span>', esc_html( wp_unslash( $_REQUEST['s'] ) ) );
|
47 |
} else {
|
48 |
echo ' <a href="' . Advanced_Ads_Admin::group_page_url( array('action' => 'edit') ) . '" class="add-new-h2">' . $tax->labels->add_new_item . '</a>';
|
49 |
}
|
50 |
?>
|
51 |
</h1>
|
52 |
+
<p><?php _e( 'Ad Groups are a very flexible method to bundle ads. You can use them to display random ads in the frontend or run split tests, but also just for informational purposes. Not only can an Ad Groups have multiple ads, but an ad can belong to multiple ad groups.', 'advanced-ads' ); ?></p>
|
53 |
<?php if ( isset($message) ) : ?>
|
54 |
<div id="message" class="updated"><p><?php echo $message; ?></p></div>
|
55 |
<?php
|
57 |
endif;
|
58 |
?>
|
59 |
<div id="ajax-response"></div>
|
60 |
+
<a onclick="advads_toggle('#advads-ad-group-display-info')"><?php _e( 'How to display an Ad Group?', 'advanced-ads' ); ?></a>
|
61 |
<div id="advads-ad-group-display-info" style="display: none;">
|
62 |
+
<p><?php printf( __( 'Examples on how to display an ad group? Find more help and examples in the <a href="%s" target="_blank">manual</a>', 'advanced-ads' ), ADVADS_URL . 'manual/ad-groups/' ); ?></p>
|
63 |
+
<h4><?php _e( 'shortcode', 'advanced-ads' ); ?></h4>
|
64 |
+
<p class="description"><?php _e( 'To display an ad group with the ID 6 in content fields', 'advanced-ads' ); ?></p>
|
65 |
<pre><input type="text" onclick="this.select();" style="width: 250px;" value='[the_ad_group id="6"]'/></pre>
|
66 |
+
<h4><?php _e( 'template', 'advanced-ads' ); ?></h4>
|
67 |
+
<p class="description"><?php _e( 'To display an ad group with the ID 6 in template files', 'advanced-ads' ); ?></p>
|
68 |
<pre><input type="text" onclick="this.select();" value="the_ad_group(6);"/></pre>
|
69 |
</div>
|
70 |
|
84 |
<?php $ad_groups_list->render_header(); ?>
|
85 |
<?php $ad_groups_list->render_rows(); ?>
|
86 |
</table>
|
87 |
+
<?php submit_button( __( 'Update Groups', 'advanced-ads' ) ); ?>
|
88 |
</form>
|
89 |
</div>
|
90 |
</div>
|
admin/views/ad-info-top.php
CHANGED
@@ -1,49 +1,49 @@
|
|
1 |
<?php if( isset( $_GET['message'] ) && 6 === $_GET['message'] ) : ?>
|
2 |
<div id="advads-ad-info-top">
|
3 |
<span id='advads-ad-info-close'>x</span>
|
4 |
-
<h2>👍 <?php _e( 'Cool, you just published an ad. What now?',
|
5 |
-
<h3><?php _e( 'Display the ad in …',
|
6 |
<div class="advads-accordion">
|
7 |
-
<h3><?php _e( '… every post or page',
|
8 |
<div>
|
9 |
-
<p><?php _e( 'Use placements to inject the ad automatically into posts and pages.',
|
10 |
-
<a href="<?php echo admin_url( 'admin.php?action=edit&page=advanced-ads-placements' ); ?>" class="button button-primary"><?php _e( 'Configure Placements',
|
11 |
</div>
|
12 |
-
<h3><?php _e( '… Sidebar or Widget Area',
|
13 |
<div>
|
14 |
-
<p><?php _e( 'Use the <em>Advanced Ads</em> Widget to display ads in your sidebars.',
|
15 |
-
<a href="<?php echo admin_url('widgets.php'); ?>" class="button button-primary"><?php _e( 'Configure a Widget',
|
16 |
</div>
|
17 |
-
<h3><?php _e( '… a few hand selected posts or pages',
|
18 |
<div>
|
19 |
-
<p><?php _e( 'Use the shortcode below to manually place the ad in the content editor of posts and pages.',
|
20 |
<pre><input type="text" onclick="this.select();" value='[the_ad id="<?php echo $post->ID; ?>"]'/></pre>
|
21 |
</div>
|
22 |
-
<h3><?php _e( '… in a custom position in your theme',
|
23 |
<div>
|
24 |
-
<p><?php _e( 'Use the function below to manually place the ad into your template files. This method is needed for more advanced placements like in the header of your theme.',
|
25 |
<pre><input type="text" onclick="this.select();" value="<?php if( function_exists('the_ad') ) the_ad(<?php echo $post->ID; ?>); ?>"/></pre>
|
26 |
</div>
|
27 |
-
<h3><?php _e( '… in an anchor ad or pop-up',
|
28 |
<div>
|
29 |
<?php if( ! defined( 'AASADS_SLUG' ) ) : ?>
|
30 |
-
<p><?php _e( 'Fix ads to the browser while users are scrolling and create best performing anchor ads.',
|
31 |
<a class="button button-primary" href="<?php echo ADVADS_URL; ?>add-ons/sticky-ads/" target="_blank"><?php
|
32 |
-
_e( 'Get the Sticky add-on',
|
33 |
<?php else : ?>
|
34 |
-
<p><?php _e( 'You find the settings for the Sticky Ads below.',
|
35 |
<?php endif; ?>
|
36 |
<?php if( ! defined( 'AAPLDS_SLUG' ) ) : ?>
|
37 |
-
<p><?php _e( 'Display content and ads in layers and popups on custom events.',
|
38 |
<a class="button button-primary" href="<?php echo ADVADS_URL; ?>add-ons/popup-and-layer-ads/" target="_blank"><?php
|
39 |
-
_e( 'Get the PopUp and Layer add-on',
|
40 |
<?php else : ?>
|
41 |
-
<p><?php _e( 'You find the settings for the Layer and PopUp effects below.',
|
42 |
<?php endif; ?>
|
43 |
</div>
|
44 |
</div>
|
45 |
|
46 |
-
<p><?php printf( __( 'Learn more about your choices to display an ad in the <a href="%s" target="_blank">manual</a>',
|
47 |
</div>
|
48 |
<script>
|
49 |
jQuery('#advads-ad-info-close').click(function(){
|
1 |
<?php if( isset( $_GET['message'] ) && 6 === $_GET['message'] ) : ?>
|
2 |
<div id="advads-ad-info-top">
|
3 |
<span id='advads-ad-info-close'>x</span>
|
4 |
+
<h2>👍 <?php _e( 'Cool, you just published an ad. What now?', 'advanced-ads' ); ?></h2>
|
5 |
+
<h3><?php _e( 'Display the ad in …', 'advanced-ads' ); ?></h3>
|
6 |
<div class="advads-accordion">
|
7 |
+
<h3><?php _e( '… every post or page', 'advanced-ads' ); ?></h3>
|
8 |
<div>
|
9 |
+
<p><?php _e( 'Use placements to inject the ad automatically into posts and pages.', 'advanced-ads' ); ?></p>
|
10 |
+
<a href="<?php echo admin_url( 'admin.php?action=edit&page=advanced-ads-placements' ); ?>" class="button button-primary"><?php _e( 'Configure Placements', 'advanced-ads' ); ?></a>
|
11 |
</div>
|
12 |
+
<h3><?php _e( '… Sidebar or Widget Area', 'advanced-ads' ); ?></h3>
|
13 |
<div>
|
14 |
+
<p><?php _e( 'Use the <em>Advanced Ads</em> Widget to display ads in your sidebars.', 'advanced-ads' ); ?></p>
|
15 |
+
<a href="<?php echo admin_url('widgets.php'); ?>" class="button button-primary"><?php _e( 'Configure a Widget', 'advanced-ads' ); ?></a>
|
16 |
</div>
|
17 |
+
<h3><?php _e( '… a few hand selected posts or pages', 'advanced-ads' ); ?></h3>
|
18 |
<div>
|
19 |
+
<p><?php _e( 'Use the shortcode below to manually place the ad in the content editor of posts and pages.', 'advanced-ads' ); ?></p>
|
20 |
<pre><input type="text" onclick="this.select();" value='[the_ad id="<?php echo $post->ID; ?>"]'/></pre>
|
21 |
</div>
|
22 |
+
<h3><?php _e( '… in a custom position in your theme', 'advanced-ads' ); ?></h3>
|
23 |
<div>
|
24 |
+
<p><?php _e( 'Use the function below to manually place the ad into your template files. This method is needed for more advanced placements like in the header of your theme.', 'advanced-ads' ); ?></p>
|
25 |
<pre><input type="text" onclick="this.select();" value="<?php if( function_exists('the_ad') ) the_ad(<?php echo $post->ID; ?>); ?>"/></pre>
|
26 |
</div>
|
27 |
+
<h3><?php _e( '… in an anchor ad or pop-up', 'advanced-ads' ); ?></h3>
|
28 |
<div>
|
29 |
<?php if( ! defined( 'AASADS_SLUG' ) ) : ?>
|
30 |
+
<p><?php _e( 'Fix ads to the browser while users are scrolling and create best performing anchor ads.', 'advanced-ads' ); ?></p>
|
31 |
<a class="button button-primary" href="<?php echo ADVADS_URL; ?>add-ons/sticky-ads/" target="_blank"><?php
|
32 |
+
_e( 'Get the Sticky add-on', 'advanced-ads' ); ?></a>
|
33 |
<?php else : ?>
|
34 |
+
<p><?php _e( 'You find the settings for the Sticky Ads below.', 'advanced-ads' ); ?></p>
|
35 |
<?php endif; ?>
|
36 |
<?php if( ! defined( 'AAPLDS_SLUG' ) ) : ?>
|
37 |
+
<p><?php _e( 'Display content and ads in layers and popups on custom events.', 'advanced-ads' ); ?></p>
|
38 |
<a class="button button-primary" href="<?php echo ADVADS_URL; ?>add-ons/popup-and-layer-ads/" target="_blank"><?php
|
39 |
+
_e( 'Get the PopUp and Layer add-on', 'advanced-ads' ); ?></a>
|
40 |
<?php else : ?>
|
41 |
+
<p><?php _e( 'You find the settings for the Layer and PopUp effects below.', 'advanced-ads' ); ?></p>
|
42 |
<?php endif; ?>
|
43 |
</div>
|
44 |
</div>
|
45 |
|
46 |
+
<p><?php printf( __( 'Learn more about your choices to display an ad in the <a href="%s" target="_blank">manual</a>', 'advanced-ads' ), ADVADS_URL . 'manual/display-ads/' ); ?></p>
|
47 |
</div>
|
48 |
<script>
|
49 |
jQuery('#advads-ad-info-close').click(function(){
|
admin/views/ad-info.php
CHANGED
@@ -1,20 +1,20 @@
|
|
1 |
<div id="advads-ad-info">
|
2 |
-
<span><?php printf( __( 'Ad Id: %s',
|
3 |
-
<label><span><?php _e( 'shortcode',
|
4 |
<pre><input type="text" onclick="this.select();" value='[the_ad id="<?php echo $post->ID; ?>"]'/></pre></label>
|
5 |
-
<label><span><?php _e( 'theme function',
|
6 |
<pre><input type="text" onclick="this.select();" value="<?php the_ad(<?php echo $post->ID; ?>); ?>"/></pre></label>
|
7 |
-
<span><?php printf( __( 'Find more display options in the <a href="%s" target="_blank">manual</a>.',
|
8 |
</div>
|
9 |
</p>
|
10 |
<div id="advads-ad-description">
|
11 |
<?php if ( ! empty($ad->description) ) : ?>
|
12 |
-
<p title="<?php _e( 'click to change',
|
13 |
onclick="advads_toggle('#advads-ad-description textarea'); advads_toggle('#advads-ad-description p')"><?php
|
14 |
echo nl2br( $ad->description ); ?></p>
|
15 |
<?php else : ?>
|
16 |
-
<button type="button" onclick="advads_toggle('#advads-ad-description textarea'); advads_toggle('#advads-ad-description button')"><?php _e( 'Add a description',
|
17 |
<?php endif; ?>
|
18 |
<textarea name="advanced_ad[description]" placeholder="<?php
|
19 |
-
_e( 'Internal description or your own notes about this ad.',
|
20 |
</div>
|
1 |
<div id="advads-ad-info">
|
2 |
+
<span><?php printf( __( 'Ad Id: %s', 'advanced-ads' ), "<strong>$post->ID</strong>" ); ?></span>
|
3 |
+
<label><span><?php _e( 'shortcode', 'advanced-ads' ); ?></span>
|
4 |
<pre><input type="text" onclick="this.select();" value='[the_ad id="<?php echo $post->ID; ?>"]'/></pre></label>
|
5 |
+
<label><span><?php _e( 'theme function', 'advanced-ads' ); ?></span>
|
6 |
<pre><input type="text" onclick="this.select();" value="<?php the_ad(<?php echo $post->ID; ?>); ?>"/></pre></label>
|
7 |
+
<span><?php printf( __( 'Find more display options in the <a href="%s" target="_blank">manual</a>.', 'advanced-ads' ), ADVADS_URL . 'manual/display-ads/' ); ?></span>
|
8 |
</div>
|
9 |
</p>
|
10 |
<div id="advads-ad-description">
|
11 |
<?php if ( ! empty($ad->description) ) : ?>
|
12 |
+
<p title="<?php _e( 'click to change', 'advanced-ads' ); ?>"
|
13 |
onclick="advads_toggle('#advads-ad-description textarea'); advads_toggle('#advads-ad-description p')"><?php
|
14 |
echo nl2br( $ad->description ); ?></p>
|
15 |
<?php else : ?>
|
16 |
+
<button type="button" onclick="advads_toggle('#advads-ad-description textarea'); advads_toggle('#advads-ad-description button')"><?php _e( 'Add a description', 'advanced-ads' ); ?></button>
|
17 |
<?php endif; ?>
|
18 |
<textarea name="advanced_ad[description]" placeholder="<?php
|
19 |
+
_e( 'Internal description or your own notes about this ad.', 'advanced-ads' ); ?>"><?php echo $ad->description; ?></textarea>
|
20 |
</div>
|
admin/views/ad-main-metabox.php
CHANGED
@@ -1,6 +1,6 @@
|
|
1 |
<?php $types = Advanced_Ads::get_instance()->ad_types; ?>
|
2 |
<?php if ( empty($types) ) : ?>
|
3 |
-
<p><?php _e( 'No ad types defined',
|
4 |
<?php else : ?>
|
5 |
<ul id="advanced-ad-type">
|
6 |
<?php
|
1 |
<?php $types = Advanced_Ads::get_instance()->ad_types; ?>
|
2 |
<?php if ( empty($types) ) : ?>
|
3 |
+
<p><?php _e( 'No ad types defined', 'advanced-ads' ); ?></p>
|
4 |
<?php else : ?>
|
5 |
<ul id="advanced-ad-type">
|
6 |
<?php
|
admin/views/ad-output-metabox.php
CHANGED
@@ -1,33 +1,33 @@
|
|
1 |
-
<p class="description"><?php _e( 'Everything connected to the ads layout and output.',
|
2 |
<?php $options = $ad->options( 'output' ); ?>
|
3 |
<div id="advanced-ad-output">
|
4 |
<div id="advanced-ad-output-position">
|
5 |
-
<span class="label"><?php _e( 'Position',
|
6 |
-
<label><input type="radio" name="advanced_ad[output][position]" value="" title="<?php _e( '- default -',
|
7 |
-
?>" <?php if ( empty($options['position']) ) { checked( 1, 1 ); } ?>/><?php _e( 'default',
|
8 |
-
<label title="<?php _e( 'left',
|
9 |
<?php if ( isset($options['position']) ) { checked( $options['position'], 'left' ); } ?>/>
|
10 |
<img src="<?php echo ADVADS_BASE_URL; ?>admin/assets/img/output-left.png" width="60" height="45"/></label>
|
11 |
-
<label title="<?php _e( 'center',
|
12 |
<?php if ( isset($options['position']) ) { checked( $options['position'], 'center' ); } ?>/>
|
13 |
<img src="<?php echo ADVADS_BASE_URL; ?>admin/assets/img/output-center.png" width="60" height="45"/></label>
|
14 |
-
<label title="<?php _e( 'right',
|
15 |
<?php if ( isset($options['position']) ) { checked( $options['position'], 'right' ); } ?>/>
|
16 |
<img src="<?php echo ADVADS_BASE_URL; ?>admin/assets/img/output-right.png" width="60" height="45"/></label>
|
17 |
</div>
|
18 |
<p><label><input type="checkbox" name="advanced_ad[output][clearfix]" value="1"<?php if ( isset($options['clearfix']) ) { checked( $options['clearfix'], 1 ); } ?>/><?php
|
19 |
-
_e( 'Check this if you don\'t want the following elements to float around the ad. (adds a clearfix)',
|
20 |
?></label></p>
|
21 |
<div id="advanced-ad-output-margin">
|
22 |
-
<span class="label"><?php _e( 'Margin',
|
23 |
-
<label><?php _e( 'top:',
|
24 |
if ( isset($options['margin']['top']) ) { echo $options['margin']['top']; } ?>" name="advanced_ad[output][margin][top]"/>px</label>
|
25 |
-
<label><?php _e( 'right:',
|
26 |
if ( isset($options['margin']['right']) ) { echo $options['margin']['right']; } ?>" name="advanced_ad[output][margin][right]"/>px</label>
|
27 |
-
<label><?php _e( 'bottom:',
|
28 |
if ( isset($options['margin']['bottom']) ) { echo $options['margin']['bottom']; } ?>" name="advanced_ad[output][margin][bottom]"/>px</label>
|
29 |
-
<label><?php _e( 'left:',
|
30 |
if ( isset($options['margin']['left']) ) { echo $options['margin']['left']; } ?>" name="advanced_ad[output][margin][left]"/>px</label>
|
31 |
-
<p class="description"><?php _e( 'tip: use this to add a margin around the ad',
|
32 |
</div>
|
33 |
</div>
|
1 |
+
<p class="description"><?php _e( 'Everything connected to the ads layout and output.', 'advanced-ads' ); ?></p>
|
2 |
<?php $options = $ad->options( 'output' ); ?>
|
3 |
<div id="advanced-ad-output">
|
4 |
<div id="advanced-ad-output-position">
|
5 |
+
<span class="label"><?php _e( 'Position', 'advanced-ads' ); ?></span>
|
6 |
+
<label><input type="radio" name="advanced_ad[output][position]" value="" title="<?php _e( '- default -', 'advanced-ads' );
|
7 |
+
?>" <?php if ( empty($options['position']) ) { checked( 1, 1 ); } ?>/><?php _e( 'default', 'advanced-ads' ); ?></label>
|
8 |
+
<label title="<?php _e( 'left', 'advanced-ads' ); ?>"><input type="radio" name="advanced_ad[output][position]" value="left"
|
9 |
<?php if ( isset($options['position']) ) { checked( $options['position'], 'left' ); } ?>/>
|
10 |
<img src="<?php echo ADVADS_BASE_URL; ?>admin/assets/img/output-left.png" width="60" height="45"/></label>
|
11 |
+
<label title="<?php _e( 'center', 'advanced-ads' ); ?>"><input type="radio" name="advanced_ad[output][position]" value="center"
|
12 |
<?php if ( isset($options['position']) ) { checked( $options['position'], 'center' ); } ?>/>
|
13 |
<img src="<?php echo ADVADS_BASE_URL; ?>admin/assets/img/output-center.png" width="60" height="45"/></label>
|
14 |
+
<label title="<?php _e( 'right', 'advanced-ads' ); ?>"><input type="radio" name="advanced_ad[output][position]" value="right"
|
15 |
<?php if ( isset($options['position']) ) { checked( $options['position'], 'right' ); } ?>/>
|
16 |
<img src="<?php echo ADVADS_BASE_URL; ?>admin/assets/img/output-right.png" width="60" height="45"/></label>
|
17 |
</div>
|
18 |
<p><label><input type="checkbox" name="advanced_ad[output][clearfix]" value="1"<?php if ( isset($options['clearfix']) ) { checked( $options['clearfix'], 1 ); } ?>/><?php
|
19 |
+
_e( 'Check this if you don\'t want the following elements to float around the ad. (adds a clearfix)', 'advanced-ads' );
|
20 |
?></label></p>
|
21 |
<div id="advanced-ad-output-margin">
|
22 |
+
<span class="label"><?php _e( 'Margin', 'advanced-ads' ); ?></span>
|
23 |
+
<label><?php _e( 'top:', 'advanced-ads' ); ?> <input type="number" value="<?php
|
24 |
if ( isset($options['margin']['top']) ) { echo $options['margin']['top']; } ?>" name="advanced_ad[output][margin][top]"/>px</label>
|
25 |
+
<label><?php _e( 'right:', 'advanced-ads' ); ?> <input type="number" value="<?php
|
26 |
if ( isset($options['margin']['right']) ) { echo $options['margin']['right']; } ?>" name="advanced_ad[output][margin][right]"/>px</label>
|
27 |
+
<label><?php _e( 'bottom:', 'advanced-ads' ); ?> <input type="number" value="<?php
|
28 |
if ( isset($options['margin']['bottom']) ) { echo $options['margin']['bottom']; } ?>" name="advanced_ad[output][margin][bottom]"/>px</label>
|
29 |
+
<label><?php _e( 'left:', 'advanced-ads' ); ?> <input type="number" value="<?php
|
30 |
if ( isset($options['margin']['left']) ) { echo $options['margin']['left']; } ?>" name="advanced_ad[output][margin][left]"/>px</label>
|
31 |
+
<p class="description"><?php _e( 'tip: use this to add a margin around the ad', 'advanced-ads' ); ?></p>
|
32 |
</div>
|
33 |
</div>
|
admin/views/ad-parameters-metabox.php
CHANGED
@@ -12,9 +12,9 @@ do_action( 'advanced-ads-ad-params-before', $ad, $types ); ?>
|
|
12 |
$type->render_parameters( $ad );
|
13 |
?>
|
14 |
<div id="advanced-ads-ad-parameters-size">
|
15 |
-
<p><?php _e( 'size:',
|
16 |
-
<label><?php _e( 'width',
|
17 |
-
<label><?php _e( 'height',
|
18 |
</div>
|
19 |
</div>
|
20 |
<?php do_action( 'advanced-ads-ad-params-after', $ad, $types );
|
12 |
$type->render_parameters( $ad );
|
13 |
?>
|
14 |
<div id="advanced-ads-ad-parameters-size">
|
15 |
+
<p><?php _e( 'size:', 'advanced-ads' ); ?></p>
|
16 |
+
<label><?php _e( 'width', 'advanced-ads' ); ?><input type="number" size="4" maxlength="4" value="<?php echo isset($ad->width) ? $ad->width : 0; ?>" name="advanced_ad[width]">px</label>
|
17 |
+
<label><?php _e( 'height', 'advanced-ads' ); ?><input type="number" size="4" maxlength="4" value="<?php echo isset($ad->height) ? $ad->height : 0; ?>" name="advanced_ad[height]">px</label>
|
18 |
</div>
|
19 |
</div>
|
20 |
<?php do_action( 'advanced-ads-ad-params-after', $ad, $types );
|
admin/views/ad-submitbox-meta.php
CHANGED
@@ -1,17 +1,17 @@
|
|
1 |
<div id="advanced-ads-expiry-date" class="misc-pub-section curtime misc-pub-curtime">
|
2 |
<label onclick="advads_toggle_box('#advanced-ads-expiry-date-enable', '#advanced-ads-expiry-date .inner')">
|
3 |
<input type="checkbox" id="advanced-ads-expiry-date-enable" name="advanced_ad[expiry_date][enabled]"
|
4 |
-
value="1" <?php checked( $enabled, 1 ); ?>/><?php _e( 'Set expiry date',
|
5 |
</label>
|
6 |
<br/>
|
7 |
-
|
8 |
<div class="inner" <?php if ( ! $enabled ) : ?>style="display:none;"<?php endif; ?>>
|
9 |
<?php
|
10 |
$month = '<label><span class="screen-reader-text">' . __( 'Month' ) . '</span><select id="advads-exp-mm" name="advanced_ad[expiry_date][month]"' . ">\n";
|
11 |
for ( $i = 1; $i < 13; $i = $i + 1 ) {
|
12 |
$monthnum = zeroise( $i, 2 );
|
13 |
$month .= "\t\t\t" . '<option value="' . $monthnum . '" ' . selected( $curr_month, $monthnum, false ) . '>';
|
14 |
-
$month .= sprintf( _x( '%1$s-%2$s', '1: month number (01, 02, etc.), 2: month abbreviation',
|
15 |
$monthnum, $wp_locale->get_month_abbrev( $wp_locale->get_month( $i ) ) ) . "</option>\n";
|
16 |
}
|
17 |
$month .= '</select></label>';
|
@@ -24,7 +24,7 @@
|
|
24 |
?>
|
25 |
<fieldset id="advads-exp-timestampdiv">
|
26 |
<div class="timestamp-wrap">
|
27 |
-
<?php printf( _x( '%1$s %2$s, %3$s @ %4$s %5$s', 'order of expiry date fields 1: month, 2: day, 3: year, 4: hour, 5: minute',
|
28 |
</div>
|
29 |
</fieldset>
|
30 |
</div>
|
1 |
<div id="advanced-ads-expiry-date" class="misc-pub-section curtime misc-pub-curtime">
|
2 |
<label onclick="advads_toggle_box('#advanced-ads-expiry-date-enable', '#advanced-ads-expiry-date .inner')">
|
3 |
<input type="checkbox" id="advanced-ads-expiry-date-enable" name="advanced_ad[expiry_date][enabled]"
|
4 |
+
value="1" <?php checked( $enabled, 1 ); ?>/><?php _e( 'Set expiry date', 'advanced-ads' ); ?>
|
5 |
</label>
|
6 |
<br/>
|
7 |
+
|
8 |
<div class="inner" <?php if ( ! $enabled ) : ?>style="display:none;"<?php endif; ?>>
|
9 |
<?php
|
10 |
$month = '<label><span class="screen-reader-text">' . __( 'Month' ) . '</span><select id="advads-exp-mm" name="advanced_ad[expiry_date][month]"' . ">\n";
|
11 |
for ( $i = 1; $i < 13; $i = $i + 1 ) {
|
12 |
$monthnum = zeroise( $i, 2 );
|
13 |
$month .= "\t\t\t" . '<option value="' . $monthnum . '" ' . selected( $curr_month, $monthnum, false ) . '>';
|
14 |
+
$month .= sprintf( _x( '%1$s-%2$s', '1: month number (01, 02, etc.), 2: month abbreviation', 'advanced-ads' ),
|
15 |
$monthnum, $wp_locale->get_month_abbrev( $wp_locale->get_month( $i ) ) ) . "</option>\n";
|
16 |
}
|
17 |
$month .= '</select></label>';
|
24 |
?>
|
25 |
<fieldset id="advads-exp-timestampdiv">
|
26 |
<div class="timestamp-wrap">
|
27 |
+
<?php printf( _x( '%1$s %2$s, %3$s @ %4$s %5$s', 'order of expiry date fields 1: month, 2: day, 3: year, 4: hour, 5: minute', 'advanced-ads' ), $month, $day, $year, $hour, $minute ); ?>
|
28 |
</div>
|
29 |
</fieldset>
|
30 |
</div>
|
admin/views/ad-visitor-metabox.php
CHANGED
@@ -1,7 +1,7 @@
|
|
1 |
<?php
|
2 |
$visitor_conditions = Advanced_Ads_Visitor_Conditions::get_instance()->conditions;
|
3 |
$options = $ad->options( 'visitors' );
|
4 |
-
?><p class="description"><?php _e( 'Display conditions that are based on the user. Use with caution on cached websites.',
|
5 |
<div id="advads-visitor-conditions">
|
6 |
<table><tbody><?php
|
7 |
if ( isset( $options ) ) :
|
@@ -25,29 +25,29 @@ foreach ( $options as $_options ) :
|
|
25 |
<input type="hidden" id="advads-visitor-conditions-index" value="<?php echo isset( $options ) ? count( $options ) : 0; ?>"/>
|
26 |
</div>
|
27 |
<?php if( ! isset( $options ) || count( $options ) == 0 ) :
|
28 |
-
?><p><?php _e( 'Visitor conditions limit the number of users who can see your ad. There is no need to set visitor conditions if you want all users to see the ad.',
|
29 |
elseif( Advanced_Ads_Checks::cache() && ! defined('AAP_VERSION') ) :
|
30 |
-
?><p><?php printf(__( 'Check out cache-busting in <a href="%s" target="_blank">Advanced Ads Pro</a> if dynamic features get cached.',
|
31 |
endif;
|
32 |
?><hr/>
|
33 |
<fieldset>
|
34 |
-
<legend><?php _e( 'New condition',
|
35 |
<div id="advads-visitor-conditions-new">
|
36 |
<div class="advads-buttonset"<?php if ( ! isset( $options ) || 0 === count( $options ) ) { echo ' style="display: none;"'; } ?>>
|
37 |
-
<input type="radio" name="advads-visitor-conditions-new-andor" id="advads-visitor-conditions-new-and" value="and"/><label for="advads-visitor-conditions-new-and"><?php _ex( 'and', 'visitor condition connector',
|
38 |
-
<input type="radio" name="advads-visitor-conditions-new-andor" id="advads-visitor-conditions-new-or" value="or"/><label for="advads-visitor-conditions-new-or"><?php _ex( 'or', 'visitor condition connector',
|
39 |
</div>
|
40 |
<select>
|
41 |
-
<option value=""><?php _e( '-- choose a condition --',
|
42 |
<?php foreach ( $visitor_conditions as $_condition_id => $_condition ) : ?>
|
43 |
<option value="<?php echo $_condition_id; ?>"><?php echo $_condition['label']; ?></option>
|
44 |
<?php endforeach; ?>
|
45 |
</select>
|
46 |
-
<button type="button" class="button"><?php _e( 'add',
|
47 |
</div>
|
48 |
</fieldset>
|
49 |
<?php if ( ! defined( 'AAR_SLUG' ) ) : ?>
|
50 |
-
<p><?php printf( __( 'Define the exact browser width for which an ad should be visible using the <a href="%s" target="_blank">Responsive add-on</a>.',
|
51 |
<?php endif;
|
52 |
?><script>
|
53 |
jQuery( document ).ready(function ($) {
|
@@ -105,21 +105,21 @@ function advads_toogle_visitor_conditions_connector(){
|
|
105 |
</script>
|
106 |
<?php $options = $ad->options( 'visitor' );
|
107 |
if ( isset( $options['mobile'] ) && '' !== $options['mobile'] ) :
|
108 |
-
?><p style="color: red;"><?php _e( 'The visitor conditions below are deprecated. Please use the new version of visitor conditions to replace it.',
|
109 |
<ul id="advanced-ad-visitor-mobile">
|
110 |
<li>
|
111 |
<input type="radio" name="advanced_ad[visitor][mobile]"
|
112 |
id="advanced-ad-visitor-mobile-all" value=""
|
113 |
<?php checked( empty($options['mobile']), 1 ); ?>/>
|
114 |
-
<label for="advanced-ad-visitor-mobile-all"><?php _e( 'Display on all devices',
|
115 |
<input type="radio" name="advanced_ad[visitor][mobile]"
|
116 |
id="advanced-ad-visitor-mobile-only" value="only"
|
117 |
<?php checked( $options['mobile'], 'only' ); ?>/>
|
118 |
-
<label for="advanced-ad-visitor-mobile-only"><?php _e( 'only on mobile devices',
|
119 |
<input type="radio" name="advanced_ad[visitor][mobile]"
|
120 |
id="advanced-ad-visitor-mobile-no" value="no"
|
121 |
<?php checked( $options['mobile'], 'no' ); ?>/>
|
122 |
-
<label for="advanced-ad-visitor-mobile-no"><?php _e( 'not on mobile devices',
|
123 |
</li>
|
124 |
</ul>
|
125 |
<?php endif; ?>
|
1 |
<?php
|
2 |
$visitor_conditions = Advanced_Ads_Visitor_Conditions::get_instance()->conditions;
|
3 |
$options = $ad->options( 'visitors' );
|
4 |
+
?><p class="description"><?php _e( 'Display conditions that are based on the user. Use with caution on cached websites.', 'advanced-ads' ); ?></p>
|
5 |
<div id="advads-visitor-conditions">
|
6 |
<table><tbody><?php
|
7 |
if ( isset( $options ) ) :
|
25 |
<input type="hidden" id="advads-visitor-conditions-index" value="<?php echo isset( $options ) ? count( $options ) : 0; ?>"/>
|
26 |
</div>
|
27 |
<?php if( ! isset( $options ) || count( $options ) == 0 ) :
|
28 |
+
?><p><?php _e( 'Visitor conditions limit the number of users who can see your ad. There is no need to set visitor conditions if you want all users to see the ad.', 'advanced-ads' ); ?></p><?php
|
29 |
elseif( Advanced_Ads_Checks::cache() && ! defined('AAP_VERSION') ) :
|
30 |
+
?><p><?php printf(__( 'Check out cache-busting in <a href="%s" target="_blank">Advanced Ads Pro</a> if dynamic features get cached.', 'advanced-ads' ), ADVADS_URL . 'add-ons/advanced-ads-pro' ); ?></p><?php
|
31 |
endif;
|
32 |
?><hr/>
|
33 |
<fieldset>
|
34 |
+
<legend><?php _e( 'New condition', 'advanced-ads' ); ?></legend>
|
35 |
<div id="advads-visitor-conditions-new">
|
36 |
<div class="advads-buttonset"<?php if ( ! isset( $options ) || 0 === count( $options ) ) { echo ' style="display: none;"'; } ?>>
|
37 |
+
<input type="radio" name="advads-visitor-conditions-new-andor" id="advads-visitor-conditions-new-and" value="and"/><label for="advads-visitor-conditions-new-and"><?php _ex( 'and', 'visitor condition connector', 'advanced-ads' ); ?></label>
|
38 |
+
<input type="radio" name="advads-visitor-conditions-new-andor" id="advads-visitor-conditions-new-or" value="or"/><label for="advads-visitor-conditions-new-or"><?php _ex( 'or', 'visitor condition connector', 'advanced-ads' ); ?></label>
|
39 |
</div>
|
40 |
<select>
|
41 |
+
<option value=""><?php _e( '-- choose a condition --', 'advanced-ads' ); ?></option>
|
42 |
<?php foreach ( $visitor_conditions as $_condition_id => $_condition ) : ?>
|
43 |
<option value="<?php echo $_condition_id; ?>"><?php echo $_condition['label']; ?></option>
|
44 |
<?php endforeach; ?>
|
45 |
</select>
|
46 |
+
<button type="button" class="button"><?php _e( 'add', 'advanced-ads' ); ?></button>
|
47 |
</div>
|
48 |
</fieldset>
|
49 |
<?php if ( ! defined( 'AAR_SLUG' ) ) : ?>
|
50 |
+
<p><?php printf( __( 'Define the exact browser width for which an ad should be visible using the <a href="%s" target="_blank">Responsive add-on</a>.', 'advanced-ads' ), ADVADS_URL . 'add-ons/responsive-ads/' ); ?></p>
|
51 |
<?php endif;
|
52 |
?><script>
|
53 |
jQuery( document ).ready(function ($) {
|
105 |
</script>
|
106 |
<?php $options = $ad->options( 'visitor' );
|
107 |
if ( isset( $options['mobile'] ) && '' !== $options['mobile'] ) :
|
108 |
+
?><p style="color: red;"><?php _e( 'The visitor conditions below are deprecated. Please use the new version of visitor conditions to replace it.', 'advanced-ads' ); ?></p>
|
109 |
<ul id="advanced-ad-visitor-mobile">
|
110 |
<li>
|
111 |
<input type="radio" name="advanced_ad[visitor][mobile]"
|
112 |
id="advanced-ad-visitor-mobile-all" value=""
|
113 |
<?php checked( empty($options['mobile']), 1 ); ?>/>
|
114 |
+
<label for="advanced-ad-visitor-mobile-all"><?php _e( 'Display on all devices', 'advanced-ads' ); ?></label>
|
115 |
<input type="radio" name="advanced_ad[visitor][mobile]"
|
116 |
id="advanced-ad-visitor-mobile-only" value="only"
|
117 |
<?php checked( $options['mobile'], 'only' ); ?>/>
|
118 |
+
<label for="advanced-ad-visitor-mobile-only"><?php _e( 'only on mobile devices', 'advanced-ads' ); ?></label>
|
119 |
<input type="radio" name="advanced_ad[visitor][mobile]"
|
120 |
id="advanced-ad-visitor-mobile-no" value="no"
|
121 |
<?php checked( $options['mobile'], 'no' ); ?>/>
|
122 |
+
<label for="advanced-ad-visitor-mobile-no"><?php _e( 'not on mobile devices', 'advanced-ads' ); ?></label>
|
123 |
</li>
|
124 |
</ul>
|
125 |
<?php endif; ?>
|
admin/views/debug.php
CHANGED
@@ -3,15 +3,15 @@
|
|
3 |
* the view for the debug page
|
4 |
*/
|
5 |
?><div class="wrap">
|
6 |
-
<h1><?php _e( 'Debug Page',
|
7 |
-
<p><?php _e( 'Work in progress',
|
8 |
-
<p><?php _e( 'This screen is work in progress. You can use the information if you understand them, but there is nothing to do here yet.',
|
9 |
<?php screen_icon(); ?>
|
10 |
|
11 |
-
<h2><?php _e( 'Settings',
|
12 |
<pre><?php print_r( $plugin_options ); ?></pre>
|
13 |
|
14 |
-
<h2><?php _e( 'Ad Placements',
|
15 |
<pre><?php print_r( $ad_placements ); ?></pre>
|
16 |
|
17 |
<?php do_action('advanced-ads-debug-after', $plugin_options); ?>
|
3 |
* the view for the debug page
|
4 |
*/
|
5 |
?><div class="wrap">
|
6 |
+
<h1><?php _e( 'Debug Page', 'advanced-ads' ); ?></h1>
|
7 |
+
<p><?php _e( 'Work in progress', 'advanced-ads' ); ?></p>
|
8 |
+
<p><?php _e( 'This screen is work in progress. You can use the information if you understand them, but there is nothing to do here yet.', 'advanced-ads' ); ?></p>
|
9 |
<?php screen_icon(); ?>
|
10 |
|
11 |
+
<h2><?php _e( 'Settings', 'advanced-ads' ); ?></h2>
|
12 |
<pre><?php print_r( $plugin_options ); ?></pre>
|
13 |
|
14 |
+
<h2><?php _e( 'Ad Placements', 'advanced-ads' ); ?></h2>
|
15 |
<pre><?php print_r( $ad_placements ); ?></pre>
|
16 |
|
17 |
<?php do_action('advanced-ads-debug-after', $plugin_options); ?>
|
admin/views/intro.php
CHANGED
@@ -15,18 +15,18 @@ if ( 'en' !== $locale ) {
|
|
15 |
$minor_features = array(
|
16 |
array(
|
17 |
'src' => ADVADS_BASE_URL . '/admin/assets/img/intro/5-star-usability.png',
|
18 |
-
'heading' => __( '5-Star Usability',
|
19 |
-
'description' => __( 'Advanced Ads is powerful and easy to use, because it is build on WordPress standards. If you know how to publish a post then you know how to create an ad.',
|
20 |
),
|
21 |
array(
|
22 |
'src' => ADVADS_BASE_URL . '/admin/assets/img/intro/5-star-support.png',
|
23 |
-
'heading' => __( '5-Star Support',
|
24 |
-
'description' => __( 'I promise you the best supported ad management plugin for WordPress. Whether a pro user or not, you can reach me easily through the support page, in the chat on the homepage or replying to a newsletter.',
|
25 |
),
|
26 |
array(
|
27 |
'src' => ADVADS_BASE_URL . '/admin/assets/img/intro/5-star-experience.png',
|
28 |
-
'heading' => __( '5-Star Experience',
|
29 |
-
'description' => __( 'Advanced Ads was built out of my own experience. I am personally using it to serve millions of ad impressions per month and constantly test new ways to optimize ad settings.',
|
30 |
),
|
31 |
);
|
32 |
?>
|
@@ -58,32 +58,32 @@ $minor_features = array(
|
|
58 |
<?php endforeach; ?>
|
59 |
</div>
|
60 |
<hr/>
|
61 |
-
<h2><?php _e( 'Next Steps',
|
62 |
<div class="feature-section three-col">
|
63 |
<div class="col">
|
64 |
-
<h3>1. <?php _e( 'Subscribe to the Mailing List',
|
65 |
-
<p><?php _e( 'Subscribe to the newsletter and instantly',
|
66 |
<ul>
|
67 |
-
<li><?php _e( 'get 2 free add-ons.',
|
68 |
-
<li><?php _e( 'reply to the welcome message with a question.',
|
69 |
-
<li><?php _e( 'subscribe to a dedicated group for the tutorial or AdSense tips.',
|
70 |
</ul>
|
71 |
<div class="advads-admin-notice">
|
72 |
<p>
|
73 |
-
<button type="button" class="button button-hero button-primary advads-notices-button-subscribe" data-notice="nl_free_addons"><?php echo __('Subscribe me now',
|
74 |
</p>
|
75 |
</div>
|
76 |
</div>
|
77 |
<div class="col">
|
78 |
-
<h3>2. <?php _e( 'Create your first ad',
|
79 |
-
<p><?php printf(__( 'Get started by creating an ad <a href="$1%s" target="blank">right now</a> or watch the <a href="$2%s" target="blank">tutorial video (3:29min)</a> first.',
|
80 |
</div>
|
81 |
<div class="col">
|
82 |
-
<h3>3. <?php _e( 'Display your ad',
|
83 |
-
<p><?php _e( 'You can display your ad using a shortcode, widget or one of the powerful placements. Placements help you to inject ads into the content or place them on your site without coding.',
|
84 |
<ul>
|
85 |
-
<li><a href="<?php echo ADVADS_URL . '/manual/placements/'; ?>" target="_blank"><?php _e( 'List of all available placements',
|
86 |
-
<li><a href="<?php echo admin_url( 'admin.php?page=advanced-ads-placements' ); ?>" target="_blank"><?php _e( 'Create a placement',
|
87 |
</ul>
|
88 |
</div>
|
89 |
</div>
|
15 |
$minor_features = array(
|
16 |
array(
|
17 |
'src' => ADVADS_BASE_URL . '/admin/assets/img/intro/5-star-usability.png',
|
18 |
+
'heading' => __( '5-Star Usability', 'advanced-ads' ),
|
19 |
+
'description' => __( 'Advanced Ads is powerful and easy to use, because it is build on WordPress standards. If you know how to publish a post then you know how to create an ad.', 'advanced-ads' ),
|
20 |
),
|
21 |
array(
|
22 |
'src' => ADVADS_BASE_URL . '/admin/assets/img/intro/5-star-support.png',
|
23 |
+
'heading' => __( '5-Star Support', 'advanced-ads' ),
|
24 |
+
'description' => __( 'I promise you the best supported ad management plugin for WordPress. Whether a pro user or not, you can reach me easily through the support page, in the chat on the homepage or replying to a newsletter.', 'advanced-ads' ),
|
25 |
),
|
26 |
array(
|
27 |
'src' => ADVADS_BASE_URL . '/admin/assets/img/intro/5-star-experience.png',
|
28 |
+
'heading' => __( '5-Star Experience', 'advanced-ads' ),
|
29 |
+
'description' => __( 'Advanced Ads was built out of my own experience. I am personally using it to serve millions of ad impressions per month and constantly test new ways to optimize ad settings.', 'advanced-ads' ),
|
30 |
),
|
31 |
);
|
32 |
?>
|
58 |
<?php endforeach; ?>
|
59 |
</div>
|
60 |
<hr/>
|
61 |
+
<h2><?php _e( 'Next Steps', 'advanced-ads' ); ?></h2>
|
62 |
<div class="feature-section three-col">
|
63 |
<div class="col">
|
64 |
+
<h3>1. <?php _e( 'Subscribe to the Mailing List', 'advanced-ads' ); ?></h3>
|
65 |
+
<p><?php _e( 'Subscribe to the newsletter and instantly', 'advanced-ads' ); ?></p>
|
66 |
<ul>
|
67 |
+
<li><?php _e( 'get 2 free add-ons.', 'advanced-ads' ); ?></li>
|
68 |
+
<li><?php _e( 'reply to the welcome message with a question.', 'advanced-ads' ); ?></li>
|
69 |
+
<li><?php _e( 'subscribe to a dedicated group for the tutorial or AdSense tips.', 'advanced-ads' ); ?></li>
|
70 |
</ul>
|
71 |
<div class="advads-admin-notice">
|
72 |
<p>
|
73 |
+
<button type="button" class="button button-hero button-primary advads-notices-button-subscribe" data-notice="nl_free_addons"><?php echo __('Subscribe me now', 'advanced-ads'); ?></button>
|
74 |
</p>
|
75 |
</div>
|
76 |
</div>
|
77 |
<div class="col">
|
78 |
+
<h3>2. <?php _e( 'Create your first ad', 'advanced-ads' ); ?></h3>
|
79 |
+
<p><?php printf(__( 'Get started by creating an ad <a href="$1%s" target="blank">right now</a> or watch the <a href="$2%s" target="blank">tutorial video (3:29min)</a> first.', 'advanced-ads' ), admin_url( 'post-new.php?post_type=' . Advanced_Ads::POST_TYPE_SLUG ), ADVADS_URL . 'manual/first-ad/' ); ?></p>
|
80 |
</div>
|
81 |
<div class="col">
|
82 |
+
<h3>3. <?php _e( 'Display your ad', 'advanced-ads' ); ?></h3>
|
83 |
+
<p><?php _e( 'You can display your ad using a shortcode, widget or one of the powerful placements. Placements help you to inject ads into the content or place them on your site without coding.', 'advanced-ads' ); ?></p>
|
84 |
<ul>
|
85 |
+
<li><a href="<?php echo ADVADS_URL . '/manual/placements/'; ?>" target="_blank"><?php _e( 'List of all available placements', 'advanced-ads' ); ?></a></li>
|
86 |
+
<li><a href="<?php echo admin_url( 'admin.php?page=advanced-ads-placements' ); ?>" target="_blank"><?php _e( 'Create a placement', 'advanced-ads' ); ?></a></li>
|
87 |
</ul>
|
88 |
</div>
|
89 |
</div>
|
admin/views/notices/adblock.php
CHANGED
@@ -1,6 +1,6 @@
|
|
1 |
<div class="advads-ad-block-check">
|
2 |
<img src="<?php echo ADVADS_BASE_URL . 'admin/assets/img/advertisement.png' ?>" width="1" height="1"/>
|
3 |
-
<div class="message error" style="display: none;"><p><?php _e( 'Please disable your <strong>AdBlocker</strong> to prevent problems with your ad setup.',
|
4 |
</div>
|
5 |
<script>
|
6 |
jQuery(document).ready(function(){
|
1 |
<div class="advads-ad-block-check">
|
2 |
<img src="<?php echo ADVADS_BASE_URL . 'admin/assets/img/advertisement.png' ?>" width="1" height="1"/>
|
3 |
+
<div class="message error" style="display: none;"><p><?php _e( 'Please disable your <strong>AdBlocker</strong> to prevent problems with your ad setup.', 'advanced-ads' ); ?></p></div>
|
4 |
</div>
|
5 |
<script>
|
6 |
jQuery(document).ready(function(){
|
admin/views/notices/inline.php
CHANGED
@@ -1,5 +1,5 @@
|
|
1 |
<div class="advads-admin-notice-inline advads-admin-notice notice is-dismissible" data-notice="<?php echo $_notice ?>">
|
2 |
<p><?php echo $text; ?>
|
3 |
-
<button type="button" class="button-primary advads-notices-button-subscribe"><?php echo isset( $notice['confirm_text'] ) ? $notice['confirm_text'] : __('Subscribe me now',
|
4 |
</p>
|
5 |
</div>
|
1 |
<div class="advads-admin-notice-inline advads-admin-notice notice is-dismissible" data-notice="<?php echo $_notice ?>">
|
2 |
<p><?php echo $text; ?>
|
3 |
+
<button type="button" class="button-primary advads-notices-button-subscribe"><?php echo isset( $notice['confirm_text'] ) ? $notice['confirm_text'] : __('Subscribe me now', 'advanced-ads'); ?></button>
|
4 |
</p>
|
5 |
</div>
|
admin/views/notices/subscribe.php
CHANGED
@@ -1,5 +1,5 @@
|
|
1 |
<div class="updated advads-admin-notice notice is-dismissible" data-notice="<?php echo $_notice ?>">
|
2 |
<p><?php echo $text; ?>
|
3 |
-
<button type="button" class="button-primary advads-notices-button-subscribe" data-notice="<?php echo $_notice ?>"><?php echo isset( $notice['confirm_text'] ) ? $notice['confirm_text'] : __('Subscribe me now',
|
4 |
</p>
|
5 |
</div>
|
1 |
<div class="updated advads-admin-notice notice is-dismissible" data-notice="<?php echo $_notice ?>">
|
2 |
<p><?php echo $text; ?>
|
3 |
+
<button type="button" class="button-primary advads-notices-button-subscribe" data-notice="<?php echo $_notice ?>"><?php echo isset( $notice['confirm_text'] ) ? $notice['confirm_text'] : __('Subscribe me now', 'advanced-ads'); ?></button>
|
4 |
</p>
|
5 |
</div>
|
admin/views/overview.php
CHANGED
@@ -20,7 +20,7 @@ add_thickbox();
|
|
20 |
if ( wp_is_mobile() ) {
|
21 |
wp_enqueue_script( 'jquery-touch-punch' ); }
|
22 |
|
23 |
-
$title = __( 'Ads Dashboard',
|
24 |
|
25 |
?><div class="wrap">
|
26 |
<h1><?php echo esc_html( $title ); ?></h1>
|
20 |
if ( wp_is_mobile() ) {
|
21 |
wp_enqueue_script( 'jquery-touch-punch' ); }
|
22 |
|
23 |
+
$title = __( 'Ads Dashboard', 'advanced-ads' );
|
24 |
|
25 |
?><div class="wrap">
|
26 |
<h1><?php echo esc_html( $title ); ?></h1>
|
admin/views/placements.php
CHANGED
@@ -5,24 +5,24 @@
|
|
5 |
?><div class="wrap">
|
6 |
<?php if ( isset($_GET['message'] ) ) :
|
7 |
if ( $_GET['message'] === 'error' ) :
|
8 |
-
?><div id="message" class="error"><p><?php _e( 'Couldn’t create the new placement. Please check your form field and whether the name is already in use.',
|
9 |
elseif ( $_GET['message'] === 'updated' ) :
|
10 |
-
?><div id="message" class="updated"><p><?php _e( 'Placements updated',
|
11 |
endif; ?>
|
12 |
<?php endif; ?>
|
13 |
<?php screen_icon(); ?>
|
14 |
<h1><?php echo esc_html( get_admin_page_title() ); ?></h1>
|
15 |
-
<p class="description"><?php _e( 'Placements are physically places in your theme and posts. You can use them if you plan to change ads and ad groups on the same place without the need to change your templates.',
|
16 |
-
<p class="description"><?php printf( __( 'See also the manual for more information on <a href="%s">placements</a>.',
|
17 |
<?php if ( isset($placements) && is_array( $placements ) && count( $placements ) ) : ?>
|
18 |
-
<h2><?php _e( 'Placements',
|
19 |
<form method="POST" action="">
|
20 |
<table class="widefat advads-placements-table striped">
|
21 |
<thead>
|
22 |
<tr>
|
23 |
-
<th><?php _e( 'Type',
|
24 |
-
<th><?php _e( 'Name',
|
25 |
-
<th><?php _e( 'Options',
|
26 |
<th></th>
|
27 |
</tr>
|
28 |
</thead>
|
@@ -39,7 +39,7 @@
|
|
39 |
?><tr>
|
40 |
<td><?php
|
41 |
if( $type_missing ) : // type is not given
|
42 |
-
?><p class="advads-error-message"><?php printf(__( 'Placement type "%s" is missing and was reset to "default".<br/>Please check if the responsible add-on is activated.',
|
43 |
elseif( isset($_placement['type'] )) :
|
44 |
if( isset( $placement_types[$_placement['type']]['image'] )) :
|
45 |
?><img src="<?php echo $placement_types[$_placement['type']]['image'];
|
@@ -48,17 +48,17 @@
|
|
48 |
echo $placement_types[$_placement['type']]['title'];
|
49 |
endif;
|
50 |
else :
|
51 |
-
__( 'default',
|
52 |
endif;
|
53 |
?></td>
|
54 |
<td><?php echo $_placement['name']; ?><br/>
|
55 |
<?php if( ! isset( $_placement['type'] ) || 'default' === $_placement['type']) :
|
56 |
$_placement['type'] = 'default';
|
57 |
-
?><a class="usage-link"><?php _e( 'show usage',
|
58 |
-
<label><?php _e( 'shortcode',
|
59 |
<code><input type="text" onclick="this.select();" value='[the_ad_placement id="<?php echo $_placement_slug; ?>"]'/></code>
|
60 |
</label>
|
61 |
-
<label><?php _e( 'template',
|
62 |
<code><input type="text" onclick="this.select();" value="the_ad_placement('<?php echo $_placement_slug; ?>');"/></code>
|
63 |
</label>
|
64 |
</div><?php
|
@@ -66,18 +66,18 @@
|
|
66 |
?></td>
|
67 |
<td class="advads-placements-table-options">
|
68 |
<?php do_action( 'advanced-ads-placement-options-before', $_placement_slug, $_placement ); ?>
|
69 |
-
<label for="adsads-placements-item-<?php echo $_placement_slug; ?>"><?php _e( 'Item',
|
70 |
<select id="adsads-placements-item-<?php echo $_placement_slug; ?>" name="advads[placements][<?php echo $_placement_slug; ?>][item]">
|
71 |
-
<option value=""><?php _e( '--not selected--',
|
72 |
<?php if ( isset($items['groups']) ) : ?>
|
73 |
-
<optgroup label="<?php _e( 'Ad Groups',
|
74 |
<?php foreach ( $items['groups'] as $_item_id => $_item_title ) : ?>
|
75 |
<option value="<?php echo $_item_id; ?>" <?php if ( isset($_placement['item']) ) { selected( $_item_id, $_placement['item'] ); } ?>><?php echo $_item_title; ?></option>
|
76 |
<?php endforeach; ?>
|
77 |
</optgroup>
|
78 |
<?php endif; ?>
|
79 |
<?php if ( isset($items['ads']) ) : ?>
|
80 |
-
<optgroup label="<?php _e( 'Ads',
|
81 |
<?php foreach ( $items['ads'] as $_item_id => $_item_title ) : ?>
|
82 |
<option value="<?php echo $_item_id; ?>" <?php if ( isset($_placement['item']) ) { selected( $_item_id, $_placement['item'] ); } ?>><?php echo $_item_title; ?></option>
|
83 |
<?php endforeach; ?>
|
@@ -88,8 +88,8 @@
|
|
88 |
switch ( $_placement['type'] ) :
|
89 |
case 'post_content' :
|
90 |
?><div class="advads-placement-options"><?php
|
91 |
-
_e( 'Inject',
|
92 |
-
$_positions = array('after' => __( 'after',
|
93 |
<select name="advads[placements][<?php echo $_placement_slug; ?>][options][position]">
|
94 |
<?php foreach ( $_positions as $_pos_key => $_pos ) : ?>
|
95 |
<option value="<?php echo $_pos_key; ?>" <?php if ( isset($_placement['options']['position']) ) { selected( $_placement['options']['position'], $_pos_key ); } ?>><?php echo $_pos; ?></option>
|
@@ -109,10 +109,10 @@
|
|
109 |
|
110 |
<p><label><input type="checkbox" name="advads[placements][<?php echo $_placement_slug; ?>][options][start_from_bottom]" value="1" <?php
|
111 |
if (isset($_placement['options']['start_from_bottom'])) { checked( $_placement['options']['start_from_bottom'], 1); }
|
112 |
-
?>/><?php _e( 'start counting from bottom',
|
113 |
</div>
|
114 |
<?php if( ! function_exists( 'mb_convert_encoding' ) ) : ?>
|
115 |
-
<p><span class="advads-error-message"><?php _e( 'Important Notice',
|
116 |
<?php endif;
|
117 |
break;
|
118 |
endswitch;
|
@@ -122,7 +122,7 @@
|
|
122 |
$advanced_options = ob_get_clean();
|
123 |
if( $advanced_options ) :
|
124 |
?><a class="advads-toggle-link" onclick="advads_toggle('.advads-placements-advanced-options-<?php
|
125 |
-
echo $_placement_slug; ?>')">- <?php _e( 'advanced options',
|
126 |
<div class="advads-placements-advanced-options-<?php echo $_placement_slug; ?>" style="display: none"><?php
|
127 |
echo $advanced_options;
|
128 |
?></div><?php
|
@@ -130,23 +130,23 @@
|
|
130 |
?></td>
|
131 |
<td>
|
132 |
<input type="checkbox" id="adsads-placements-item-delete-<?php echo $_placement_slug; ?>" name="advads[placements][<?php echo $_placement_slug; ?>][delete]" value="1"/>
|
133 |
-
<label for="adsads-placements-item-delete-<?php echo $_placement_slug; ?>"><?php _ex( 'delete', 'checkbox to remove placement',
|
134 |
</td>
|
135 |
</tr>
|
136 |
<?php endforeach; ?>
|
137 |
</tbody>
|
138 |
</table>
|
139 |
-
<input type="submit" class="button button-primary" value="<?php _e( 'Save Placements',
|
140 |
<?php wp_nonce_field( 'advads-placement', 'advads_placement', true ) ?>
|
141 |
-
<button type="button" title="<?php _e( 'Create a new placement',
|
142 |
-
_e( 'New Placement',
|
143 |
</form>
|
144 |
<?php do_action( 'advanced-ads-placements-list-after', $placements );
|
145 |
endif;
|
146 |
|
147 |
?><form method="POST" action="" onsubmit="return advads_validate_placement_form();" class="advads-placements-new-form"<?php if ( isset($placements) && count( $placements ) ) echo ' style="display: none;"' ; ?>>
|
148 |
-
<h3>1. <?php _e( 'Choose a placement type',
|
149 |
-
<p class="description"><?php printf(__( 'Placement types define where the ad is going to be displayed. Learn more about the different types from the <a href="%s">manual</a>',
|
150 |
<div class= "advads-new-placement-types advads-buttonset">
|
151 |
<?php
|
152 |
if ( is_array( $placement_types ) ) {
|
@@ -163,25 +163,25 @@ endif;
|
|
163 |
endforeach; };
|
164 |
?></div>
|
165 |
<div class="clear"></div>
|
166 |
-
<p class="advads-error-message advads-placement-type-error"><?php _e( 'Please select a placement type.',
|
167 |
<br/>
|
168 |
-
<h3>2. <?php _e( 'Choose a Name',
|
169 |
-
<p class="description"><?php _e( 'The name of the placement is only visible to you. Tip: choose a descriptive one, e.g. <em>Below Post Headline</em>.',
|
170 |
-
<p><input name="advads[placement][name]" class="advads-new-placement-name" type="text" value="" placeholder="<?php _e( 'Placement Name',
|
171 |
-
<p class="advads-error-message advads-placement-name-error"><?php _e( 'Please enter a name for your placement.',
|
172 |
-
<h3>3. <?php _e( 'Choose the Ad or Group',
|
173 |
-
<p class="description"><?php _e( 'The ad or group that should be displayed.',
|
174 |
<p><select name="advads[placement][item]">
|
175 |
-
<option value=""><?php _e( '--not selected--',
|
176 |
<?php if ( isset($items['groups']) ) : ?>
|
177 |
-
<optgroup label="<?php _e( 'Ad Groups',
|
178 |
<?php foreach ( $items['groups'] as $_item_id => $_item_title ) : ?>
|
179 |
<option value="<?php echo $_item_id; ?>"><?php echo $_item_title; ?></option>
|
180 |
<?php endforeach; ?>
|
181 |
</optgroup>
|
182 |
<?php endif; ?>
|
183 |
<?php if ( isset($items['ads']) ) : ?>
|
184 |
-
<optgroup label="<?php _e( 'Ads',
|
185 |
<?php foreach ( $items['ads'] as $_item_id => $_item_title ) : ?>
|
186 |
<option value="<?php echo $_item_id; ?>"><?php echo $_item_title; ?></option>
|
187 |
<?php endforeach; ?>
|
@@ -189,6 +189,6 @@ endif;
|
|
189 |
<?php endif; ?>
|
190 |
</select></p>
|
191 |
<?php wp_nonce_field( 'advads-placement', 'advads_placement', true ) ?>
|
192 |
-
<input type="submit" class="button button-primary" value="<?php _e( 'Save New Placement',
|
193 |
</form>
|
194 |
</div>
|
5 |
?><div class="wrap">
|
6 |
<?php if ( isset($_GET['message'] ) ) :
|
7 |
if ( $_GET['message'] === 'error' ) :
|
8 |
+
?><div id="message" class="error"><p><?php _e( 'Couldn’t create the new placement. Please check your form field and whether the name is already in use.', 'advanced-ads' ); ?></p></div><?php
|
9 |
elseif ( $_GET['message'] === 'updated' ) :
|
10 |
+
?><div id="message" class="updated"><p><?php _e( 'Placements updated', 'advanced-ads' ); ?></p></div><?php
|
11 |
endif; ?>
|
12 |
<?php endif; ?>
|
13 |
<?php screen_icon(); ?>
|
14 |
<h1><?php echo esc_html( get_admin_page_title() ); ?></h1>
|
15 |
+
<p class="description"><?php _e( 'Placements are physically places in your theme and posts. You can use them if you plan to change ads and ad groups on the same place without the need to change your templates.', 'advanced-ads' ); ?></p>
|
16 |
+
<p class="description"><?php printf( __( 'See also the manual for more information on <a href="%s">placements</a>.', 'advanced-ads' ), ADVADS_URL . 'manual/placements/' ); ?></p>
|
17 |
<?php if ( isset($placements) && is_array( $placements ) && count( $placements ) ) : ?>
|
18 |
+
<h2><?php _e( 'Placements', 'advanced-ads' ); ?></h2>
|
19 |
<form method="POST" action="">
|
20 |
<table class="widefat advads-placements-table striped">
|
21 |
<thead>
|
22 |
<tr>
|
23 |
+
<th><?php _e( 'Type', 'advanced-ads' ); ?></th>
|
24 |
+
<th><?php _e( 'Name', 'advanced-ads' ); ?></th>
|
25 |
+
<th><?php _e( 'Options', 'advanced-ads' ); ?></th>
|
26 |
<th></th>
|
27 |
</tr>
|
28 |
</thead>
|
39 |
?><tr>
|
40 |
<td><?php
|
41 |
if( $type_missing ) : // type is not given
|
42 |
+
?><p class="advads-error-message"><?php printf(__( 'Placement type "%s" is missing and was reset to "default".<br/>Please check if the responsible add-on is activated.', 'advanced-ads' ), $missed_type ); ?></p><?php
|
43 |
elseif( isset($_placement['type'] )) :
|
44 |
if( isset( $placement_types[$_placement['type']]['image'] )) :
|
45 |
?><img src="<?php echo $placement_types[$_placement['type']]['image'];
|
48 |
echo $placement_types[$_placement['type']]['title'];
|
49 |
endif;
|
50 |
else :
|
51 |
+
__( 'default', 'advanced-ads' );
|
52 |
endif;
|
53 |
?></td>
|
54 |
<td><?php echo $_placement['name']; ?><br/>
|
55 |
<?php if( ! isset( $_placement['type'] ) || 'default' === $_placement['type']) :
|
56 |
$_placement['type'] = 'default';
|
57 |
+
?><a class="usage-link"><?php _e( 'show usage', 'advanced-ads' ); ?></a><div class="hidden advads-usage">
|
58 |
+
<label><?php _e( 'shortcode', 'advanced-ads' ); ?>
|
59 |
<code><input type="text" onclick="this.select();" value='[the_ad_placement id="<?php echo $_placement_slug; ?>"]'/></code>
|
60 |
</label>
|
61 |
+
<label><?php _e( 'template', 'advanced-ads' ); ?>
|
62 |
<code><input type="text" onclick="this.select();" value="the_ad_placement('<?php echo $_placement_slug; ?>');"/></code>
|
63 |
</label>
|
64 |
</div><?php
|
66 |
?></td>
|
67 |
<td class="advads-placements-table-options">
|
68 |
<?php do_action( 'advanced-ads-placement-options-before', $_placement_slug, $_placement ); ?>
|
69 |
+
<label for="adsads-placements-item-<?php echo $_placement_slug; ?>"><?php _e( 'Item', 'advanced-ads' ); ?></label>
|
70 |
<select id="adsads-placements-item-<?php echo $_placement_slug; ?>" name="advads[placements][<?php echo $_placement_slug; ?>][item]">
|
71 |
+
<option value=""><?php _e( '--not selected--', 'advanced-ads' ); ?></option>
|
72 |
<?php if ( isset($items['groups']) ) : ?>
|
73 |
+
<optgroup label="<?php _e( 'Ad Groups', 'advanced-ads' ); ?>">
|
74 |
<?php foreach ( $items['groups'] as $_item_id => $_item_title ) : ?>
|
75 |
<option value="<?php echo $_item_id; ?>" <?php if ( isset($_placement['item']) ) { selected( $_item_id, $_placement['item'] ); } ?>><?php echo $_item_title; ?></option>
|
76 |
<?php endforeach; ?>
|
77 |
</optgroup>
|
78 |
<?php endif; ?>
|
79 |
<?php if ( isset($items['ads']) ) : ?>
|
80 |
+
<optgroup label="<?php _e( 'Ads', 'advanced-ads' ); ?>">
|
81 |
<?php foreach ( $items['ads'] as $_item_id => $_item_title ) : ?>
|
82 |
<option value="<?php echo $_item_id; ?>" <?php if ( isset($_placement['item']) ) { selected( $_item_id, $_placement['item'] ); } ?>><?php echo $_item_title; ?></option>
|
83 |
<?php endforeach; ?>
|
88 |
switch ( $_placement['type'] ) :
|
89 |
case 'post_content' :
|
90 |
?><div class="advads-placement-options"><?php
|
91 |
+
_e( 'Inject', 'advanced-ads' );
|
92 |
+
$_positions = array('after' => __( 'after', 'advanced-ads' ), 'before' => __( 'before', 'advanced-ads' )); ?>
|
93 |
<select name="advads[placements][<?php echo $_placement_slug; ?>][options][position]">
|
94 |
<?php foreach ( $_positions as $_pos_key => $_pos ) : ?>
|
95 |
<option value="<?php echo $_pos_key; ?>" <?php if ( isset($_placement['options']['position']) ) { selected( $_placement['options']['position'], $_pos_key ); } ?>><?php echo $_pos; ?></option>
|
109 |
|
110 |
<p><label><input type="checkbox" name="advads[placements][<?php echo $_placement_slug; ?>][options][start_from_bottom]" value="1" <?php
|
111 |
if (isset($_placement['options']['start_from_bottom'])) { checked( $_placement['options']['start_from_bottom'], 1); }
|
112 |
+
?>/><?php _e( 'start counting from bottom', 'advanced-ads' ); ?></label></p>
|
113 |
</div>
|
114 |
<?php if( ! function_exists( 'mb_convert_encoding' ) ) : ?>
|
115 |
+
<p><span class="advads-error-message"><?php _e( 'Important Notice', 'advanced-ads' ); ?>: </span><?php _e( 'Your server is missing an extension. This might break the content injection.<br/>Ignore this warning if everything works fine or else ask your hosting provider to enable <em>mbstring</em>.', 'advanced-ads' ); ?></p>
|
116 |
<?php endif;
|
117 |
break;
|
118 |
endswitch;
|
122 |
$advanced_options = ob_get_clean();
|
123 |
if( $advanced_options ) :
|
124 |
?><a class="advads-toggle-link" onclick="advads_toggle('.advads-placements-advanced-options-<?php
|
125 |
+
echo $_placement_slug; ?>')">- <?php _e( 'advanced options', 'advanced-ads' ); ?> –</a>
|
126 |
<div class="advads-placements-advanced-options-<?php echo $_placement_slug; ?>" style="display: none"><?php
|
127 |
echo $advanced_options;
|
128 |
?></div><?php
|
130 |
?></td>
|
131 |
<td>
|
132 |
<input type="checkbox" id="adsads-placements-item-delete-<?php echo $_placement_slug; ?>" name="advads[placements][<?php echo $_placement_slug; ?>][delete]" value="1"/>
|
133 |
+
<label for="adsads-placements-item-delete-<?php echo $_placement_slug; ?>"><?php _ex( 'delete', 'checkbox to remove placement', 'advanced-ads' ); ?></label>
|
134 |
</td>
|
135 |
</tr>
|
136 |
<?php endforeach; ?>
|
137 |
</tbody>
|
138 |
</table>
|
139 |
+
<input type="submit" class="button button-primary" value="<?php _e( 'Save Placements', 'advanced-ads' ); ?>"/>
|
140 |
<?php wp_nonce_field( 'advads-placement', 'advads_placement', true ) ?>
|
141 |
+
<button type="button" title="<?php _e( 'Create a new placement', 'advanced-ads' ); ?>" class="button-secondary" onclick="advads_toggle('.advads-placements-new-form')"><?php
|
142 |
+
_e( 'New Placement', 'advanced-ads' ); ?></button>
|
143 |
</form>
|
144 |
<?php do_action( 'advanced-ads-placements-list-after', $placements );
|
145 |
endif;
|
146 |
|
147 |
?><form method="POST" action="" onsubmit="return advads_validate_placement_form();" class="advads-placements-new-form"<?php if ( isset($placements) && count( $placements ) ) echo ' style="display: none;"' ; ?>>
|
148 |
+
<h3>1. <?php _e( 'Choose a placement type', 'advanced-ads' ); ?></h3>
|
149 |
+
<p class="description"><?php printf(__( 'Placement types define where the ad is going to be displayed. Learn more about the different types from the <a href="%s">manual</a>', 'advanced-ads' ), ADVADS_URL . 'manual/placements/' ); ?></p>
|
150 |
<div class= "advads-new-placement-types advads-buttonset">
|
151 |
<?php
|
152 |
if ( is_array( $placement_types ) ) {
|
163 |
endforeach; };
|
164 |
?></div>
|
165 |
<div class="clear"></div>
|
166 |
+
<p class="advads-error-message advads-placement-type-error"><?php _e( 'Please select a placement type.', 'advanced-ads' ); ?></p>
|
167 |
<br/>
|
168 |
+
<h3>2. <?php _e( 'Choose a Name', 'advanced-ads' ); ?></h3>
|
169 |
+
<p class="description"><?php _e( 'The name of the placement is only visible to you. Tip: choose a descriptive one, e.g. <em>Below Post Headline</em>.', 'advanced-ads' ); ?></p>
|
170 |
+
<p><input name="advads[placement][name]" class="advads-new-placement-name" type="text" value="" placeholder="<?php _e( 'Placement Name', 'advanced-ads' ); ?>"/></p>
|
171 |
+
<p class="advads-error-message advads-placement-name-error"><?php _e( 'Please enter a name for your placement.', 'advanced-ads' ); ?></p>
|
172 |
+
<h3>3. <?php _e( 'Choose the Ad or Group', 'advanced-ads' ); ?></h3>
|
173 |
+
<p class="description"><?php _e( 'The ad or group that should be displayed.', 'advanced-ads' ); ?></p>
|
174 |
<p><select name="advads[placement][item]">
|
175 |
+
<option value=""><?php _e( '--not selected--', 'advanced-ads' ); ?></option>
|
176 |
<?php if ( isset($items['groups']) ) : ?>
|
177 |
+
<optgroup label="<?php _e( 'Ad Groups', 'advanced-ads' ); ?>">
|
178 |
<?php foreach ( $items['groups'] as $_item_id => $_item_title ) : ?>
|
179 |
<option value="<?php echo $_item_id; ?>"><?php echo $_item_title; ?></option>
|
180 |
<?php endforeach; ?>
|
181 |
</optgroup>
|
182 |
<?php endif; ?>
|
183 |
<?php if ( isset($items['ads']) ) : ?>
|
184 |
+
<optgroup label="<?php _e( 'Ads', 'advanced-ads' ); ?>">
|
185 |
<?php foreach ( $items['ads'] as $_item_id => $_item_title ) : ?>
|
186 |
<option value="<?php echo $_item_id; ?>"><?php echo $_item_title; ?></option>
|
187 |
<?php endforeach; ?>
|
189 |
<?php endif; ?>
|
190 |
</select></p>
|
191 |
<?php wp_nonce_field( 'advads-placement', 'advads_placement', true ) ?>
|
192 |
+
<input type="submit" class="button button-primary" value="<?php _e( 'Save New Placement', 'advanced-ads' ); ?>"/>
|
193 |
</form>
|
194 |
</div>
|
admin/views/post-ad-settings-metabox.php
CHANGED
@@ -1,3 +1,3 @@
|
|
1 |
<label><input type="checkbox" name="advanced_ads[disable_ads]" value="1" <?php
|
2 |
if ( isset($values['disable_ads']) ) { checked( $values['disable_ads'], true ); }
|
3 |
-
?>/><?php _e( 'Disable ads on this page',
|
1 |
<label><input type="checkbox" name="advanced_ads[disable_ads]" value="1" <?php
|
2 |
if ( isset($values['disable_ads']) ) { checked( $values['disable_ads'], true ); }
|
3 |
+
?>/><?php _e( 'Disable ads on this page', 'advanced-ads' ); ?></label>
|
admin/views/setting-license.php
CHANGED
@@ -7,11 +7,11 @@ if( $expires ){
|
|
7 |
$days_left = ( $expires_time - time() ) / DAY_IN_SECONDS;
|
8 |
if( $days_left <= 0 ){
|
9 |
$plugin_url = isset( $plugin_url ) ? $plugin_url : ADVADS_URL;
|
10 |
-
$errortext = sprintf(__( 'Your license expired. Please visit <a href="%s" target="_blank">the plugin page</a> to renew it.',
|
11 |
$expired = true;
|
12 |
}
|
13 |
};
|
14 |
-
?><input type="text" class="regular-text" placeholder="<?php _e( 'License key',
|
15 |
name="<?php echo ADVADS_SLUG . '-licenses'; ?>[<?php echo $index; ?>]"
|
16 |
value="<?php echo esc_attr_e($license_key); ?>"/><?php
|
17 |
if( $license_status !== false && $license_status == 'valid' && ! $expired ) :
|
@@ -26,15 +26,15 @@ else :
|
|
26 |
name="advads_license_activate"><?php _e('Activate License'); ?></button><?php
|
27 |
endif;
|
28 |
if( ! $expired ){
|
29 |
-
$errortext = ( ! $license_status || $license_status == 'invalid') ? __('license key invalid',
|
30 |
}
|
31 |
endif;
|
32 |
if( $errortext ) :
|
33 |
?><span class="advads-license-activate-error"><?php echo $errortext; ?></span><?php
|
34 |
endif;
|
35 |
-
?><span class="advads-license-activate-active" <?php if( ! $show_active ) echo 'style="display: none;"'; ?>><?php _e( 'active',
|
36 |
-
?> <?php if( isset( $days_left ) && $days_left > 0 ) echo sprintf( __('(%d days left)',
|
37 |
?></span><?php
|
38 |
if($license_key === '') :
|
39 |
-
?><p class="description"><?php _e( '1. enter the key and save options; 2. click the activate button behind the field',
|
40 |
endif;
|
7 |
$days_left = ( $expires_time - time() ) / DAY_IN_SECONDS;
|
8 |
if( $days_left <= 0 ){
|
9 |
$plugin_url = isset( $plugin_url ) ? $plugin_url : ADVADS_URL;
|
10 |
+
$errortext = sprintf(__( 'Your license expired. Please visit <a href="%s" target="_blank">the plugin page</a> to renew it.', 'advanced-ads' ), $plugin_url );
|
11 |
$expired = true;
|
12 |
}
|
13 |
};
|
14 |
+
?><input type="text" class="regular-text" placeholder="<?php _e( 'License key', 'advanced-ads' ); ?>"
|
15 |
name="<?php echo ADVADS_SLUG . '-licenses'; ?>[<?php echo $index; ?>]"
|
16 |
value="<?php echo esc_attr_e($license_key); ?>"/><?php
|
17 |
if( $license_status !== false && $license_status == 'valid' && ! $expired ) :
|
26 |
name="advads_license_activate"><?php _e('Activate License'); ?></button><?php
|
27 |
endif;
|
28 |
if( ! $expired ){
|
29 |
+
$errortext = ( ! $license_status || $license_status == 'invalid') ? __('license key invalid', 'advanced-ads') : '';
|
30 |
}
|
31 |
endif;
|
32 |
if( $errortext ) :
|
33 |
?><span class="advads-license-activate-error"><?php echo $errortext; ?></span><?php
|
34 |
endif;
|
35 |
+
?><span class="advads-license-activate-active" <?php if( ! $show_active ) echo 'style="display: none;"'; ?>><?php _e( 'active', 'advanced-ads' );
|
36 |
+
?> <?php if( isset( $days_left ) && $days_left > 0 ) echo sprintf( __('(%d days left)', 'advanced-ads' ), $days_left );
|
37 |
?></span><?php
|
38 |
if($license_key === '') :
|
39 |
+
?><p class="description"><?php _e( '1. enter the key and save options; 2. click the activate button behind the field', 'advanced-ads' ); ?></p><?php
|
40 |
endif;
|
admin/views/settings-disable-ads.php
CHANGED
@@ -1,17 +1,17 @@
|
|
1 |
<label><input id="advanced-ads-disable-ads-all" type="checkbox" value="1" name="<?php
|
2 |
-
|
3 |
-
?>><?php _e( 'Disable all ads in frontend',
|
4 |
-
<p class="description"><?php _e( 'Use this option to disable all ads in the frontend, but still be able to use the plugin.',
|
5 |
|
6 |
<label><input id="advanced-ads-disable-ads-404" type="checkbox" value="1" name="<?php
|
7 |
echo ADVADS_SLUG; ?>[disabled-ads][404]" <?php checked( $disable_404, 1 );
|
8 |
-
?>><?php _e( 'Disable ads on 404 error pages',
|
9 |
|
10 |
<br/><label><input id="advanced-ads-disable-ads-archives" type="checkbox" value="1" name="<?php
|
11 |
echo ADVADS_SLUG; ?>[disabled-ads][archives]" <?php checked( $disable_archives, 1 );
|
12 |
-
?>><?php _e( 'Disable ads on non-singular pages',
|
13 |
-
<p class="description"><?php _e( 'e.g. archive pages like categories, tags, authors, front page (if a list)',
|
14 |
<label><input id="advanced-ads-disable-ads-secondary" type="checkbox" value="1" name="<?php
|
15 |
echo ADVADS_SLUG; ?>[disabled-ads][secondary]" <?php checked( $disable_secondary, 1 );
|
16 |
-
?>><?php _e( 'Disable ads on secondary queries',
|
17 |
-
<p class="description"><?php _e( 'Secondary queries are custom queries of posts outside the main query of a page. Try this option if you see ads injected on places where they shouldn’t appear.',
|
1 |
<label><input id="advanced-ads-disable-ads-all" type="checkbox" value="1" name="<?php
|
2 |
+
echo ADVADS_SLUG ?>[disabled-ads][all]" <?php checked( $disable_all, 1 );
|
3 |
+
?>><?php _e( 'Disable all ads in frontend', 'advanced-ads' ); ?></label>
|
4 |
+
<p class="description"><?php _e( 'Use this option to disable all ads in the frontend, but still be able to use the plugin.', 'advanced-ads' ); ?></p>
|
5 |
|
6 |
<label><input id="advanced-ads-disable-ads-404" type="checkbox" value="1" name="<?php
|
7 |
echo ADVADS_SLUG; ?>[disabled-ads][404]" <?php checked( $disable_404, 1 );
|
8 |
+
?>><?php _e( 'Disable ads on 404 error pages', 'advanced-ads' ); ?></label>
|
9 |
|
10 |
<br/><label><input id="advanced-ads-disable-ads-archives" type="checkbox" value="1" name="<?php
|
11 |
echo ADVADS_SLUG; ?>[disabled-ads][archives]" <?php checked( $disable_archives, 1 );
|
12 |
+
?>><?php _e( 'Disable ads on non-singular pages', 'advanced-ads' ); ?></label>
|
13 |
+
<p class="description"><?php _e( 'e.g. archive pages like categories, tags, authors, front page (if a list)', 'advanced-ads' ); ?></p>
|
14 |
<label><input id="advanced-ads-disable-ads-secondary" type="checkbox" value="1" name="<?php
|
15 |
echo ADVADS_SLUG; ?>[disabled-ads][secondary]" <?php checked( $disable_secondary, 1 );
|
16 |
+
?>><?php _e( 'Disable ads on secondary queries', 'advanced-ads' ); ?></label>
|
17 |
+
<p class="description"><?php _e( 'Secondary queries are custom queries of posts outside the main query of a page. Try this option if you see ads injected on places where they shouldn’t appear.', 'advanced-ads' ); ?></p>
|
admin/views/settings.php
CHANGED
@@ -9,7 +9,7 @@ $setting_tabs = apply_filters('advanced-ads-setting-tabs', array(
|
|
9 |
'page' => $this->plugin_screen_hook_suffix,
|
10 |
'group' => ADVADS_SLUG,
|
11 |
'tabid' => 'general',
|
12 |
-
'title' => __( 'General',
|
13 |
)
|
14 |
));
|
15 |
?><div class="wrap">
|
@@ -23,7 +23,7 @@ $setting_tabs = apply_filters('advanced-ads-setting-tabs', array(
|
|
23 |
<?php endforeach; ?>
|
24 |
</h2>
|
25 |
<?php foreach ( $setting_tabs as $_setting_tab_id => $_setting_tab ) : ?>
|
26 |
-
<form method="
|
27 |
<div id="<?php echo $_setting_tab_id; ?>" class="advads-tab"><?php
|
28 |
if ( isset( $_setting_tab['group'] ) ) {
|
29 |
settings_fields( $_setting_tab['group'] );
|
@@ -31,17 +31,17 @@ $setting_tabs = apply_filters('advanced-ads-setting-tabs', array(
|
|
31 |
do_settings_sections( $_setting_tab['page'] );
|
32 |
|
33 |
do_action( 'advanced-ads-settings-form', $_setting_tab_id, $_setting_tab );
|
34 |
-
submit_button( __( 'Save settings on this page',
|
35 |
?></div></form>
|
36 |
<?php endforeach; ?>
|
37 |
<?php
|
38 |
do_action( 'advanced-ads-additional-settings-form' );
|
39 |
?>
|
40 |
<ul>
|
41 |
-
<li><a href="/wp-admin/admin.php?page=advanced-ads-debug"><?php _e( 'Debug Page',
|
42 |
-
<li><a href="/wp-admin/admin.php?page=advanced-ads-intro"><?php _e( 'Welcome Page',
|
43 |
-
<li><a href="http://wordpress.org/plugins/advanced-ads/" title="<?php _e( 'Advanced Ads on WordPress.org',
|
44 |
-
<li><a href="http://webgilde.com" title="<?php _e( 'the company behind Advanced Ads',
|
45 |
</ul>
|
46 |
|
47 |
</div>
|
9 |
'page' => $this->plugin_screen_hook_suffix,
|
10 |
'group' => ADVADS_SLUG,
|
11 |
'tabid' => 'general',
|
12 |
+
'title' => __( 'General', 'advanced-ads' )
|
13 |
)
|
14 |
));
|
15 |
?><div class="wrap">
|
23 |
<?php endforeach; ?>
|
24 |
</h2>
|
25 |
<?php foreach ( $setting_tabs as $_setting_tab_id => $_setting_tab ) : ?>
|
26 |
+
<form method="post" action="options.php">
|
27 |
<div id="<?php echo $_setting_tab_id; ?>" class="advads-tab"><?php
|
28 |
if ( isset( $_setting_tab['group'] ) ) {
|
29 |
settings_fields( $_setting_tab['group'] );
|
31 |
do_settings_sections( $_setting_tab['page'] );
|
32 |
|
33 |
do_action( 'advanced-ads-settings-form', $_setting_tab_id, $_setting_tab );
|
34 |
+
submit_button( __( 'Save settings on this page', 'advanced-ads' ) );
|
35 |
?></div></form>
|
36 |
<?php endforeach; ?>
|
37 |
<?php
|
38 |
do_action( 'advanced-ads-additional-settings-form' );
|
39 |
?>
|
40 |
<ul>
|
41 |
+
<li><a href="/wp-admin/admin.php?page=advanced-ads-debug"><?php _e( 'Debug Page', 'advanced-ads' ); ?></a></li>
|
42 |
+
<li><a href="/wp-admin/admin.php?page=advanced-ads-intro"><?php _e( 'Welcome Page', 'advanced-ads' ); ?></a></li>
|
43 |
+
<li><a href="http://wordpress.org/plugins/advanced-ads/" title="<?php _e( 'Advanced Ads on WordPress.org', 'advanced-ads' ); ?>"><?php _e( 'Advanced Ads on wp.org', 'advanced-ads' ); ?></a></li>
|
44 |
+
<li><a href="http://webgilde.com" title="<?php _e( 'the company behind Advanced Ads', 'advanced-ads' ); ?>"><?php echo 'webgilde GmbH'; ?></a></li>
|
45 |
</ul>
|
46 |
|
47 |
</div>
|
admin/views/support.php
CHANGED
@@ -6,39 +6,39 @@
|
|
6 |
<?php screen_icon(); ?>
|
7 |
<h1><?php echo esc_html( get_admin_page_title() ); ?></h1>
|
8 |
<?php if( $mail_sent ) { ?>
|
9 |
-
<div class="notice updated"><p><?php _e( 'Email was successfully sent.',
|
10 |
<?php } ?>
|
11 |
-
<h2><?php _e( 'Search',
|
12 |
-
<p><?php _e( 'Use the following form to search for solutions in the manual on wpadvancedads.com',
|
13 |
<form action="https://wpadvancedads.com/" method="get">
|
14 |
<input type="search" name="s"/>
|
15 |
-
<input type="submit" value="<?php _e( 'search',
|
16 |
</form>
|
17 |
|
18 |
-
<h2><?php _e( 'Possible Issues',
|
19 |
-
<p><?php _e( 'Please fix the issues below or try to understand their consequences before contacting support.',
|
20 |
|
21 |
<?php $messages = array();
|
22 |
if( ! Advanced_Ads_Checks::php_version_minimum() ) :
|
23 |
-
$messages[] = sprintf(__( 'Your <strong>PHP version (%s) is too low</strong>. Advanced Ads is built for PHP 5.3 and higher. It might work, but updating PHP is highly recommended. Please ask your hosting provider for more information.',
|
24 |
endif;
|
25 |
if( Advanced_Ads_Checks::cache() && ! defined( 'AAP_VERSION' ) ) :
|
26 |
-
$messages[] = sprintf(__( 'Your <strong>website uses cache</strong>. Some dynamic features like ad rotation or visitor conditions might not work properly. Use the cache-busting feature of <a href="%s" target="_blank">Advanced Ads Pro</a> to load ads dynamically.',
|
27 |
endif;
|
28 |
if( Advanced_Ads_Checks::wp_update_available() ) :
|
29 |
-
$messages[] = __( 'There is a <strong>new WordPress version available</strong>. Please update.',
|
30 |
endif;
|
31 |
if( Advanced_Ads_Checks::plugin_updates_available() ) :
|
32 |
-
$messages[] = __( 'There are <strong>plugin updates available</strong>. Please update.',
|
33 |
endif;
|
34 |
if( Advanced_Ads_Checks::licenses_invalid() ) :
|
35 |
-
$messages[] = sprintf( __( 'One or more license keys for <strong>Advanced Ads add-ons are invalid or missing</strong>. Please add valid license keys <a href="%s">here</a>.',
|
36 |
endif;
|
37 |
if( Advanced_Ads_Checks::licenses_expired() ) :
|
38 |
-
$messages[] = sprintf( __( '<strong>Advanced Ads</strong> license(s) expired. Support and updates are disabled. Please visit <a href="%s"> the license page</a> for more information.',
|
39 |
endif;
|
40 |
if( Advanced_Ads_Checks::active_autoptimize() && ! defined( 'AAP_VERSION' ) ) :
|
41 |
-
$messages[] = sprintf(__( '<strong>Autoptimize plugin detected</strong>. While this plugin is great for site performance, it is known to alter code, including scripts from ad networks. <a href="%s" target="_blank">Advanced Ads Pro</a> has a build-in support for Autoptimize.',
|
42 |
endif;
|
43 |
|
44 |
if( count( $messages )) :
|
@@ -46,26 +46,26 @@
|
|
46 |
?><div class="message error"><p><?php echo $_message; ?></p></div><?php
|
47 |
endforeach;
|
48 |
endif; ?>
|
49 |
-
<h2><?php _e( 'Contact',
|
50 |
-
<p><?php printf(__( 'Please search the manual for a solution and take a look at <a href="%s" target="_blank">Ads not showing up?</a> before contacting me for help.',
|
51 |
<form action="" method="post">
|
52 |
<table class="form-table advads-support-form">
|
53 |
<tbody>
|
54 |
<tr>
|
55 |
-
<th scope="row"><label for="advads-support-email"><?php _e( 'your email',
|
56 |
<td scope="row"><input id="advads-support-email" class="regular-text" type="email" name="advads_support[email]" value="<?php echo $email; ?>"/></td>
|
57 |
</tr>
|
58 |
<tr>
|
59 |
-
<th scope="row"><label for="advads-support-name"><?php _e( 'your name',
|
60 |
<td scope="row"><input type="text" class="regular-text" name="advads_support[name]" value="<?php echo $name; ?>"/></td>
|
61 |
</tr>
|
62 |
<tr>
|
63 |
-
<th scope="row"><label for="advads-support-text"><?php _e( 'your message',
|
64 |
<td scope="row"><textarea name="advads_support[message]"><?php echo $message; ?></textarea></td>
|
65 |
</tr>
|
66 |
<tr>
|
67 |
<td></td>
|
68 |
-
<td><input type="submit" class="button button-primary" value="<?php _e( 'send',
|
69 |
</tr>
|
70 |
</tbody>
|
71 |
</table>
|
6 |
<?php screen_icon(); ?>
|
7 |
<h1><?php echo esc_html( get_admin_page_title() ); ?></h1>
|
8 |
<?php if( $mail_sent ) { ?>
|
9 |
+
<div class="notice updated"><p><?php _e( 'Email was successfully sent.', 'advanced-ads' ); ?></p></div>
|
10 |
<?php } ?>
|
11 |
+
<h2><?php _e( 'Search', 'advanced-ads' ); ?></h2>
|
12 |
+
<p><?php _e( 'Use the following form to search for solutions in the manual on wpadvancedads.com', 'advanced-ads' ); ?></p>
|
13 |
<form action="https://wpadvancedads.com/" method="get">
|
14 |
<input type="search" name="s"/>
|
15 |
+
<input type="submit" value="<?php _e( 'search', 'advanced-ads' ); ?>">
|
16 |
</form>
|
17 |
|
18 |
+
<h2><?php _e( 'Possible Issues', 'advanced-ads' ); ?></h2>
|
19 |
+
<p><?php _e( 'Please fix the issues below or try to understand their consequences before contacting support.', 'advanced-ads' ); ?></p>
|
20 |
|
21 |
<?php $messages = array();
|
22 |
if( ! Advanced_Ads_Checks::php_version_minimum() ) :
|
23 |
+
$messages[] = sprintf(__( 'Your <strong>PHP version (%s) is too low</strong>. Advanced Ads is built for PHP 5.3 and higher. It might work, but updating PHP is highly recommended. Please ask your hosting provider for more information.', 'advanced-ads' ), phpversion() );
|
24 |
endif;
|
25 |
if( Advanced_Ads_Checks::cache() && ! defined( 'AAP_VERSION' ) ) :
|
26 |
+
$messages[] = sprintf(__( 'Your <strong>website uses cache</strong>. Some dynamic features like ad rotation or visitor conditions might not work properly. Use the cache-busting feature of <a href="%s" target="_blank">Advanced Ads Pro</a> to load ads dynamically.', 'advanced-ads' ), ADVADS_URL . 'add-ons/advanced-ads-pro' );
|
27 |
endif;
|
28 |
if( Advanced_Ads_Checks::wp_update_available() ) :
|
29 |
+
$messages[] = __( 'There is a <strong>new WordPress version available</strong>. Please update.', 'advanced-ads' );
|
30 |
endif;
|
31 |
if( Advanced_Ads_Checks::plugin_updates_available() ) :
|
32 |
+
$messages[] = __( 'There are <strong>plugin updates available</strong>. Please update.', 'advanced-ads' );
|
33 |
endif;
|
34 |
if( Advanced_Ads_Checks::licenses_invalid() ) :
|
35 |
+
$messages[] = sprintf( __( 'One or more license keys for <strong>Advanced Ads add-ons are invalid or missing</strong>. Please add valid license keys <a href="%s">here</a>.', 'advanced-ads' ), admin_url( 'admin.php?page=advanced-ads-settings#top#licenses' ) );
|
36 |
endif;
|
37 |
if( Advanced_Ads_Checks::licenses_expired() ) :
|
38 |
+
$messages[] = sprintf( __( '<strong>Advanced Ads</strong> license(s) expired. Support and updates are disabled. Please visit <a href="%s"> the license page</a> for more information.', 'advanced-ads' ), admin_url( 'admin.php?page=advanced-ads-settings#top#licenses' ) );
|
39 |
endif;
|
40 |
if( Advanced_Ads_Checks::active_autoptimize() && ! defined( 'AAP_VERSION' ) ) :
|
41 |
+
$messages[] = sprintf(__( '<strong>Autoptimize plugin detected</strong>. While this plugin is great for site performance, it is known to alter code, including scripts from ad networks. <a href="%s" target="_blank">Advanced Ads Pro</a> has a build-in support for Autoptimize.', 'advanced-ads' ), ADVADS_URL . 'add-ons/advanced-ads-pro');
|
42 |
endif;
|
43 |
|
44 |
if( count( $messages )) :
|
46 |
?><div class="message error"><p><?php echo $_message; ?></p></div><?php
|
47 |
endforeach;
|
48 |
endif; ?>
|
49 |
+
<h2><?php _e( 'Contact', 'advanced-ads' ); ?></h2>
|
50 |
+
<p><?php printf(__( 'Please search the manual for a solution and take a look at <a href="%s" target="_blank">Ads not showing up?</a> before contacting me for help.', 'advanced-ads' ), ADVADS_URL . 'manual/ads-not-showing-up/' ); ?></p>
|
51 |
<form action="" method="post">
|
52 |
<table class="form-table advads-support-form">
|
53 |
<tbody>
|
54 |
<tr>
|
55 |
+
<th scope="row"><label for="advads-support-email"><?php _e( 'your email', 'advanced-ads' ); ?></label></th>
|
56 |
<td scope="row"><input id="advads-support-email" class="regular-text" type="email" name="advads_support[email]" value="<?php echo $email; ?>"/></td>
|
57 |
</tr>
|
58 |
<tr>
|
59 |
+
<th scope="row"><label for="advads-support-name"><?php _e( 'your name', 'advanced-ads' ); ?></label></th>
|
60 |
<td scope="row"><input type="text" class="regular-text" name="advads_support[name]" value="<?php echo $name; ?>"/></td>
|
61 |
</tr>
|
62 |
<tr>
|
63 |
+
<th scope="row"><label for="advads-support-text"><?php _e( 'your message', 'advanced-ads' ); ?></label></th>
|
64 |
<td scope="row"><textarea name="advads_support[message]"><?php echo $message; ?></textarea></td>
|
65 |
</tr>
|
66 |
<tr>
|
67 |
<td></td>
|
68 |
+
<td><input type="submit" class="button button-primary" value="<?php _e( 'send', 'advanced-ads' ); ?>"></td>
|
69 |
</tr>
|
70 |
</tbody>
|
71 |
</table>
|
advanced-ads.php
CHANGED
@@ -12,13 +12,13 @@
|
|
12 |
* Plugin Name: Advanced Ads
|
13 |
* Plugin URI: https://wpadvancedads.com
|
14 |
* Description: Manage and optimize your ads in WordPress
|
15 |
-
* Version: 1.6.9.
|
16 |
* Author: Thomas Maier
|
17 |
* Author URI: http://webgilde.com
|
18 |
* Text Domain: advanced-ads
|
|
|
19 |
* License: GPL-2.0+
|
20 |
* License URI: http://www.gnu.org/licenses/gpl-2.0.txt
|
21 |
-
* Domain Path: /languages
|
22 |
*/
|
23 |
|
24 |
// If this file is called directly, abort.
|
@@ -38,7 +38,7 @@ define( 'ADVADS_BASE_DIR', dirname( plugin_basename( __FILE__ ) ) ); // director
|
|
38 |
// general and global slug, e.g. to store options in WP, textdomain
|
39 |
define( 'ADVADS_SLUG', 'advanced-ads' );
|
40 |
define( 'ADVADS_URL', 'https://wpadvancedads.com/' );
|
41 |
-
define( 'ADVADS_VERSION', '1.6.9.
|
42 |
|
43 |
/*----------------------------------------------------------------------------*
|
44 |
* Autoloading, modules and functions
|
12 |
* Plugin Name: Advanced Ads
|
13 |
* Plugin URI: https://wpadvancedads.com
|
14 |
* Description: Manage and optimize your ads in WordPress
|
15 |
+
* Version: 1.6.9.4
|
16 |
* Author: Thomas Maier
|
17 |
* Author URI: http://webgilde.com
|
18 |
* Text Domain: advanced-ads
|
19 |
+
* Domain Path: /languages
|
20 |
* License: GPL-2.0+
|
21 |
* License URI: http://www.gnu.org/licenses/gpl-2.0.txt
|
|
|
22 |
*/
|
23 |
|
24 |
// If this file is called directly, abort.
|
38 |
// general and global slug, e.g. to store options in WP, textdomain
|
39 |
define( 'ADVADS_SLUG', 'advanced-ads' );
|
40 |
define( 'ADVADS_URL', 'https://wpadvancedads.com/' );
|
41 |
+
define( 'ADVADS_VERSION', '1.6.9.4' );
|
42 |
|
43 |
/*----------------------------------------------------------------------------*
|
44 |
* Autoloading, modules and functions
|
classes/EDD_SL_Plugin_Updater.php
CHANGED
@@ -174,14 +174,14 @@ class EDD_SL_Plugin_Updater {
|
|
174 |
|
175 |
if ( empty( $version_info->download_link ) ) {
|
176 |
printf(
|
177 |
-
__( 'There is a new version of %1$s available. <a target="_blank" class="thickbox" href="%2$s">View version %3$s details</a>.',
|
178 |
esc_html( $version_info->name ),
|
179 |
esc_url( $changelog_link ),
|
180 |
esc_html( $version_info->new_version )
|
181 |
);
|
182 |
} else {
|
183 |
printf(
|
184 |
-
__( 'There is a new version of %1$s available. <a target="_blank" class="thickbox" href="%2$s">View version %3$s details</a> or <a href="%4$s">update now</a>.',
|
185 |
esc_html( $version_info->name ),
|
186 |
esc_url( $changelog_link ),
|
187 |
esc_html( $version_info->new_version ),
|
@@ -321,7 +321,7 @@ class EDD_SL_Plugin_Updater {
|
|
321 |
}
|
322 |
|
323 |
if( ! current_user_can( 'update_plugins' ) ) {
|
324 |
-
wp_die( __( 'You do not have permission to install plugin updates',
|
325 |
}
|
326 |
|
327 |
$response = $this->api_request( 'plugin_latest_version', array( 'slug' => $_REQUEST['slug'] ) );
|
174 |
|
175 |
if ( empty( $version_info->download_link ) ) {
|
176 |
printf(
|
177 |
+
__( 'There is a new version of %1$s available. <a target="_blank" class="thickbox" href="%2$s">View version %3$s details</a>.', 'advanced-ads' ),
|
178 |
esc_html( $version_info->name ),
|
179 |
esc_url( $changelog_link ),
|
180 |
esc_html( $version_info->new_version )
|
181 |
);
|
182 |
} else {
|
183 |
printf(
|
184 |
+
__( 'There is a new version of %1$s available. <a target="_blank" class="thickbox" href="%2$s">View version %3$s details</a> or <a href="%4$s">update now</a>.', 'advanced-ads' ),
|
185 |
esc_html( $version_info->name ),
|
186 |
esc_url( $changelog_link ),
|
187 |
esc_html( $version_info->new_version ),
|
321 |
}
|
322 |
|
323 |
if( ! current_user_can( 'update_plugins' ) ) {
|
324 |
+
wp_die( __( 'You do not have permission to install plugin updates', 'advanced-ads' ), __( 'Error', 'advanced-ads' ), array( 'response' => 403 ) );
|
325 |
}
|
326 |
|
327 |
$response = $this->api_request( 'plugin_latest_version', array( 'slug' => $_REQUEST['slug'] ) );
|
classes/ad_ajax_callbacks.php
CHANGED
@@ -48,9 +48,9 @@ class Advanced_Ads_Ad_Ajax_Callbacks {
|
|
48 |
$types[$type]->render_parameters( $ad );
|
49 |
?>
|
50 |
<div id="advanced-ads-ad-parameters-size">
|
51 |
-
<p><?php _e( 'size:',
|
52 |
-
<label><?php _e( 'width',
|
53 |
-
<label><?php _e( 'height',
|
54 |
</div>
|
55 |
<?php
|
56 |
}
|
48 |
$types[$type]->render_parameters( $ad );
|
49 |
?>
|
50 |
<div id="advanced-ads-ad-parameters-size">
|
51 |
+
<p><?php _e( 'size:', 'advanced-ads' ); ?></p>
|
52 |
+
<label><?php _e( 'width', 'advanced-ads' ); ?><input type="number" size="4" maxlength="4" value="<?php echo isset($ad->width) ? $ad->width : 0; ?>" name="advanced_ad[width]">px</label>
|
53 |
+
<label><?php _e( 'height', 'advanced-ads' ); ?><input type="number" size="4" maxlength="4" value="<?php echo isset($ad->height) ? $ad->height : 0; ?>" name="advanced_ad[height]">px</label>
|
54 |
</div>
|
55 |
<?php
|
56 |
}
|
classes/ad_placements.php
CHANGED
@@ -28,33 +28,33 @@ class Advanced_Ads_Placements {
|
|
28 |
public static function get_placement_types() {
|
29 |
$types = array(
|
30 |
'default' => array(
|
31 |
-
'title' => __( 'Manual Placement',
|
32 |
-
'description' => __( 'Manual placement to use as function or shortcode.',
|
33 |
'image' => ADVADS_BASE_URL . 'admin/assets/img/placements/manual.png'
|
34 |
),
|
35 |
'header' => array(
|
36 |
-
'title' => __( 'Header Code',
|
37 |
-
'description' => __( 'Injected in Header (before closing </head> Tag, often not visible).',
|
38 |
'image' => ADVADS_BASE_URL . 'admin/assets/img/placements/header.png'
|
39 |
),
|
40 |
'footer' => array(
|
41 |
-
'title' => __( 'Footer Code',
|
42 |
-
'description' => __( 'Injected in Footer (before closing </body> Tag).',
|
43 |
'image' => ADVADS_BASE_URL . 'admin/assets/img/placements/footer.png'
|
44 |
),
|
45 |
'post_top' => array(
|
46 |
-
'title' => __( 'Before Content',
|
47 |
-
'description' => __( 'Injected before the post content.',
|
48 |
'image' => ADVADS_BASE_URL . 'admin/assets/img/placements/content-before.png'
|
49 |
),
|
50 |
'post_bottom' => array(
|
51 |
-
'title' => __( 'After Content',
|
52 |
-
'description' => __( 'Injected after the post content.',
|
53 |
'image' => ADVADS_BASE_URL . 'admin/assets/img/placements/content-after.png'
|
54 |
),
|
55 |
'post_content' => array(
|
56 |
-
'title' => __( 'Post Content',
|
57 |
-
'description' => __( 'Injected into the post content. You can choose the paragraph after which the ad content is displayed.',
|
58 |
'image' => ADVADS_BASE_URL . 'admin/assets/img/placements/content-within.png'
|
59 |
),
|
60 |
);
|
@@ -196,10 +196,10 @@ class Advanced_Ads_Placements {
|
|
196 |
*/
|
197 |
public static function tags_for_content_injection(){
|
198 |
$tags = array(
|
199 |
-
'p' => sprintf( __( 'paragraph (%s)',
|
200 |
-
'h2' => sprintf( __( 'headline 2 (%s)',
|
201 |
-
'h3' => sprintf( __( 'headline 3 (%s)',
|
202 |
-
'h4' => sprintf( __( 'headline 4 (%s)',
|
203 |
);
|
204 |
|
205 |
return $tags;
|
28 |
public static function get_placement_types() {
|
29 |
$types = array(
|
30 |
'default' => array(
|
31 |
+
'title' => __( 'Manual Placement', 'advanced-ads' ),
|
32 |
+
'description' => __( 'Manual placement to use as function or shortcode.', 'advanced-ads' ),
|
33 |
'image' => ADVADS_BASE_URL . 'admin/assets/img/placements/manual.png'
|
34 |
),
|
35 |
'header' => array(
|
36 |
+
'title' => __( 'Header Code', 'advanced-ads' ),
|
37 |
+
'description' => __( 'Injected in Header (before closing </head> Tag, often not visible).', 'advanced-ads' ),
|
38 |
'image' => ADVADS_BASE_URL . 'admin/assets/img/placements/header.png'
|
39 |
),
|
40 |
'footer' => array(
|
41 |
+
'title' => __( 'Footer Code', 'advanced-ads' ),
|
42 |
+
'description' => __( 'Injected in Footer (before closing </body> Tag).', 'advanced-ads' ),
|
43 |
'image' => ADVADS_BASE_URL . 'admin/assets/img/placements/footer.png'
|
44 |
),
|
45 |
'post_top' => array(
|
46 |
+
'title' => __( 'Before Content', 'advanced-ads' ),
|
47 |
+
'description' => __( 'Injected before the post content.', 'advanced-ads' ),
|
48 |
'image' => ADVADS_BASE_URL . 'admin/assets/img/placements/content-before.png'
|
49 |
),
|
50 |
'post_bottom' => array(
|
51 |
+
'title' => __( 'After Content', 'advanced-ads' ),
|
52 |
+
'description' => __( 'Injected after the post content.', 'advanced-ads' ),
|
53 |
'image' => ADVADS_BASE_URL . 'admin/assets/img/placements/content-after.png'
|
54 |
),
|
55 |
'post_content' => array(
|
56 |
+
'title' => __( 'Post Content', 'advanced-ads' ),
|
57 |
+
'description' => __( 'Injected into the post content. You can choose the paragraph after which the ad content is displayed.', 'advanced-ads' ),
|
58 |
'image' => ADVADS_BASE_URL . 'admin/assets/img/placements/content-within.png'
|
59 |
),
|
60 |
);
|
196 |
*/
|
197 |
public static function tags_for_content_injection(){
|
198 |
$tags = array(
|
199 |
+
'p' => sprintf( __( 'paragraph (%s)', 'advanced-ads' ), '<p>' ),
|
200 |
+
'h2' => sprintf( __( 'headline 2 (%s)', 'advanced-ads' ), '<h2>' ),
|
201 |
+
'h3' => sprintf( __( 'headline 3 (%s)', 'advanced-ads' ), '<h3>' ),
|
202 |
+
'h4' => sprintf( __( 'headline 4 (%s)', 'advanced-ads' ), '<h4>' ),
|
203 |
);
|
204 |
|
205 |
return $tags;
|
classes/ad_type_content.php
CHANGED
@@ -32,8 +32,8 @@ class Advanced_Ads_Ad_Type_Content extends Advanced_Ads_Ad_Type_Abstract{
|
|
32 |
* @since 1.0.0
|
33 |
*/
|
34 |
public function __construct() {
|
35 |
-
$this->title = __( 'Rich Content',
|
36 |
-
$this->description = __( 'The full content editor from WordPress with all features like shortcodes, image upload or styling, but also simple text/html mode for scripts and code.',
|
37 |
$this->parameters = array(
|
38 |
'content' => ''
|
39 |
);
|
@@ -60,7 +60,7 @@ class Advanced_Ads_Ad_Type_Content extends Advanced_Ads_Ad_Type_Abstract{
|
|
60 |
* don’t build it when ajax is used; display message and buttons instead
|
61 |
*/
|
62 |
if ( defined( 'DOING_AJAX' ) ){
|
63 |
-
?><p><?php _e( 'Please <strong>save the ad</strong> before changing it to the content type.',
|
64 |
$status = get_post_status( $ad->id );
|
65 |
if ( 'publish' != $status && 'future' != $status && 'pending' != $status ) { ?>
|
66 |
<input <?php if ( 'private' == $status ) { ?>style="display:none"<?php } ?> type="submit" name="save" id="save-post" value="<?php esc_attr_e( 'Save Draft' ); ?>" class="button button-primary" />
|
32 |
* @since 1.0.0
|
33 |
*/
|
34 |
public function __construct() {
|
35 |
+
$this->title = __( 'Rich Content', 'advanced-ads' );
|
36 |
+
$this->description = __( 'The full content editor from WordPress with all features like shortcodes, image upload or styling, but also simple text/html mode for scripts and code.', 'advanced-ads' );
|
37 |
$this->parameters = array(
|
38 |
'content' => ''
|
39 |
);
|
60 |
* don’t build it when ajax is used; display message and buttons instead
|
61 |
*/
|
62 |
if ( defined( 'DOING_AJAX' ) ){
|
63 |
+
?><p><?php _e( 'Please <strong>save the ad</strong> before changing it to the content type.', 'advanced-ads' ); ?></p><?php
|
64 |
$status = get_post_status( $ad->id );
|
65 |
if ( 'publish' != $status && 'future' != $status && 'pending' != $status ) { ?>
|
66 |
<input <?php if ( 'private' == $status ) { ?>style="display:none"<?php } ?> type="submit" name="save" id="save-post" value="<?php esc_attr_e( 'Save Draft' ); ?>" class="button button-primary" />
|
classes/ad_type_plain.php
CHANGED
@@ -28,8 +28,8 @@ class Advanced_Ads_Ad_Type_Plain extends Advanced_Ads_Ad_Type_Abstract{
|
|
28 |
* @since 1.0.0
|
29 |
*/
|
30 |
public function __construct() {
|
31 |
-
$this->title = __( 'Plain Text and Code',
|
32 |
-
$this->description = __( 'Simple text editor without any filters. You might use it to display unfiltered content, php code or javascript. Shortcodes and other WordPress content field magic does not work here.',
|
33 |
$this->parameters = array(
|
34 |
'content' => ''
|
35 |
);
|
@@ -64,10 +64,10 @@ class Advanced_Ads_Ad_Type_Plain extends Advanced_Ads_Ad_Type_Abstract{
|
|
64 |
}
|
65 |
}
|
66 |
|
67 |
-
?><p class="description"><?php _e( 'Insert plain text or code into this field.',
|
68 |
<textarea id="advads-ad-content-plain" cols="40" rows="10" name="advanced_ad[content]"><?php echo $content; ?></textarea>
|
69 |
<input type="hidden" name="advanced_ad[output][allow_php]" value="0"/>
|
70 |
-
<label class="advads-ad-allow-php"><input type="checkbox" name="advanced_ad[output][allow_php]" value="1" <?php checked( 1, $allow_php ); ?>/><?php _e( 'Execute PHP code (wrapped in <code><?php ?></code>)',
|
71 |
<?php
|
72 |
}
|
73 |
|
28 |
* @since 1.0.0
|
29 |
*/
|
30 |
public function __construct() {
|
31 |
+
$this->title = __( 'Plain Text and Code', 'advanced-ads' );
|
32 |
+
$this->description = __( 'Simple text editor without any filters. You might use it to display unfiltered content, php code or javascript. Shortcodes and other WordPress content field magic does not work here.', 'advanced-ads' );
|
33 |
$this->parameters = array(
|
34 |
'content' => ''
|
35 |
);
|
64 |
}
|
65 |
}
|
66 |
|
67 |
+
?><p class="description"><?php _e( 'Insert plain text or code into this field.', 'advanced-ads' ); ?></p>
|
68 |
<textarea id="advads-ad-content-plain" cols="40" rows="10" name="advanced_ad[content]"><?php echo $content; ?></textarea>
|
69 |
<input type="hidden" name="advanced_ad[output][allow_php]" value="0"/>
|
70 |
+
<label class="advads-ad-allow-php"><input type="checkbox" name="advanced_ad[output][allow_php]" value="1" <?php checked( 1, $allow_php ); ?>/><?php _e( 'Execute PHP code (wrapped in <code><?php ?></code>)', 'advanced-ads' ); ?></label>
|
71 |
<?php
|
72 |
}
|
73 |
|
classes/visitor-conditions.php
CHANGED
@@ -29,14 +29,14 @@ class Advanced_Ads_Visitor_Conditions {
|
|
29 |
// register conditions
|
30 |
$this->conditions = apply_filters( 'advanced-ads-visitor-conditions', array(
|
31 |
'mobile' => array( // type of the condition
|
32 |
-
'label' => __( 'mobile device',
|
33 |
-
'description' => __( 'Display ads only on mobile devices or hide them.',
|
34 |
'metabox' => array( 'Advanced_Ads_Visitor_Conditions', 'metabox_is_or_not' ), // callback to generate the metabox
|
35 |
'check' => array( 'Advanced_Ads_Visitor_Conditions', 'check_mobile' ) // callback for frontend check
|
36 |
),
|
37 |
'loggedin' => array(
|
38 |
-
'label' => __( 'logged in visitor',
|
39 |
-
'description' => __( 'Whether the visitor has to be logged in or not in order to see the ads.',
|
40 |
'metabox' => array( 'Advanced_Ads_Visitor_Conditions', 'metabox_is_or_not' ), // callback to generate the metabox
|
41 |
'check' => array( 'Advanced_Ads_Visitor_Conditions', 'check_logged_in' ) // callback for frontend check
|
42 |
),
|
@@ -117,9 +117,9 @@ class Advanced_Ads_Visitor_Conditions {
|
|
117 |
?><input type="hidden" name="<?php echo $name; ?>[type]" value="<?php echo $options['type']; ?>"/>
|
118 |
<input type="hidden" name="<?php echo $name; ?>[connector]" value="<?php echo $connector; ?>"/>
|
119 |
<select name="<?php echo $name; ?>[operator]">
|
120 |
-
<option value="is_equal" <?php selected( 'is_equal', $operator ); ?>><?php _e( 'equal',
|
121 |
-
<option value="is_higher" <?php selected( 'is_higher', $operator ); ?>><?php _e( 'equal or higher',
|
122 |
-
<option value="is_lower" <?php selected( 'is_lower', $operator ); ?>><?php _e( 'equal or lower',
|
123 |
</select><input type="number" name="<?php echo $name; ?>[value]" value="<?php echo absint( $value ); ?>"/>
|
124 |
<p class="description"><?php echo $type_options[ $options['type'] ]['description']; ?></p><?php
|
125 |
}
|
@@ -151,16 +151,16 @@ class Advanced_Ads_Visitor_Conditions {
|
|
151 |
?><input type="hidden" name="<?php echo $name; ?>[type]" value="<?php echo $options['type']; ?>"/>
|
152 |
<input type="hidden" name="<?php echo $name; ?>[connector]" value="<?php echo $connector; ?>"/>
|
153 |
<select name="<?php echo $name; ?>[operator]">
|
154 |
-
<option value="contain" <?php selected( 'contain', $operator ); ?>><?php _e( 'contains',
|
155 |
-
<option value="start" <?php selected( 'start', $operator ); ?>><?php _e( 'starts with',
|
156 |
-
<option value="end" <?php selected( 'end', $operator ); ?>><?php _e( 'ends with',
|
157 |
-
<option value="match" <?php selected( 'match', $operator ); ?>><?php _e( 'matches',
|
158 |
-
<option value="regex" <?php selected( 'regex', $operator ); ?>><?php _e( 'matches regex',
|
159 |
-
<option value="contain_not" <?php selected( 'contain_not', $operator ); ?>><?php _e( 'does not contain',
|
160 |
-
<option value="start_not" <?php selected( 'start_not', $operator ); ?>><?php _e( 'does not start with',
|
161 |
-
<option value="end_not" <?php selected( 'end_not', $operator ); ?>><?php _e( 'does not end with',
|
162 |
-
<option value="match_not" <?php selected( 'match_not', $operator ); ?>><?php _e( 'does not match',
|
163 |
-
<option value="regex_not" <?php selected( 'regex_not', $operator ); ?>><?php _e( 'does not match regex',
|
164 |
</select><input type="text" name="<?php echo $name; ?>[value]" value="<?php echo $value; ?>"/>
|
165 |
<p class="description"><?php echo $type_options[ $options['type'] ]['description']; ?></p><?php
|
166 |
}
|
29 |
// register conditions
|
30 |
$this->conditions = apply_filters( 'advanced-ads-visitor-conditions', array(
|
31 |
'mobile' => array( // type of the condition
|
32 |
+
'label' => __( 'mobile device', 'advanced-ads' ),
|
33 |
+
'description' => __( 'Display ads only on mobile devices or hide them.', 'advanced-ads' ),
|
34 |
'metabox' => array( 'Advanced_Ads_Visitor_Conditions', 'metabox_is_or_not' ), // callback to generate the metabox
|
35 |
'check' => array( 'Advanced_Ads_Visitor_Conditions', 'check_mobile' ) // callback for frontend check
|
36 |
),
|
37 |
'loggedin' => array(
|
38 |
+
'label' => __( 'logged in visitor', 'advanced-ads' ),
|
39 |
+
'description' => __( 'Whether the visitor has to be logged in or not in order to see the ads.', 'advanced-ads' ),
|
40 |
'metabox' => array( 'Advanced_Ads_Visitor_Conditions', 'metabox_is_or_not' ), // callback to generate the metabox
|
41 |
'check' => array( 'Advanced_Ads_Visitor_Conditions', 'check_logged_in' ) // callback for frontend check
|
42 |
),
|
117 |
?><input type="hidden" name="<?php echo $name; ?>[type]" value="<?php echo $options['type']; ?>"/>
|
118 |
<input type="hidden" name="<?php echo $name; ?>[connector]" value="<?php echo $connector; ?>"/>
|
119 |
<select name="<?php echo $name; ?>[operator]">
|
120 |
+
<option value="is_equal" <?php selected( 'is_equal', $operator ); ?>><?php _e( 'equal', 'advanced-ads' ); ?></option>
|
121 |
+
<option value="is_higher" <?php selected( 'is_higher', $operator ); ?>><?php _e( 'equal or higher', 'advanced-ads' ); ?></option>
|
122 |
+
<option value="is_lower" <?php selected( 'is_lower', $operator ); ?>><?php _e( 'equal or lower', 'advanced-ads' ); ?></option>
|
123 |
</select><input type="number" name="<?php echo $name; ?>[value]" value="<?php echo absint( $value ); ?>"/>
|
124 |
<p class="description"><?php echo $type_options[ $options['type'] ]['description']; ?></p><?php
|
125 |
}
|
151 |
?><input type="hidden" name="<?php echo $name; ?>[type]" value="<?php echo $options['type']; ?>"/>
|
152 |
<input type="hidden" name="<?php echo $name; ?>[connector]" value="<?php echo $connector; ?>"/>
|
153 |
<select name="<?php echo $name; ?>[operator]">
|
154 |
+
<option value="contain" <?php selected( 'contain', $operator ); ?>><?php _e( 'contains', 'advanced-ads' ); ?></option>
|
155 |
+
<option value="start" <?php selected( 'start', $operator ); ?>><?php _e( 'starts with', 'advanced-ads' ); ?></option>
|
156 |
+
<option value="end" <?php selected( 'end', $operator ); ?>><?php _e( 'ends with', 'advanced-ads' ); ?></option>
|
157 |
+
<option value="match" <?php selected( 'match', $operator ); ?>><?php _e( 'matches', 'advanced-ads' ); ?></option>
|
158 |
+
<option value="regex" <?php selected( 'regex', $operator ); ?>><?php _e( 'matches regex', 'advanced-ads' ); ?></option>
|
159 |
+
<option value="contain_not" <?php selected( 'contain_not', $operator ); ?>><?php _e( 'does not contain', 'advanced-ads' ); ?></option>
|
160 |
+
<option value="start_not" <?php selected( 'start_not', $operator ); ?>><?php _e( 'does not start with', 'advanced-ads' ); ?></option>
|
161 |
+
<option value="end_not" <?php selected( 'end_not', $operator ); ?>><?php _e( 'does not end with', 'advanced-ads' ); ?></option>
|
162 |
+
<option value="match_not" <?php selected( 'match_not', $operator ); ?>><?php _e( 'does not match', 'advanced-ads' ); ?></option>
|
163 |
+
<option value="regex_not" <?php selected( 'regex_not', $operator ); ?>><?php _e( 'does not match regex', 'advanced-ads' ); ?></option>
|
164 |
</select><input type="text" name="<?php echo $name; ?>[value]" value="<?php echo $value; ?>"/>
|
165 |
<p class="description"><?php echo $type_options[ $options['type'] ]['description']; ?></p><?php
|
166 |
}
|
classes/widget.php
CHANGED
@@ -22,7 +22,7 @@ class Advanced_Ads_Widget extends WP_Widget {
|
|
22 |
$prefix = Advanced_Ads_Plugin::get_instance()->get_frontend_prefix();
|
23 |
$classname = $prefix . 'widget';
|
24 |
|
25 |
-
$widget_ops = array('classname' => $classname, 'description' => __( 'Display Ads and Ad Groups.',
|
26 |
$control_ops = array();
|
27 |
|
28 |
// deprecated to keep previously changed prefixed working
|
@@ -71,16 +71,16 @@ class Advanced_Ads_Widget extends WP_Widget {
|
|
71 |
$items = self::items_for_select();
|
72 |
?>
|
73 |
<select id="<?php echo $this->get_field_id( 'item_id' ); ?>" name="<?php echo $this->get_field_name( 'item_id' ); ?>">
|
74 |
-
<option value=""><?php _e( '--empty--',
|
75 |
<?php if ( isset($items['groups']) ) : ?>
|
76 |
-
<optgroup label="<?php _e( 'Ad Groups',
|
77 |
<?php foreach ( $items['groups'] as $_item_id => $_item_title ) : ?>
|
78 |
<option value="<?php echo $_item_id; ?>" <?php selected( $_item_id, $elementid ); ?>><?php echo $_item_title; ?></option>
|
79 |
<?php endforeach; ?>
|
80 |
</optgroup>
|
81 |
<?php endif; ?>
|
82 |
<?php if ( isset($items['ads']) ) : ?>
|
83 |
-
<optgroup label="<?php _e( 'Ads',
|
84 |
<?php foreach ( $items['ads'] as $_item_id => $_item_title ) : ?>
|
85 |
<option value="<?php echo $_item_id; ?>" <?php selected( $_item_id, $elementid ); ?>><?php echo $_item_title; ?></option>
|
86 |
<?php endforeach; ?>
|
22 |
$prefix = Advanced_Ads_Plugin::get_instance()->get_frontend_prefix();
|
23 |
$classname = $prefix . 'widget';
|
24 |
|
25 |
+
$widget_ops = array('classname' => $classname, 'description' => __( 'Display Ads and Ad Groups.', 'advanced-ads' ));
|
26 |
$control_ops = array();
|
27 |
|
28 |
// deprecated to keep previously changed prefixed working
|
71 |
$items = self::items_for_select();
|
72 |
?>
|
73 |
<select id="<?php echo $this->get_field_id( 'item_id' ); ?>" name="<?php echo $this->get_field_name( 'item_id' ); ?>">
|
74 |
+
<option value=""><?php _e( '--empty--', 'advanced-ads' ); ?></option>
|
75 |
<?php if ( isset($items['groups']) ) : ?>
|
76 |
+
<optgroup label="<?php _e( 'Ad Groups', 'advanced-ads' ); ?>">
|
77 |
<?php foreach ( $items['groups'] as $_item_id => $_item_title ) : ?>
|
78 |
<option value="<?php echo $_item_id; ?>" <?php selected( $_item_id, $elementid ); ?>><?php echo $_item_title; ?></option>
|
79 |
<?php endforeach; ?>
|
80 |
</optgroup>
|
81 |
<?php endif; ?>
|
82 |
<?php if ( isset($items['ads']) ) : ?>
|
83 |
+
<optgroup label="<?php _e( 'Ads', 'advanced-ads' ); ?>">
|
84 |
<?php foreach ( $items['ads'] as $_item_id => $_item_title ) : ?>
|
85 |
<option value="<?php echo $_item_id; ?>" <?php selected( $_item_id, $elementid ); ?>><?php echo $_item_title; ?></option>
|
86 |
<?php endforeach; ?>
|
languages/advanced-ads-de_DE.mo
CHANGED
Binary file
|
languages/advanced-ads-de_DE.po
CHANGED
@@ -3,7 +3,7 @@ msgstr ""
|
|
3 |
"Project-Id-Version: Advanved Ads\n"
|
4 |
"Report-Msgid-Bugs-To: http://wordpress.org/plugins/plugin-name\n"
|
5 |
"POT-Creation-Date: 2015-01-27 16:47+0100\n"
|
6 |
-
"PO-Revision-Date:
|
7 |
"Last-Translator: admin <post@webzunft.de>\n"
|
8 |
"Language-Team: webgilde <thomas.maier@webgilde.com>\n"
|
9 |
"Language: German\n"
|
@@ -28,215 +28,115 @@ msgstr ""
|
|
28 |
|
29 |
#. Name of the plugin
|
30 |
msgid "Advanced Ads"
|
31 |
-
msgstr ""
|
32 |
|
33 |
#. URI of the plugin
|
34 |
msgid "https://wpadvancedads.com"
|
35 |
-
msgstr ""
|
36 |
-
|
37 |
-
#. Description of the plugin
|
38 |
-
msgid "Manage and optimize your ads in WordPress"
|
39 |
-
msgstr "Anzeigen in WordPress verwalten und optimieren."
|
40 |
|
41 |
#. Author of the plugin
|
42 |
msgid "Thomas Maier"
|
43 |
-
msgstr ""
|
44 |
|
45 |
#. Author URI of the plugin
|
46 |
msgid "http://webgilde.com"
|
47 |
-
msgstr ""
|
48 |
|
49 |
#: ../admin/includes/class-overview-widgets.php:53
|
50 |
msgid "Advanced Ads Pro"
|
51 |
-
msgstr ""
|
52 |
|
53 |
-
#: ../admin/views/ad-
|
54 |
-
msgid "Month"
|
55 |
-
msgstr "Monat"
|
56 |
-
|
57 |
-
#: ../admin/views/ad-submitbox-meta.php:19
|
58 |
-
msgid "Day"
|
59 |
-
msgstr "Tag"
|
60 |
-
|
61 |
-
#: ../admin/views/ad-submitbox-meta.php:20
|
62 |
-
msgid "Year"
|
63 |
-
msgstr "Jahr"
|
64 |
-
|
65 |
-
#: ../admin/views/ad-submitbox-meta.php:21
|
66 |
-
msgid "Hour"
|
67 |
-
msgstr "Stunde"
|
68 |
-
|
69 |
-
#: ../admin/views/ad-submitbox-meta.php:22
|
70 |
-
msgid "Minute"
|
71 |
-
msgstr "Minute"
|
72 |
-
|
73 |
-
#: ../admin/views/ad-submitbox-meta.php:27
|
74 |
-
#, php-format
|
75 |
-
msgctxt "order of expiry date fields 1: month, 2: day, 3: year, 4: hour, 5: minute"
|
76 |
-
msgid "%1$s %2$s, %3$s @ %4$s %5$s"
|
77 |
-
msgstr "%2$s %1$s, %3$s @ %4$s %5$s"
|
78 |
-
|
79 |
-
#: ../admin/views/placements.php:123
|
80 |
-
msgid "advanced options"
|
81 |
-
msgstr "erweiterte Funktionen"
|
82 |
-
|
83 |
-
#: ../admin/views/placements.php:131
|
84 |
-
msgctxt "checkbox to remove placement"
|
85 |
-
msgid "delete"
|
86 |
-
msgstr "löschen"
|
87 |
-
|
88 |
-
#: ../admin/views/support.php:18
|
89 |
-
msgid "Possible Issues"
|
90 |
-
msgstr "Mögliche Probleme"
|
91 |
-
|
92 |
-
#: ../admin/views/support.php:19
|
93 |
-
msgid ""
|
94 |
-
"Please fix the issues below or try to understand their consequences before "
|
95 |
-
"contacting support."
|
96 |
-
msgstr ""
|
97 |
-
"Bitte lösen Sie die unten genannten Probleme oder schließen diese als "
|
98 |
-
"Ursache aus, bevor Sie den Support kontaktieren."
|
99 |
-
|
100 |
-
#: ../admin/views/support.php:23
|
101 |
#, php-format
|
102 |
msgid ""
|
103 |
-
"
|
104 |
-
"
|
105 |
-
"Please ask your hosting provider for more information."
|
106 |
msgstr ""
|
107 |
-
"
|
108 |
-
"
|
109 |
-
"Bitte kontaktieren Sie Ihren Hosting-Anbieter für weitere Informationen."
|
110 |
-
|
111 |
-
#: ../admin/views/support.php:26
|
112 |
-
#, php-format
|
113 |
-
msgid ""
|
114 |
-
"Your <strong>website uses cache</strong>. Some dynamic features like ad "
|
115 |
-
"rotation or visitor conditions might not work properly. Use the cache-"
|
116 |
-
"busting feature of <a href=\"%s\" target=\"_blank\">Advanced Ads Pro</a> to load "
|
117 |
-
"ads dynamically."
|
118 |
-
msgstr ""
|
119 |
-
"Ihre <strong>Webseite benutzt Cache</strong>. Einige dynamische Funktionen "
|
120 |
-
"wie Anzeigenrotation oder Besucherbedingungen könnten davon betroffen sein. "
|
121 |
-
"Nutzen Sie das Cache-Busting von <a href=\"%s\" target=\"_blank\">Advanced Ads "
|
122 |
-
"Pro</a> um Anzeigen trotz Cache dynamisch zu laden."
|
123 |
-
|
124 |
-
#: ../admin/views/support.php:29
|
125 |
-
msgid "There is a <strong>new WordPress version available</strong>. Please update."
|
126 |
-
msgstr ""
|
127 |
-
"Es ist eine <strong>neue WordPress-Version</strong> verfügbar. Bitte "
|
128 |
-
"aktualisieren Sie."
|
129 |
-
|
130 |
-
#: ../admin/views/support.php:32
|
131 |
-
msgid "There are <strong>plugin updates available</strong>. Please update."
|
132 |
-
msgstr "Bitte aktualisieren Sie die installierten Plugins."
|
133 |
|
134 |
#: ../admin/views/support.php:41
|
|
|
135 |
msgid ""
|
136 |
"<strong>Autoptimize plugin detected</strong>. While this plugin is great for "
|
137 |
"site performance, it is known to alter code, including scripts from ad "
|
138 |
-
"networks.
|
139 |
-
|
140 |
-
"Es wurde das <strong>Autoptimize</strong>-Plugin gefunden. Dieses Plugin "
|
141 |
-
"verändert Anzeigencode oder Scripte im Frontend. Dies kann zu Problemen bei "
|
142 |
-
"der Auslieferung insbesondere von Anzeigennetzwerken führen."
|
143 |
-
|
144 |
-
#: ../admin/views/notices/adblock.php:3
|
145 |
-
msgid ""
|
146 |
-
"Please disable your <strong>AdBlocker</strong> to prevent problems with your "
|
147 |
-
"ad setup."
|
148 |
msgstr ""
|
149 |
-
"
|
150 |
-
"
|
151 |
-
|
152 |
-
|
153 |
-
msgid "Activate Page-Level ads"
|
154 |
-
msgstr "Anzeigen auf Seitenebene aktivieren"
|
155 |
-
|
156 |
-
#: ../modules/gadsense/admin/admin.php:169
|
157 |
-
#, php-format
|
158 |
-
msgid ""
|
159 |
-
"Please enter your Publisher ID in order to use AdSense on your page. See the "
|
160 |
-
"<a href=\"%s\" target=\"_blank\">manual</a> for more information."
|
161 |
-
msgstr ""
|
162 |
-
"Bitte hinterlegen Sie Ihre Publisher-ID um AdSense auf Ihrer Seite zu nutzen."
|
163 |
-
" Vgl. <a href=\"%s\" target=\"_blank\">Anleitung</a> (engl.)."
|
164 |
|
165 |
-
#: ../
|
166 |
-
msgid "
|
167 |
-
msgstr "
|
168 |
|
169 |
-
|
170 |
-
msgid ""
|
171 |
-
"
|
172 |
-
"href=\"https://support.google.com/adsense/answer/6245304\" "
|
173 |
-
"target=\"_blank\">AdSense Help</a> for more information"
|
174 |
-
msgstr ""
|
175 |
-
"Sie müssen die Anzeigen auf Seitenebene auch in Ihrem AdSense-Account "
|
176 |
-
"aktivieren. Vgl. <a href=\"https://support.google.com/adsense/answer/6245304\" "
|
177 |
-
"target=\"_blank\">AdSense-Hilfe</a>."
|
178 |
|
179 |
-
#: ../admin/class-advanced-ads-admin.php:
|
180 |
msgid "Overview"
|
181 |
msgstr "Übersicht"
|
182 |
|
183 |
-
#: ../admin/class-advanced-ads-admin.php:
|
184 |
-
#: php:
|
185 |
-
#: list-header.php:5 ../admin/views/placements.php:
|
186 |
-
#: php:
|
187 |
msgid "Ads"
|
188 |
msgstr "Anzeigen"
|
189 |
|
190 |
-
#: ../admin/class-advanced-ads-admin.php:
|
191 |
-
#: admin/views/placements.php:
|
192 |
msgid "Ad Groups"
|
193 |
msgstr "Anzeigen-Gruppen"
|
194 |
|
195 |
-
#: ../admin/class-advanced-ads-admin.php:
|
196 |
msgid "Groups"
|
197 |
msgstr "Gruppen"
|
198 |
|
199 |
-
#: ../admin/class-advanced-ads-admin.php:
|
200 |
msgid "Ad Placements"
|
201 |
msgstr "Anzeigen-Platzierungen"
|
202 |
|
203 |
-
#: ../admin/class-advanced-ads-admin.php:
|
204 |
msgid "Placements"
|
205 |
msgstr "Platzierungen"
|
206 |
|
207 |
-
#: ../admin/class-advanced-ads-admin.php:
|
208 |
msgid "Advanced Ads Settings"
|
209 |
msgstr "Advanced-Ads-Einstellungen"
|
210 |
|
211 |
-
#: ../admin/class-advanced-ads-admin.php:
|
212 |
-
#: php:
|
213 |
msgid "Settings"
|
214 |
msgstr "Einstellungen"
|
215 |
|
216 |
-
#: ../admin/class-advanced-ads-admin.php:
|
217 |
msgid "Advanced Ads Debugging"
|
218 |
msgstr "Advanced-Ads-Fehleranalyse (Debugging)"
|
219 |
|
220 |
-
#: ../admin/class-advanced-ads-admin.php:
|
221 |
msgid "Debug"
|
222 |
msgstr "Debug"
|
223 |
|
224 |
-
#: ../admin/class-advanced-ads-admin.php:
|
225 |
-
#: php:
|
226 |
msgid "Advanced Ads Intro"
|
227 |
msgstr "Advanced Ads Einführung"
|
228 |
|
229 |
-
#: ../admin/class-advanced-ads-admin.php:
|
230 |
-
#: php:
|
231 |
msgid "Support"
|
232 |
msgstr "Support"
|
233 |
|
234 |
-
#: ../admin/class-advanced-ads-admin.php:
|
235 |
-
#: php:
|
236 |
msgid "Sorry, you are not allowed to access this feature."
|
237 |
msgstr "Sie haben leider keinen Zugriff auf diese Funktion"
|
238 |
|
239 |
-
#: ../admin/class-advanced-ads-admin.php:
|
240 |
msgid ""
|
241 |
"You attempted to edit an ad group that doesn’t exist. Perhaps it was "
|
242 |
"deleted?"
|
@@ -244,174 +144,174 @@ msgstr ""
|
|
244 |
"Sie haben versucht, ein Element, das nicht existiert, zu bearbeiten. "
|
245 |
"Vielleicht wurde es gelöscht?"
|
246 |
|
247 |
-
#: ../admin/class-advanced-ads-admin.php:
|
248 |
msgid "Ad Type"
|
249 |
msgstr "Anzeigen-Typ"
|
250 |
|
251 |
-
#: ../admin/class-advanced-ads-admin.php:
|
252 |
msgid "Ad Parameters"
|
253 |
msgstr "Anzeigen-Parameter"
|
254 |
|
255 |
-
#: ../admin/class-advanced-ads-admin.php:
|
256 |
msgid "Layout / Output"
|
257 |
msgstr "Layout / Ausgabe"
|
258 |
|
259 |
-
#: ../admin/class-advanced-ads-admin.php:
|
260 |
msgid "Display Conditions"
|
261 |
msgstr "Anzeige-Bedingungen"
|
262 |
|
263 |
-
#: ../admin/class-advanced-ads-admin.php:
|
264 |
msgid "Visitor Conditions"
|
265 |
msgstr "Besucher-Bedingungen"
|
266 |
|
267 |
-
#: ../admin/class-advanced-ads-admin.php:
|
268 |
-
#: php:
|
269 |
msgid "Ad updated."
|
270 |
msgstr "Anzeige aktualisiert."
|
271 |
|
272 |
#. translators: %s: date and time of the revision
|
273 |
-
#: ../admin/class-advanced-ads-admin.php:
|
274 |
#, php-format
|
275 |
msgid "Ad restored to revision from %s"
|
276 |
msgstr "Anzeige aus Revision %s wiederhergestellt"
|
277 |
|
278 |
-
#: ../admin/class-advanced-ads-admin.php:
|
279 |
msgid "Ad published."
|
280 |
msgstr "Anzeige veröffentlicht."
|
281 |
|
282 |
-
#: ../admin/class-advanced-ads-admin.php:
|
283 |
msgid "Ad saved."
|
284 |
msgstr "Anzeige gespeichert."
|
285 |
|
286 |
-
#: ../admin/class-advanced-ads-admin.php:
|
287 |
msgid "Ad submitted."
|
288 |
msgstr "Anzeige gesendet."
|
289 |
|
290 |
-
#: ../admin/class-advanced-ads-admin.php:
|
291 |
#, php-format
|
292 |
msgid "Ad scheduled for: <strong>%1$s</strong>."
|
293 |
msgstr "Anzeige geplant für <strong>%1$s</strong>."
|
294 |
|
295 |
#. translators: Publish box date format, see http://php.net/date
|
296 |
-
#: ../admin/class-advanced-ads-admin.php:
|
297 |
msgid "M j, Y @ G:i"
|
298 |
msgstr "j M Y @ G:i"
|
299 |
|
300 |
-
#: ../admin/class-advanced-ads-admin.php:
|
301 |
msgid "Ad draft updated."
|
302 |
msgstr "Anzeigenentwurf gespeichert."
|
303 |
|
304 |
-
#: ../admin/class-advanced-ads-admin.php:
|
305 |
#, php-format
|
306 |
msgid "%s ad updated."
|
307 |
msgid_plural "%s ads updated."
|
308 |
msgstr[0] "%s Anzeige aktualisiert."
|
309 |
msgstr[1] "%s Anzeigen aktualisiert."
|
310 |
|
311 |
-
#: ../admin/class-advanced-ads-admin.php:
|
312 |
#, php-format
|
313 |
msgid "%s ad not updated, somebody is editing it."
|
314 |
msgid_plural "%s ads not updated, somebody is editing them."
|
315 |
msgstr[0] "%s Anzeige nicht aktualisiert, jemand bearbeitet sie."
|
316 |
msgstr[1] "%s Anzeigen nicht aktualisiert, jemand bearbeitet sie."
|
317 |
|
318 |
-
#: ../admin/class-advanced-ads-admin.php:
|
319 |
#, php-format
|
320 |
msgid "%s ad permanently deleted."
|
321 |
msgid_plural "%s ads permanently deleted."
|
322 |
msgstr[0] "%s Anzeige endgültig gelöscht."
|
323 |
msgstr[1] "%s Anzeigen endgültig gelöscht."
|
324 |
|
325 |
-
#: ../admin/class-advanced-ads-admin.php:
|
326 |
#, php-format
|
327 |
msgid "%s ad moved to the Trash."
|
328 |
msgid_plural "%s ads moved to the Trash."
|
329 |
msgstr[0] "%s Anzeige in den Papierkorb verschoben."
|
330 |
msgstr[1] "%s Anzeigen in den Papierkorb verschoben."
|
331 |
|
332 |
-
#: ../admin/class-advanced-ads-admin.php:
|
333 |
#, php-format
|
334 |
msgid "%s ad restored from the Trash."
|
335 |
msgid_plural "%s ads restored from the Trash."
|
336 |
msgstr[0] "%s Anzeige aus dem Papierkorb wiederhergestellt."
|
337 |
msgstr[1] "%s Anzeige aus dem Papierkorb wiederhergestellt."
|
338 |
|
339 |
-
#: ../admin/class-advanced-ads-admin.php:
|
340 |
msgid "General"
|
341 |
msgstr "Allgemein"
|
342 |
|
343 |
-
#: ../admin/class-advanced-ads-admin.php:
|
344 |
-
#: php:
|
345 |
msgid "Licenses"
|
346 |
msgstr "Lizenzen"
|
347 |
|
348 |
-
#: ../admin/class-advanced-ads-admin.php:
|
349 |
msgid "Disable ads"
|
350 |
msgstr "Anzeigen auf dieser Seite deaktivieren."
|
351 |
|
352 |
-
#: ../admin/class-advanced-ads-admin.php:
|
353 |
msgid "Hide ads for logged in users"
|
354 |
msgstr "Verstecke Anzeigen vor eingeloggten Benutzern"
|
355 |
|
356 |
-
#: ../admin/class-advanced-ads-admin.php:
|
357 |
msgid "Use advanced JavaScript"
|
358 |
msgstr "Advanced-JavaScript benutzen"
|
359 |
|
360 |
-
#: ../admin/class-advanced-ads-admin.php:
|
361 |
msgid "Unlimited ad injection"
|
362 |
msgstr "Anzeigen-Injektion überall aktivieren "
|
363 |
|
364 |
-
#: ../admin/class-advanced-ads-admin.php:
|
365 |
msgid "Priority of content injection filter"
|
366 |
msgstr "Priorität der Anzeigen-Injektion"
|
367 |
|
368 |
-
#: ../admin/class-advanced-ads-admin.php:
|
369 |
msgid "Hide ads from bots"
|
370 |
msgstr "Anzeigen vor Bots verbergen"
|
371 |
|
372 |
-
#: ../admin/class-advanced-ads-admin.php:
|
373 |
msgid "Disable notices"
|
374 |
msgstr "Mitteilungen deaktivieren"
|
375 |
|
376 |
-
#: ../admin/class-advanced-ads-admin.php:
|
377 |
msgid "ID prefix"
|
378 |
msgstr "ID Präfix"
|
379 |
|
380 |
-
#: ../admin/class-advanced-ads-admin.php:
|
381 |
msgid "Remove Widget ID"
|
382 |
msgstr "ID des Widget entfernen"
|
383 |
|
384 |
-
#: ../admin/class-advanced-ads-admin.php:
|
385 |
msgid "(display to all)"
|
386 |
msgstr "(für alle sichtbar)"
|
387 |
|
388 |
-
#: ../admin/class-advanced-ads-admin.php:
|
389 |
msgid "Subscriber"
|
390 |
msgstr "Abonnent"
|
391 |
|
392 |
-
#: ../admin/class-advanced-ads-admin.php:
|
393 |
msgid "Contributor"
|
394 |
msgstr "Mitarbeiter"
|
395 |
|
396 |
-
#: ../admin/class-advanced-ads-admin.php:
|
397 |
msgid "Author"
|
398 |
msgstr "Autor"
|
399 |
|
400 |
-
#: ../admin/class-advanced-ads-admin.php:
|
401 |
msgid "Editor"
|
402 |
msgstr "Redakteur"
|
403 |
|
404 |
-
#: ../admin/class-advanced-ads-admin.php:
|
405 |
msgid "Admin"
|
406 |
msgstr "Admin"
|
407 |
|
408 |
-
#: ../admin/class-advanced-ads-admin.php:
|
409 |
msgid "Choose the lowest role a user must have in order to not see any ads."
|
410 |
msgstr ""
|
411 |
"Wählen Sie die niedrigste Rolle die ein Benutzer haben muss um keine "
|
412 |
"Anzeigen zu sehen."
|
413 |
|
414 |
-
#: ../admin/class-advanced-ads-admin.php:
|
415 |
msgid ""
|
416 |
"<strong>notice: </strong>the file is currently enabled by an add-on that "
|
417 |
"needs it."
|
@@ -419,7 +319,7 @@ msgstr ""
|
|
419 |
"<strong>Hinweis: </strong>die Datei wird aktuell von einer Erweiterung "
|
420 |
"benutzt."
|
421 |
|
422 |
-
#: ../admin/class-advanced-ads-admin.php:
|
423 |
#, php-format
|
424 |
msgid ""
|
425 |
"Enable advanced JavaScript functions (<a href=\"%s\" target=\"_blank\">here</a>)."
|
@@ -430,7 +330,7 @@ msgstr ""
|
|
430 |
"target=\"_blank\">Info</a>). Einige Funktionen und Erweiterungen können diese "
|
431 |
"Einstellung überschreiben, wenn sie die Datei benötigen."
|
432 |
|
433 |
-
#: ../admin/class-advanced-ads-admin.php:
|
434 |
msgid ""
|
435 |
"Some plugins and themes trigger ad injection where it shouldn’t happen. "
|
436 |
"Therefore, Advanced Ads ignores injected placements on non-singular pages "
|
@@ -448,7 +348,7 @@ msgstr ""
|
|
448 |
"werden überall dort, wo Beiträge geladen werden, angezeigt (z.B. auch auf "
|
449 |
"Archiv-Seiten)."
|
450 |
|
451 |
-
#: ../admin/class-advanced-ads-admin.php:
|
452 |
msgid ""
|
453 |
"Play with this value in order to change the priority of the injected ads "
|
454 |
"compared to other auto injected elements in the post content."
|
@@ -456,7 +356,7 @@ msgstr ""
|
|
456 |
"Ändern Sie diesen Wert um die Position automatisch eingefügter Anzeigen im "
|
457 |
"Content gegenüber anderer Elementen zu beeinflussen."
|
458 |
|
459 |
-
#: ../admin/class-advanced-ads-admin.php:
|
460 |
#, php-format
|
461 |
msgid ""
|
462 |
"Hide ads from crawlers, bots and empty user agents. Also prevents counting "
|
@@ -467,7 +367,7 @@ msgstr ""
|
|
467 |
"werden mit dem <a href=\"%s\" target=\"_blank\">Tracking Add-On</a> dann auch "
|
468 |
"keine Impressionen mehr gezählt."
|
469 |
|
470 |
-
#: ../admin/class-advanced-ads-admin.php:
|
471 |
msgid ""
|
472 |
"Disabling this option only makes sense if your ads contain content you want "
|
473 |
"to display to bots (like search engines) or your site is cached and bots "
|
@@ -476,7 +376,7 @@ msgstr ""
|
|
476 |
"Deaktivieren Sie diese Option, wenn Bots (z.B. Suchmaschinen) die "
|
477 |
"Werbeinhalte sehen sollen oder Ihre Seite einen Cache nutzt."
|
478 |
|
479 |
-
#: ../admin/class-advanced-ads-admin.php:
|
480 |
msgid ""
|
481 |
"Disable internal notices like tips, tutorials, email newsletters and update "
|
482 |
"notices. Disabling notices is recommended if you run multiple blogs with "
|
@@ -487,7 +387,7 @@ msgstr ""
|
|
487 |
"diese Einstellung, wenn Sie Advanced Ads auf mehreren Blog installiert \n"
|
488 |
"haben."
|
489 |
|
490 |
-
#: ../admin/class-advanced-ads-admin.php:
|
491 |
msgid ""
|
492 |
"Prefix of class or id attributes in the frontend. Change it if you don’t "
|
493 |
"want <strong>ad blockers</strong> to mark these blocks as ads.<br/>You might "
|
@@ -496,7 +396,7 @@ msgstr ""
|
|
496 |
"Präfix der class oder id Attribute im Frontend. Eine Änderung kann helfen "
|
497 |
"damit Ad-Blocker die Inhalte nicht pauschal entfernen."
|
498 |
|
499 |
-
#: ../admin/class-advanced-ads-admin.php:
|
500 |
msgid ""
|
501 |
"Remove the ID attribute from widgets in order to not make them an easy "
|
502 |
"target of ad blockers."
|
@@ -504,54 +404,54 @@ msgstr ""
|
|
504 |
"ID-Attribut des Anzeigenwidgets entfernen, damit Ad-Blocker hier keinen "
|
505 |
"Ansatz haben es zu blockieren."
|
506 |
|
507 |
-
#: ../admin/class-advanced-ads-admin.php:
|
508 |
msgid "Ad Details"
|
509 |
msgstr "Anzeigeneinstellungen"
|
510 |
|
511 |
-
#: ../admin/class-advanced-ads-admin.php:
|
512 |
msgid "Ad Settings"
|
513 |
msgstr "Anzeigen-Einstellungen"
|
514 |
|
515 |
-
#: ../admin/class-advanced-ads-admin.php:
|
516 |
msgid "Ads Dashboard"
|
517 |
msgstr "Anzeigen-Dashboard"
|
518 |
|
519 |
-
#: ../admin/class-advanced-ads-admin.php:
|
520 |
msgid "From the ad optimization universe"
|
521 |
msgstr "Neues aus dem Anzeigen-Universum"
|
522 |
|
523 |
-
#: ../admin/class-advanced-ads-admin.php:
|
524 |
msgid "Advanced Ads Tutorials"
|
525 |
msgstr "Advanced Ads Tutorials"
|
526 |
|
527 |
-
#: ../admin/class-advanced-ads-admin.php:
|
528 |
#, php-format
|
529 |
msgid "%d ads – <a href=\"%s\">manage</a> - <a href=\"%s\">new</a>"
|
530 |
msgstr "%d Anzeigen – <a href=\"%s\">verwalten</a> - <a href=\"%s\">neu</a>"
|
531 |
|
532 |
-
#: ../admin/class-advanced-ads-admin.php:
|
533 |
msgid "plugin manual and homepage"
|
534 |
msgstr "Plugin-Anleitung und Homepage"
|
535 |
|
536 |
-
#: ../admin/class-advanced-ads-admin.php:
|
537 |
msgid "Get the tutorial via email"
|
538 |
msgstr "Tutorial per E-Mail (engl.)\n"
|
539 |
|
540 |
-
#: ../admin/class-advanced-ads-admin.php:
|
541 |
msgid "Get AdSense tips via email"
|
542 |
msgstr "AdSense Tips per E-Mail (engl.)"
|
543 |
|
544 |
-
#: ../admin/class-advanced-ads-admin.php:
|
545 |
msgid "Error while trying to register the license. Please contact support."
|
546 |
msgstr ""
|
547 |
"Die Lizenz konnte nicht registriert werden. Bitte kontaktieren Sie den "
|
548 |
"Support."
|
549 |
|
550 |
-
#: ../admin/class-advanced-ads-admin.php:
|
551 |
msgid "Please enter and save a valid license key first."
|
552 |
msgstr "Bitte speichern Sie zunächst einen gültigen Lizenzschlüssel."
|
553 |
|
554 |
-
#: ../admin/class-advanced-ads-admin.php:
|
555 |
#, php-format
|
556 |
msgid "License is invalid. Reason: %s"
|
557 |
msgstr "Die Lizenz ist ungültig. Grund: %s"
|
@@ -603,7 +503,7 @@ msgid "Display ads with the highest ad weight first"
|
|
603 |
msgstr "Anzeigen mit dem höchsten Anzeigengewicht zuerst einblenden."
|
604 |
|
605 |
#: ../admin/includes/class-ad-groups-list.php:259 ../public/class-advanced-ads.
|
606 |
-
#: php:
|
607 |
msgid "Edit"
|
608 |
msgstr "Bearbeiten"
|
609 |
|
@@ -1249,7 +1149,7 @@ msgid "Number of ads that are visible at the same time"
|
|
1249 |
msgstr "Anzahl der Anzeigen, die gleichzeitig sichtbar sein sollen."
|
1250 |
|
1251 |
#: ../admin/views/ad-group-list-form-row.php:30 ../public/class-advanced-ads.php:
|
1252 |
-
#:
|
1253 |
msgid "Ad"
|
1254 |
msgstr "Anzeige"
|
1255 |
|
@@ -1266,12 +1166,12 @@ msgid "Details"
|
|
1266 |
msgstr "Details"
|
1267 |
|
1268 |
#: ../admin/views/ad-group-list-row.php:8 ../admin/views/ad-group.php:63 ..
|
1269 |
-
#: admin/views/ad-info.php:3 ../admin/views/placements.php:
|
1270 |
msgid "shortcode"
|
1271 |
msgstr "Shortcode"
|
1272 |
|
1273 |
#: ../admin/views/ad-group-list-row.php:11 ../admin/views/ad-group.php:66 ..
|
1274 |
-
#: admin/views/placements.php:
|
1275 |
msgid "template"
|
1276 |
msgstr "Template"
|
1277 |
|
@@ -1471,7 +1371,7 @@ msgstr "Position"
|
|
1471 |
msgid "- default -"
|
1472 |
msgstr "- default -"
|
1473 |
|
1474 |
-
#: ../admin/views/ad-output-metabox.php:7 ../admin/views/placements.php:
|
1475 |
msgid "default"
|
1476 |
msgstr "Standard"
|
1477 |
|
@@ -1537,12 +1437,38 @@ msgstr "Höhe"
|
|
1537 |
msgid "Set expiry date"
|
1538 |
msgstr "Verfallsdatum setzen"
|
1539 |
|
|
|
|
|
|
|
|
|
1540 |
#: ../admin/views/ad-submitbox-meta.php:14
|
1541 |
#, php-format
|
1542 |
msgctxt "1: month number (01, 02, etc.), 2: month abbreviation"
|
1543 |
msgid "%1$s-%2$s"
|
1544 |
msgstr "%1$s-%2$s"
|
1545 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1546 |
#: ../admin/views/ad-visitor-metabox.php:4
|
1547 |
msgid ""
|
1548 |
"Display conditions that are based on the user. Use with caution on cached "
|
@@ -1560,29 +1486,29 @@ msgstr ""
|
|
1560 |
"sehen. Vermeiden Sie solche Bedingungen, wenn alle Nutzer die Anzeige sehen "
|
1561 |
"sollen."
|
1562 |
|
1563 |
-
#: ../admin/views/ad-visitor-metabox.php:
|
1564 |
msgid "New condition"
|
1565 |
msgstr "Neue Bedingung"
|
1566 |
|
1567 |
-
#: ../admin/views/ad-visitor-metabox.php:
|
1568 |
msgctxt "visitor condition connector"
|
1569 |
msgid "and"
|
1570 |
msgstr "und"
|
1571 |
|
1572 |
-
#: ../admin/views/ad-visitor-metabox.php:
|
1573 |
msgctxt "visitor condition connector"
|
1574 |
msgid "or"
|
1575 |
msgstr "oder"
|
1576 |
|
1577 |
-
#: ../admin/views/ad-visitor-metabox.php:
|
1578 |
msgid "-- choose a condition --"
|
1579 |
msgstr "-- Bedingung wählen --"
|
1580 |
|
1581 |
-
#: ../admin/views/ad-visitor-metabox.php:
|
1582 |
msgid "add"
|
1583 |
msgstr "hinzufügen"
|
1584 |
|
1585 |
-
#: ../admin/views/ad-visitor-metabox.php:
|
1586 |
#, php-format
|
1587 |
msgid ""
|
1588 |
"Define the exact browser width for which an ad should be visible using the "
|
@@ -1592,7 +1518,7 @@ msgstr ""
|
|
1592 |
"geben Sie die genaue Browserbreite an, für die diese Anzeige sichtbar sein "
|
1593 |
"sollen.\n"
|
1594 |
|
1595 |
-
#: ../admin/views/ad-visitor-metabox.php:
|
1596 |
msgid ""
|
1597 |
"The visitor conditions below are deprecated. Please use the new version of "
|
1598 |
"visitor conditions to replace it."
|
@@ -1600,15 +1526,15 @@ msgstr ""
|
|
1600 |
"Die unten aufgeführten Besucherbedingungen sind veraltet. Bitte nutzen Sie "
|
1601 |
"die neueren Versionen oben."
|
1602 |
|
1603 |
-
#: ../admin/views/ad-visitor-metabox.php:
|
1604 |
msgid "Display on all devices"
|
1605 |
msgstr "Auf allen Geräten anzeigen"
|
1606 |
|
1607 |
-
#: ../admin/views/ad-visitor-metabox.php:
|
1608 |
msgid "only on mobile devices"
|
1609 |
msgstr "Nur auf mobilen Geräten"
|
1610 |
|
1611 |
-
#: ../admin/views/ad-visitor-metabox.php:
|
1612 |
msgid "not on mobile devices"
|
1613 |
msgstr "Nicht auf mobilen Endgeräten"
|
1614 |
|
@@ -1769,7 +1695,7 @@ msgstr ""
|
|
1769 |
msgid "Options"
|
1770 |
msgstr "Optionen"
|
1771 |
|
1772 |
-
#: ../admin/views/placements.php:
|
1773 |
#, php-format
|
1774 |
msgid ""
|
1775 |
"Placement type \"%s\" is missing and was reset to \"default\".<br/>Please check "
|
@@ -1778,39 +1704,39 @@ msgstr ""
|
|
1778 |
"Der Platzierungs-Typ \"%s\" fehlt und wurde auf \"default\" zurückgesetzt."
|
1779 |
"<br/>Bitte prüfen Sie, ob die notwendige Erweiterung aktiviert ist."
|
1780 |
|
1781 |
-
#: ../admin/views/placements.php:
|
1782 |
msgid "show usage"
|
1783 |
msgstr "Nutzungshinweise"
|
1784 |
|
1785 |
-
#: ../admin/views/placements.php:
|
1786 |
msgid "Item"
|
1787 |
msgstr "Anzeige"
|
1788 |
|
1789 |
-
#: ../admin/views/placements.php:
|
1790 |
msgid "--not selected--"
|
1791 |
msgstr "--nicht gewählt--"
|
1792 |
|
1793 |
-
#: ../admin/views/placements.php:
|
1794 |
msgid "Inject"
|
1795 |
msgstr "Einfügen"
|
1796 |
|
1797 |
-
#: ../admin/views/placements.php:
|
1798 |
msgid "after"
|
1799 |
msgstr "nach"
|
1800 |
|
1801 |
-
#: ../admin/views/placements.php:
|
1802 |
msgid "before"
|
1803 |
msgstr "vor"
|
1804 |
|
1805 |
-
#: ../admin/views/placements.php:
|
1806 |
msgid "start counting from bottom"
|
1807 |
msgstr "von unten zählen"
|
1808 |
|
1809 |
-
#: ../admin/views/placements.php:
|
1810 |
msgid "Important Notice"
|
1811 |
msgstr "Hinweis"
|
1812 |
|
1813 |
-
#: ../admin/views/placements.php:
|
1814 |
msgid ""
|
1815 |
"Your server is missing an extension. This might break the content injection."
|
1816 |
"<br/>Ignore this warning if everything works fine or else ask your hosting "
|
@@ -1822,23 +1748,32 @@ msgstr ""
|
|
1822 |
"Ignorieren Sie diese Warnung, wenn das Placement problemlos funktioniert "
|
1823 |
"oder bitten Sie Ihren Hosting-Anbieter <em>mbstring</em> zu aktivieren.\n"
|
1824 |
|
1825 |
-
#: ../admin/views/placements.php:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1826 |
msgid "Save Placements"
|
1827 |
msgstr "Platzierungen sichern"
|
1828 |
|
1829 |
-
#: ../admin/views/placements.php:
|
1830 |
msgid "Create a new placement"
|
1831 |
msgstr "Neue Platzierung erstellen"
|
1832 |
|
1833 |
-
#: ../admin/views/placements.php:
|
1834 |
msgid "New Placement"
|
1835 |
msgstr "Neue Platzierung"
|
1836 |
|
1837 |
-
#: ../admin/views/placements.php:
|
1838 |
msgid "Choose a placement type"
|
1839 |
msgstr "Typ der Platzierung wählen"
|
1840 |
|
1841 |
-
#: ../admin/views/placements.php:
|
1842 |
#, php-format
|
1843 |
msgid ""
|
1844 |
"Placement types define where the ad is going to be displayed. Learn more "
|
@@ -1847,15 +1782,15 @@ msgstr ""
|
|
1847 |
"Der Platzierungstyp entscheidet darüber wo eine Anzeige im Frontend "
|
1848 |
"platziert wird. Mehr dazu finden Sie in der <a href=\"%s\">Anleitung</a>."
|
1849 |
|
1850 |
-
#: ../admin/views/placements.php:
|
1851 |
msgid "Please select a placement type."
|
1852 |
msgstr "Bitte wählen Sie einen Platzierungs-Typ"
|
1853 |
|
1854 |
-
#: ../admin/views/placements.php:
|
1855 |
msgid "Choose a Name"
|
1856 |
msgstr "Bezeichnung wählen"
|
1857 |
|
1858 |
-
#: ../admin/views/placements.php:
|
1859 |
msgid ""
|
1860 |
"The name of the placement is only visible to you. Tip: choose a descriptive "
|
1861 |
"one, e.g. <em>Below Post Headline</em>."
|
@@ -1863,23 +1798,23 @@ msgstr ""
|
|
1863 |
"Die Bezeichnung der Platzierung ist nur für Sie sichtbar. Ich empfehle eine "
|
1864 |
"beschreibende Bezeichnung, z.B. <em>Unter der Artikelüberschrift</em>."
|
1865 |
|
1866 |
-
#: ../admin/views/placements.php:
|
1867 |
msgid "Placement Name"
|
1868 |
msgstr "Bezeichnung"
|
1869 |
|
1870 |
-
#: ../admin/views/placements.php:
|
1871 |
msgid "Please enter a name for your placement."
|
1872 |
msgstr "Bitte tragen Sie den Namen der Platzierung ein."
|
1873 |
|
1874 |
-
#: ../admin/views/placements.php:
|
1875 |
msgid "Choose the Ad or Group"
|
1876 |
msgstr "Anzeige oder Gruppe wählen"
|
1877 |
|
1878 |
-
#: ../admin/views/placements.php:
|
1879 |
msgid "The ad or group that should be displayed."
|
1880 |
msgstr "Die Anzeige oder Anzeigengruppe die angezeigt werden soll."
|
1881 |
|
1882 |
-
#: ../admin/views/placements.php:
|
1883 |
msgid "Save New Placement"
|
1884 |
msgstr "Neue Platzierung sichern"
|
1885 |
|
@@ -1985,10 +1920,6 @@ msgstr "Advanced Ads auf wp.org"
|
|
1985 |
msgid "the company behind Advanced Ads"
|
1986 |
msgstr "das Unternehmen hinter Advanced Ads"
|
1987 |
|
1988 |
-
#: ../admin/views/settings.php:44
|
1989 |
-
msgid "webgilde GmbH"
|
1990 |
-
msgstr "webgilde GmbH"
|
1991 |
-
|
1992 |
#: ../admin/views/support.php:9
|
1993 |
msgid "Email was successfully sent."
|
1994 |
msgstr "E-Mail erfolgreich gesendet."
|
@@ -2009,11 +1940,57 @@ msgstr ""
|
|
2009 |
msgid "search"
|
2010 |
msgstr "suchen"
|
2011 |
|
2012 |
-
#: ../admin/views/support.php:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2013 |
msgid "Contact"
|
2014 |
msgstr "Kontakt aufnehmen"
|
2015 |
|
2016 |
-
#: ../admin/views/support.php:
|
2017 |
#, php-format
|
2018 |
msgid ""
|
2019 |
"Please search the manual for a solution and take a look at <a href=\"%s\" "
|
@@ -2023,22 +2000,30 @@ msgstr ""
|
|
2023 |
"sich die Vorschläge unter <a href=\"%s\" target=\"_blank\">Ads not showing up?"
|
2024 |
"</a> an."
|
2025 |
|
2026 |
-
#: ../admin/views/support.php:
|
2027 |
msgid "your email"
|
2028 |
msgstr "E-Mail"
|
2029 |
|
2030 |
-
#: ../admin/views/support.php:
|
2031 |
msgid "your name"
|
2032 |
msgstr "Name"
|
2033 |
|
2034 |
-
#: ../admin/views/support.php:
|
2035 |
msgid "your message"
|
2036 |
msgstr "Nachricht"
|
2037 |
|
2038 |
-
#: ../admin/views/support.php:
|
2039 |
msgid "send"
|
2040 |
msgstr "senden"
|
2041 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2042 |
#: ../classes/ad_placements.php:31
|
2043 |
msgid "Manual Placement"
|
2044 |
msgstr "Manuelle Platzierung"
|
@@ -2398,6 +2383,19 @@ msgstr "AdSense-ID"
|
|
2398 |
msgid "Limit to 3 ads"
|
2399 |
msgstr "Auf 3 Anzeigen beschränken"
|
2400 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2401 |
#: ../modules/gadsense/admin/admin.php:183
|
2402 |
msgid "Your AdSense Publisher ID <em>(pub-xxxxxxxxxxxxxx)</em>"
|
2403 |
msgstr "Ihre AdSense Publisher ID <em>(pub-xxxxxxxxxxxxxx)</em>"
|
@@ -2423,6 +2421,20 @@ msgstr ""
|
|
2423 |
msgid "Notice: Advanced Ads only considers the AdSense ad type for this limit."
|
2424 |
msgstr "Hinweis: Advanced Ads zählt nur die AdSense-Anzeigentypen für dieses Limit."
|
2425 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2426 |
#: ../modules/gadsense/admin/admin.php:236 ../modules/gadsense/includes/class-ad-
|
2427 |
#: type-adsense.php:73
|
2428 |
msgid "The Publisher ID has an incorrect format. (must start with \"pub-\")"
|
@@ -2496,84 +2508,84 @@ msgstr "Auto"
|
|
2496 |
msgid "Advanced Ads Error: %s"
|
2497 |
msgstr "Advanced-Ads-Fehler: %s"
|
2498 |
|
2499 |
-
#: ../public/class-advanced-ads.php:
|
2500 |
msgctxt "ad group general name"
|
2501 |
msgid "Ad Groups"
|
2502 |
msgstr "Anzeigen-Gruppen"
|
2503 |
|
2504 |
-
#: ../public/class-advanced-ads.php:
|
2505 |
msgctxt "ad group singular name"
|
2506 |
msgid "Ad Group"
|
2507 |
msgstr "Anzeigen-Gruppe"
|
2508 |
|
2509 |
-
#: ../public/class-advanced-ads.php:
|
2510 |
msgid "Search Ad Groups"
|
2511 |
msgstr "Anzeigen-Gruppen suchen"
|
2512 |
|
2513 |
-
#: ../public/class-advanced-ads.php:
|
2514 |
msgid "All Ad Groups"
|
2515 |
msgstr "Alle Anzeigen-Gruppen"
|
2516 |
|
2517 |
-
#: ../public/class-advanced-ads.php:
|
2518 |
msgid "Parent Ad Groups"
|
2519 |
msgstr "Parent-Anzeigen-Gruppen"
|
2520 |
|
2521 |
-
#: ../public/class-advanced-ads.php:
|
2522 |
msgid "Parent Ad Groups:"
|
2523 |
msgstr "Parent-Anzeigen-Gruppen"
|
2524 |
|
2525 |
-
#: ../public/class-advanced-ads.php:
|
2526 |
msgid "Edit Ad Group"
|
2527 |
msgstr "Bearbeite Anzeigen-Gruppe"
|
2528 |
|
2529 |
-
#: ../public/class-advanced-ads.php:
|
2530 |
msgid "Update Ad Group"
|
2531 |
msgstr "Aktualisiere Anzeigen-Gruppe"
|
2532 |
|
2533 |
-
#: ../public/class-advanced-ads.php:
|
2534 |
msgid "Add New Ad Group"
|
2535 |
msgstr "Neue Anzeigengruppe hinzufügen"
|
2536 |
|
2537 |
-
#: ../public/class-advanced-ads.php:
|
2538 |
msgid "New Ad Groups Name"
|
2539 |
msgstr "Neuer Anzeigen-Gruppen-Name"
|
2540 |
|
2541 |
-
#: ../public/class-advanced-ads.php:
|
2542 |
msgid "No Ad Group found"
|
2543 |
msgstr "Keine Anzeigen-Gruppe gefunden"
|
2544 |
|
2545 |
-
#: ../public/class-advanced-ads.php:
|
2546 |
msgid "New Ad"
|
2547 |
msgstr "Neue Anzeige"
|
2548 |
|
2549 |
-
#: ../public/class-advanced-ads.php:
|
2550 |
msgid "Add New Ad"
|
2551 |
msgstr "Neue Anzeige hinzufügen"
|
2552 |
|
2553 |
-
#: ../public/class-advanced-ads.php:
|
2554 |
msgid "Edit Ad"
|
2555 |
msgstr "Anzeige bearbeiten"
|
2556 |
|
2557 |
-
#: ../public/class-advanced-ads.php:
|
2558 |
msgid "View"
|
2559 |
msgstr "Ansicht"
|
2560 |
|
2561 |
-
#: ../public/class-advanced-ads.php:
|
2562 |
msgid "View the Ad"
|
2563 |
msgstr "Anzeige ansehen"
|
2564 |
|
2565 |
-
#: ../public/class-advanced-ads.php:
|
2566 |
msgid "Search Ads"
|
2567 |
msgstr "Anzeigen suchen"
|
2568 |
|
2569 |
-
#: ../public/class-advanced-ads.php:
|
2570 |
msgid "No Ads found"
|
2571 |
msgstr "Keine Anzeigen gefunden"
|
2572 |
|
2573 |
-
#: ../public/class-advanced-ads.php:
|
2574 |
msgid "No Ads found in Trash"
|
2575 |
msgstr "Keine Anzeigen im Papierkorb gefunden"
|
2576 |
|
2577 |
-
#: ../public/class-advanced-ads.php:
|
2578 |
msgid "Parent Ad"
|
2579 |
msgstr "Übergeordnete Anzeige"
|
3 |
"Project-Id-Version: Advanved Ads\n"
|
4 |
"Report-Msgid-Bugs-To: http://wordpress.org/plugins/plugin-name\n"
|
5 |
"POT-Creation-Date: 2015-01-27 16:47+0100\n"
|
6 |
+
"PO-Revision-Date: Sat Oct 03 2015 18:05:02 GMT+0200 (CEST)\n"
|
7 |
"Last-Translator: admin <post@webzunft.de>\n"
|
8 |
"Language-Team: webgilde <thomas.maier@webgilde.com>\n"
|
9 |
"Language: German\n"
|
28 |
|
29 |
#. Name of the plugin
|
30 |
msgid "Advanced Ads"
|
31 |
+
msgstr "Advanced Ads"
|
32 |
|
33 |
#. URI of the plugin
|
34 |
msgid "https://wpadvancedads.com"
|
35 |
+
msgstr "https://wpadvancedads.com"
|
|
|
|
|
|
|
|
|
36 |
|
37 |
#. Author of the plugin
|
38 |
msgid "Thomas Maier"
|
39 |
+
msgstr "Thomas Maier"
|
40 |
|
41 |
#. Author URI of the plugin
|
42 |
msgid "http://webgilde.com"
|
43 |
+
msgstr "http://webgilde.com"
|
44 |
|
45 |
#: ../admin/includes/class-overview-widgets.php:53
|
46 |
msgid "Advanced Ads Pro"
|
47 |
+
msgstr "Advanced Ads Pro"
|
48 |
|
49 |
+
#: ../admin/views/ad-visitor-metabox.php:30
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
50 |
#, php-format
|
51 |
msgid ""
|
52 |
+
"Check out cache-busting in <a href=\"%s\" target=\"_blank\">Advanced Ads Pro</a> "
|
53 |
+
"if dynamic features get cached."
|
|
|
54 |
msgstr ""
|
55 |
+
"Benutzen Sie das Cache-Busting in <a href=\"%s\" target=\"_blank\">Advanced Ads "
|
56 |
+
"Pro</a> falls dynamische Einstellungen nicht funktionieren."
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
57 |
|
58 |
#: ../admin/views/support.php:41
|
59 |
+
#, php-format
|
60 |
msgid ""
|
61 |
"<strong>Autoptimize plugin detected</strong>. While this plugin is great for "
|
62 |
"site performance, it is known to alter code, including scripts from ad "
|
63 |
+
"networks. <a href=\"%s\" target=\"_blank\">Advanced Ads Pro</a> has a build-in "
|
64 |
+
"support for Autoptimize."
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
65 |
msgstr ""
|
66 |
+
"Es wurde das <strong>Autoptimize-Plugin gefunden</strong>. Das Plugin ist "
|
67 |
+
"zwar gut für die Performance einer Seite, ändert aber häufig den Code von "
|
68 |
+
"Anzeigen. <a href=\"%s\" target=\"_blank\">Advanced Ads Pro</a> löst dieses "
|
69 |
+
"Problem."
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
70 |
|
71 |
+
#: ../public/class-advanced-ads.php:294
|
72 |
+
msgid "Advanced Ads Error following:"
|
73 |
+
msgstr "Fehler von Advanced Ads:"
|
74 |
|
75 |
+
#. Description of the plugin
|
76 |
+
msgid "Manage and optimize your ads in WordPress"
|
77 |
+
msgstr "Anzeigen in WordPress verwalten und optimieren."
|
|
|
|
|
|
|
|
|
|
|
|
|
78 |
|
79 |
+
#: ../admin/class-advanced-ads-admin.php:240
|
80 |
msgid "Overview"
|
81 |
msgstr "Übersicht"
|
82 |
|
83 |
+
#: ../admin/class-advanced-ads-admin.php:244 ../admin/class-advanced-ads-admin.
|
84 |
+
#: php:244 ../admin/views/ad-group-list-form-row.php:27 ../admin/views/ad-group-
|
85 |
+
#: list-header.php:5 ../admin/views/placements.php:80 ../admin/views/placements.
|
86 |
+
#: php:184 ../classes/widget.php:83 ../public/class-advanced-ads.php:562
|
87 |
msgid "Ads"
|
88 |
msgstr "Anzeigen"
|
89 |
|
90 |
+
#: ../admin/class-advanced-ads-admin.php:248 ../admin/views/placements.php:73 ..
|
91 |
+
#: admin/views/placements.php:177 ../classes/widget.php:76
|
92 |
msgid "Ad Groups"
|
93 |
msgstr "Anzeigen-Gruppen"
|
94 |
|
95 |
+
#: ../admin/class-advanced-ads-admin.php:248 ../public/class-advanced-ads.php:535
|
96 |
msgid "Groups"
|
97 |
msgstr "Gruppen"
|
98 |
|
99 |
+
#: ../admin/class-advanced-ads-admin.php:253 ../admin/views/debug.php:14
|
100 |
msgid "Ad Placements"
|
101 |
msgstr "Anzeigen-Platzierungen"
|
102 |
|
103 |
+
#: ../admin/class-advanced-ads-admin.php:253 ../admin/views/placements.php:18
|
104 |
msgid "Placements"
|
105 |
msgstr "Platzierungen"
|
106 |
|
107 |
+
#: ../admin/class-advanced-ads-admin.php:257
|
108 |
msgid "Advanced Ads Settings"
|
109 |
msgstr "Advanced-Ads-Einstellungen"
|
110 |
|
111 |
+
#: ../admin/class-advanced-ads-admin.php:257 ../admin/class-advanced-ads-admin.
|
112 |
+
#: php:484 ../admin/views/debug.php:11
|
113 |
msgid "Settings"
|
114 |
msgstr "Einstellungen"
|
115 |
|
116 |
+
#: ../admin/class-advanced-ads-admin.php:260
|
117 |
msgid "Advanced Ads Debugging"
|
118 |
msgstr "Advanced-Ads-Fehleranalyse (Debugging)"
|
119 |
|
120 |
+
#: ../admin/class-advanced-ads-admin.php:260
|
121 |
msgid "Debug"
|
122 |
msgstr "Debug"
|
123 |
|
124 |
+
#: ../admin/class-advanced-ads-admin.php:264 ../admin/class-advanced-ads-admin.
|
125 |
+
#: php:264
|
126 |
msgid "Advanced Ads Intro"
|
127 |
msgstr "Advanced Ads Einführung"
|
128 |
|
129 |
+
#: ../admin/class-advanced-ads-admin.php:268 ../admin/class-advanced-ads-admin.
|
130 |
+
#: php:268
|
131 |
msgid "Support"
|
132 |
msgstr "Support"
|
133 |
|
134 |
+
#: ../admin/class-advanced-ads-admin.php:398 ../admin/class-advanced-ads-admin.
|
135 |
+
#: php:425
|
136 |
msgid "Sorry, you are not allowed to access this feature."
|
137 |
msgstr "Sie haben leider keinen Zugriff auf diese Funktion"
|
138 |
|
139 |
+
#: ../admin/class-advanced-ads-admin.php:411
|
140 |
msgid ""
|
141 |
"You attempted to edit an ad group that doesn’t exist. Perhaps it was "
|
142 |
"deleted?"
|
144 |
"Sie haben versucht, ein Element, das nicht existiert, zu bearbeiten. "
|
145 |
"Vielleicht wurde es gelöscht?"
|
146 |
|
147 |
+
#: ../admin/class-advanced-ads-admin.php:526
|
148 |
msgid "Ad Type"
|
149 |
msgstr "Anzeigen-Typ"
|
150 |
|
151 |
+
#: ../admin/class-advanced-ads-admin.php:529
|
152 |
msgid "Ad Parameters"
|
153 |
msgstr "Anzeigen-Parameter"
|
154 |
|
155 |
+
#: ../admin/class-advanced-ads-admin.php:532
|
156 |
msgid "Layout / Output"
|
157 |
msgstr "Layout / Ausgabe"
|
158 |
|
159 |
+
#: ../admin/class-advanced-ads-admin.php:535
|
160 |
msgid "Display Conditions"
|
161 |
msgstr "Anzeige-Bedingungen"
|
162 |
|
163 |
+
#: ../admin/class-advanced-ads-admin.php:538
|
164 |
msgid "Visitor Conditions"
|
165 |
msgstr "Besucher-Bedingungen"
|
166 |
|
167 |
+
#: ../admin/class-advanced-ads-admin.php:714 ../admin/class-advanced-ads-admin.
|
168 |
+
#: php:715
|
169 |
msgid "Ad updated."
|
170 |
msgstr "Anzeige aktualisiert."
|
171 |
|
172 |
#. translators: %s: date and time of the revision
|
173 |
+
#: ../admin/class-advanced-ads-admin.php:717
|
174 |
#, php-format
|
175 |
msgid "Ad restored to revision from %s"
|
176 |
msgstr "Anzeige aus Revision %s wiederhergestellt"
|
177 |
|
178 |
+
#: ../admin/class-advanced-ads-admin.php:718
|
179 |
msgid "Ad published."
|
180 |
msgstr "Anzeige veröffentlicht."
|
181 |
|
182 |
+
#: ../admin/class-advanced-ads-admin.php:719
|
183 |
msgid "Ad saved."
|
184 |
msgstr "Anzeige gespeichert."
|
185 |
|
186 |
+
#: ../admin/class-advanced-ads-admin.php:720
|
187 |
msgid "Ad submitted."
|
188 |
msgstr "Anzeige gesendet."
|
189 |
|
190 |
+
#: ../admin/class-advanced-ads-admin.php:722
|
191 |
#, php-format
|
192 |
msgid "Ad scheduled for: <strong>%1$s</strong>."
|
193 |
msgstr "Anzeige geplant für <strong>%1$s</strong>."
|
194 |
|
195 |
#. translators: Publish box date format, see http://php.net/date
|
196 |
+
#: ../admin/class-advanced-ads-admin.php:724
|
197 |
msgid "M j, Y @ G:i"
|
198 |
msgstr "j M Y @ G:i"
|
199 |
|
200 |
+
#: ../admin/class-advanced-ads-admin.php:726
|
201 |
msgid "Ad draft updated."
|
202 |
msgstr "Anzeigenentwurf gespeichert."
|
203 |
|
204 |
+
#: ../admin/class-advanced-ads-admin.php:745
|
205 |
#, php-format
|
206 |
msgid "%s ad updated."
|
207 |
msgid_plural "%s ads updated."
|
208 |
msgstr[0] "%s Anzeige aktualisiert."
|
209 |
msgstr[1] "%s Anzeigen aktualisiert."
|
210 |
|
211 |
+
#: ../admin/class-advanced-ads-admin.php:746
|
212 |
#, php-format
|
213 |
msgid "%s ad not updated, somebody is editing it."
|
214 |
msgid_plural "%s ads not updated, somebody is editing them."
|
215 |
msgstr[0] "%s Anzeige nicht aktualisiert, jemand bearbeitet sie."
|
216 |
msgstr[1] "%s Anzeigen nicht aktualisiert, jemand bearbeitet sie."
|
217 |
|
218 |
+
#: ../admin/class-advanced-ads-admin.php:747
|
219 |
#, php-format
|
220 |
msgid "%s ad permanently deleted."
|
221 |
msgid_plural "%s ads permanently deleted."
|
222 |
msgstr[0] "%s Anzeige endgültig gelöscht."
|
223 |
msgstr[1] "%s Anzeigen endgültig gelöscht."
|
224 |
|
225 |
+
#: ../admin/class-advanced-ads-admin.php:748
|
226 |
#, php-format
|
227 |
msgid "%s ad moved to the Trash."
|
228 |
msgid_plural "%s ads moved to the Trash."
|
229 |
msgstr[0] "%s Anzeige in den Papierkorb verschoben."
|
230 |
msgstr[1] "%s Anzeigen in den Papierkorb verschoben."
|
231 |
|
232 |
+
#: ../admin/class-advanced-ads-admin.php:749
|
233 |
#, php-format
|
234 |
msgid "%s ad restored from the Trash."
|
235 |
msgid_plural "%s ads restored from the Trash."
|
236 |
msgstr[0] "%s Anzeige aus dem Papierkorb wiederhergestellt."
|
237 |
msgstr[1] "%s Anzeige aus dem Papierkorb wiederhergestellt."
|
238 |
|
239 |
+
#: ../admin/class-advanced-ads-admin.php:784 ../admin/views/settings.php:12
|
240 |
msgid "General"
|
241 |
msgstr "Allgemein"
|
242 |
|
243 |
+
#: ../admin/class-advanced-ads-admin.php:796 ../admin/class-advanced-ads-admin.
|
244 |
+
#: php:892
|
245 |
msgid "Licenses"
|
246 |
msgstr "Lizenzen"
|
247 |
|
248 |
+
#: ../admin/class-advanced-ads-admin.php:807
|
249 |
msgid "Disable ads"
|
250 |
msgstr "Anzeigen auf dieser Seite deaktivieren."
|
251 |
|
252 |
+
#: ../admin/class-advanced-ads-admin.php:815
|
253 |
msgid "Hide ads for logged in users"
|
254 |
msgstr "Verstecke Anzeigen vor eingeloggten Benutzern"
|
255 |
|
256 |
+
#: ../admin/class-advanced-ads-admin.php:823
|
257 |
msgid "Use advanced JavaScript"
|
258 |
msgstr "Advanced-JavaScript benutzen"
|
259 |
|
260 |
+
#: ../admin/class-advanced-ads-admin.php:831
|
261 |
msgid "Unlimited ad injection"
|
262 |
msgstr "Anzeigen-Injektion überall aktivieren "
|
263 |
|
264 |
+
#: ../admin/class-advanced-ads-admin.php:839
|
265 |
msgid "Priority of content injection filter"
|
266 |
msgstr "Priorität der Anzeigen-Injektion"
|
267 |
|
268 |
+
#: ../admin/class-advanced-ads-admin.php:847
|
269 |
msgid "Hide ads from bots"
|
270 |
msgstr "Anzeigen vor Bots verbergen"
|
271 |
|
272 |
+
#: ../admin/class-advanced-ads-admin.php:855
|
273 |
msgid "Disable notices"
|
274 |
msgstr "Mitteilungen deaktivieren"
|
275 |
|
276 |
+
#: ../admin/class-advanced-ads-admin.php:863
|
277 |
msgid "ID prefix"
|
278 |
msgstr "ID Präfix"
|
279 |
|
280 |
+
#: ../admin/class-advanced-ads-admin.php:871
|
281 |
msgid "Remove Widget ID"
|
282 |
msgstr "ID des Widget entfernen"
|
283 |
|
284 |
+
#: ../admin/class-advanced-ads-admin.php:946
|
285 |
msgid "(display to all)"
|
286 |
msgstr "(für alle sichtbar)"
|
287 |
|
288 |
+
#: ../admin/class-advanced-ads-admin.php:947
|
289 |
msgid "Subscriber"
|
290 |
msgstr "Abonnent"
|
291 |
|
292 |
+
#: ../admin/class-advanced-ads-admin.php:948
|
293 |
msgid "Contributor"
|
294 |
msgstr "Mitarbeiter"
|
295 |
|
296 |
+
#: ../admin/class-advanced-ads-admin.php:949
|
297 |
msgid "Author"
|
298 |
msgstr "Autor"
|
299 |
|
300 |
+
#: ../admin/class-advanced-ads-admin.php:950
|
301 |
msgid "Editor"
|
302 |
msgstr "Redakteur"
|
303 |
|
304 |
+
#: ../admin/class-advanced-ads-admin.php:951
|
305 |
msgid "Admin"
|
306 |
msgstr "Admin"
|
307 |
|
308 |
+
#: ../admin/class-advanced-ads-admin.php:959
|
309 |
msgid "Choose the lowest role a user must have in order to not see any ads."
|
310 |
msgstr ""
|
311 |
"Wählen Sie die niedrigste Rolle die ein Benutzer haben muss um keine "
|
312 |
"Anzeigen zu sehen."
|
313 |
|
314 |
+
#: ../admin/class-advanced-ads-admin.php:973
|
315 |
msgid ""
|
316 |
"<strong>notice: </strong>the file is currently enabled by an add-on that "
|
317 |
"needs it."
|
319 |
"<strong>Hinweis: </strong>die Datei wird aktuell von einer Erweiterung "
|
320 |
"benutzt."
|
321 |
|
322 |
+
#: ../admin/class-advanced-ads-admin.php:976
|
323 |
#, php-format
|
324 |
msgid ""
|
325 |
"Enable advanced JavaScript functions (<a href=\"%s\" target=\"_blank\">here</a>)."
|
330 |
"target=\"_blank\">Info</a>). Einige Funktionen und Erweiterungen können diese "
|
331 |
"Einstellung überschreiben, wenn sie die Datei benötigen."
|
332 |
|
333 |
+
#: ../admin/class-advanced-ads-admin.php:989
|
334 |
msgid ""
|
335 |
"Some plugins and themes trigger ad injection where it shouldn’t happen. "
|
336 |
"Therefore, Advanced Ads ignores injected placements on non-singular pages "
|
348 |
"werden überall dort, wo Beiträge geladen werden, angezeigt (z.B. auch auf "
|
349 |
"Archiv-Seiten)."
|
350 |
|
351 |
+
#: ../admin/class-advanced-ads-admin.php:1003
|
352 |
msgid ""
|
353 |
"Play with this value in order to change the priority of the injected ads "
|
354 |
"compared to other auto injected elements in the post content."
|
356 |
"Ändern Sie diesen Wert um die Position automatisch eingefügter Anzeigen im "
|
357 |
"Content gegenüber anderer Elementen zu beeinflussen."
|
358 |
|
359 |
+
#: ../admin/class-advanced-ads-admin.php:1016
|
360 |
#, php-format
|
361 |
msgid ""
|
362 |
"Hide ads from crawlers, bots and empty user agents. Also prevents counting "
|
367 |
"werden mit dem <a href=\"%s\" target=\"_blank\">Tracking Add-On</a> dann auch "
|
368 |
"keine Impressionen mehr gezählt."
|
369 |
|
370 |
+
#: ../admin/class-advanced-ads-admin.php:1017
|
371 |
msgid ""
|
372 |
"Disabling this option only makes sense if your ads contain content you want "
|
373 |
"to display to bots (like search engines) or your site is cached and bots "
|
376 |
"Deaktivieren Sie diese Option, wenn Bots (z.B. Suchmaschinen) die "
|
377 |
"Werbeinhalte sehen sollen oder Ihre Seite einen Cache nutzt."
|
378 |
|
379 |
+
#: ../admin/class-advanced-ads-admin.php:1030
|
380 |
msgid ""
|
381 |
"Disable internal notices like tips, tutorials, email newsletters and update "
|
382 |
"notices. Disabling notices is recommended if you run multiple blogs with "
|
387 |
"diese Einstellung, wenn Sie Advanced Ads auf mehreren Blog installiert \n"
|
388 |
"haben."
|
389 |
|
390 |
+
#: ../admin/class-advanced-ads-admin.php:1052
|
391 |
msgid ""
|
392 |
"Prefix of class or id attributes in the frontend. Change it if you don’t "
|
393 |
"want <strong>ad blockers</strong> to mark these blocks as ads.<br/>You might "
|
396 |
"Präfix der class oder id Attribute im Frontend. Eine Änderung kann helfen "
|
397 |
"damit Ad-Blocker die Inhalte nicht pauschal entfernen."
|
398 |
|
399 |
+
#: ../admin/class-advanced-ads-admin.php:1073
|
400 |
msgid ""
|
401 |
"Remove the ID attribute from widgets in order to not make them an easy "
|
402 |
"target of ad blockers."
|
404 |
"ID-Attribut des Anzeigenwidgets entfernen, damit Ad-Blocker hier keinen "
|
405 |
"Ansatz haben es zu blockieren."
|
406 |
|
407 |
+
#: ../admin/class-advanced-ads-admin.php:1126
|
408 |
msgid "Ad Details"
|
409 |
msgstr "Anzeigeneinstellungen"
|
410 |
|
411 |
+
#: ../admin/class-advanced-ads-admin.php:1200
|
412 |
msgid "Ad Settings"
|
413 |
msgstr "Anzeigen-Einstellungen"
|
414 |
|
415 |
+
#: ../admin/class-advanced-ads-admin.php:1279 ../admin/views/overview.php:23
|
416 |
msgid "Ads Dashboard"
|
417 |
msgstr "Anzeigen-Dashboard"
|
418 |
|
419 |
+
#: ../admin/class-advanced-ads-admin.php:1291
|
420 |
msgid "From the ad optimization universe"
|
421 |
msgstr "Neues aus dem Anzeigen-Universum"
|
422 |
|
423 |
+
#: ../admin/class-advanced-ads-admin.php:1300
|
424 |
msgid "Advanced Ads Tutorials"
|
425 |
msgstr "Advanced Ads Tutorials"
|
426 |
|
427 |
+
#: ../admin/class-advanced-ads-admin.php:1311
|
428 |
#, php-format
|
429 |
msgid "%d ads – <a href=\"%s\">manage</a> - <a href=\"%s\">new</a>"
|
430 |
msgstr "%d Anzeigen – <a href=\"%s\">verwalten</a> - <a href=\"%s\">neu</a>"
|
431 |
|
432 |
+
#: ../admin/class-advanced-ads-admin.php:1322
|
433 |
msgid "plugin manual and homepage"
|
434 |
msgstr "Plugin-Anleitung und Homepage"
|
435 |
|
436 |
+
#: ../admin/class-advanced-ads-admin.php:1329
|
437 |
msgid "Get the tutorial via email"
|
438 |
msgstr "Tutorial per E-Mail (engl.)\n"
|
439 |
|
440 |
+
#: ../admin/class-advanced-ads-admin.php:1336
|
441 |
msgid "Get AdSense tips via email"
|
442 |
msgstr "AdSense Tips per E-Mail (engl.)"
|
443 |
|
444 |
+
#: ../admin/class-advanced-ads-admin.php:1415
|
445 |
msgid "Error while trying to register the license. Please contact support."
|
446 |
msgstr ""
|
447 |
"Die Lizenz konnte nicht registriert werden. Bitte kontaktieren Sie den "
|
448 |
"Support."
|
449 |
|
450 |
+
#: ../admin/class-advanced-ads-admin.php:1421
|
451 |
msgid "Please enter and save a valid license key first."
|
452 |
msgstr "Bitte speichern Sie zunächst einen gültigen Lizenzschlüssel."
|
453 |
|
454 |
+
#: ../admin/class-advanced-ads-admin.php:1441
|
455 |
#, php-format
|
456 |
msgid "License is invalid. Reason: %s"
|
457 |
msgstr "Die Lizenz ist ungültig. Grund: %s"
|
503 |
msgstr "Anzeigen mit dem höchsten Anzeigengewicht zuerst einblenden."
|
504 |
|
505 |
#: ../admin/includes/class-ad-groups-list.php:259 ../public/class-advanced-ads.
|
506 |
+
#: php:566
|
507 |
msgid "Edit"
|
508 |
msgstr "Bearbeiten"
|
509 |
|
1149 |
msgstr "Anzahl der Anzeigen, die gleichzeitig sichtbar sein sollen."
|
1150 |
|
1151 |
#: ../admin/views/ad-group-list-form-row.php:30 ../public/class-advanced-ads.php:
|
1152 |
+
#: 563
|
1153 |
msgid "Ad"
|
1154 |
msgstr "Anzeige"
|
1155 |
|
1166 |
msgstr "Details"
|
1167 |
|
1168 |
#: ../admin/views/ad-group-list-row.php:8 ../admin/views/ad-group.php:63 ..
|
1169 |
+
#: admin/views/ad-info.php:3 ../admin/views/placements.php:58
|
1170 |
msgid "shortcode"
|
1171 |
msgstr "Shortcode"
|
1172 |
|
1173 |
#: ../admin/views/ad-group-list-row.php:11 ../admin/views/ad-group.php:66 ..
|
1174 |
+
#: admin/views/placements.php:61
|
1175 |
msgid "template"
|
1176 |
msgstr "Template"
|
1177 |
|
1371 |
msgid "- default -"
|
1372 |
msgstr "- default -"
|
1373 |
|
1374 |
+
#: ../admin/views/ad-output-metabox.php:7 ../admin/views/placements.php:51
|
1375 |
msgid "default"
|
1376 |
msgstr "Standard"
|
1377 |
|
1437 |
msgid "Set expiry date"
|
1438 |
msgstr "Verfallsdatum setzen"
|
1439 |
|
1440 |
+
#: ../admin/views/ad-submitbox-meta.php:10
|
1441 |
+
msgid "Month"
|
1442 |
+
msgstr "Monat"
|
1443 |
+
|
1444 |
#: ../admin/views/ad-submitbox-meta.php:14
|
1445 |
#, php-format
|
1446 |
msgctxt "1: month number (01, 02, etc.), 2: month abbreviation"
|
1447 |
msgid "%1$s-%2$s"
|
1448 |
msgstr "%1$s-%2$s"
|
1449 |
|
1450 |
+
#: ../admin/views/ad-submitbox-meta.php:19
|
1451 |
+
msgid "Day"
|
1452 |
+
msgstr "Tag"
|
1453 |
+
|
1454 |
+
#: ../admin/views/ad-submitbox-meta.php:20
|
1455 |
+
msgid "Year"
|
1456 |
+
msgstr "Jahr"
|
1457 |
+
|
1458 |
+
#: ../admin/views/ad-submitbox-meta.php:21
|
1459 |
+
msgid "Hour"
|
1460 |
+
msgstr "Stunde"
|
1461 |
+
|
1462 |
+
#: ../admin/views/ad-submitbox-meta.php:22
|
1463 |
+
msgid "Minute"
|
1464 |
+
msgstr "Minute"
|
1465 |
+
|
1466 |
+
#: ../admin/views/ad-submitbox-meta.php:27
|
1467 |
+
#, php-format
|
1468 |
+
msgctxt "order of expiry date fields 1: month, 2: day, 3: year, 4: hour, 5: minute"
|
1469 |
+
msgid "%1$s %2$s, %3$s @ %4$s %5$s"
|
1470 |
+
msgstr "%2$s %1$s, %3$s @ %4$s %5$s"
|
1471 |
+
|
1472 |
#: ../admin/views/ad-visitor-metabox.php:4
|
1473 |
msgid ""
|
1474 |
"Display conditions that are based on the user. Use with caution on cached "
|
1486 |
"sehen. Vermeiden Sie solche Bedingungen, wenn alle Nutzer die Anzeige sehen "
|
1487 |
"sollen."
|
1488 |
|
1489 |
+
#: ../admin/views/ad-visitor-metabox.php:34
|
1490 |
msgid "New condition"
|
1491 |
msgstr "Neue Bedingung"
|
1492 |
|
1493 |
+
#: ../admin/views/ad-visitor-metabox.php:37
|
1494 |
msgctxt "visitor condition connector"
|
1495 |
msgid "and"
|
1496 |
msgstr "und"
|
1497 |
|
1498 |
+
#: ../admin/views/ad-visitor-metabox.php:38
|
1499 |
msgctxt "visitor condition connector"
|
1500 |
msgid "or"
|
1501 |
msgstr "oder"
|
1502 |
|
1503 |
+
#: ../admin/views/ad-visitor-metabox.php:41
|
1504 |
msgid "-- choose a condition --"
|
1505 |
msgstr "-- Bedingung wählen --"
|
1506 |
|
1507 |
+
#: ../admin/views/ad-visitor-metabox.php:46
|
1508 |
msgid "add"
|
1509 |
msgstr "hinzufügen"
|
1510 |
|
1511 |
+
#: ../admin/views/ad-visitor-metabox.php:50
|
1512 |
#, php-format
|
1513 |
msgid ""
|
1514 |
"Define the exact browser width for which an ad should be visible using the "
|
1518 |
"geben Sie die genaue Browserbreite an, für die diese Anzeige sichtbar sein "
|
1519 |
"sollen.\n"
|
1520 |
|
1521 |
+
#: ../admin/views/ad-visitor-metabox.php:108
|
1522 |
msgid ""
|
1523 |
"The visitor conditions below are deprecated. Please use the new version of "
|
1524 |
"visitor conditions to replace it."
|
1526 |
"Die unten aufgeführten Besucherbedingungen sind veraltet. Bitte nutzen Sie "
|
1527 |
"die neueren Versionen oben."
|
1528 |
|
1529 |
+
#: ../admin/views/ad-visitor-metabox.php:114
|
1530 |
msgid "Display on all devices"
|
1531 |
msgstr "Auf allen Geräten anzeigen"
|
1532 |
|
1533 |
+
#: ../admin/views/ad-visitor-metabox.php:118
|
1534 |
msgid "only on mobile devices"
|
1535 |
msgstr "Nur auf mobilen Geräten"
|
1536 |
|
1537 |
+
#: ../admin/views/ad-visitor-metabox.php:122
|
1538 |
msgid "not on mobile devices"
|
1539 |
msgstr "Nicht auf mobilen Endgeräten"
|
1540 |
|
1695 |
msgid "Options"
|
1696 |
msgstr "Optionen"
|
1697 |
|
1698 |
+
#: ../admin/views/placements.php:42
|
1699 |
#, php-format
|
1700 |
msgid ""
|
1701 |
"Placement type \"%s\" is missing and was reset to \"default\".<br/>Please check "
|
1704 |
"Der Platzierungs-Typ \"%s\" fehlt und wurde auf \"default\" zurückgesetzt."
|
1705 |
"<br/>Bitte prüfen Sie, ob die notwendige Erweiterung aktiviert ist."
|
1706 |
|
1707 |
+
#: ../admin/views/placements.php:57
|
1708 |
msgid "show usage"
|
1709 |
msgstr "Nutzungshinweise"
|
1710 |
|
1711 |
+
#: ../admin/views/placements.php:69
|
1712 |
msgid "Item"
|
1713 |
msgstr "Anzeige"
|
1714 |
|
1715 |
+
#: ../admin/views/placements.php:71 ../admin/views/placements.php:175
|
1716 |
msgid "--not selected--"
|
1717 |
msgstr "--nicht gewählt--"
|
1718 |
|
1719 |
+
#: ../admin/views/placements.php:91
|
1720 |
msgid "Inject"
|
1721 |
msgstr "Einfügen"
|
1722 |
|
1723 |
+
#: ../admin/views/placements.php:92
|
1724 |
msgid "after"
|
1725 |
msgstr "nach"
|
1726 |
|
1727 |
+
#: ../admin/views/placements.php:92
|
1728 |
msgid "before"
|
1729 |
msgstr "vor"
|
1730 |
|
1731 |
+
#: ../admin/views/placements.php:112
|
1732 |
msgid "start counting from bottom"
|
1733 |
msgstr "von unten zählen"
|
1734 |
|
1735 |
+
#: ../admin/views/placements.php:115
|
1736 |
msgid "Important Notice"
|
1737 |
msgstr "Hinweis"
|
1738 |
|
1739 |
+
#: ../admin/views/placements.php:115
|
1740 |
msgid ""
|
1741 |
"Your server is missing an extension. This might break the content injection."
|
1742 |
"<br/>Ignore this warning if everything works fine or else ask your hosting "
|
1748 |
"Ignorieren Sie diese Warnung, wenn das Placement problemlos funktioniert "
|
1749 |
"oder bitten Sie Ihren Hosting-Anbieter <em>mbstring</em> zu aktivieren.\n"
|
1750 |
|
1751 |
+
#: ../admin/views/placements.php:125
|
1752 |
+
msgid "advanced options"
|
1753 |
+
msgstr "erweiterte Funktionen"
|
1754 |
+
|
1755 |
+
#: ../admin/views/placements.php:133
|
1756 |
+
msgctxt "checkbox to remove placement"
|
1757 |
+
msgid "delete"
|
1758 |
+
msgstr "löschen"
|
1759 |
+
|
1760 |
+
#: ../admin/views/placements.php:139
|
1761 |
msgid "Save Placements"
|
1762 |
msgstr "Platzierungen sichern"
|
1763 |
|
1764 |
+
#: ../admin/views/placements.php:141
|
1765 |
msgid "Create a new placement"
|
1766 |
msgstr "Neue Platzierung erstellen"
|
1767 |
|
1768 |
+
#: ../admin/views/placements.php:142
|
1769 |
msgid "New Placement"
|
1770 |
msgstr "Neue Platzierung"
|
1771 |
|
1772 |
+
#: ../admin/views/placements.php:148
|
1773 |
msgid "Choose a placement type"
|
1774 |
msgstr "Typ der Platzierung wählen"
|
1775 |
|
1776 |
+
#: ../admin/views/placements.php:149
|
1777 |
#, php-format
|
1778 |
msgid ""
|
1779 |
"Placement types define where the ad is going to be displayed. Learn more "
|
1782 |
"Der Platzierungstyp entscheidet darüber wo eine Anzeige im Frontend "
|
1783 |
"platziert wird. Mehr dazu finden Sie in der <a href=\"%s\">Anleitung</a>."
|
1784 |
|
1785 |
+
#: ../admin/views/placements.php:166
|
1786 |
msgid "Please select a placement type."
|
1787 |
msgstr "Bitte wählen Sie einen Platzierungs-Typ"
|
1788 |
|
1789 |
+
#: ../admin/views/placements.php:168
|
1790 |
msgid "Choose a Name"
|
1791 |
msgstr "Bezeichnung wählen"
|
1792 |
|
1793 |
+
#: ../admin/views/placements.php:169
|
1794 |
msgid ""
|
1795 |
"The name of the placement is only visible to you. Tip: choose a descriptive "
|
1796 |
"one, e.g. <em>Below Post Headline</em>."
|
1798 |
"Die Bezeichnung der Platzierung ist nur für Sie sichtbar. Ich empfehle eine "
|
1799 |
"beschreibende Bezeichnung, z.B. <em>Unter der Artikelüberschrift</em>."
|
1800 |
|
1801 |
+
#: ../admin/views/placements.php:170
|
1802 |
msgid "Placement Name"
|
1803 |
msgstr "Bezeichnung"
|
1804 |
|
1805 |
+
#: ../admin/views/placements.php:171
|
1806 |
msgid "Please enter a name for your placement."
|
1807 |
msgstr "Bitte tragen Sie den Namen der Platzierung ein."
|
1808 |
|
1809 |
+
#: ../admin/views/placements.php:172
|
1810 |
msgid "Choose the Ad or Group"
|
1811 |
msgstr "Anzeige oder Gruppe wählen"
|
1812 |
|
1813 |
+
#: ../admin/views/placements.php:173
|
1814 |
msgid "The ad or group that should be displayed."
|
1815 |
msgstr "Die Anzeige oder Anzeigengruppe die angezeigt werden soll."
|
1816 |
|
1817 |
+
#: ../admin/views/placements.php:192
|
1818 |
msgid "Save New Placement"
|
1819 |
msgstr "Neue Platzierung sichern"
|
1820 |
|
1920 |
msgid "the company behind Advanced Ads"
|
1921 |
msgstr "das Unternehmen hinter Advanced Ads"
|
1922 |
|
|
|
|
|
|
|
|
|
1923 |
#: ../admin/views/support.php:9
|
1924 |
msgid "Email was successfully sent."
|
1925 |
msgstr "E-Mail erfolgreich gesendet."
|
1940 |
msgid "search"
|
1941 |
msgstr "suchen"
|
1942 |
|
1943 |
+
#: ../admin/views/support.php:18
|
1944 |
+
msgid "Possible Issues"
|
1945 |
+
msgstr "Mögliche Probleme"
|
1946 |
+
|
1947 |
+
#: ../admin/views/support.php:19
|
1948 |
+
msgid ""
|
1949 |
+
"Please fix the issues below or try to understand their consequences before "
|
1950 |
+
"contacting support."
|
1951 |
+
msgstr ""
|
1952 |
+
"Bitte lösen Sie die unten genannten Probleme oder schließen diese als "
|
1953 |
+
"Ursache aus, bevor Sie den Support kontaktieren."
|
1954 |
+
|
1955 |
+
#: ../admin/views/support.php:23
|
1956 |
+
#, php-format
|
1957 |
+
msgid ""
|
1958 |
+
"Your <strong>PHP version (%s) is too low</strong>. Advanced Ads is built for "
|
1959 |
+
"PHP 5.3 and higher. It might work, but updating PHP is highly recommended. "
|
1960 |
+
"Please ask your hosting provider for more information."
|
1961 |
+
msgstr ""
|
1962 |
+
"Ihre PHP-Version (%s) ist zu niedrig. Advanced Ads ist für 5.3 und höher "
|
1963 |
+
"ausgelegt. Für niedrigere Versionen kann keine Garantie übernommen werden. "
|
1964 |
+
"Bitte kontaktieren Sie Ihren Hosting-Anbieter für weitere Informationen."
|
1965 |
+
|
1966 |
+
#: ../admin/views/support.php:26
|
1967 |
+
#, php-format
|
1968 |
+
msgid ""
|
1969 |
+
"Your <strong>website uses cache</strong>. Some dynamic features like ad "
|
1970 |
+
"rotation or visitor conditions might not work properly. Use the cache-"
|
1971 |
+
"busting feature of <a href=\"%s\" target=\"_blank\">Advanced Ads Pro</a> to load "
|
1972 |
+
"ads dynamically."
|
1973 |
+
msgstr ""
|
1974 |
+
"Ihre <strong>Webseite benutzt Cache</strong>. Einige dynamische Funktionen "
|
1975 |
+
"wie Anzeigenrotation oder Besucherbedingungen könnten davon betroffen sein. "
|
1976 |
+
"Nutzen Sie das Cache-Busting von <a href=\"%s\" target=\"_blank\">Advanced Ads "
|
1977 |
+
"Pro</a> um Anzeigen trotz Cache dynamisch zu laden."
|
1978 |
+
|
1979 |
+
#: ../admin/views/support.php:29
|
1980 |
+
msgid "There is a <strong>new WordPress version available</strong>. Please update."
|
1981 |
+
msgstr ""
|
1982 |
+
"Es ist eine <strong>neue WordPress-Version</strong> verfügbar. Bitte "
|
1983 |
+
"aktualisieren Sie."
|
1984 |
+
|
1985 |
+
#: ../admin/views/support.php:32
|
1986 |
+
msgid "There are <strong>plugin updates available</strong>. Please update."
|
1987 |
+
msgstr "Bitte aktualisieren Sie die installierten Plugins."
|
1988 |
+
|
1989 |
+
#: ../admin/views/support.php:49
|
1990 |
msgid "Contact"
|
1991 |
msgstr "Kontakt aufnehmen"
|
1992 |
|
1993 |
+
#: ../admin/views/support.php:50
|
1994 |
#, php-format
|
1995 |
msgid ""
|
1996 |
"Please search the manual for a solution and take a look at <a href=\"%s\" "
|
2000 |
"sich die Vorschläge unter <a href=\"%s\" target=\"_blank\">Ads not showing up?"
|
2001 |
"</a> an."
|
2002 |
|
2003 |
+
#: ../admin/views/support.php:55
|
2004 |
msgid "your email"
|
2005 |
msgstr "E-Mail"
|
2006 |
|
2007 |
+
#: ../admin/views/support.php:59
|
2008 |
msgid "your name"
|
2009 |
msgstr "Name"
|
2010 |
|
2011 |
+
#: ../admin/views/support.php:63
|
2012 |
msgid "your message"
|
2013 |
msgstr "Nachricht"
|
2014 |
|
2015 |
+
#: ../admin/views/support.php:68
|
2016 |
msgid "send"
|
2017 |
msgstr "senden"
|
2018 |
|
2019 |
+
#: ../admin/views/notices/adblock.php:3
|
2020 |
+
msgid ""
|
2021 |
+
"Please disable your <strong>AdBlocker</strong> to prevent problems with your "
|
2022 |
+
"ad setup."
|
2023 |
+
msgstr ""
|
2024 |
+
"Bitte deaktivieren Sie Ihren <strong>AdBlocker</strong> um Probleme beim "
|
2025 |
+
"Aufsetzen der Anzeigen zu verhindern."
|
2026 |
+
|
2027 |
#: ../classes/ad_placements.php:31
|
2028 |
msgid "Manual Placement"
|
2029 |
msgstr "Manuelle Platzierung"
|
2383 |
msgid "Limit to 3 ads"
|
2384 |
msgstr "Auf 3 Anzeigen beschränken"
|
2385 |
|
2386 |
+
#: ../modules/gadsense/admin/admin.php:149
|
2387 |
+
msgid "Activate Page-Level ads"
|
2388 |
+
msgstr "Anzeigen auf Seitenebene aktivieren"
|
2389 |
+
|
2390 |
+
#: ../modules/gadsense/admin/admin.php:169
|
2391 |
+
#, php-format
|
2392 |
+
msgid ""
|
2393 |
+
"Please enter your Publisher ID in order to use AdSense on your page. See the "
|
2394 |
+
"<a href=\"%s\" target=\"_blank\">manual</a> for more information."
|
2395 |
+
msgstr ""
|
2396 |
+
"Bitte hinterlegen Sie Ihre Publisher-ID um AdSense auf Ihrer Seite zu nutzen."
|
2397 |
+
" Vgl. <a href=\"%s\" target=\"_blank\">Anleitung</a> (engl.)."
|
2398 |
+
|
2399 |
#: ../modules/gadsense/admin/admin.php:183
|
2400 |
msgid "Your AdSense Publisher ID <em>(pub-xxxxxxxxxxxxxx)</em>"
|
2401 |
msgstr "Ihre AdSense Publisher ID <em>(pub-xxxxxxxxxxxxxx)</em>"
|
2421 |
msgid "Notice: Advanced Ads only considers the AdSense ad type for this limit."
|
2422 |
msgstr "Hinweis: Advanced Ads zählt nur die AdSense-Anzeigentypen für dieses Limit."
|
2423 |
|
2424 |
+
#: ../modules/gadsense/admin/admin.php:215
|
2425 |
+
msgid "Insert Page-Level ads code on all pages."
|
2426 |
+
msgstr "Code für Anzeigen auf Seitenebene auf allen Seiten einbinden."
|
2427 |
+
|
2428 |
+
#: ../modules/gadsense/admin/admin.php:217
|
2429 |
+
msgid ""
|
2430 |
+
"You still need to enable Page-Level ads in your AdSense account. See <a "
|
2431 |
+
"href=\"https://support.google.com/adsense/answer/6245304\" "
|
2432 |
+
"target=\"_blank\">AdSense Help</a> for more information"
|
2433 |
+
msgstr ""
|
2434 |
+
"Sie müssen die Anzeigen auf Seitenebene auch in Ihrem AdSense-Account "
|
2435 |
+
"aktivieren. Vgl. <a href=\"https://support.google.com/adsense/answer/6245304\" "
|
2436 |
+
"target=\"_blank\">AdSense-Hilfe</a>."
|
2437 |
+
|
2438 |
#: ../modules/gadsense/admin/admin.php:236 ../modules/gadsense/includes/class-ad-
|
2439 |
#: type-adsense.php:73
|
2440 |
msgid "The Publisher ID has an incorrect format. (must start with \"pub-\")"
|
2508 |
msgid "Advanced Ads Error: %s"
|
2509 |
msgstr "Advanced-Ads-Fehler: %s"
|
2510 |
|
2511 |
+
#: ../public/class-advanced-ads.php:525
|
2512 |
msgctxt "ad group general name"
|
2513 |
msgid "Ad Groups"
|
2514 |
msgstr "Anzeigen-Gruppen"
|
2515 |
|
2516 |
+
#: ../public/class-advanced-ads.php:526
|
2517 |
msgctxt "ad group singular name"
|
2518 |
msgid "Ad Group"
|
2519 |
msgstr "Anzeigen-Gruppe"
|
2520 |
|
2521 |
+
#: ../public/class-advanced-ads.php:527
|
2522 |
msgid "Search Ad Groups"
|
2523 |
msgstr "Anzeigen-Gruppen suchen"
|
2524 |
|
2525 |
+
#: ../public/class-advanced-ads.php:528
|
2526 |
msgid "All Ad Groups"
|
2527 |
msgstr "Alle Anzeigen-Gruppen"
|
2528 |
|
2529 |
+
#: ../public/class-advanced-ads.php:529
|
2530 |
msgid "Parent Ad Groups"
|
2531 |
msgstr "Parent-Anzeigen-Gruppen"
|
2532 |
|
2533 |
+
#: ../public/class-advanced-ads.php:530
|
2534 |
msgid "Parent Ad Groups:"
|
2535 |
msgstr "Parent-Anzeigen-Gruppen"
|
2536 |
|
2537 |
+
#: ../public/class-advanced-ads.php:531
|
2538 |
msgid "Edit Ad Group"
|
2539 |
msgstr "Bearbeite Anzeigen-Gruppe"
|
2540 |
|
2541 |
+
#: ../public/class-advanced-ads.php:532
|
2542 |
msgid "Update Ad Group"
|
2543 |
msgstr "Aktualisiere Anzeigen-Gruppe"
|
2544 |
|
2545 |
+
#: ../public/class-advanced-ads.php:533
|
2546 |
msgid "Add New Ad Group"
|
2547 |
msgstr "Neue Anzeigengruppe hinzufügen"
|
2548 |
|
2549 |
+
#: ../public/class-advanced-ads.php:534
|
2550 |
msgid "New Ad Groups Name"
|
2551 |
msgstr "Neuer Anzeigen-Gruppen-Name"
|
2552 |
|
2553 |
+
#: ../public/class-advanced-ads.php:536
|
2554 |
msgid "No Ad Group found"
|
2555 |
msgstr "Keine Anzeigen-Gruppe gefunden"
|
2556 |
|
2557 |
+
#: ../public/class-advanced-ads.php:564 ../public/class-advanced-ads.php:568
|
2558 |
msgid "New Ad"
|
2559 |
msgstr "Neue Anzeige"
|
2560 |
|
2561 |
+
#: ../public/class-advanced-ads.php:565
|
2562 |
msgid "Add New Ad"
|
2563 |
msgstr "Neue Anzeige hinzufügen"
|
2564 |
|
2565 |
+
#: ../public/class-advanced-ads.php:567
|
2566 |
msgid "Edit Ad"
|
2567 |
msgstr "Anzeige bearbeiten"
|
2568 |
|
2569 |
+
#: ../public/class-advanced-ads.php:569
|
2570 |
msgid "View"
|
2571 |
msgstr "Ansicht"
|
2572 |
|
2573 |
+
#: ../public/class-advanced-ads.php:570
|
2574 |
msgid "View the Ad"
|
2575 |
msgstr "Anzeige ansehen"
|
2576 |
|
2577 |
+
#: ../public/class-advanced-ads.php:571
|
2578 |
msgid "Search Ads"
|
2579 |
msgstr "Anzeigen suchen"
|
2580 |
|
2581 |
+
#: ../public/class-advanced-ads.php:572
|
2582 |
msgid "No Ads found"
|
2583 |
msgstr "Keine Anzeigen gefunden"
|
2584 |
|
2585 |
+
#: ../public/class-advanced-ads.php:573
|
2586 |
msgid "No Ads found in Trash"
|
2587 |
msgstr "Keine Anzeigen im Papierkorb gefunden"
|
2588 |
|
2589 |
+
#: ../public/class-advanced-ads.php:574
|
2590 |
msgid "Parent Ad"
|
2591 |
msgstr "Übergeordnete Anzeige"
|
languages/advanced-ads.pot
CHANGED
@@ -5,7 +5,7 @@ msgstr ""
|
|
5 |
"Project-Id-Version: Advanved Ads\n"
|
6 |
"Report-Msgid-Bugs-To: http://wordpress.org/plugins/plugin-name\n"
|
7 |
"POT-Creation-Date: 2015-01-27 16:47+0100\n"
|
8 |
-
"POT-Revision-Date:
|
9 |
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
|
10 |
"Last-Translator: Thomas Maier <post@webzunft.de>\n"
|
11 |
"Language-Team: webgilde <thomas.maier@webgilde.com>\n"
|
@@ -44,244 +44,244 @@ msgstr ""
|
|
44 |
msgid "http://webgilde.com"
|
45 |
msgstr ""
|
46 |
|
47 |
-
#: ../admin/class-advanced-ads-admin.php:
|
48 |
msgid "Overview"
|
49 |
msgstr ""
|
50 |
|
51 |
-
#: ../admin/class-advanced-ads-admin.php:
|
52 |
-
#: php:
|
53 |
-
#: list-header.php:5 ../admin/views/placements.php:
|
54 |
-
#: php:
|
55 |
msgid "Ads"
|
56 |
msgstr ""
|
57 |
|
58 |
-
#: ../admin/class-advanced-ads-admin.php:
|
59 |
-
#: /admin/views/placements.php:
|
60 |
msgid "Ad Groups"
|
61 |
msgstr ""
|
62 |
|
63 |
-
#: ../admin/class-advanced-ads-admin.php:
|
64 |
msgid "Groups"
|
65 |
msgstr ""
|
66 |
|
67 |
-
#: ../admin/class-advanced-ads-admin.php:
|
68 |
msgid "Ad Placements"
|
69 |
msgstr ""
|
70 |
|
71 |
-
#: ../admin/class-advanced-ads-admin.php:
|
72 |
msgid "Placements"
|
73 |
msgstr ""
|
74 |
|
75 |
-
#: ../admin/class-advanced-ads-admin.php:
|
76 |
msgid "Advanced Ads Settings"
|
77 |
msgstr ""
|
78 |
|
79 |
-
#: ../admin/class-advanced-ads-admin.php:
|
80 |
-
#: php:
|
81 |
msgid "Settings"
|
82 |
msgstr ""
|
83 |
|
84 |
-
#: ../admin/class-advanced-ads-admin.php:
|
85 |
msgid "Advanced Ads Debugging"
|
86 |
msgstr ""
|
87 |
|
88 |
-
#: ../admin/class-advanced-ads-admin.php:
|
89 |
msgid "Debug"
|
90 |
msgstr ""
|
91 |
|
92 |
-
#: ../admin/class-advanced-ads-admin.php:
|
93 |
-
#: php:
|
94 |
msgid "Advanced Ads Intro"
|
95 |
msgstr ""
|
96 |
|
97 |
-
#: ../admin/class-advanced-ads-admin.php:
|
98 |
-
#: php:
|
99 |
msgid "Support"
|
100 |
msgstr ""
|
101 |
|
102 |
-
#: ../admin/class-advanced-ads-admin.php:
|
103 |
-
#: php:
|
104 |
msgid "Sorry, you are not allowed to access this feature."
|
105 |
msgstr ""
|
106 |
|
107 |
-
#: ../admin/class-advanced-ads-admin.php:
|
108 |
msgid ""
|
109 |
"You attempted to edit an ad group that doesn’t exist. Perhaps it was "
|
110 |
"deleted?"
|
111 |
msgstr ""
|
112 |
|
113 |
-
#: ../admin/class-advanced-ads-admin.php:
|
114 |
msgid "Ad Type"
|
115 |
msgstr ""
|
116 |
|
117 |
-
#: ../admin/class-advanced-ads-admin.php:
|
118 |
msgid "Ad Parameters"
|
119 |
msgstr ""
|
120 |
|
121 |
-
#: ../admin/class-advanced-ads-admin.php:
|
122 |
msgid "Layout / Output"
|
123 |
msgstr ""
|
124 |
|
125 |
-
#: ../admin/class-advanced-ads-admin.php:
|
126 |
msgid "Display Conditions"
|
127 |
msgstr ""
|
128 |
|
129 |
-
#: ../admin/class-advanced-ads-admin.php:
|
130 |
msgid "Visitor Conditions"
|
131 |
msgstr ""
|
132 |
|
133 |
-
#: ../admin/class-advanced-ads-admin.php:
|
134 |
-
#: php:
|
135 |
msgid "Ad updated."
|
136 |
msgstr ""
|
137 |
|
138 |
#. translators: %s: date and time of the revision
|
139 |
-
#: ../admin/class-advanced-ads-admin.php:
|
140 |
#, php-format
|
141 |
msgid "Ad restored to revision from %s"
|
142 |
msgstr ""
|
143 |
|
144 |
-
#: ../admin/class-advanced-ads-admin.php:
|
145 |
msgid "Ad published."
|
146 |
msgstr ""
|
147 |
|
148 |
-
#: ../admin/class-advanced-ads-admin.php:
|
149 |
msgid "Ad saved."
|
150 |
msgstr ""
|
151 |
|
152 |
-
#: ../admin/class-advanced-ads-admin.php:
|
153 |
msgid "Ad submitted."
|
154 |
msgstr ""
|
155 |
|
156 |
-
#: ../admin/class-advanced-ads-admin.php:
|
157 |
#, php-format
|
158 |
msgid "Ad scheduled for: <strong>%1$s</strong>."
|
159 |
msgstr ""
|
160 |
|
161 |
#. translators: Publish box date format, see http://php.net/date
|
162 |
-
#: ../admin/class-advanced-ads-admin.php:
|
163 |
msgid "M j, Y @ G:i"
|
164 |
msgstr ""
|
165 |
|
166 |
-
#: ../admin/class-advanced-ads-admin.php:
|
167 |
msgid "Ad draft updated."
|
168 |
msgstr ""
|
169 |
|
170 |
-
#: ../admin/class-advanced-ads-admin.php:
|
171 |
#, php-format
|
172 |
msgid "%s ad updated."
|
173 |
msgid_plural "%s ads updated."
|
174 |
msgstr[0] ""
|
175 |
msgstr[1] ""
|
176 |
|
177 |
-
#: ../admin/class-advanced-ads-admin.php:
|
178 |
#, php-format
|
179 |
msgid "%s ad not updated, somebody is editing it."
|
180 |
msgid_plural "%s ads not updated, somebody is editing them."
|
181 |
msgstr[0] ""
|
182 |
msgstr[1] ""
|
183 |
|
184 |
-
#: ../admin/class-advanced-ads-admin.php:
|
185 |
#, php-format
|
186 |
msgid "%s ad permanently deleted."
|
187 |
msgid_plural "%s ads permanently deleted."
|
188 |
msgstr[0] ""
|
189 |
msgstr[1] ""
|
190 |
|
191 |
-
#: ../admin/class-advanced-ads-admin.php:
|
192 |
#, php-format
|
193 |
msgid "%s ad moved to the Trash."
|
194 |
msgid_plural "%s ads moved to the Trash."
|
195 |
msgstr[0] ""
|
196 |
msgstr[1] ""
|
197 |
|
198 |
-
#: ../admin/class-advanced-ads-admin.php:
|
199 |
#, php-format
|
200 |
msgid "%s ad restored from the Trash."
|
201 |
msgid_plural "%s ads restored from the Trash."
|
202 |
msgstr[0] ""
|
203 |
msgstr[1] ""
|
204 |
|
205 |
-
#: ../admin/class-advanced-ads-admin.php:
|
206 |
msgid "General"
|
207 |
msgstr ""
|
208 |
|
209 |
-
#: ../admin/class-advanced-ads-admin.php:
|
210 |
-
#: php:
|
211 |
msgid "Licenses"
|
212 |
msgstr ""
|
213 |
|
214 |
-
#: ../admin/class-advanced-ads-admin.php:
|
215 |
msgid "Disable ads"
|
216 |
msgstr ""
|
217 |
|
218 |
-
#: ../admin/class-advanced-ads-admin.php:
|
219 |
msgid "Hide ads for logged in users"
|
220 |
msgstr ""
|
221 |
|
222 |
-
#: ../admin/class-advanced-ads-admin.php:
|
223 |
msgid "Use advanced JavaScript"
|
224 |
msgstr ""
|
225 |
|
226 |
-
#: ../admin/class-advanced-ads-admin.php:
|
227 |
msgid "Unlimited ad injection"
|
228 |
msgstr ""
|
229 |
|
230 |
-
#: ../admin/class-advanced-ads-admin.php:
|
231 |
msgid "Priority of content injection filter"
|
232 |
msgstr ""
|
233 |
|
234 |
-
#: ../admin/class-advanced-ads-admin.php:
|
235 |
msgid "Hide ads from bots"
|
236 |
msgstr ""
|
237 |
|
238 |
-
#: ../admin/class-advanced-ads-admin.php:
|
239 |
msgid "Disable notices"
|
240 |
msgstr ""
|
241 |
|
242 |
-
#: ../admin/class-advanced-ads-admin.php:
|
243 |
msgid "ID prefix"
|
244 |
msgstr ""
|
245 |
|
246 |
-
#: ../admin/class-advanced-ads-admin.php:
|
247 |
msgid "Remove Widget ID"
|
248 |
msgstr ""
|
249 |
|
250 |
-
#: ../admin/class-advanced-ads-admin.php:
|
251 |
msgid "(display to all)"
|
252 |
msgstr ""
|
253 |
|
254 |
-
#: ../admin/class-advanced-ads-admin.php:
|
255 |
msgid "Subscriber"
|
256 |
msgstr ""
|
257 |
|
258 |
-
#: ../admin/class-advanced-ads-admin.php:
|
259 |
msgid "Contributor"
|
260 |
msgstr ""
|
261 |
|
262 |
-
#: ../admin/class-advanced-ads-admin.php:
|
263 |
msgid "Author"
|
264 |
msgstr ""
|
265 |
|
266 |
-
#: ../admin/class-advanced-ads-admin.php:
|
267 |
msgid "Editor"
|
268 |
msgstr ""
|
269 |
|
270 |
-
#: ../admin/class-advanced-ads-admin.php:
|
271 |
msgid "Admin"
|
272 |
msgstr ""
|
273 |
|
274 |
-
#: ../admin/class-advanced-ads-admin.php:
|
275 |
msgid "Choose the lowest role a user must have in order to not see any ads."
|
276 |
msgstr ""
|
277 |
|
278 |
-
#: ../admin/class-advanced-ads-admin.php:
|
279 |
msgid ""
|
280 |
"<strong>notice: </strong>the file is currently enabled by an add-on that "
|
281 |
"needs it."
|
282 |
msgstr ""
|
283 |
|
284 |
-
#: ../admin/class-advanced-ads-admin.php:
|
285 |
#, php-format
|
286 |
msgid ""
|
287 |
"Enable advanced JavaScript functions (<a href=\"%s\" target=\"_blank\">here</a>)."
|
@@ -289,7 +289,7 @@ msgid ""
|
|
289 |
"from this file."
|
290 |
msgstr ""
|
291 |
|
292 |
-
#: ../admin/class-advanced-ads-admin.php:
|
293 |
msgid ""
|
294 |
"Some plugins and themes trigger ad injection where it shouldn’t happen. "
|
295 |
"Therefore, Advanced Ads ignores injected placements on non-singular pages "
|
@@ -298,13 +298,13 @@ msgid ""
|
|
298 |
"on archive pages AT YOUR OWN RISK."
|
299 |
msgstr ""
|
300 |
|
301 |
-
#: ../admin/class-advanced-ads-admin.php:
|
302 |
msgid ""
|
303 |
"Play with this value in order to change the priority of the injected ads "
|
304 |
"compared to other auto injected elements in the post content."
|
305 |
msgstr ""
|
306 |
|
307 |
-
#: ../admin/class-advanced-ads-admin.php:
|
308 |
#, php-format
|
309 |
msgid ""
|
310 |
"Hide ads from crawlers, bots and empty user agents. Also prevents counting "
|
@@ -312,79 +312,79 @@ msgid ""
|
|
312 |
"Add-On</a>."
|
313 |
msgstr ""
|
314 |
|
315 |
-
#: ../admin/class-advanced-ads-admin.php:
|
316 |
msgid ""
|
317 |
"Disabling this option only makes sense if your ads contain content you want "
|
318 |
"to display to bots (like search engines) or your site is cached and bots "
|
319 |
"could create a cached version without the ads."
|
320 |
msgstr ""
|
321 |
|
322 |
-
#: ../admin/class-advanced-ads-admin.php:
|
323 |
msgid ""
|
324 |
"Disable internal notices like tips, tutorials, email newsletters and update "
|
325 |
"notices. Disabling notices is recommended if you run multiple blogs with "
|
326 |
"Advanced Ads already."
|
327 |
msgstr ""
|
328 |
|
329 |
-
#: ../admin/class-advanced-ads-admin.php:
|
330 |
msgid ""
|
331 |
"Prefix of class or id attributes in the frontend. Change it if you don’t "
|
332 |
"want <strong>ad blockers</strong> to mark these blocks as ads.<br/>You might "
|
333 |
"need to <strong>rewrite css rules afterwards</strong>."
|
334 |
msgstr ""
|
335 |
|
336 |
-
#: ../admin/class-advanced-ads-admin.php:
|
337 |
msgid ""
|
338 |
"Remove the ID attribute from widgets in order to not make them an easy "
|
339 |
"target of ad blockers."
|
340 |
msgstr ""
|
341 |
|
342 |
-
#: ../admin/class-advanced-ads-admin.php:
|
343 |
msgid "Ad Details"
|
344 |
msgstr ""
|
345 |
|
346 |
-
#: ../admin/class-advanced-ads-admin.php:
|
347 |
msgid "Ad Settings"
|
348 |
msgstr ""
|
349 |
|
350 |
-
#: ../admin/class-advanced-ads-admin.php:
|
351 |
msgid "Ads Dashboard"
|
352 |
msgstr ""
|
353 |
|
354 |
-
#: ../admin/class-advanced-ads-admin.php:
|
355 |
msgid "From the ad optimization universe"
|
356 |
msgstr ""
|
357 |
|
358 |
-
#: ../admin/class-advanced-ads-admin.php:
|
359 |
msgid "Advanced Ads Tutorials"
|
360 |
msgstr ""
|
361 |
|
362 |
-
#: ../admin/class-advanced-ads-admin.php:
|
363 |
#, php-format
|
364 |
msgid "%d ads – <a href=\"%s\">manage</a> - <a href=\"%s\">new</a>"
|
365 |
msgstr ""
|
366 |
|
367 |
-
#: ../admin/class-advanced-ads-admin.php:
|
368 |
msgid "plugin manual and homepage"
|
369 |
msgstr ""
|
370 |
|
371 |
-
#: ../admin/class-advanced-ads-admin.php:
|
372 |
msgid "Get the tutorial via email"
|
373 |
msgstr ""
|
374 |
|
375 |
-
#: ../admin/class-advanced-ads-admin.php:
|
376 |
msgid "Get AdSense tips via email"
|
377 |
msgstr ""
|
378 |
|
379 |
-
#: ../admin/class-advanced-ads-admin.php:
|
380 |
msgid "Error while trying to register the license. Please contact support."
|
381 |
msgstr ""
|
382 |
|
383 |
-
#: ../admin/class-advanced-ads-admin.php:
|
384 |
msgid "Please enter and save a valid license key first."
|
385 |
msgstr ""
|
386 |
|
387 |
-
#: ../admin/class-advanced-ads-admin.php:
|
388 |
#, php-format
|
389 |
msgid "License is invalid. Reason: %s"
|
390 |
msgstr ""
|
@@ -436,7 +436,7 @@ msgid "Display ads with the highest ad weight first"
|
|
436 |
msgstr ""
|
437 |
|
438 |
#: ../admin/includes/class-ad-groups-list.php:259 ../public/class-advanced-ads.
|
439 |
-
#: php:
|
440 |
msgid "Edit"
|
441 |
msgstr ""
|
442 |
|
@@ -1016,7 +1016,7 @@ msgid "Number of ads that are visible at the same time"
|
|
1016 |
msgstr ""
|
1017 |
|
1018 |
#: ../admin/views/ad-group-list-form-row.php:30 ../public/class-advanced-ads.php:
|
1019 |
-
#:
|
1020 |
msgid "Ad"
|
1021 |
msgstr ""
|
1022 |
|
@@ -1033,12 +1033,12 @@ msgid "Details"
|
|
1033 |
msgstr ""
|
1034 |
|
1035 |
#: ../admin/views/ad-group-list-row.php:8 ../admin/views/ad-group.php:63 ..
|
1036 |
-
#: /admin/views/ad-info.php:3 ../admin/views/placements.php:
|
1037 |
msgid "shortcode"
|
1038 |
msgstr ""
|
1039 |
|
1040 |
#: ../admin/views/ad-group-list-row.php:11 ../admin/views/ad-group.php:66 ..
|
1041 |
-
#: /admin/views/placements.php:
|
1042 |
msgid "template"
|
1043 |
msgstr ""
|
1044 |
|
@@ -1216,7 +1216,7 @@ msgstr ""
|
|
1216 |
msgid "- default -"
|
1217 |
msgstr ""
|
1218 |
|
1219 |
-
#: ../admin/views/ad-output-metabox.php:7 ../admin/views/placements.php:
|
1220 |
msgid "default"
|
1221 |
msgstr ""
|
1222 |
|
@@ -1322,50 +1322,57 @@ msgid ""
|
|
1322 |
"no need to set visitor conditions if you want all users to see the ad."
|
1323 |
msgstr ""
|
1324 |
|
1325 |
-
#: ../admin/views/ad-visitor-metabox.php:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1326 |
msgid "New condition"
|
1327 |
msgstr ""
|
1328 |
|
1329 |
-
#: ../admin/views/ad-visitor-metabox.php:
|
1330 |
msgctxt "visitor condition connector"
|
1331 |
msgid "and"
|
1332 |
msgstr ""
|
1333 |
|
1334 |
-
#: ../admin/views/ad-visitor-metabox.php:
|
1335 |
msgctxt "visitor condition connector"
|
1336 |
msgid "or"
|
1337 |
msgstr ""
|
1338 |
|
1339 |
-
#: ../admin/views/ad-visitor-metabox.php:
|
1340 |
msgid "-- choose a condition --"
|
1341 |
msgstr ""
|
1342 |
|
1343 |
-
#: ../admin/views/ad-visitor-metabox.php:
|
1344 |
msgid "add"
|
1345 |
msgstr ""
|
1346 |
|
1347 |
-
#: ../admin/views/ad-visitor-metabox.php:
|
1348 |
#, php-format
|
1349 |
msgid ""
|
1350 |
"Define the exact browser width for which an ad should be visible using the "
|
1351 |
"<a href=\"%s\" target=\"_blank\">Responsive add-on</a>."
|
1352 |
msgstr ""
|
1353 |
|
1354 |
-
#: ../admin/views/ad-visitor-metabox.php:
|
1355 |
msgid ""
|
1356 |
"The visitor conditions below are deprecated. Please use the new version of "
|
1357 |
"visitor conditions to replace it."
|
1358 |
msgstr ""
|
1359 |
|
1360 |
-
#: ../admin/views/ad-visitor-metabox.php:
|
1361 |
msgid "Display on all devices"
|
1362 |
msgstr ""
|
1363 |
|
1364 |
-
#: ../admin/views/ad-visitor-metabox.php:
|
1365 |
msgid "only on mobile devices"
|
1366 |
msgstr ""
|
1367 |
|
1368 |
-
#: ../admin/views/ad-visitor-metabox.php:
|
1369 |
msgid "not on mobile devices"
|
1370 |
msgstr ""
|
1371 |
|
@@ -1500,115 +1507,115 @@ msgstr ""
|
|
1500 |
msgid "Options"
|
1501 |
msgstr ""
|
1502 |
|
1503 |
-
#: ../admin/views/placements.php:
|
1504 |
#, php-format
|
1505 |
msgid ""
|
1506 |
"Placement type \"%s\" is missing and was reset to \"default\".<br/>Please check "
|
1507 |
"if the responsible add-on is activated."
|
1508 |
msgstr ""
|
1509 |
|
1510 |
-
#: ../admin/views/placements.php:
|
1511 |
msgid "show usage"
|
1512 |
msgstr ""
|
1513 |
|
1514 |
-
#: ../admin/views/placements.php:
|
1515 |
msgid "Item"
|
1516 |
msgstr ""
|
1517 |
|
1518 |
-
#: ../admin/views/placements.php:
|
1519 |
msgid "--not selected--"
|
1520 |
msgstr ""
|
1521 |
|
1522 |
-
#: ../admin/views/placements.php:
|
1523 |
msgid "Inject"
|
1524 |
msgstr ""
|
1525 |
|
1526 |
-
#: ../admin/views/placements.php:
|
1527 |
msgid "after"
|
1528 |
msgstr ""
|
1529 |
|
1530 |
-
#: ../admin/views/placements.php:
|
1531 |
msgid "before"
|
1532 |
msgstr ""
|
1533 |
|
1534 |
-
#: ../admin/views/placements.php:
|
1535 |
msgid "start counting from bottom"
|
1536 |
msgstr ""
|
1537 |
|
1538 |
-
#: ../admin/views/placements.php:
|
1539 |
msgid "Important Notice"
|
1540 |
msgstr ""
|
1541 |
|
1542 |
-
#: ../admin/views/placements.php:
|
1543 |
msgid ""
|
1544 |
"Your server is missing an extension. This might break the content injection."
|
1545 |
"<br/>Ignore this warning if everything works fine or else ask your hosting "
|
1546 |
"provider to enable <em>mbstring</em>."
|
1547 |
msgstr ""
|
1548 |
|
1549 |
-
#: ../admin/views/placements.php:
|
1550 |
msgid "advanced options"
|
1551 |
msgstr ""
|
1552 |
|
1553 |
-
#: ../admin/views/placements.php:
|
1554 |
msgctxt "checkbox to remove placement"
|
1555 |
msgid "delete"
|
1556 |
msgstr ""
|
1557 |
|
1558 |
-
#: ../admin/views/placements.php:
|
1559 |
msgid "Save Placements"
|
1560 |
msgstr ""
|
1561 |
|
1562 |
-
#: ../admin/views/placements.php:
|
1563 |
msgid "Create a new placement"
|
1564 |
msgstr ""
|
1565 |
|
1566 |
-
#: ../admin/views/placements.php:
|
1567 |
msgid "New Placement"
|
1568 |
msgstr ""
|
1569 |
|
1570 |
-
#: ../admin/views/placements.php:
|
1571 |
msgid "Choose a placement type"
|
1572 |
msgstr ""
|
1573 |
|
1574 |
-
#: ../admin/views/placements.php:
|
1575 |
#, php-format
|
1576 |
msgid ""
|
1577 |
"Placement types define where the ad is going to be displayed. Learn more "
|
1578 |
"about the different types from the <a href=\"%s\">manual</a>"
|
1579 |
msgstr ""
|
1580 |
|
1581 |
-
#: ../admin/views/placements.php:
|
1582 |
msgid "Please select a placement type."
|
1583 |
msgstr ""
|
1584 |
|
1585 |
-
#: ../admin/views/placements.php:
|
1586 |
msgid "Choose a Name"
|
1587 |
msgstr ""
|
1588 |
|
1589 |
-
#: ../admin/views/placements.php:
|
1590 |
msgid ""
|
1591 |
"The name of the placement is only visible to you. Tip: choose a descriptive "
|
1592 |
"one, e.g. <em>Below Post Headline</em>."
|
1593 |
msgstr ""
|
1594 |
|
1595 |
-
#: ../admin/views/placements.php:
|
1596 |
msgid "Placement Name"
|
1597 |
msgstr ""
|
1598 |
|
1599 |
-
#: ../admin/views/placements.php:
|
1600 |
msgid "Please enter a name for your placement."
|
1601 |
msgstr ""
|
1602 |
|
1603 |
-
#: ../admin/views/placements.php:
|
1604 |
msgid "Choose the Ad or Group"
|
1605 |
msgstr ""
|
1606 |
|
1607 |
-
#: ../admin/views/placements.php:
|
1608 |
msgid "The ad or group that should be displayed."
|
1609 |
msgstr ""
|
1610 |
|
1611 |
-
#: ../admin/views/placements.php:
|
1612 |
msgid "Save New Placement"
|
1613 |
msgstr ""
|
1614 |
|
@@ -1703,10 +1710,6 @@ msgstr ""
|
|
1703 |
msgid "the company behind Advanced Ads"
|
1704 |
msgstr ""
|
1705 |
|
1706 |
-
#: ../admin/views/settings.php:44
|
1707 |
-
msgid "webgilde GmbH"
|
1708 |
-
msgstr ""
|
1709 |
-
|
1710 |
#: ../admin/views/support.php:9
|
1711 |
msgid "Email was successfully sent."
|
1712 |
msgstr ""
|
@@ -1761,36 +1764,38 @@ msgid "There are <strong>plugin updates available</strong>. Please update."
|
|
1761 |
msgstr ""
|
1762 |
|
1763 |
#: ../admin/views/support.php:41
|
|
|
1764 |
msgid ""
|
1765 |
"<strong>Autoptimize plugin detected</strong>. While this plugin is great for "
|
1766 |
"site performance, it is known to alter code, including scripts from ad "
|
1767 |
-
"networks.
|
|
|
1768 |
msgstr ""
|
1769 |
|
1770 |
-
#: ../admin/views/support.php:
|
1771 |
msgid "Contact"
|
1772 |
msgstr ""
|
1773 |
|
1774 |
-
#: ../admin/views/support.php:
|
1775 |
#, php-format
|
1776 |
msgid ""
|
1777 |
"Please search the manual for a solution and take a look at <a href=\"%s\" "
|
1778 |
"target=\"_blank\">Ads not showing up?</a> before contacting me for help."
|
1779 |
msgstr ""
|
1780 |
|
1781 |
-
#: ../admin/views/support.php:
|
1782 |
msgid "your email"
|
1783 |
msgstr ""
|
1784 |
|
1785 |
-
#: ../admin/views/support.php:
|
1786 |
msgid "your name"
|
1787 |
msgstr ""
|
1788 |
|
1789 |
-
#: ../admin/views/support.php:
|
1790 |
msgid "your message"
|
1791 |
msgstr ""
|
1792 |
|
1793 |
-
#: ../admin/views/support.php:
|
1794 |
msgid "send"
|
1795 |
msgstr ""
|
1796 |
|
@@ -2241,89 +2246,93 @@ msgstr ""
|
|
2241 |
msgid "Auto"
|
2242 |
msgstr ""
|
2243 |
|
|
|
|
|
|
|
|
|
2244 |
#: ../public/class-advanced-ads.php:297
|
2245 |
#, php-format
|
2246 |
msgid "Advanced Ads Error: %s"
|
2247 |
msgstr ""
|
2248 |
|
2249 |
-
#: ../public/class-advanced-ads.php:
|
2250 |
msgctxt "ad group general name"
|
2251 |
msgid "Ad Groups"
|
2252 |
msgstr ""
|
2253 |
|
2254 |
-
#: ../public/class-advanced-ads.php:
|
2255 |
msgctxt "ad group singular name"
|
2256 |
msgid "Ad Group"
|
2257 |
msgstr ""
|
2258 |
|
2259 |
-
#: ../public/class-advanced-ads.php:
|
2260 |
msgid "Search Ad Groups"
|
2261 |
msgstr ""
|
2262 |
|
2263 |
-
#: ../public/class-advanced-ads.php:
|
2264 |
msgid "All Ad Groups"
|
2265 |
msgstr ""
|
2266 |
|
2267 |
-
#: ../public/class-advanced-ads.php:
|
2268 |
msgid "Parent Ad Groups"
|
2269 |
msgstr ""
|
2270 |
|
2271 |
-
#: ../public/class-advanced-ads.php:
|
2272 |
msgid "Parent Ad Groups:"
|
2273 |
msgstr ""
|
2274 |
|
2275 |
-
#: ../public/class-advanced-ads.php:
|
2276 |
msgid "Edit Ad Group"
|
2277 |
msgstr ""
|
2278 |
|
2279 |
-
#: ../public/class-advanced-ads.php:
|
2280 |
msgid "Update Ad Group"
|
2281 |
msgstr ""
|
2282 |
|
2283 |
-
#: ../public/class-advanced-ads.php:
|
2284 |
msgid "Add New Ad Group"
|
2285 |
msgstr ""
|
2286 |
|
2287 |
-
#: ../public/class-advanced-ads.php:
|
2288 |
msgid "New Ad Groups Name"
|
2289 |
msgstr ""
|
2290 |
|
2291 |
-
#: ../public/class-advanced-ads.php:
|
2292 |
msgid "No Ad Group found"
|
2293 |
msgstr ""
|
2294 |
|
2295 |
-
#: ../public/class-advanced-ads.php:
|
2296 |
msgid "New Ad"
|
2297 |
msgstr ""
|
2298 |
|
2299 |
-
#: ../public/class-advanced-ads.php:
|
2300 |
msgid "Add New Ad"
|
2301 |
msgstr ""
|
2302 |
|
2303 |
-
#: ../public/class-advanced-ads.php:
|
2304 |
msgid "Edit Ad"
|
2305 |
msgstr ""
|
2306 |
|
2307 |
-
#: ../public/class-advanced-ads.php:
|
2308 |
msgid "View"
|
2309 |
msgstr ""
|
2310 |
|
2311 |
-
#: ../public/class-advanced-ads.php:
|
2312 |
msgid "View the Ad"
|
2313 |
msgstr ""
|
2314 |
|
2315 |
-
#: ../public/class-advanced-ads.php:
|
2316 |
msgid "Search Ads"
|
2317 |
msgstr ""
|
2318 |
|
2319 |
-
#: ../public/class-advanced-ads.php:
|
2320 |
msgid "No Ads found"
|
2321 |
msgstr ""
|
2322 |
|
2323 |
-
#: ../public/class-advanced-ads.php:
|
2324 |
msgid "No Ads found in Trash"
|
2325 |
msgstr ""
|
2326 |
|
2327 |
-
#: ../public/class-advanced-ads.php:
|
2328 |
msgid "Parent Ad"
|
2329 |
msgstr ""
|
5 |
"Project-Id-Version: Advanved Ads\n"
|
6 |
"Report-Msgid-Bugs-To: http://wordpress.org/plugins/plugin-name\n"
|
7 |
"POT-Creation-Date: 2015-01-27 16:47+0100\n"
|
8 |
+
"POT-Revision-Date: Sat Oct 03 2015 18:01:31 GMT+0200 (CEST)\n"
|
9 |
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
|
10 |
"Last-Translator: Thomas Maier <post@webzunft.de>\n"
|
11 |
"Language-Team: webgilde <thomas.maier@webgilde.com>\n"
|
44 |
msgid "http://webgilde.com"
|
45 |
msgstr ""
|
46 |
|
47 |
+
#: ../admin/class-advanced-ads-admin.php:240
|
48 |
msgid "Overview"
|
49 |
msgstr ""
|
50 |
|
51 |
+
#: ../admin/class-advanced-ads-admin.php:244 ../admin/class-advanced-ads-admin.
|
52 |
+
#: php:244 ../admin/views/ad-group-list-form-row.php:27 ../admin/views/ad-group-
|
53 |
+
#: list-header.php:5 ../admin/views/placements.php:80 ../admin/views/placements.
|
54 |
+
#: php:184 ../classes/widget.php:83 ../public/class-advanced-ads.php:562
|
55 |
msgid "Ads"
|
56 |
msgstr ""
|
57 |
|
58 |
+
#: ../admin/class-advanced-ads-admin.php:248 ../admin/views/placements.php:73 ..
|
59 |
+
#: /admin/views/placements.php:177 ../classes/widget.php:76
|
60 |
msgid "Ad Groups"
|
61 |
msgstr ""
|
62 |
|
63 |
+
#: ../admin/class-advanced-ads-admin.php:248 ../public/class-advanced-ads.php:535
|
64 |
msgid "Groups"
|
65 |
msgstr ""
|
66 |
|
67 |
+
#: ../admin/class-advanced-ads-admin.php:253 ../admin/views/debug.php:14
|
68 |
msgid "Ad Placements"
|
69 |
msgstr ""
|
70 |
|
71 |
+
#: ../admin/class-advanced-ads-admin.php:253 ../admin/views/placements.php:18
|
72 |
msgid "Placements"
|
73 |
msgstr ""
|
74 |
|
75 |
+
#: ../admin/class-advanced-ads-admin.php:257
|
76 |
msgid "Advanced Ads Settings"
|
77 |
msgstr ""
|
78 |
|
79 |
+
#: ../admin/class-advanced-ads-admin.php:257 ../admin/class-advanced-ads-admin.
|
80 |
+
#: php:484 ../admin/views/debug.php:11
|
81 |
msgid "Settings"
|
82 |
msgstr ""
|
83 |
|
84 |
+
#: ../admin/class-advanced-ads-admin.php:260
|
85 |
msgid "Advanced Ads Debugging"
|
86 |
msgstr ""
|
87 |
|
88 |
+
#: ../admin/class-advanced-ads-admin.php:260
|
89 |
msgid "Debug"
|
90 |
msgstr ""
|
91 |
|
92 |
+
#: ../admin/class-advanced-ads-admin.php:264 ../admin/class-advanced-ads-admin.
|
93 |
+
#: php:264
|
94 |
msgid "Advanced Ads Intro"
|
95 |
msgstr ""
|
96 |
|
97 |
+
#: ../admin/class-advanced-ads-admin.php:268 ../admin/class-advanced-ads-admin.
|
98 |
+
#: php:268
|
99 |
msgid "Support"
|
100 |
msgstr ""
|
101 |
|
102 |
+
#: ../admin/class-advanced-ads-admin.php:398 ../admin/class-advanced-ads-admin.
|
103 |
+
#: php:425
|
104 |
msgid "Sorry, you are not allowed to access this feature."
|
105 |
msgstr ""
|
106 |
|
107 |
+
#: ../admin/class-advanced-ads-admin.php:411
|
108 |
msgid ""
|
109 |
"You attempted to edit an ad group that doesn’t exist. Perhaps it was "
|
110 |
"deleted?"
|
111 |
msgstr ""
|
112 |
|
113 |
+
#: ../admin/class-advanced-ads-admin.php:526
|
114 |
msgid "Ad Type"
|
115 |
msgstr ""
|
116 |
|
117 |
+
#: ../admin/class-advanced-ads-admin.php:529
|
118 |
msgid "Ad Parameters"
|
119 |
msgstr ""
|
120 |
|
121 |
+
#: ../admin/class-advanced-ads-admin.php:532
|
122 |
msgid "Layout / Output"
|
123 |
msgstr ""
|
124 |
|
125 |
+
#: ../admin/class-advanced-ads-admin.php:535
|
126 |
msgid "Display Conditions"
|
127 |
msgstr ""
|
128 |
|
129 |
+
#: ../admin/class-advanced-ads-admin.php:538
|
130 |
msgid "Visitor Conditions"
|
131 |
msgstr ""
|
132 |
|
133 |
+
#: ../admin/class-advanced-ads-admin.php:714 ../admin/class-advanced-ads-admin.
|
134 |
+
#: php:715
|
135 |
msgid "Ad updated."
|
136 |
msgstr ""
|
137 |
|
138 |
#. translators: %s: date and time of the revision
|
139 |
+
#: ../admin/class-advanced-ads-admin.php:717
|
140 |
#, php-format
|
141 |
msgid "Ad restored to revision from %s"
|
142 |
msgstr ""
|
143 |
|
144 |
+
#: ../admin/class-advanced-ads-admin.php:718
|
145 |
msgid "Ad published."
|
146 |
msgstr ""
|
147 |
|
148 |
+
#: ../admin/class-advanced-ads-admin.php:719
|
149 |
msgid "Ad saved."
|
150 |
msgstr ""
|
151 |
|
152 |
+
#: ../admin/class-advanced-ads-admin.php:720
|
153 |
msgid "Ad submitted."
|
154 |
msgstr ""
|
155 |
|
156 |
+
#: ../admin/class-advanced-ads-admin.php:722
|
157 |
#, php-format
|
158 |
msgid "Ad scheduled for: <strong>%1$s</strong>."
|
159 |
msgstr ""
|
160 |
|
161 |
#. translators: Publish box date format, see http://php.net/date
|
162 |
+
#: ../admin/class-advanced-ads-admin.php:724
|
163 |
msgid "M j, Y @ G:i"
|
164 |
msgstr ""
|
165 |
|
166 |
+
#: ../admin/class-advanced-ads-admin.php:726
|
167 |
msgid "Ad draft updated."
|
168 |
msgstr ""
|
169 |
|
170 |
+
#: ../admin/class-advanced-ads-admin.php:745
|
171 |
#, php-format
|
172 |
msgid "%s ad updated."
|
173 |
msgid_plural "%s ads updated."
|
174 |
msgstr[0] ""
|
175 |
msgstr[1] ""
|
176 |
|
177 |
+
#: ../admin/class-advanced-ads-admin.php:746
|
178 |
#, php-format
|
179 |
msgid "%s ad not updated, somebody is editing it."
|
180 |
msgid_plural "%s ads not updated, somebody is editing them."
|
181 |
msgstr[0] ""
|
182 |
msgstr[1] ""
|
183 |
|
184 |
+
#: ../admin/class-advanced-ads-admin.php:747
|
185 |
#, php-format
|
186 |
msgid "%s ad permanently deleted."
|
187 |
msgid_plural "%s ads permanently deleted."
|
188 |
msgstr[0] ""
|
189 |
msgstr[1] ""
|
190 |
|
191 |
+
#: ../admin/class-advanced-ads-admin.php:748
|
192 |
#, php-format
|
193 |
msgid "%s ad moved to the Trash."
|
194 |
msgid_plural "%s ads moved to the Trash."
|
195 |
msgstr[0] ""
|
196 |
msgstr[1] ""
|
197 |
|
198 |
+
#: ../admin/class-advanced-ads-admin.php:749
|
199 |
#, php-format
|
200 |
msgid "%s ad restored from the Trash."
|
201 |
msgid_plural "%s ads restored from the Trash."
|
202 |
msgstr[0] ""
|
203 |
msgstr[1] ""
|
204 |
|
205 |
+
#: ../admin/class-advanced-ads-admin.php:784 ../admin/views/settings.php:12
|
206 |
msgid "General"
|
207 |
msgstr ""
|
208 |
|
209 |
+
#: ../admin/class-advanced-ads-admin.php:796 ../admin/class-advanced-ads-admin.
|
210 |
+
#: php:892
|
211 |
msgid "Licenses"
|
212 |
msgstr ""
|
213 |
|
214 |
+
#: ../admin/class-advanced-ads-admin.php:807
|
215 |
msgid "Disable ads"
|
216 |
msgstr ""
|
217 |
|
218 |
+
#: ../admin/class-advanced-ads-admin.php:815
|
219 |
msgid "Hide ads for logged in users"
|
220 |
msgstr ""
|
221 |
|
222 |
+
#: ../admin/class-advanced-ads-admin.php:823
|
223 |
msgid "Use advanced JavaScript"
|
224 |
msgstr ""
|
225 |
|
226 |
+
#: ../admin/class-advanced-ads-admin.php:831
|
227 |
msgid "Unlimited ad injection"
|
228 |
msgstr ""
|
229 |
|
230 |
+
#: ../admin/class-advanced-ads-admin.php:839
|
231 |
msgid "Priority of content injection filter"
|
232 |
msgstr ""
|
233 |
|
234 |
+
#: ../admin/class-advanced-ads-admin.php:847
|
235 |
msgid "Hide ads from bots"
|
236 |
msgstr ""
|
237 |
|
238 |
+
#: ../admin/class-advanced-ads-admin.php:855
|
239 |
msgid "Disable notices"
|
240 |
msgstr ""
|
241 |
|
242 |
+
#: ../admin/class-advanced-ads-admin.php:863
|
243 |
msgid "ID prefix"
|
244 |
msgstr ""
|
245 |
|
246 |
+
#: ../admin/class-advanced-ads-admin.php:871
|
247 |
msgid "Remove Widget ID"
|
248 |
msgstr ""
|
249 |
|
250 |
+
#: ../admin/class-advanced-ads-admin.php:946
|
251 |
msgid "(display to all)"
|
252 |
msgstr ""
|
253 |
|
254 |
+
#: ../admin/class-advanced-ads-admin.php:947
|
255 |
msgid "Subscriber"
|
256 |
msgstr ""
|
257 |
|
258 |
+
#: ../admin/class-advanced-ads-admin.php:948
|
259 |
msgid "Contributor"
|
260 |
msgstr ""
|
261 |
|
262 |
+
#: ../admin/class-advanced-ads-admin.php:949
|
263 |
msgid "Author"
|
264 |
msgstr ""
|
265 |
|
266 |
+
#: ../admin/class-advanced-ads-admin.php:950
|
267 |
msgid "Editor"
|
268 |
msgstr ""
|
269 |
|
270 |
+
#: ../admin/class-advanced-ads-admin.php:951
|
271 |
msgid "Admin"
|
272 |
msgstr ""
|
273 |
|
274 |
+
#: ../admin/class-advanced-ads-admin.php:959
|
275 |
msgid "Choose the lowest role a user must have in order to not see any ads."
|
276 |
msgstr ""
|
277 |
|
278 |
+
#: ../admin/class-advanced-ads-admin.php:973
|
279 |
msgid ""
|
280 |
"<strong>notice: </strong>the file is currently enabled by an add-on that "
|
281 |
"needs it."
|
282 |
msgstr ""
|
283 |
|
284 |
+
#: ../admin/class-advanced-ads-admin.php:976
|
285 |
#, php-format
|
286 |
msgid ""
|
287 |
"Enable advanced JavaScript functions (<a href=\"%s\" target=\"_blank\">here</a>)."
|
289 |
"from this file."
|
290 |
msgstr ""
|
291 |
|
292 |
+
#: ../admin/class-advanced-ads-admin.php:989
|
293 |
msgid ""
|
294 |
"Some plugins and themes trigger ad injection where it shouldn’t happen. "
|
295 |
"Therefore, Advanced Ads ignores injected placements on non-singular pages "
|
298 |
"on archive pages AT YOUR OWN RISK."
|
299 |
msgstr ""
|
300 |
|
301 |
+
#: ../admin/class-advanced-ads-admin.php:1003
|
302 |
msgid ""
|
303 |
"Play with this value in order to change the priority of the injected ads "
|
304 |
"compared to other auto injected elements in the post content."
|
305 |
msgstr ""
|
306 |
|
307 |
+
#: ../admin/class-advanced-ads-admin.php:1016
|
308 |
#, php-format
|
309 |
msgid ""
|
310 |
"Hide ads from crawlers, bots and empty user agents. Also prevents counting "
|
312 |
"Add-On</a>."
|
313 |
msgstr ""
|
314 |
|
315 |
+
#: ../admin/class-advanced-ads-admin.php:1017
|
316 |
msgid ""
|
317 |
"Disabling this option only makes sense if your ads contain content you want "
|
318 |
"to display to bots (like search engines) or your site is cached and bots "
|
319 |
"could create a cached version without the ads."
|
320 |
msgstr ""
|
321 |
|
322 |
+
#: ../admin/class-advanced-ads-admin.php:1030
|
323 |
msgid ""
|
324 |
"Disable internal notices like tips, tutorials, email newsletters and update "
|
325 |
"notices. Disabling notices is recommended if you run multiple blogs with "
|
326 |
"Advanced Ads already."
|
327 |
msgstr ""
|
328 |
|
329 |
+
#: ../admin/class-advanced-ads-admin.php:1052
|
330 |
msgid ""
|
331 |
"Prefix of class or id attributes in the frontend. Change it if you don’t "
|
332 |
"want <strong>ad blockers</strong> to mark these blocks as ads.<br/>You might "
|
333 |
"need to <strong>rewrite css rules afterwards</strong>."
|
334 |
msgstr ""
|
335 |
|
336 |
+
#: ../admin/class-advanced-ads-admin.php:1073
|
337 |
msgid ""
|
338 |
"Remove the ID attribute from widgets in order to not make them an easy "
|
339 |
"target of ad blockers."
|
340 |
msgstr ""
|
341 |
|
342 |
+
#: ../admin/class-advanced-ads-admin.php:1126
|
343 |
msgid "Ad Details"
|
344 |
msgstr ""
|
345 |
|
346 |
+
#: ../admin/class-advanced-ads-admin.php:1200
|
347 |
msgid "Ad Settings"
|
348 |
msgstr ""
|
349 |
|
350 |
+
#: ../admin/class-advanced-ads-admin.php:1279 ../admin/views/overview.php:23
|
351 |
msgid "Ads Dashboard"
|
352 |
msgstr ""
|
353 |
|
354 |
+
#: ../admin/class-advanced-ads-admin.php:1291
|
355 |
msgid "From the ad optimization universe"
|
356 |
msgstr ""
|
357 |
|
358 |
+
#: ../admin/class-advanced-ads-admin.php:1300
|
359 |
msgid "Advanced Ads Tutorials"
|
360 |
msgstr ""
|
361 |
|
362 |
+
#: ../admin/class-advanced-ads-admin.php:1311
|
363 |
#, php-format
|
364 |
msgid "%d ads – <a href=\"%s\">manage</a> - <a href=\"%s\">new</a>"
|
365 |
msgstr ""
|
366 |
|
367 |
+
#: ../admin/class-advanced-ads-admin.php:1322
|
368 |
msgid "plugin manual and homepage"
|
369 |
msgstr ""
|
370 |
|
371 |
+
#: ../admin/class-advanced-ads-admin.php:1329
|
372 |
msgid "Get the tutorial via email"
|
373 |
msgstr ""
|
374 |
|
375 |
+
#: ../admin/class-advanced-ads-admin.php:1336
|
376 |
msgid "Get AdSense tips via email"
|
377 |
msgstr ""
|
378 |
|
379 |
+
#: ../admin/class-advanced-ads-admin.php:1415
|
380 |
msgid "Error while trying to register the license. Please contact support."
|
381 |
msgstr ""
|
382 |
|
383 |
+
#: ../admin/class-advanced-ads-admin.php:1421
|
384 |
msgid "Please enter and save a valid license key first."
|
385 |
msgstr ""
|
386 |
|
387 |
+
#: ../admin/class-advanced-ads-admin.php:1441
|
388 |
#, php-format
|
389 |
msgid "License is invalid. Reason: %s"
|
390 |
msgstr ""
|
436 |
msgstr ""
|
437 |
|
438 |
#: ../admin/includes/class-ad-groups-list.php:259 ../public/class-advanced-ads.
|
439 |
+
#: php:566
|
440 |
msgid "Edit"
|
441 |
msgstr ""
|
442 |
|
1016 |
msgstr ""
|
1017 |
|
1018 |
#: ../admin/views/ad-group-list-form-row.php:30 ../public/class-advanced-ads.php:
|
1019 |
+
#: 563
|
1020 |
msgid "Ad"
|
1021 |
msgstr ""
|
1022 |
|
1033 |
msgstr ""
|
1034 |
|
1035 |
#: ../admin/views/ad-group-list-row.php:8 ../admin/views/ad-group.php:63 ..
|
1036 |
+
#: /admin/views/ad-info.php:3 ../admin/views/placements.php:58
|
1037 |
msgid "shortcode"
|
1038 |
msgstr ""
|
1039 |
|
1040 |
#: ../admin/views/ad-group-list-row.php:11 ../admin/views/ad-group.php:66 ..
|
1041 |
+
#: /admin/views/placements.php:61
|
1042 |
msgid "template"
|
1043 |
msgstr ""
|
1044 |
|
1216 |
msgid "- default -"
|
1217 |
msgstr ""
|
1218 |
|
1219 |
+
#: ../admin/views/ad-output-metabox.php:7 ../admin/views/placements.php:51
|
1220 |
msgid "default"
|
1221 |
msgstr ""
|
1222 |
|
1322 |
"no need to set visitor conditions if you want all users to see the ad."
|
1323 |
msgstr ""
|
1324 |
|
1325 |
+
#: ../admin/views/ad-visitor-metabox.php:30
|
1326 |
+
#, php-format
|
1327 |
+
msgid ""
|
1328 |
+
"Check out cache-busting in <a href=\"%s\" target=\"_blank\">Advanced Ads Pro</a> "
|
1329 |
+
"if dynamic features get cached."
|
1330 |
+
msgstr ""
|
1331 |
+
|
1332 |
+
#: ../admin/views/ad-visitor-metabox.php:34
|
1333 |
msgid "New condition"
|
1334 |
msgstr ""
|
1335 |
|
1336 |
+
#: ../admin/views/ad-visitor-metabox.php:37
|
1337 |
msgctxt "visitor condition connector"
|
1338 |
msgid "and"
|
1339 |
msgstr ""
|
1340 |
|
1341 |
+
#: ../admin/views/ad-visitor-metabox.php:38
|
1342 |
msgctxt "visitor condition connector"
|
1343 |
msgid "or"
|
1344 |
msgstr ""
|
1345 |
|
1346 |
+
#: ../admin/views/ad-visitor-metabox.php:41
|
1347 |
msgid "-- choose a condition --"
|
1348 |
msgstr ""
|
1349 |
|
1350 |
+
#: ../admin/views/ad-visitor-metabox.php:46
|
1351 |
msgid "add"
|
1352 |
msgstr ""
|
1353 |
|
1354 |
+
#: ../admin/views/ad-visitor-metabox.php:50
|
1355 |
#, php-format
|
1356 |
msgid ""
|
1357 |
"Define the exact browser width for which an ad should be visible using the "
|
1358 |
"<a href=\"%s\" target=\"_blank\">Responsive add-on</a>."
|
1359 |
msgstr ""
|
1360 |
|
1361 |
+
#: ../admin/views/ad-visitor-metabox.php:108
|
1362 |
msgid ""
|
1363 |
"The visitor conditions below are deprecated. Please use the new version of "
|
1364 |
"visitor conditions to replace it."
|
1365 |
msgstr ""
|
1366 |
|
1367 |
+
#: ../admin/views/ad-visitor-metabox.php:114
|
1368 |
msgid "Display on all devices"
|
1369 |
msgstr ""
|
1370 |
|
1371 |
+
#: ../admin/views/ad-visitor-metabox.php:118
|
1372 |
msgid "only on mobile devices"
|
1373 |
msgstr ""
|
1374 |
|
1375 |
+
#: ../admin/views/ad-visitor-metabox.php:122
|
1376 |
msgid "not on mobile devices"
|
1377 |
msgstr ""
|
1378 |
|
1507 |
msgid "Options"
|
1508 |
msgstr ""
|
1509 |
|
1510 |
+
#: ../admin/views/placements.php:42
|
1511 |
#, php-format
|
1512 |
msgid ""
|
1513 |
"Placement type \"%s\" is missing and was reset to \"default\".<br/>Please check "
|
1514 |
"if the responsible add-on is activated."
|
1515 |
msgstr ""
|
1516 |
|
1517 |
+
#: ../admin/views/placements.php:57
|
1518 |
msgid "show usage"
|
1519 |
msgstr ""
|
1520 |
|
1521 |
+
#: ../admin/views/placements.php:69
|
1522 |
msgid "Item"
|
1523 |
msgstr ""
|
1524 |
|
1525 |
+
#: ../admin/views/placements.php:71 ../admin/views/placements.php:175
|
1526 |
msgid "--not selected--"
|
1527 |
msgstr ""
|
1528 |
|
1529 |
+
#: ../admin/views/placements.php:91
|
1530 |
msgid "Inject"
|
1531 |
msgstr ""
|
1532 |
|
1533 |
+
#: ../admin/views/placements.php:92
|
1534 |
msgid "after"
|
1535 |
msgstr ""
|
1536 |
|
1537 |
+
#: ../admin/views/placements.php:92
|
1538 |
msgid "before"
|
1539 |
msgstr ""
|
1540 |
|
1541 |
+
#: ../admin/views/placements.php:112
|
1542 |
msgid "start counting from bottom"
|
1543 |
msgstr ""
|
1544 |
|
1545 |
+
#: ../admin/views/placements.php:115
|
1546 |
msgid "Important Notice"
|
1547 |
msgstr ""
|
1548 |
|
1549 |
+
#: ../admin/views/placements.php:115
|
1550 |
msgid ""
|
1551 |
"Your server is missing an extension. This might break the content injection."
|
1552 |
"<br/>Ignore this warning if everything works fine or else ask your hosting "
|
1553 |
"provider to enable <em>mbstring</em>."
|
1554 |
msgstr ""
|
1555 |
|
1556 |
+
#: ../admin/views/placements.php:125
|
1557 |
msgid "advanced options"
|
1558 |
msgstr ""
|
1559 |
|
1560 |
+
#: ../admin/views/placements.php:133
|
1561 |
msgctxt "checkbox to remove placement"
|
1562 |
msgid "delete"
|
1563 |
msgstr ""
|
1564 |
|
1565 |
+
#: ../admin/views/placements.php:139
|
1566 |
msgid "Save Placements"
|
1567 |
msgstr ""
|
1568 |
|
1569 |
+
#: ../admin/views/placements.php:141
|
1570 |
msgid "Create a new placement"
|
1571 |
msgstr ""
|
1572 |
|
1573 |
+
#: ../admin/views/placements.php:142
|
1574 |
msgid "New Placement"
|
1575 |
msgstr ""
|
1576 |
|
1577 |
+
#: ../admin/views/placements.php:148
|
1578 |
msgid "Choose a placement type"
|
1579 |
msgstr ""
|
1580 |
|
1581 |
+
#: ../admin/views/placements.php:149
|
1582 |
#, php-format
|
1583 |
msgid ""
|
1584 |
"Placement types define where the ad is going to be displayed. Learn more "
|
1585 |
"about the different types from the <a href=\"%s\">manual</a>"
|
1586 |
msgstr ""
|
1587 |
|
1588 |
+
#: ../admin/views/placements.php:166
|
1589 |
msgid "Please select a placement type."
|
1590 |
msgstr ""
|
1591 |
|
1592 |
+
#: ../admin/views/placements.php:168
|
1593 |
msgid "Choose a Name"
|
1594 |
msgstr ""
|
1595 |
|
1596 |
+
#: ../admin/views/placements.php:169
|
1597 |
msgid ""
|
1598 |
"The name of the placement is only visible to you. Tip: choose a descriptive "
|
1599 |
"one, e.g. <em>Below Post Headline</em>."
|
1600 |
msgstr ""
|
1601 |
|
1602 |
+
#: ../admin/views/placements.php:170
|
1603 |
msgid "Placement Name"
|
1604 |
msgstr ""
|
1605 |
|
1606 |
+
#: ../admin/views/placements.php:171
|
1607 |
msgid "Please enter a name for your placement."
|
1608 |
msgstr ""
|
1609 |
|
1610 |
+
#: ../admin/views/placements.php:172
|
1611 |
msgid "Choose the Ad or Group"
|
1612 |
msgstr ""
|
1613 |
|
1614 |
+
#: ../admin/views/placements.php:173
|
1615 |
msgid "The ad or group that should be displayed."
|
1616 |
msgstr ""
|
1617 |
|
1618 |
+
#: ../admin/views/placements.php:192
|
1619 |
msgid "Save New Placement"
|
1620 |
msgstr ""
|
1621 |
|
1710 |
msgid "the company behind Advanced Ads"
|
1711 |
msgstr ""
|
1712 |
|
|
|
|
|
|
|
|
|
1713 |
#: ../admin/views/support.php:9
|
1714 |
msgid "Email was successfully sent."
|
1715 |
msgstr ""
|
1764 |
msgstr ""
|
1765 |
|
1766 |
#: ../admin/views/support.php:41
|
1767 |
+
#, php-format
|
1768 |
msgid ""
|
1769 |
"<strong>Autoptimize plugin detected</strong>. While this plugin is great for "
|
1770 |
"site performance, it is known to alter code, including scripts from ad "
|
1771 |
+
"networks. <a href=\"%s\" target=\"_blank\">Advanced Ads Pro</a> has a build-in "
|
1772 |
+
"support for Autoptimize."
|
1773 |
msgstr ""
|
1774 |
|
1775 |
+
#: ../admin/views/support.php:49
|
1776 |
msgid "Contact"
|
1777 |
msgstr ""
|
1778 |
|
1779 |
+
#: ../admin/views/support.php:50
|
1780 |
#, php-format
|
1781 |
msgid ""
|
1782 |
"Please search the manual for a solution and take a look at <a href=\"%s\" "
|
1783 |
"target=\"_blank\">Ads not showing up?</a> before contacting me for help."
|
1784 |
msgstr ""
|
1785 |
|
1786 |
+
#: ../admin/views/support.php:55
|
1787 |
msgid "your email"
|
1788 |
msgstr ""
|
1789 |
|
1790 |
+
#: ../admin/views/support.php:59
|
1791 |
msgid "your name"
|
1792 |
msgstr ""
|
1793 |
|
1794 |
+
#: ../admin/views/support.php:63
|
1795 |
msgid "your message"
|
1796 |
msgstr ""
|
1797 |
|
1798 |
+
#: ../admin/views/support.php:68
|
1799 |
msgid "send"
|
1800 |
msgstr ""
|
1801 |
|
2246 |
msgid "Auto"
|
2247 |
msgstr ""
|
2248 |
|
2249 |
+
#: ../public/class-advanced-ads.php:294
|
2250 |
+
msgid "Advanced Ads Error following:"
|
2251 |
+
msgstr ""
|
2252 |
+
|
2253 |
#: ../public/class-advanced-ads.php:297
|
2254 |
#, php-format
|
2255 |
msgid "Advanced Ads Error: %s"
|
2256 |
msgstr ""
|
2257 |
|
2258 |
+
#: ../public/class-advanced-ads.php:525
|
2259 |
msgctxt "ad group general name"
|
2260 |
msgid "Ad Groups"
|
2261 |
msgstr ""
|
2262 |
|
2263 |
+
#: ../public/class-advanced-ads.php:526
|
2264 |
msgctxt "ad group singular name"
|
2265 |
msgid "Ad Group"
|
2266 |
msgstr ""
|
2267 |
|
2268 |
+
#: ../public/class-advanced-ads.php:527
|
2269 |
msgid "Search Ad Groups"
|
2270 |
msgstr ""
|
2271 |
|
2272 |
+
#: ../public/class-advanced-ads.php:528
|
2273 |
msgid "All Ad Groups"
|
2274 |
msgstr ""
|
2275 |
|
2276 |
+
#: ../public/class-advanced-ads.php:529
|
2277 |
msgid "Parent Ad Groups"
|
2278 |
msgstr ""
|
2279 |
|
2280 |
+
#: ../public/class-advanced-ads.php:530
|
2281 |
msgid "Parent Ad Groups:"
|
2282 |
msgstr ""
|
2283 |
|
2284 |
+
#: ../public/class-advanced-ads.php:531
|
2285 |
msgid "Edit Ad Group"
|
2286 |
msgstr ""
|
2287 |
|
2288 |
+
#: ../public/class-advanced-ads.php:532
|
2289 |
msgid "Update Ad Group"
|
2290 |
msgstr ""
|
2291 |
|
2292 |
+
#: ../public/class-advanced-ads.php:533
|
2293 |
msgid "Add New Ad Group"
|
2294 |
msgstr ""
|
2295 |
|
2296 |
+
#: ../public/class-advanced-ads.php:534
|
2297 |
msgid "New Ad Groups Name"
|
2298 |
msgstr ""
|
2299 |
|
2300 |
+
#: ../public/class-advanced-ads.php:536
|
2301 |
msgid "No Ad Group found"
|
2302 |
msgstr ""
|
2303 |
|
2304 |
+
#: ../public/class-advanced-ads.php:564 ../public/class-advanced-ads.php:568
|
2305 |
msgid "New Ad"
|
2306 |
msgstr ""
|
2307 |
|
2308 |
+
#: ../public/class-advanced-ads.php:565
|
2309 |
msgid "Add New Ad"
|
2310 |
msgstr ""
|
2311 |
|
2312 |
+
#: ../public/class-advanced-ads.php:567
|
2313 |
msgid "Edit Ad"
|
2314 |
msgstr ""
|
2315 |
|
2316 |
+
#: ../public/class-advanced-ads.php:569
|
2317 |
msgid "View"
|
2318 |
msgstr ""
|
2319 |
|
2320 |
+
#: ../public/class-advanced-ads.php:570
|
2321 |
msgid "View the Ad"
|
2322 |
msgstr ""
|
2323 |
|
2324 |
+
#: ../public/class-advanced-ads.php:571
|
2325 |
msgid "Search Ads"
|
2326 |
msgstr ""
|
2327 |
|
2328 |
+
#: ../public/class-advanced-ads.php:572
|
2329 |
msgid "No Ads found"
|
2330 |
msgstr ""
|
2331 |
|
2332 |
+
#: ../public/class-advanced-ads.php:573
|
2333 |
msgid "No Ads found in Trash"
|
2334 |
msgstr ""
|
2335 |
|
2336 |
+
#: ../public/class-advanced-ads.php:574
|
2337 |
msgid "Parent Ad"
|
2338 |
msgstr ""
|
modules/gadsense/admin/admin.php
CHANGED
@@ -23,7 +23,7 @@ class Advanced_Ads_AdSense_Admin {
|
|
23 |
public function ad_details_column($size, $the_ad) {
|
24 |
if ( 'adsense' == $the_ad->type ) {
|
25 |
$content = json_decode( $the_ad->content );
|
26 |
-
if ( $content && 'responsive' == $content->unitType ) { $size = __( 'Responsive',
|
27 |
}
|
28 |
return $size;
|
29 |
}
|
@@ -41,8 +41,8 @@ class Advanced_Ads_AdSense_Admin {
|
|
41 |
var gadsenseData = {
|
42 |
pubId : '<?php echo $pub_id; ?>',
|
43 |
msg : {
|
44 |
-
unknownAd : '<?php esc_attr_e( "The ad details couldn't be retrieved from the ad code",
|
45 |
-
pubIdMismatch : '<?php _e( 'Warning : The AdSense account from this code does not match the one set with the Advanced Ads Plugin. This ad might cause troubles when used in the front end.',
|
46 |
}
|
47 |
};
|
48 |
</script>
|
@@ -120,7 +120,7 @@ class Advanced_Ads_AdSense_Admin {
|
|
120 |
// add new section
|
121 |
add_settings_section(
|
122 |
'advanced_ads_adsense_setting_section',
|
123 |
-
__( 'AdSense',
|
124 |
array($this, 'render_settings_section_callback'),
|
125 |
$hook
|
126 |
);
|
@@ -128,7 +128,7 @@ class Advanced_Ads_AdSense_Admin {
|
|
128 |
// add setting field to disable ads
|
129 |
add_settings_field(
|
130 |
'adsense-id',
|
131 |
-
__( 'AdSense ID',
|
132 |
array($this, 'render_settings_adsense_id'),
|
133 |
$hook,
|
134 |
'advanced_ads_adsense_setting_section'
|
@@ -137,7 +137,7 @@ class Advanced_Ads_AdSense_Admin {
|
|
137 |
// add setting field for adsense limit
|
138 |
add_settings_field(
|
139 |
'adsense-limit',
|
140 |
-
__( 'Limit to 3 ads',
|
141 |
array($this, 'render_settings_adsense_limit'),
|
142 |
$hook,
|
143 |
'advanced_ads_adsense_setting_section'
|
@@ -146,7 +146,7 @@ class Advanced_Ads_AdSense_Admin {
|
|
146 |
// activate page-level ads
|
147 |
add_settings_field(
|
148 |
'adsense-page-level',
|
149 |
-
__( 'Activate Page-Level ads',
|
150 |
array($this, 'render_settings_adsense_page_level'),
|
151 |
$hook,
|
152 |
'advanced_ads_adsense_setting_section'
|
@@ -166,7 +166,7 @@ class Advanced_Ads_AdSense_Admin {
|
|
166 |
$adsense_id = $this->data->get_adsense_id();
|
167 |
if( ! $adsense_id ){
|
168 |
?><p class="advads-error-message"><?php
|
169 |
-
printf(__( 'Please enter your Publisher ID in order to use AdSense on your page. See the <a href="%s" target="_blank">manual</a> for more information.',
|
170 |
?></p><?php
|
171 |
}
|
172 |
}
|
@@ -180,7 +180,7 @@ class Advanced_Ads_AdSense_Admin {
|
|
180 |
$adsense_id = $this->data->get_adsense_id();
|
181 |
|
182 |
?><input type="text" name="<?php echo GADSENSE_OPT_NAME; ?>[adsense-id]" id="adsense-id" size="32" value="<?php echo $adsense_id; ?>" />
|
183 |
-
<p class="description"><?php _e( 'Your AdSense Publisher ID <em>(pub-xxxxxxxxxxxxxx)</em>',
|
184 |
}
|
185 |
|
186 |
/**
|
@@ -192,14 +192,14 @@ class Advanced_Ads_AdSense_Admin {
|
|
192 |
$limit_per_page = $this->data->get_limit_per_page();
|
193 |
|
194 |
?><label><input type="checkbox" name="<?php echo GADSENSE_OPT_NAME; ?>[limit-per-page]" value="1" <?php checked( $limit_per_page ); ?> />
|
195 |
-
<?php printf( __( 'Limit to %d AdSense ads',
|
196 |
<p class="description">
|
197 |
<?php
|
198 |
printf(
|
199 |
-
__( 'Currently, Google AdSense <a target="_blank" href="%s" title="Terms Of Service">TOS</a> imposes a limit of %d display ads per page. You can disable this limitation at your own risks.',
|
200 |
esc_url( 'https://www.google.com/adsense/terms' ), 3
|
201 |
); ?><br/><?php
|
202 |
-
_e( 'Notice: Advanced Ads only considers the AdSense ad type for this limit.',
|
203 |
}
|
204 |
|
205 |
/**
|
@@ -212,9 +212,9 @@ class Advanced_Ads_AdSense_Admin {
|
|
212 |
$page_level = $options['page-level-enabled'];
|
213 |
|
214 |
?><label><input type="checkbox" name="<?php echo GADSENSE_OPT_NAME; ?>[page-level-enabled]" value="1" <?php checked( $page_level ); ?> />
|
215 |
-
<?php _e( 'Insert Page-Level ads code on all pages.',
|
216 |
<p class="description">
|
217 |
-
<?php _e( 'You still need to enable Page-Level ads in your AdSense account. See <a href="https://support.google.com/adsense/answer/6245304" target="_blank">AdSense Help</a> for more information',
|
218 |
</p><?php
|
219 |
}
|
220 |
|
@@ -233,7 +233,7 @@ class Advanced_Ads_AdSense_Admin {
|
|
233 |
add_settings_error(
|
234 |
'adsense-limit',
|
235 |
'settings_updated',
|
236 |
-
__( 'The Publisher ID has an incorrect format. (must start with "pub-")',
|
237 |
}
|
238 |
// trim publisher id
|
239 |
$options['adsense-id'] = trim($options['adsense-id']);
|
@@ -255,7 +255,7 @@ class Advanced_Ads_AdSense_Admin {
|
|
255 |
'page' => $this->settings_page_hook,
|
256 |
'group' => ADVADS_SLUG . '-adsense',
|
257 |
'tabid' => 'adsense',
|
258 |
-
'title' => __( 'AdSense',
|
259 |
);
|
260 |
|
261 |
return $tabs;
|
23 |
public function ad_details_column($size, $the_ad) {
|
24 |
if ( 'adsense' == $the_ad->type ) {
|
25 |
$content = json_decode( $the_ad->content );
|
26 |
+
if ( $content && 'responsive' == $content->unitType ) { $size = __( 'Responsive', 'advanced-ads' ); }
|
27 |
}
|
28 |
return $size;
|
29 |
}
|
41 |
var gadsenseData = {
|
42 |
pubId : '<?php echo $pub_id; ?>',
|
43 |
msg : {
|
44 |
+
unknownAd : '<?php esc_attr_e( "The ad details couldn't be retrieved from the ad code", 'advanced-ads' ); ?>',
|
45 |
+
pubIdMismatch : '<?php _e( 'Warning : The AdSense account from this code does not match the one set with the Advanced Ads Plugin. This ad might cause troubles when used in the front end.', 'advanced-ads' ); ?>'
|
46 |
}
|
47 |
};
|
48 |
</script>
|
120 |
// add new section
|
121 |
add_settings_section(
|
122 |
'advanced_ads_adsense_setting_section',
|
123 |
+
__( 'AdSense', 'advanced-ads' ),
|
124 |
array($this, 'render_settings_section_callback'),
|
125 |
$hook
|
126 |
);
|
128 |
// add setting field to disable ads
|
129 |
add_settings_field(
|
130 |
'adsense-id',
|
131 |
+
__( 'AdSense ID', 'advanced-ads' ),
|
132 |
array($this, 'render_settings_adsense_id'),
|
133 |
$hook,
|
134 |
'advanced_ads_adsense_setting_section'
|
137 |
// add setting field for adsense limit
|
138 |
add_settings_field(
|
139 |
'adsense-limit',
|
140 |
+
__( 'Limit to 3 ads', 'advanced-ads' ),
|
141 |
array($this, 'render_settings_adsense_limit'),
|
142 |
$hook,
|
143 |
'advanced_ads_adsense_setting_section'
|
146 |
// activate page-level ads
|
147 |
add_settings_field(
|
148 |
'adsense-page-level',
|
149 |
+
__( 'Activate Page-Level ads', 'advanced-ads' ),
|
150 |
array($this, 'render_settings_adsense_page_level'),
|
151 |
$hook,
|
152 |
'advanced_ads_adsense_setting_section'
|
166 |
$adsense_id = $this->data->get_adsense_id();
|
167 |
if( ! $adsense_id ){
|
168 |
?><p class="advads-error-message"><?php
|
169 |
+
printf(__( 'Please enter your Publisher ID in order to use AdSense on your page. See the <a href="%s" target="_blank">manual</a> for more information.', 'advanced-ads' ), ADVADS_URL . 'manual/ad-types/adsense-ads/' );
|
170 |
?></p><?php
|
171 |
}
|
172 |
}
|
180 |
$adsense_id = $this->data->get_adsense_id();
|
181 |
|
182 |
?><input type="text" name="<?php echo GADSENSE_OPT_NAME; ?>[adsense-id]" id="adsense-id" size="32" value="<?php echo $adsense_id; ?>" />
|
183 |
+
<p class="description"><?php _e( 'Your AdSense Publisher ID <em>(pub-xxxxxxxxxxxxxx)</em>', 'advanced-ads' ) ?></p><?php
|
184 |
}
|
185 |
|
186 |
/**
|
192 |
$limit_per_page = $this->data->get_limit_per_page();
|
193 |
|
194 |
?><label><input type="checkbox" name="<?php echo GADSENSE_OPT_NAME; ?>[limit-per-page]" value="1" <?php checked( $limit_per_page ); ?> />
|
195 |
+
<?php printf( __( 'Limit to %d AdSense ads', 'advanced-ads' ), 3 ); ?></label>
|
196 |
<p class="description">
|
197 |
<?php
|
198 |
printf(
|
199 |
+
__( 'Currently, Google AdSense <a target="_blank" href="%s" title="Terms Of Service">TOS</a> imposes a limit of %d display ads per page. You can disable this limitation at your own risks.', 'advanced-ads' ),
|
200 |
esc_url( 'https://www.google.com/adsense/terms' ), 3
|
201 |
); ?><br/><?php
|
202 |
+
_e( 'Notice: Advanced Ads only considers the AdSense ad type for this limit.', 'advanced-ads' );
|
203 |
}
|
204 |
|
205 |
/**
|
212 |
$page_level = $options['page-level-enabled'];
|
213 |
|
214 |
?><label><input type="checkbox" name="<?php echo GADSENSE_OPT_NAME; ?>[page-level-enabled]" value="1" <?php checked( $page_level ); ?> />
|
215 |
+
<?php _e( 'Insert Page-Level ads code on all pages.', 'advanced-ads' ); ?></label>
|
216 |
<p class="description">
|
217 |
+
<?php _e( 'You still need to enable Page-Level ads in your AdSense account. See <a href="https://support.google.com/adsense/answer/6245304" target="_blank">AdSense Help</a> for more information', 'advanced-ads' ); ?>
|
218 |
</p><?php
|
219 |
}
|
220 |
|
233 |
add_settings_error(
|
234 |
'adsense-limit',
|
235 |
'settings_updated',
|
236 |
+
__( 'The Publisher ID has an incorrect format. (must start with "pub-")', 'advanced-ads' ));
|
237 |
}
|
238 |
// trim publisher id
|
239 |
$options['adsense-id'] = trim($options['adsense-id']);
|
255 |
'page' => $this->settings_page_hook,
|
256 |
'group' => ADVADS_SLUG . '-adsense',
|
257 |
'tabid' => 'adsense',
|
258 |
+
'title' => __( 'AdSense', 'advanced-ads' )
|
259 |
);
|
260 |
|
261 |
return $tabs;
|
modules/gadsense/admin/views/adsense-ad-parameters.php
CHANGED
@@ -20,13 +20,13 @@ $sizing_array = $db->get_responsive_sizing();
|
|
20 |
<input type="hidden" name="unit_id" id="unit_id" value="<?php echo esc_attr( $unit_id ); ?>" />
|
21 |
<?php
|
22 |
if ( $use_paste_code ) {
|
23 |
-
echo '<a class="button" href="#" id="show-pastecode-div">' . __( 'Copy&Paste existing ad code',
|
24 |
}
|
25 |
?>
|
26 |
<p id="adsense-ad-param-error"></p>
|
27 |
<?php ob_start(); ?>
|
28 |
<label>
|
29 |
-
<?php _e( 'Ad Slot ID',
|
30 |
</label>
|
31 |
<?php
|
32 |
$unit_code_markup = ob_get_clean();
|
@@ -34,30 +34,30 @@ $sizing_array = $db->get_responsive_sizing();
|
|
34 |
?>
|
35 |
<input type="hidden" name="advanced_ad[output][adsense-pub-id]" id="advads-adsense-pub-id" value="" />
|
36 |
<?php if( $pub_id ) : ?>
|
37 |
-
<p><?php printf(__( 'Publisher ID: %s',
|
38 |
<?php endif; ?>
|
39 |
<?php if( $pub_id_errors ) : ?>
|
40 |
<p>
|
41 |
<span class="advads-error-message">
|
42 |
<?php echo $pub_id_errors; ?>
|
43 |
</span>
|
44 |
-
<?php printf(__( 'Please <a href="%s" target="_blank">change it here</a>.',
|
45 |
</p>
|
46 |
<?php endif; ?>
|
47 |
<label id="unit-type-block">
|
48 |
-
<?php _e( 'Type',
|
49 |
<select name="unit-type" id="unit-type">
|
50 |
-
<option value="normal" <?php selected( $unit_type, 'normal' ); ?>><?php _e( 'Normal',
|
51 |
-
<option value="responsive" <?php selected( $unit_type, 'responsive' ); ?>><?php _e( 'Responsive',
|
52 |
</select>
|
53 |
</label>
|
54 |
<?php if ( ! defined( 'AAR_SLUG' ) ) : ?>
|
55 |
-
<p><?php printf( __( 'Use the <a href="%s" target="_blank">Responsive add-on</a> in order to define the exact creative for each browser width.',
|
56 |
<?php else : ?>
|
57 |
<br />
|
58 |
<?php endif; ?>
|
59 |
<label <?php if ( ! $is_responsive || 2 > count( $sizing_array ) ) { echo 'style="display: none;"'; } ?> id="resize-block"><br />
|
60 |
-
<?php _e( 'Resizing',
|
61 |
<select name="ad-resize-type" id="ad-resize-type">
|
62 |
<?php foreach ( $sizing_array as $key => $desc ) : ?>
|
63 |
<option value="<?php echo $key; ?>" <?php selected( $key, $unit_resize ); ?>><?php echo $desc; ?></option>
|
@@ -69,11 +69,11 @@ $sizing_array = $db->get_responsive_sizing();
|
|
69 |
<?php if ( $use_paste_code ) : ?>
|
70 |
<div id="pastecode-div" style="display: none;">
|
71 |
<div id="pastecode-container">
|
72 |
-
<h3><?php _e( 'Copy the ad code from your AdSense account and paste it in the area below',
|
73 |
<hr />
|
74 |
<textarea rows="15" cols="55" id="pastecode-content"></textarea><hr />
|
75 |
-
<button class="button button-primary" id="submit-pastecode"><?php _e( 'Get details',
|
76 |
-
<button class="button button-secondary" id="hide-pastecode-div"><?php _e( 'Close',
|
77 |
<div id="pastecode-msg"></div>
|
78 |
</div>
|
79 |
</div><!-- #pastecode-div -->
|
20 |
<input type="hidden" name="unit_id" id="unit_id" value="<?php echo esc_attr( $unit_id ); ?>" />
|
21 |
<?php
|
22 |
if ( $use_paste_code ) {
|
23 |
+
echo '<a class="button" href="#" id="show-pastecode-div">' . __( 'Copy&Paste existing ad code', 'advanced-ads' ) . '</a>';
|
24 |
}
|
25 |
?>
|
26 |
<p id="adsense-ad-param-error"></p>
|
27 |
<?php ob_start(); ?>
|
28 |
<label>
|
29 |
+
<?php _e( 'Ad Slot ID', 'advanced-ads' ); ?> : <input type="text" name="unit-code" id="unit-code" value="<?php echo $unit_code; ?>" />
|
30 |
</label>
|
31 |
<?php
|
32 |
$unit_code_markup = ob_get_clean();
|
34 |
?>
|
35 |
<input type="hidden" name="advanced_ad[output][adsense-pub-id]" id="advads-adsense-pub-id" value="" />
|
36 |
<?php if( $pub_id ) : ?>
|
37 |
+
<p><?php printf(__( 'Publisher ID: %s', 'advanced-ads' ), $pub_id ); ?></p>
|
38 |
<?php endif; ?>
|
39 |
<?php if( $pub_id_errors ) : ?>
|
40 |
<p>
|
41 |
<span class="advads-error-message">
|
42 |
<?php echo $pub_id_errors; ?>
|
43 |
</span>
|
44 |
+
<?php printf(__( 'Please <a href="%s" target="_blank">change it here</a>.', 'advanced-ads' ), admin_url( 'admin.php?page=advanced-ads-settings#top#adsense' )); ?>
|
45 |
</p>
|
46 |
<?php endif; ?>
|
47 |
<label id="unit-type-block">
|
48 |
+
<?php _e( 'Type', 'advanced-ads' ); ?> :
|
49 |
<select name="unit-type" id="unit-type">
|
50 |
+
<option value="normal" <?php selected( $unit_type, 'normal' ); ?>><?php _e( 'Normal', 'advanced-ads' ); ?></option>
|
51 |
+
<option value="responsive" <?php selected( $unit_type, 'responsive' ); ?>><?php _e( 'Responsive', 'advanced-ads' ); ?></option>
|
52 |
</select>
|
53 |
</label>
|
54 |
<?php if ( ! defined( 'AAR_SLUG' ) ) : ?>
|
55 |
+
<p><?php printf( __( 'Use the <a href="%s" target="_blank">Responsive add-on</a> in order to define the exact creative for each browser width.', 'advanced-ads' ), ADVADS_URL . 'add-ons/responsive-ads/' ); ?></p>
|
56 |
<?php else : ?>
|
57 |
<br />
|
58 |
<?php endif; ?>
|
59 |
<label <?php if ( ! $is_responsive || 2 > count( $sizing_array ) ) { echo 'style="display: none;"'; } ?> id="resize-block"><br />
|
60 |
+
<?php _e( 'Resizing', 'advanced-ads' ); ?> :
|
61 |
<select name="ad-resize-type" id="ad-resize-type">
|
62 |
<?php foreach ( $sizing_array as $key => $desc ) : ?>
|
63 |
<option value="<?php echo $key; ?>" <?php selected( $key, $unit_resize ); ?>><?php echo $desc; ?></option>
|
69 |
<?php if ( $use_paste_code ) : ?>
|
70 |
<div id="pastecode-div" style="display: none;">
|
71 |
<div id="pastecode-container">
|
72 |
+
<h3><?php _e( 'Copy the ad code from your AdSense account and paste it in the area below', 'advanced-ads' ); ?></h3>
|
73 |
<hr />
|
74 |
<textarea rows="15" cols="55" id="pastecode-content"></textarea><hr />
|
75 |
+
<button class="button button-primary" id="submit-pastecode"><?php _e( 'Get details', 'advanced-ads' ); ?></button>
|
76 |
+
<button class="button button-secondary" id="hide-pastecode-div"><?php _e( 'Close', 'advanced-ads' ); ?></button>
|
77 |
<div id="pastecode-msg"></div>
|
78 |
</div>
|
79 |
</div><!-- #pastecode-div -->
|
modules/gadsense/includes/class-ad-type-adsense.php
CHANGED
@@ -32,8 +32,8 @@ class Advanced_Ads_Ad_Type_Adsense extends Advanced_Ads_Ad_Type_Abstract {
|
|
32 |
* @since 1.4
|
33 |
*/
|
34 |
public function __construct() {
|
35 |
-
$this->title = __( 'AdSense ad',
|
36 |
-
$this->description = __( 'Use ads from your Google AdSense account',
|
37 |
$this->parameters = array(
|
38 |
'content' => ''
|
39 |
);
|
@@ -70,7 +70,7 @@ class Advanced_Ads_Ad_Type_Adsense extends Advanced_Ads_Ad_Type_Abstract {
|
|
70 |
// check pub_id for errors
|
71 |
$pub_id_errors = false;
|
72 |
if( $pub_id !== '' && 0 !== strpos( $pub_id, 'pub-' )){
|
73 |
-
$pub_id_errors = __( 'The Publisher ID has an incorrect format. (must start with "pub-")',
|
74 |
}
|
75 |
|
76 |
if ( ! empty($content) ) {
|
@@ -98,7 +98,7 @@ class Advanced_Ads_Ad_Type_Adsense extends Advanced_Ads_Ad_Type_Abstract {
|
|
98 |
}
|
99 |
|
100 |
if( '' === trim( $pub_id ) && '' !== trim( $unit_code ) ){
|
101 |
-
$pub_id_errors = __( 'Your AdSense Publisher ID is missing.',
|
102 |
}
|
103 |
|
104 |
$default_template = GADSENSE_BASE_PATH . 'admin/views/adsense-ad-parameters.php';
|
32 |
* @since 1.4
|
33 |
*/
|
34 |
public function __construct() {
|
35 |
+
$this->title = __( 'AdSense ad', 'advanced-ads' );
|
36 |
+
$this->description = __( 'Use ads from your Google AdSense account', 'advanced-ads' );
|
37 |
$this->parameters = array(
|
38 |
'content' => ''
|
39 |
);
|
70 |
// check pub_id for errors
|
71 |
$pub_id_errors = false;
|
72 |
if( $pub_id !== '' && 0 !== strpos( $pub_id, 'pub-' )){
|
73 |
+
$pub_id_errors = __( 'The Publisher ID has an incorrect format. (must start with "pub-")', 'advanced-ads' );
|
74 |
}
|
75 |
|
76 |
if ( ! empty($content) ) {
|
98 |
}
|
99 |
|
100 |
if( '' === trim( $pub_id ) && '' !== trim( $unit_code ) ){
|
101 |
+
$pub_id_errors = __( 'Your AdSense Publisher ID is missing.', 'advanced-ads' );
|
102 |
}
|
103 |
|
104 |
$default_template = GADSENSE_BASE_PATH . 'admin/views/adsense-ad-parameters.php';
|
modules/gadsense/includes/class-gadsense-data.php
CHANGED
@@ -43,7 +43,7 @@ class Advanced_Ads_AdSense_Data {
|
|
43 |
|
44 |
// Resizing method for responsive ads
|
45 |
$this->resizing = array(
|
46 |
-
'auto' => __( 'Auto',
|
47 |
);
|
48 |
}
|
49 |
|
43 |
|
44 |
// Resizing method for responsive ads
|
45 |
$this->resizing = array(
|
46 |
+
'auto' => __( 'Auto', 'advanced-ads' ),
|
47 |
);
|
48 |
}
|
49 |
|
modules/gadsense/main.php
CHANGED
@@ -16,7 +16,7 @@ if ( class_exists( 'Advanced_Ads', false ) ) {
|
|
16 |
}
|
17 |
|
18 |
function gadsense_date_time($time) {
|
19 |
-
return date_i18n( get_option( 'date_format' ), $time ) . __( ' at ',
|
20 |
}
|
21 |
|
22 |
Advanced_Ads_AdSense_Data::get_instance();
|
16 |
}
|
17 |
|
18 |
function gadsense_date_time($time) {
|
19 |
+
return date_i18n( get_option( 'date_format' ), $time ) . __( ' at ', 'advanced-ads' ) . date_i18n( get_option( 'time_format' ), $time );
|
20 |
}
|
21 |
|
22 |
Advanced_Ads_AdSense_Data::get_instance();
|
public/class-advanced-ads.php
CHANGED
@@ -291,10 +291,10 @@ class Advanced_Ads {
|
|
291 |
static function log($message) {
|
292 |
if ( true === WP_DEBUG ) {
|
293 |
if ( is_array( $message ) || is_object( $message ) ) {
|
294 |
-
error_log( 'Advanced Ads Error following:',
|
295 |
error_log( print_r( $message, true ) );
|
296 |
} else {
|
297 |
-
$message = sprintf( __( 'Advanced Ads Error: %s',
|
298 |
error_log( $message );
|
299 |
}
|
300 |
}
|
@@ -522,18 +522,18 @@ class Advanced_Ads {
|
|
522 |
*/
|
523 |
protected function get_group_taxonomy_params(){
|
524 |
$labels = array(
|
525 |
-
'name' => _x( 'Ad Groups', 'ad group general name',
|
526 |
-
'singular_name' => _x( 'Ad Group', 'ad group singular name',
|
527 |
-
'search_items' => __( 'Search Ad Groups',
|
528 |
-
'all_items' => __( 'All Ad Groups',
|
529 |
-
'parent_item' => __( 'Parent Ad Groups',
|
530 |
-
'parent_item_colon' => __( 'Parent Ad Groups:',
|
531 |
-
'edit_item' => __( 'Edit Ad Group',
|
532 |
-
'update_item' => __( 'Update Ad Group',
|
533 |
-
'add_new_item' => __( 'Add New Ad Group',
|
534 |
-
'new_item_name' => __( 'New Ad Groups Name',
|
535 |
-
'menu_name' => __( 'Groups',
|
536 |
-
'not_found' => __( 'No Ad Group found',
|
537 |
);
|
538 |
|
539 |
$args = array(
|
@@ -559,19 +559,19 @@ class Advanced_Ads {
|
|
559 |
*/
|
560 |
protected function get_post_type_params() {
|
561 |
$labels = array(
|
562 |
-
'name' => __( 'Ads',
|
563 |
-
'singular_name' => __( 'Ad',
|
564 |
-
'add_new' => __( 'New Ad',
|
565 |
-
'add_new_item' => __( 'Add New Ad',
|
566 |
-
'edit' => __( 'Edit',
|
567 |
-
'edit_item' => __( 'Edit Ad',
|
568 |
-
'new_item' => __( 'New Ad',
|
569 |
-
'view' => __( 'View',
|
570 |
-
'view_item' => __( 'View the Ad',
|
571 |
-
'search_items' => __( 'Search Ads',
|
572 |
-
'not_found' => __( 'No Ads found',
|
573 |
-
'not_found_in_trash' => __( 'No Ads found in Trash',
|
574 |
-
'parent' => __( 'Parent Ad',
|
575 |
);
|
576 |
|
577 |
$post_type_params = array(
|
291 |
static function log($message) {
|
292 |
if ( true === WP_DEBUG ) {
|
293 |
if ( is_array( $message ) || is_object( $message ) ) {
|
294 |
+
error_log( __('Advanced Ads Error following:', 'advanced-ads' ) );
|
295 |
error_log( print_r( $message, true ) );
|
296 |
} else {
|
297 |
+
$message = sprintf( __( 'Advanced Ads Error: %s', 'advanced-ads' ), $message );
|
298 |
error_log( $message );
|
299 |
}
|
300 |
}
|
522 |
*/
|
523 |
protected function get_group_taxonomy_params(){
|
524 |
$labels = array(
|
525 |
+
'name' => _x( 'Ad Groups', 'ad group general name', 'advanced-ads' ),
|
526 |
+
'singular_name' => _x( 'Ad Group', 'ad group singular name', 'advanced-ads' ),
|
527 |
+
'search_items' => __( 'Search Ad Groups', 'advanced-ads' ),
|
528 |
+
'all_items' => __( 'All Ad Groups', 'advanced-ads' ),
|
529 |
+
'parent_item' => __( 'Parent Ad Groups', 'advanced-ads' ),
|
530 |
+
'parent_item_colon' => __( 'Parent Ad Groups:', 'advanced-ads' ),
|
531 |
+
'edit_item' => __( 'Edit Ad Group', 'advanced-ads' ),
|
532 |
+
'update_item' => __( 'Update Ad Group', 'advanced-ads' ),
|
533 |
+
'add_new_item' => __( 'Add New Ad Group', 'advanced-ads' ),
|
534 |
+
'new_item_name' => __( 'New Ad Groups Name', 'advanced-ads' ),
|
535 |
+
'menu_name' => __( 'Groups', 'advanced-ads' ),
|
536 |
+
'not_found' => __( 'No Ad Group found', 'advanced-ads' ),
|
537 |
);
|
538 |
|
539 |
$args = array(
|
559 |
*/
|
560 |
protected function get_post_type_params() {
|
561 |
$labels = array(
|
562 |
+
'name' => __( 'Ads', 'advanced-ads' ),
|
563 |
+
'singular_name' => __( 'Ad', 'advanced-ads' ),
|
564 |
+
'add_new' => __( 'New Ad', 'advanced-ads' ),
|
565 |
+
'add_new_item' => __( 'Add New Ad', 'advanced-ads' ),
|
566 |
+
'edit' => __( 'Edit', 'advanced-ads' ),
|
567 |
+
'edit_item' => __( 'Edit Ad', 'advanced-ads' ),
|
568 |
+
'new_item' => __( 'New Ad', 'advanced-ads' ),
|
569 |
+
'view' => __( 'View', 'advanced-ads' ),
|
570 |
+
'view_item' => __( 'View the Ad', 'advanced-ads' ),
|
571 |
+
'search_items' => __( 'Search Ads', 'advanced-ads' ),
|
572 |
+
'not_found' => __( 'No Ads found', 'advanced-ads' ),
|
573 |
+
'not_found_in_trash' => __( 'No Ads found in Trash', 'advanced-ads' ),
|
574 |
+
'parent' => __( 'Parent Ad', 'advanced-ads' ),
|
575 |
);
|
576 |
|
577 |
$post_type_params = array(
|
readme.txt
CHANGED
@@ -4,7 +4,7 @@ Donate link:https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id
|
|
4 |
Tags: ads, ad, adsense, display, banner, advertisements, adverts, advert, monetization
|
5 |
Requires at least: WP 4.2, PHP 5.3
|
6 |
Tested up to: 4.3.1
|
7 |
-
Stable tag: 1.6.9.
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
@@ -185,6 +185,11 @@ There is no revenue share. Advanced Ads doesn’t alter your ad codes in a way t
|
|
185 |
|
186 |
== Changelog ==
|
187 |
|
|
|
|
|
|
|
|
|
|
|
188 |
= 1.6.9.3 =
|
189 |
|
190 |
* order placement list by slug (which normally equals name)
|
4 |
Tags: ads, ad, adsense, display, banner, advertisements, adverts, advert, monetization
|
5 |
Requires at least: WP 4.2, PHP 5.3
|
6 |
Tested up to: 4.3.1
|
7 |
+
Stable tag: 1.6.9.4
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
185 |
|
186 |
== Changelog ==
|
187 |
|
188 |
+
= 1.6.9.4 =
|
189 |
+
|
190 |
+
* last settings tab is now opened again after being saved
|
191 |
+
* exchanged text domain constants with string to match wp.org translate criteria
|
192 |
+
|
193 |
= 1.6.9.3 =
|
194 |
|
195 |
* order placement list by slug (which normally equals name)
|