WPtouch - Version 4.2

Version Description

Download this release

Release Info

Developer bravenewcode
Plugin Icon 128x128 WPtouch
Version 4.2
Comparing to
See all releases

Code changes from version 4.1.8 to 4.2

admin/customizer/wptouch-customizer.css CHANGED
@@ -1,3 +1,8 @@
 
 
 
 
 
1
  /* WPtouch Customizer Styling */
2
 
3
  a:focus {
@@ -5,6 +10,36 @@ a:focus {
5
  box-shadow: none;
6
  }
7
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
8
 
9
  /* @group Customizer */
10
 
@@ -84,6 +119,7 @@ li#customize-control-blogname, li#customize-control-blogdescription {
84
  }
85
 
86
  #customize-preview iframe {
 
87
  -webkit-transition-duration: .33s;
88
  transition-duration: .33s;
89
  position: absolute;
@@ -92,9 +128,9 @@ li#customize-control-blogname, li#customize-control-blogdescription {
92
  left: 0;
93
  bottom: 0;
94
  z-index: 1;
95
- border-radius: 18px;
96
- background-color: rgba(255,255,255,.1);
97
- padding: 50px 16px 70px;
98
  width: 340px;
99
  height: 600px;
100
  }
@@ -106,13 +142,12 @@ li#customize-control-blogname, li#customize-control-blogdescription {
106
  height: 374px;
107
  margin-top: -240px;
108
  top: 50%;
109
- left: -160px;
110
  }
111
 
112
  #customize-preview.landscape iframe {
113
  width: 600px;
114
  height: 340px;
115
- padding: 16px 70px 16px 50px;
116
  }
117
 
118
  /* @end */
@@ -163,9 +198,8 @@ li#customize-control-blogname, li#customize-control-blogdescription {
163
 
164
  .toggle-wrapper {
165
  position: absolute;
166
- background-color: rgba(0,0,0,0.3);
167
  padding: 6px;
168
- top: 0;
169
  right: 0;
170
  width: 100%;
171
  left: 0;
@@ -177,6 +211,7 @@ li#customize-control-blogname, li#customize-control-blogdescription {
177
  user-select: none;
178
  height: 34px;
179
  text-align: right;
 
180
  }
181
 
182
  .toggle-inner {
@@ -187,7 +222,7 @@ li#customize-control-blogname, li#customize-control-blogdescription {
187
  color: rgba(255,255,255,.6);
188
  display: inline-block;
189
  font-size: 11px;
190
- margin-right: 10px;
191
  }
192
 
193
  .toggle-wrapper i {
@@ -196,7 +231,6 @@ li#customize-control-blogname, li#customize-control-blogdescription {
196
  font-size: 24px;
197
  color: rgba(255,255,255,.15);
198
  vertical-align: middle;
199
- margin-top: 3px;
200
  cursor: pointer;
201
  }
202
 
1
+ /* @override
2
+ http://wptp3.local.com/wp-content/plugins/wptouch/admin/customizer/wptouch-customizer.css?ver=dedd978ae5fb3a373069b1e3fc92b8fd
3
+ http://wptp3.local.com/wp-content/plugins/wptouch/admin/customizer/wptouch-customizer.css?ver=604453858cb7940492f90684752e14dd
4
+ */
5
+
6
  /* WPtouch Customizer Styling */
7
 
8
  a:focus {
10
  box-shadow: none;
11
  }
12
 
13
+ #wptouch-pro-notice {
14
+ width: 180px;
15
+ position: absolute;
16
+ background-color: rgba(0,0,0,.5);
17
+ right: 10px;
18
+ border-radius: 12px;
19
+ text-align: center;
20
+ padding: 15px;
21
+ color: #fff;
22
+ border: 1px dashed rgba(0,0,0,.6);
23
+ bottom: 10px;
24
+ }
25
+
26
+ #wptouch-pro-notice span {
27
+ border-radius: 4px;
28
+ background-color: #bf1900;
29
+ display: inline-block;
30
+ margin-left: auto;
31
+ margin-right: auto;
32
+ margin-top: 15px;
33
+ padding: 2px 6px;
34
+ border: 1px dashed rgba(255,255,255,.4);
35
+ }
36
+
37
+ #wptouch-pro-notice .button {
38
+ border-style: none;
39
+ margin-top: 20px;
40
+ display: block;
41
+ font-weight: bold;
42
+ }
43
 
44
  /* @group Customizer */
45
 
119
  }
120
 
121
  #customize-preview iframe {
122
+ overflow: scroll;
123
  -webkit-transition-duration: .33s;
124
  transition-duration: .33s;
125
  position: absolute;
128
  left: 0;
129
  bottom: 0;
130
  z-index: 1;
131
+ border-radius: 12px;
132
+ background-color: rgba(0,0,0,0.2);
133
+ padding: 35px 16px 70px;
134
  width: 340px;
135
  height: 600px;
136
  }
142
  height: 374px;
143
  margin-top: -240px;
144
  top: 50%;
 
145
  }
146
 
147
  #customize-preview.landscape iframe {
148
  width: 600px;
149
  height: 340px;
150
+ padding: 16px 70px 16px 34px;
151
  }
152
 
153
  /* @end */
198
 
199
  .toggle-wrapper {
200
  position: absolute;
201
+ background-color: rgba(0,0,0,0.2);
202
  padding: 6px;
 
203
  right: 0;
204
  width: 100%;
205
  left: 0;
211
  user-select: none;
212
  height: 34px;
213
  text-align: right;
214
+ top: 0;
215
  }
216
 
217
  .toggle-inner {
222
  color: rgba(255,255,255,.6);
223
  display: inline-block;
224
  font-size: 11px;
225
+ margin-top: 8px;
226
  }
227
 
228
  .toggle-wrapper i {
231
  font-size: 24px;
232
  color: rgba(255,255,255,.15);
233
  vertical-align: middle;
 
234
  cursor: pointer;
235
  }
236
 
admin/customizer/wptouch-customizer.js CHANGED
@@ -1,5 +1,5 @@
1
  function wptouchCustomizerCloseButton(){
2
- jQuery( '#customize-header-actions' ).unbind().on( 'click', 'a.customize-controls-close', function( e ){
3
  e.preventDefault();
4
  window.location = WPtouchCustomizer.settings_url;
5
  });
@@ -16,10 +16,16 @@ function wptouchCustomizerDeviceToggles() {
16
  }
17
  html += '</div>';
18
  html += '</div>';
 
19
 
20
- jQuery( '.wp-full-overlay' ).append( html);
 
 
 
 
 
21
 
22
- // jQuery( 'i.customize-tooltip' ).tooltip( { placement:'top' } );
23
 
24
  jQuery( '.toggle-inner' ).on( 'click', 'i', function( e ){
25
 
@@ -166,11 +172,14 @@ function wptouchCustomizerChecklist() {
166
  }
167
 
168
  function wptouchCustomizerAdminReady(){
169
- wptouchCustomizerCloseButton();
170
  wptouchCustomizerDeviceToggles();
171
- wptouchCustomizerAddRangeValue();
172
- wptouchCustomizerFoundationSettings();
173
- wptouchCustomizerChecklist();
 
 
 
 
174
  }
175
 
176
  jQuery( document ).ready( function() {
1
  function wptouchCustomizerCloseButton(){
2
+ jQuery( '.wp-full-overlay #customize-header-actions' ).unbind().on( 'click', 'a.customize-controls-close', function( e ){
3
  e.preventDefault();
4
  window.location = WPtouchCustomizer.settings_url;
5
  });
16
  }
17
  html += '</div>';
18
  html += '</div>';
19
+ }
20
 
21
+ function wptouchCustomizerWindowMods(){
22
+
23
+ // New free ad
24
+ if ( WPtouchCustomizer.wptouch_is_pro == 'no' ) {
25
+ html += '<div id="wptouch-pro-notice">Upgrade to WPtouch Pro and save $10 with coupon code <span>TOUCHUP10</span><a class="button button-primary" href="http://www.wptouch.com/go-pro/?utm_source=free_admin&utm_medium=website&utm_term=customizer&utm_campaign=customizer" target="_blank">Go Pro Today &rarr;</a></div>';
26
+ }
27
 
28
+ jQuery( '.wp-full-overlay' ).append( html);
29
 
30
  jQuery( '.toggle-inner' ).on( 'click', 'i', function( e ){
31
 
172
  }
173
 
174
  function wptouchCustomizerAdminReady(){
 
175
  wptouchCustomizerDeviceToggles();
176
+ if ( WPtouchCustomizer.mobile_preview == true ) {
177
+ wptouchCustomizerCloseButton();
178
+ wptouchCustomizerWindowMods();
179
+ wptouchCustomizerAddRangeValue();
180
+ wptouchCustomizerChecklist();
181
+ wptouchCustomizerFoundationSettings();
182
+ }
183
  }
184
 
185
  jQuery( document ).ready( function() {
admin/customizer/wptouch-customizer.php CHANGED
@@ -79,6 +79,15 @@ $options_domains = array(
79
  global $customizable_settings;
80
  $customizable_settings = array();
81
 
 
 
 
 
 
 
 
 
 
82
  function wptouch_customizer_remove_desktop_sections( $wp_customize ) {
83
  // These are either not supported by WPtouch or should not appear to be separately managed.
84
  // Widget & Menu sections are removed separately.
@@ -561,12 +570,17 @@ function wptouch_customizer_scripts() {
561
  true
562
  );
563
 
 
 
564
  global $wptouch_pro;
565
  $theme = $wptouch_pro->get_current_theme_info();
 
566
  $customizer_params = array(
567
- 'device_orientation' => __( 'Device + Orientation', 'wptouch-pro' ),
568
  'device_tags' => $theme->tags,
569
- 'settings_url' => admin_url( 'admin.php?page=wptouch-admin-general-settings' )
 
 
570
  );
571
 
572
  wp_localize_script( 'wptouch-theme-customizer-js', 'WPtouchCustomizer', $customizer_params );
79
  global $customizable_settings;
80
  $customizable_settings = array();
81
 
82
+ function wptouch_customizer_class() {
83
+ $classes = '';
84
+ if ( WPTOUCH_IS_FREE ) {
85
+ $classes .= 'wptouch-free';
86
+ }
87
+
88
+ return $classes;
89
+ }
90
+
91
  function wptouch_customizer_remove_desktop_sections( $wp_customize ) {
92
  // These are either not supported by WPtouch or should not appear to be separately managed.
93
  // Widget & Menu sections are removed separately.
570
  true
571
  );
572
 
573
+
574
+
575
  global $wptouch_pro;
576
  $theme = $wptouch_pro->get_current_theme_info();
577
+ $pro_or_free = ( WPTOUCH_IS_FREE ) ? 'yes' : 'no';
578
  $customizer_params = array(
579
+ 'device_orientation' => __( 'Device Orientation', 'wptouch-pro' ),
580
  'device_tags' => $theme->tags,
581
+ 'settings_url' => admin_url( 'admin.php?page=wptouch-admin-general-settings' ),
582
+ 'wptouch_is_pro' => $pro_or_free,
583
+ 'mobile_preview' => wptouch_is_customizing_mobile()
584
  );
585
 
586
  wp_localize_script( 'wptouch-theme-customizer-js', 'WPtouchCustomizer', $customizer_params );
admin/html/news.php CHANGED
@@ -1,5 +1,5 @@
1
  <?php require_once ( ABSPATH . WPINC . '/class-simplepie.php' ); ?>
2
- <?php $content = fetch_feed( 'http://www.wptouch.com/feed/' ); ?>
3
  <?php if ( !is_wp_error( $content ) ) { ?>
4
  <?php $max_items = $content->get_item_quantity( WPTOUCH_MAX_NEWS_ITEMS ); ?>
5
  <?php $rss_items = $content->get_items( 0, $max_items ); ?>
1
  <?php require_once ( ABSPATH . WPINC . '/class-simplepie.php' ); ?>
2
+ <?php $content = fetch_feed( '//www.wptouch.com/feed/' ); ?>
3
  <?php if ( !is_wp_error( $content ) ) { ?>
4
  <?php $max_items = $content->get_item_quantity( WPTOUCH_MAX_NEWS_ITEMS ); ?>
5
  <?php $rss_items = $content->get_items( 0, $max_items ); ?>
admin/html/plugin-area.php CHANGED
@@ -5,7 +5,7 @@
5
  <?php if ( $new_version != $current_version && !wptouch_has_license() ) { ?>
6
  <tr class="plugin-update-tr" id="wptouch-plugin-message">
7
  <td colspan="3" class="plugin-update colspanchange">
8
- <div class="update-message">
9
  <?php if ( !wptouch_has_license() ) { ?>
10
  <?php if ( wptouch_show_renewal_notice() ) { ?>
11
  <?php echo sprintf( __( 'A new product version (%s) is available. %sRenew your license%s to download this update and receive additional product support.', 'wptouch-pro' ), $new_version, '<a href="//www.wptouch.com/renew/?utm_campaign=renew-plugins-page&utm_source=wptouch&utm_medium=web">', '</a>' ); ?>
@@ -24,7 +24,7 @@
24
  <?php } elseif ( $new_version == $current_version && !wptouch_has_license() ) { ?>
25
  <tr class="plugin-update-tr" id="wptouch-plugin-message">
26
  <td colspan="3" class="plugin-update colspanchange">
27
- <div class="update-message">
28
  <?php if ( !wptouch_has_license() ) { ?>
29
  <?php if ( wptouch_show_renewal_notice() ) { ?>
30
  <?php echo sprintf( __( '%sRenew your license%s to receive future product updates and product support.', 'wptouch-pro' ), '<a href="//www.wptouch.com/renew/?utm_campaign=renew-plugins-page&utm_source=wptouch&utm_medium=web">', '</a>' ); ?>
5
  <?php if ( $new_version != $current_version && !wptouch_has_license() ) { ?>
6
  <tr class="plugin-update-tr" id="wptouch-plugin-message">
7
  <td colspan="3" class="plugin-update colspanchange">
8
+ <div class="update-message notice inline notice-warning notice-alt" style="padding: 10px;margin:0">
9
  <?php if ( !wptouch_has_license() ) { ?>
10
  <?php if ( wptouch_show_renewal_notice() ) { ?>
11
  <?php echo sprintf( __( 'A new product version (%s) is available. %sRenew your license%s to download this update and receive additional product support.', 'wptouch-pro' ), $new_version, '<a href="//www.wptouch.com/renew/?utm_campaign=renew-plugins-page&utm_source=wptouch&utm_medium=web">', '</a>' ); ?>
24
  <?php } elseif ( $new_version == $current_version && !wptouch_has_license() ) { ?>
25
  <tr class="plugin-update-tr" id="wptouch-plugin-message">
26
  <td colspan="3" class="plugin-update colspanchange">
27
+ <div class="update-message update">
28
  <?php if ( !wptouch_has_license() ) { ?>
29
  <?php if ( wptouch_show_renewal_notice() ) { ?>
30
  <?php echo sprintf( __( '%sRenew your license%s to receive future product updates and product support.', 'wptouch-pro' ), '<a href="//www.wptouch.com/renew/?utm_campaign=renew-plugins-page&utm_source=wptouch&utm_medium=web">', '</a>' ); ?>
admin/js/wptouch-admin-4.js CHANGED
@@ -946,7 +946,7 @@ function showCustomizerWindow(){
946
  topPosition = ( screen.height ) ? ( screen.height - height ) / 2:0;
947
  leftPosition = ( screen.width ) ? ( screen.width - width ) / 2:0;
948
  options = 'scrollbars=no, titlebar=no, status=no, menubar=no';
949
- windowUrl = 'http://wptouch-pro-4.s3.amazonaws.com/free/free-customizer-promo.html';
950
  wptouchCustomizerWindow = window.open( windowUrl, 'customizermsg', 'width=' + width + ', height=' + height + ',' + options + ', top=' + topPosition + ',left=' + leftPosition + '' );
951
  }
952
 
946
  topPosition = ( screen.height ) ? ( screen.height - height ) / 2:0;
947
  leftPosition = ( screen.width ) ? ( screen.width - width ) / 2:0;
948
  options = 'scrollbars=no, titlebar=no, status=no, menubar=no';
949
+ windowUrl = '//wptouch-pro-4.s3.amazonaws.com/free/free-customizer-promo.html';
950
  wptouchCustomizerWindow = window.open( windowUrl, 'customizermsg', 'width=' + width + ', height=' + height + ',' + options + ', top=' + topPosition + ',left=' + leftPosition + '' );
951
  }
952
 
admin/pages/wptouch-admin-general-settings.php CHANGED
@@ -389,16 +389,16 @@ function wptouch_render_devices_page( $page_options ) {
389
  ),
390
  wptouch_add_setting(
391
  'checkbox',
392
- 'enable_blackberry_phone',
393
- 'BlackBerry Browser',
394
  false,
395
  WPTOUCH_SETTING_BASIC,
396
  '4.0'
397
  ),
398
  wptouch_add_setting(
399
  'checkbox',
400
- 'enable_firefox_phone',
401
- 'Firefox OS & Mobile Browser',
402
  false,
403
  WPTOUCH_SETTING_BASIC,
404
  '4.0'
@@ -414,7 +414,7 @@ function wptouch_render_devices_page( $page_options ) {
414
  wptouch_add_setting(
415
  'checkbox',
416
  'enable_opera_phone',
417
- 'Opera Mobile (Opera on Android/iOS, Opera Mini on iOS, Coast)',
418
  false,
419
  WPTOUCH_SETTING_BASIC,
420
  '4.0'
389
  ),
390
  wptouch_add_setting(
391
  'checkbox',
392
+ 'enable_firefox_phone',
393
+ 'Firefox OS & Mobile Browser',
394
  false,
395
  WPTOUCH_SETTING_BASIC,
396
  '4.0'
397
  ),
398
  wptouch_add_setting(
399
  'checkbox',
400
+ 'enable_blackberry_phone',
401
+ 'BlackBerry Browser',
402
  false,
403
  WPTOUCH_SETTING_BASIC,
404
  '4.0'
414
  wptouch_add_setting(
415
  'checkbox',
416
  'enable_opera_phone',
417
+ 'Opera Browser (Opera on Android/iOS, Opera Mini on iOS, Coast)',
418
  false,
419
  WPTOUCH_SETTING_BASIC,
420
  '4.0'
admin/settings/html/theme-browser.php CHANGED
@@ -1,6 +1,6 @@
1
  <?php if ( !wptouch_can_cloud_install( true ) ) { ?>
2
  <div class="cloud-update-issue">
3
- <?php echo sprintf( __( 'Your server configuration is preventing WPtouch Pro from installing and updating from the Cloud. %sPlease visit %sthis article%s to follow the steps to enable Cloud install, or you can manually download and install into the wptouch-data/%s directory.', 'wptouch-pro' ), '<br /><br />', '<a href="https://support.wptouch.com/support/solutions/articles/5000525305-themes-or-extensions-cannot-be-downloaded">', '</a>', 'extensions' ); ?>
4
  </div>
5
  <?php } ?>
6
 
1
  <?php if ( !wptouch_can_cloud_install( true ) ) { ?>
2
  <div class="cloud-update-issue">
3
+ <?php echo sprintf( __( 'Your server configuration is preventing WPtouch Pro from installing and updating from the Cloud. %sPlease visit %sthis article%s to follow the steps to enable Cloud install, or you can manually download and install into the wptouch-data/%s directory.', 'wptouch-pro' ), '<br /><br />', '<a href="//support.wptouch.com/support/solutions/articles/5000525305-themes-or-extensions-cannot-be-downloaded">', '</a>', 'extensions' ); ?>
4
  </div>
5
  <?php } ?>
6
 
core/admin-render.php CHANGED
@@ -34,10 +34,7 @@
34
 
35
  <div id="admin-spinner" class="wpt-spinner"></div>
36
  <?php if ( ( $_GET['page'] != 'wptouch-admin-touchboard' ) && ( $_GET['page'] != 'wptouch-admin-license' ) ) { ?>
37
- <!-- <input type="submit" name="wptouch-submit-3" id="submit" class="button-primary" value="<?php _e( 'Save Changes', 'wptouch-pro' ); ?>" /> -->
38
- <?php if ( defined( 'WPTOUCH_IS_FREE' ) ) { ?>
39
- <input type="submit" name="wptouch-preview-theme" id="wptouch-preview-theme" class="button-primary" value="<?php _e( 'Preview Theme', 'wptouch-pro' ); ?>" data-url="<?php wptouch_bloginfo( 'url' ); ?>/?wptouch_preview_theme=enabled" />
40
- <?php } ?>
41
  <input type="hidden" name="wptouch-admin-nonce" value="<?php echo wp_create_nonce( 'wptouch-post-nonce' ); ?>" />
42
  <?php } ?>
43
  </h2>
@@ -76,7 +73,9 @@
76
  <li><a href="#" class="setup-general-general<?php if ( isset( $_COOKIE['wptouch-4-admin-menu'] ) && ( $_COOKIE['wptouch-4-admin-menu'] == 'setup-general-general' ) ) { echo ' active'; } ?>" data-page-slug="setup-general-general"><?php _e( 'General', 'wptouch-pro' ); ?></a></li>
77
  <li><a href="#" class="setup-devices<?php if ( isset( $_COOKIE['wptouch-4-admin-menu'] ) && ( $_COOKIE['wptouch-4-admin-menu'] == 'setup-devices' ) ) { echo ' active'; } ?>" data-page-slug="setup-devices"><?php _e( 'Devices', 'wptouch-pro' ); ?></a></li>
78
  <li><a href="#" class="menu-icons-manage-icon-sets<?php if ( isset( $_COOKIE['wptouch-4-admin-menu'] ) && ( $_COOKIE['wptouch-4-admin-menu'] == 'menu-icons-manage-icon-sets' ) ) { echo ' active'; } ?>" data-page-slug="menu-icons-manage-icon-sets"><?php _e( 'Menu Settings', 'wptouch-pro' ); ?></a></li>
79
- <li><a href="#" class="foundation-page-theme-settings<?php if ( isset( $_COOKIE['wptouch-4-admin-menu'] ) && ( $_COOKIE['wptouch-4-admin-menu'] == 'foundation-page-theme-settings' ) ) { echo ' active'; } ?>" data-page-slug="foundation-page-theme-settings"><?php _e( 'Theme Settings', 'wptouch-pro' ); ?></a></li>
 
 
80
  <li><a href="#" class="foundation-page-theme-gopro<?php if ( isset( $_COOKIE['wptouch-4-admin-menu'] ) && ( $_COOKIE['wptouch-4-admin-menu'] == 'foundation-page-theme-gopro' ) ) { echo ' active'; } ?>" data-page-slug="foundation-page-theme-gopro"><?php _e( 'WPtouch Pro', 'wptouch-pro' ); ?></a></li>
81
  <?php } elseif ( !is_network_admin() ) { ?>
82
  <?php if ( wptouch_can_show_page( 'general' ) ) { ?>
34
 
35
  <div id="admin-spinner" class="wpt-spinner"></div>
36
  <?php if ( ( $_GET['page'] != 'wptouch-admin-touchboard' ) && ( $_GET['page'] != 'wptouch-admin-license' ) ) { ?>
37
+ <input type="submit" name="wptouch-preview-theme" id="wptouch-preview-theme" class="button-primary" value="<?php _e( 'Preview Theme', 'wptouch-pro' ); ?>" data-url="<?php wptouch_bloginfo( 'url' ); ?>/?wptouch_preview_theme=enabled" />
 
 
 
38
  <input type="hidden" name="wptouch-admin-nonce" value="<?php echo wp_create_nonce( 'wptouch-post-nonce' ); ?>" />
39
  <?php } ?>
40
  </h2>
73
  <li><a href="#" class="setup-general-general<?php if ( isset( $_COOKIE['wptouch-4-admin-menu'] ) && ( $_COOKIE['wptouch-4-admin-menu'] == 'setup-general-general' ) ) { echo ' active'; } ?>" data-page-slug="setup-general-general"><?php _e( 'General', 'wptouch-pro' ); ?></a></li>
74
  <li><a href="#" class="setup-devices<?php if ( isset( $_COOKIE['wptouch-4-admin-menu'] ) && ( $_COOKIE['wptouch-4-admin-menu'] == 'setup-devices' ) ) { echo ' active'; } ?>" data-page-slug="setup-devices"><?php _e( 'Devices', 'wptouch-pro' ); ?></a></li>
75
  <li><a href="#" class="menu-icons-manage-icon-sets<?php if ( isset( $_COOKIE['wptouch-4-admin-menu'] ) && ( $_COOKIE['wptouch-4-admin-menu'] == 'menu-icons-manage-icon-sets' ) ) { echo ' active'; } ?>" data-page-slug="menu-icons-manage-icon-sets"><?php _e( 'Menu Settings', 'wptouch-pro' ); ?></a></li>
76
+ <?php if ( wptouch_admin_use_customizer() ) { ?>
77
+ <li><a href="#" class="<?php wptouch_multisite_page_classes( 'themes' ); ?> foundation-page-theme-customizer<?php if ( isset( $_COOKIE['wptouch-4-admin-menu'] ) && ( $_COOKIE['wptouch-4-admin-menu'] == 'foundation-page-theme-customizer' ) ) { echo ' active'; } ?>" data-page-slug="foundation-page-theme-customizer"><?php _e( 'Customize Theme', 'wptouch-pro' ); ?></a></li>
78
+ <?php } ?>
79
  <li><a href="#" class="foundation-page-theme-gopro<?php if ( isset( $_COOKIE['wptouch-4-admin-menu'] ) && ( $_COOKIE['wptouch-4-admin-menu'] == 'foundation-page-theme-gopro' ) ) { echo ' active'; } ?>" data-page-slug="foundation-page-theme-gopro"><?php _e( 'WPtouch Pro', 'wptouch-pro' ); ?></a></li>
80
  <?php } elseif ( !is_network_admin() ) { ?>
81
  <?php if ( wptouch_can_show_page( 'general' ) ) { ?>
core/class-wptouch-pro.php CHANGED
@@ -1114,7 +1114,7 @@ class WPtouchProFour {
1114
  // We can have a mobile device detected, but not show the mobile theme
1115
  // usually this is a result of the user manually disabling it via a link in the footer
1116
  if ( $this->is_mobile_device ) {
1117
- $this->showing_mobile_theme = ( !isset( $_COOKIE[WPTOUCH_COOKIE] ) || $_COOKIE[WPTOUCH_COOKIE] === 'mobile' );
1118
 
1119
  if ( $this->showing_mobile_theme ) {
1120
  if ( $settings->url_filter_behaviour != 'disabled' && $settings->filtered_urls ) {
1114
  // We can have a mobile device detected, but not show the mobile theme
1115
  // usually this is a result of the user manually disabling it via a link in the footer
1116
  if ( $this->is_mobile_device ) {
1117
+ $this->showing_mobile_theme = ( !isset( $_COOKIE[WPTOUCH_COOKIE] ) || $_COOKIE[WPTOUCH_COOKIE] === 'mobile' || wptouch_is_customizing_mobile() );
1118
 
1119
  if ( $this->showing_mobile_theme ) {
1120
  if ( $settings->url_filter_behaviour != 'disabled' && $settings->filtered_urls ) {
core/globals.php CHANGED
@@ -598,5 +598,5 @@ function wptouch_hex_to_rgb($hexStr, $returnAsString = false, $seperator = ',')
598
  }
599
 
600
  function wptouch_admin_use_customizer() {
601
- return !( defined( 'WPTOUCH_IS_FREE' ) || ( defined( 'WPTOUCH_USE_CUSTOMIZER' ) && WPTOUCH_USE_CUSTOMIZER == false ) );
602
  }
598
  }
599
 
600
  function wptouch_admin_use_customizer() {
601
+ return !( defined( 'WPTOUCH_USE_CUSTOMIZER' ) && WPTOUCH_USE_CUSTOMIZER == false );
602
  }
lang/wptouch.pot CHANGED
@@ -2,9 +2,9 @@
2
  # This file is distributed under the same license as the WPtouch Mobile Plugin package.
3
  msgid ""
4
  msgstr ""
5
- "Project-Id-Version: WPtouch Mobile Plugin 4.1.8\n"
6
  "Report-Msgid-Bugs-To: http://wordpress.org/tag/wptouch\n"
7
- "POT-Creation-Date: 2016-07-19 20:39:26+00:00\n"
8
  "MIME-Version: 1.0\n"
9
  "Content-Type: text/plain; charset=UTF-8\n"
10
  "Content-Transfer-Encoding: 8bit\n"
@@ -12,15 +12,15 @@ msgstr ""
12
  "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
13
  "Language-Team: LANGUAGE <LL@li.org>\n"
14
 
15
- #: admin/customizer/wptouch-customizer.php:567
16
- msgid "Device + Orientation"
17
  msgstr ""
18
 
19
- #: admin/customizer/wptouch-customizer.php:592
20
  msgid "Switch to Mobile Theme"
21
  msgstr ""
22
 
23
- #: admin/customizer/wptouch-customizer.php:593
24
  msgid "Switch to Desktop Theme"
25
  msgstr ""
26
 
@@ -553,7 +553,7 @@ msgstr ""
553
  msgid "Configure Settings"
554
  msgstr ""
555
 
556
- #: admin/pages/wptouch-admin-general-settings.php:29 core/admin-render.php:71
557
  #: core/config.php:88
558
  msgid "Updates Available"
559
  msgstr ""
@@ -811,8 +811,8 @@ msgstr ""
811
  msgid "WordPress Pages"
812
  msgstr ""
813
 
814
- #: admin/pages/wptouch-admin-general-settings.php:640
815
- #: core/admin-render.php:110 core/config.php:93
816
  msgid "Customize Theme"
817
  msgstr ""
818
 
@@ -1080,7 +1080,7 @@ msgstr ""
1080
  msgid "Deploy to Sites"
1081
  msgstr ""
1082
 
1083
- #: admin/settings/include/sites.php:28 core/admin-render.php:57
1084
  msgid "Deployment"
1085
  msgstr ""
1086
 
@@ -1182,69 +1182,64 @@ msgid "Add a license %s"
1182
  msgstr ""
1183
 
1184
  #: core/admin-render.php:37
1185
- msgid "Save Changes"
1186
- msgstr ""
1187
-
1188
- #: core/admin-render.php:39
1189
  msgid "Preview Theme"
1190
  msgstr ""
1191
 
1192
- #: core/admin-render.php:50 core/admin-render.php:66
1193
  msgid "Setup"
1194
  msgstr ""
1195
 
1196
- #: core/admin-render.php:52 core/multisite.php:180
1197
  msgid "General Options"
1198
  msgstr ""
1199
 
1200
- #: core/admin-render.php:55
1201
  msgid "Tools"
1202
  msgstr ""
1203
 
1204
- #: core/admin-render.php:76 core/admin-render.php:83 core/config.php:89
1205
  msgid "General"
1206
  msgstr ""
1207
 
1208
- #: core/admin-render.php:77 core/admin-render.php:91 core/config.php:91
1209
  #: core/multisite.php:267 core/multisite.php:360
1210
  msgid "Devices"
1211
  msgstr ""
1212
 
1213
- #: core/admin-render.php:78 core/admin-render.php:95 core/config.php:92
1214
  #: core/multisite.php:275 core/multisite.php:368
1215
  msgid "Menu Settings"
1216
  msgstr ""
1217
 
1218
- #: core/admin-render.php:79 core/admin-render.php:107
1219
- #: themes/foundation/root-functions.php:9
1220
- msgid "Theme Settings"
1221
- msgstr ""
1222
-
1223
- #: core/admin-render.php:80
1224
  msgid "WPtouch Pro"
1225
  msgstr ""
1226
 
1227
- #: core/admin-render.php:87 core/multisite.php:259 core/multisite.php:352
1228
  msgid "Site Compatibility"
1229
  msgstr ""
1230
 
1231
- #: core/admin-render.php:102 core/admin-render.php:104
1232
- #: core/admin-render.php:142 core/config.php:95 core/multisite.php:283
1233
  #: core/multisite.php:376
1234
  msgid "Themes"
1235
  msgstr ""
1236
 
1237
- #: core/admin-render.php:117 core/admin-render.php:119
1238
- #: core/admin-render.php:143 core/config.php:96 core/multisite.php:291
 
 
 
 
1239
  #: core/multisite.php:384
1240
  msgid "Extensions"
1241
  msgstr ""
1242
 
1243
- #: core/admin-render.php:140
1244
  msgid "Available for WPtouch Pro"
1245
  msgstr ""
1246
 
1247
- #: core/admin-render.php:191
1248
  msgid "Reset Settings"
1249
  msgstr ""
1250
 
@@ -1803,127 +1798,127 @@ msgstr ""
1803
  msgid "desktop"
1804
  msgstr ""
1805
 
1806
- #: themes/bauhaus/root-functions.php:126
1807
  msgid "Header Menu"
1808
  msgstr ""
1809
 
1810
- #: themes/bauhaus/root-functions.php:128
1811
  msgid "Choose a menu"
1812
  msgstr ""
1813
 
1814
- #: themes/bauhaus/root-functions.php:129
1815
  msgid "Main menu selection"
1816
  msgstr ""
1817
 
1818
- #: themes/bauhaus/root-functions.php:136
1819
  msgid "Theme background"
1820
  msgstr ""
1821
 
1822
- #: themes/bauhaus/root-functions.php:137
1823
  msgid "Header & Menu"
1824
  msgstr ""
1825
 
1826
- #: themes/bauhaus/root-functions.php:138
1827
  msgid "Links"
1828
  msgstr ""
1829
 
1830
- #: themes/bauhaus/root-functions.php:139
1831
  msgid "Post/Page Headers"
1832
  msgstr ""
1833
 
1834
- #: themes/bauhaus/root-functions.php:232
1835
  msgid "Menu animation style"
1836
  msgstr ""
1837
 
1838
- #: themes/bauhaus/root-functions.php:237
1839
  msgid "Off-canvas"
1840
  msgstr ""
1841
 
1842
- #: themes/bauhaus/root-functions.php:238
1843
  msgid "Drop-down"
1844
  msgstr ""
1845
 
1846
- #: themes/bauhaus/root-functions.php:246
1847
  msgid "Menu position"
1848
  msgstr ""
1849
 
1850
- #: themes/bauhaus/root-functions.php:251
1851
  msgid "Left side"
1852
  msgstr ""
1853
 
1854
- #: themes/bauhaus/root-functions.php:252
1855
  msgid "Right side"
1856
  msgstr ""
1857
 
1858
- #: themes/bauhaus/root-functions.php:260
1859
  msgid "Show search in header"
1860
  msgstr ""
1861
 
1862
- #: themes/bauhaus/root-functions.php:277
1863
  msgid "Post thumbnails"
1864
  msgstr ""
1865
 
1866
- #: themes/bauhaus/root-functions.php:282
1867
  msgid "No thumbnails"
1868
  msgstr ""
1869
 
1870
- #: themes/bauhaus/root-functions.php:283
1871
  msgid "Blog listing only"
1872
  msgstr ""
1873
 
1874
- #: themes/bauhaus/root-functions.php:284
1875
  msgid "Blog listing, single posts"
1876
  msgstr ""
1877
 
1878
- #: themes/bauhaus/root-functions.php:285
1879
  msgid "Blog listing, single posts & pages"
1880
  msgstr ""
1881
 
1882
- #: themes/bauhaus/root-functions.php:286
1883
  msgid "All (blog, single, pages, search & archive)"
1884
  msgstr ""
1885
 
1886
- #: themes/bauhaus/root-functions.php:294
1887
  msgid "Thumbnail Type"
1888
  msgstr ""
1889
 
1890
- #: themes/bauhaus/root-functions.php:299
1891
  msgid "Post featured images"
1892
  msgstr ""
1893
 
1894
- #: themes/bauhaus/root-functions.php:300
1895
  msgid "Post custom field"
1896
  msgstr ""
1897
 
1898
- #: themes/bauhaus/root-functions.php:308
1899
  msgid "Thumbnail custom field name"
1900
  msgstr ""
1901
 
1902
- #: themes/bauhaus/root-functions.php:319
1903
  msgid "Show post categories and tags"
1904
  msgstr ""
1905
 
1906
- #: themes/bauhaus/root-functions.php:330
1907
  msgid "Show post date"
1908
  msgstr ""
1909
 
1910
- #: themes/bauhaus/root-functions.php:341
1911
  msgid "Show post author"
1912
  msgstr ""
1913
 
1914
- #: themes/bauhaus/root-functions.php:352
1915
  msgid "Show comment bubbles on posts"
1916
  msgstr ""
1917
 
1918
- #: themes/bauhaus/root-functions.php:363
1919
  msgid "Use infinite scrolling for blog"
1920
  msgstr ""
1921
 
1922
- #: themes/bauhaus/root-functions.php:502
1923
  msgid "Featured Slider Page"
1924
  msgstr ""
1925
 
1926
- #: themes/bauhaus/root-functions.php:503
1927
  msgid "Choose which page should display the featured slider"
1928
  msgstr ""
1929
 
@@ -2014,11 +2009,11 @@ msgid "Slider posts also show in listings"
2014
  msgstr ""
2015
 
2016
  #: themes/foundation/modules/featured/featured.php:405
2017
- msgid "Slide transition speed"
2018
  msgstr ""
2019
 
2020
  #: themes/foundation/modules/featured/featured.php:410
2021
- msgid "Slow"
2022
  msgstr ""
2023
 
2024
  #: themes/foundation/modules/featured/featured.php:411
@@ -2026,7 +2021,7 @@ msgid "Normal"
2026
  msgstr ""
2027
 
2028
  #: themes/foundation/modules/featured/featured.php:412
2029
- msgid "Fast"
2030
  msgstr ""
2031
 
2032
  #: themes/foundation/modules/featured/featured.php:423
@@ -2236,7 +2231,7 @@ msgid "iPad"
2236
  msgstr ""
2237
 
2238
  #: themes/foundation/modules/tablets/tablets.php:64
2239
- #: themes/foundation/root-functions.php:462
2240
  msgid "%d by %d pixels (PNG)"
2241
  msgstr ""
2242
 
@@ -2256,130 +2251,142 @@ msgstr ""
2256
  msgid "Custom Content"
2257
  msgstr ""
2258
 
2259
- #: themes/foundation/root-functions.php:49
2260
  msgid "Language: "
2261
  msgstr ""
2262
 
2263
- #: themes/foundation/root-functions.php:386
2264
  msgid "Theme Colors"
2265
  msgstr ""
2266
 
2267
- #: themes/foundation/root-functions.php:402
2268
  msgid "Number of posts in post listings"
2269
  msgstr ""
2270
 
2271
- #: themes/foundation/root-functions.php:403
2272
  msgid ""
2273
  "Overrides the WordPress Reading settings for \"Blog pages show at most\""
2274
  msgstr ""
2275
 
2276
- #: themes/foundation/root-functions.php:415
2277
  msgid "Excluded categories"
2278
  msgstr ""
2279
 
2280
- #: themes/foundation/root-functions.php:416
2281
  msgid "Comma separated by category name"
2282
  msgstr ""
2283
 
2284
- #: themes/foundation/root-functions.php:423
2285
  msgid "Excluded tags"
2286
  msgstr ""
2287
 
2288
- #: themes/foundation/root-functions.php:424
2289
  msgid "Comma separated by tag name"
2290
  msgstr ""
2291
 
2292
- #: themes/foundation/root-functions.php:435
2293
  msgid "Blog"
2294
  msgstr ""
2295
 
2296
- #: themes/foundation/root-functions.php:445
2297
- #: themes/foundation/root-functions.php:1217
2298
  msgid "Pages"
2299
  msgstr ""
2300
 
2301
- #: themes/foundation/root-functions.php:456
2302
  msgid "Site Icon"
2303
  msgstr ""
2304
 
2305
- #: themes/foundation/root-functions.php:480
2306
  msgid "Site Logo"
2307
  msgstr ""
2308
 
2309
- #: themes/foundation/root-functions.php:492
2310
  msgid "Header"
2311
  msgstr ""
2312
 
2313
- #: themes/foundation/root-functions.php:504
2314
  msgid "Footer"
2315
  msgstr ""
2316
 
2317
- #: themes/foundation/root-functions.php:510
2318
  msgid "Custom footer content (HTML is allowed)"
2319
  msgstr ""
2320
 
2321
- #: themes/foundation/root-functions.php:525
2322
  msgid "Custom CSS"
2323
  msgstr ""
2324
 
2325
- #: themes/foundation/root-functions.php:531
2326
  msgid "Custom CSS Declarations"
2327
  msgstr ""
2328
 
2329
- #: themes/foundation/root-functions.php:882
2330
  msgid "search results for '%s'"
2331
  msgstr ""
2332
 
2333
- #: themes/foundation/root-functions.php:884
2334
  msgid "%sCategories &rsaquo;%s %s"
2335
  msgstr ""
2336
 
2337
- #: themes/foundation/root-functions.php:886
2338
  msgid "Tags &rsaquo; %s"
2339
  msgstr ""
2340
 
2341
- #: themes/foundation/root-functions.php:888
2342
- #: themes/foundation/root-functions.php:890
2343
- #: themes/foundation/root-functions.php:892
2344
  msgid "Archives &rsaquo; %s"
2345
  msgstr ""
2346
 
2347
- #: themes/foundation/root-functions.php:907
2348
  msgid "Load more from this category"
2349
  msgstr ""
2350
 
2351
- #: themes/foundation/root-functions.php:909
2352
  msgid "Load more tagged like this"
2353
  msgstr ""
2354
 
2355
- #: themes/foundation/root-functions.php:911
2356
  msgid "Load more from this day"
2357
  msgstr ""
2358
 
2359
- #: themes/foundation/root-functions.php:913
2360
  msgid "Load more from this month"
2361
  msgstr ""
2362
 
2363
- #: themes/foundation/root-functions.php:915
2364
  msgid "Load more from this year"
2365
  msgstr ""
2366
 
2367
- #: themes/foundation/root-functions.php:917
2368
  msgid "Load more in this section"
2369
  msgstr ""
2370
 
2371
- #: themes/foundation/root-functions.php:919
2372
  msgid "Load more entries"
2373
  msgstr ""
2374
 
2375
- #: themes/foundation/root-functions.php:1166
2376
  msgid "Post"
2377
  msgstr ""
2378
 
2379
- #: themes/foundation/root-functions.php:1168
2380
  msgid "Page"
2381
  msgstr ""
2382
 
 
 
 
 
 
 
 
 
 
 
 
 
2383
  #. Plugin Name of the plugin/theme
2384
  msgid "WPtouch Mobile Plugin"
2385
  msgstr ""
2
  # This file is distributed under the same license as the WPtouch Mobile Plugin package.
3
  msgid ""
4
  msgstr ""
5
+ "Project-Id-Version: WPtouch Mobile Plugin 4.2\n"
6
  "Report-Msgid-Bugs-To: http://wordpress.org/tag/wptouch\n"
7
+ "POT-Creation-Date: 2016-08-03 19:10:12+00:00\n"
8
  "MIME-Version: 1.0\n"
9
  "Content-Type: text/plain; charset=UTF-8\n"
10
  "Content-Transfer-Encoding: 8bit\n"
12
  "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
13
  "Language-Team: LANGUAGE <LL@li.org>\n"
14
 
15
+ #: admin/customizer/wptouch-customizer.php:579
16
+ msgid "Device Orientation"
17
  msgstr ""
18
 
19
+ #: admin/customizer/wptouch-customizer.php:606
20
  msgid "Switch to Mobile Theme"
21
  msgstr ""
22
 
23
+ #: admin/customizer/wptouch-customizer.php:607
24
  msgid "Switch to Desktop Theme"
25
  msgstr ""
26
 
553
  msgid "Configure Settings"
554
  msgstr ""
555
 
556
+ #: admin/pages/wptouch-admin-general-settings.php:29 core/admin-render.php:68
557
  #: core/config.php:88
558
  msgid "Updates Available"
559
  msgstr ""
811
  msgid "WordPress Pages"
812
  msgstr ""
813
 
814
+ #: admin/pages/wptouch-admin-general-settings.php:640 core/admin-render.php:77
815
+ #: core/admin-render.php:109 core/config.php:93
816
  msgid "Customize Theme"
817
  msgstr ""
818
 
1080
  msgid "Deploy to Sites"
1081
  msgstr ""
1082
 
1083
+ #: admin/settings/include/sites.php:28 core/admin-render.php:54
1084
  msgid "Deployment"
1085
  msgstr ""
1086
 
1182
  msgstr ""
1183
 
1184
  #: core/admin-render.php:37
 
 
 
 
1185
  msgid "Preview Theme"
1186
  msgstr ""
1187
 
1188
+ #: core/admin-render.php:47 core/admin-render.php:63
1189
  msgid "Setup"
1190
  msgstr ""
1191
 
1192
+ #: core/admin-render.php:49 core/multisite.php:180
1193
  msgid "General Options"
1194
  msgstr ""
1195
 
1196
+ #: core/admin-render.php:52
1197
  msgid "Tools"
1198
  msgstr ""
1199
 
1200
+ #: core/admin-render.php:73 core/admin-render.php:82 core/config.php:89
1201
  msgid "General"
1202
  msgstr ""
1203
 
1204
+ #: core/admin-render.php:74 core/admin-render.php:90 core/config.php:91
1205
  #: core/multisite.php:267 core/multisite.php:360
1206
  msgid "Devices"
1207
  msgstr ""
1208
 
1209
+ #: core/admin-render.php:75 core/admin-render.php:94 core/config.php:92
1210
  #: core/multisite.php:275 core/multisite.php:368
1211
  msgid "Menu Settings"
1212
  msgstr ""
1213
 
1214
+ #: core/admin-render.php:79
 
 
 
 
 
1215
  msgid "WPtouch Pro"
1216
  msgstr ""
1217
 
1218
+ #: core/admin-render.php:86 core/multisite.php:259 core/multisite.php:352
1219
  msgid "Site Compatibility"
1220
  msgstr ""
1221
 
1222
+ #: core/admin-render.php:101 core/admin-render.php:103
1223
+ #: core/admin-render.php:141 core/config.php:95 core/multisite.php:283
1224
  #: core/multisite.php:376
1225
  msgid "Themes"
1226
  msgstr ""
1227
 
1228
+ #: core/admin-render.php:106 themes/foundation/root-functions.php:9
1229
+ msgid "Theme Settings"
1230
+ msgstr ""
1231
+
1232
+ #: core/admin-render.php:116 core/admin-render.php:118
1233
+ #: core/admin-render.php:142 core/config.php:96 core/multisite.php:291
1234
  #: core/multisite.php:384
1235
  msgid "Extensions"
1236
  msgstr ""
1237
 
1238
+ #: core/admin-render.php:139
1239
  msgid "Available for WPtouch Pro"
1240
  msgstr ""
1241
 
1242
+ #: core/admin-render.php:190
1243
  msgid "Reset Settings"
1244
  msgstr ""
1245
 
1798
  msgid "desktop"
1799
  msgstr ""
1800
 
1801
+ #: themes/bauhaus/root-functions.php:130
1802
  msgid "Header Menu"
1803
  msgstr ""
1804
 
1805
+ #: themes/bauhaus/root-functions.php:132
1806
  msgid "Choose a menu"
1807
  msgstr ""
1808
 
1809
+ #: themes/bauhaus/root-functions.php:133
1810
  msgid "Main menu selection"
1811
  msgstr ""
1812
 
1813
+ #: themes/bauhaus/root-functions.php:140
1814
  msgid "Theme background"
1815
  msgstr ""
1816
 
1817
+ #: themes/bauhaus/root-functions.php:141
1818
  msgid "Header & Menu"
1819
  msgstr ""
1820
 
1821
+ #: themes/bauhaus/root-functions.php:142
1822
  msgid "Links"
1823
  msgstr ""
1824
 
1825
+ #: themes/bauhaus/root-functions.php:143
1826
  msgid "Post/Page Headers"
1827
  msgstr ""
1828
 
1829
+ #: themes/bauhaus/root-functions.php:249
1830
  msgid "Menu animation style"
1831
  msgstr ""
1832
 
1833
+ #: themes/bauhaus/root-functions.php:254
1834
  msgid "Off-canvas"
1835
  msgstr ""
1836
 
1837
+ #: themes/bauhaus/root-functions.php:255
1838
  msgid "Drop-down"
1839
  msgstr ""
1840
 
1841
+ #: themes/bauhaus/root-functions.php:263
1842
  msgid "Menu position"
1843
  msgstr ""
1844
 
1845
+ #: themes/bauhaus/root-functions.php:268
1846
  msgid "Left side"
1847
  msgstr ""
1848
 
1849
+ #: themes/bauhaus/root-functions.php:269
1850
  msgid "Right side"
1851
  msgstr ""
1852
 
1853
+ #: themes/bauhaus/root-functions.php:277
1854
  msgid "Show search in header"
1855
  msgstr ""
1856
 
1857
+ #: themes/bauhaus/root-functions.php:294
1858
  msgid "Post thumbnails"
1859
  msgstr ""
1860
 
1861
+ #: themes/bauhaus/root-functions.php:299
1862
  msgid "No thumbnails"
1863
  msgstr ""
1864
 
1865
+ #: themes/bauhaus/root-functions.php:300
1866
  msgid "Blog listing only"
1867
  msgstr ""
1868
 
1869
+ #: themes/bauhaus/root-functions.php:301
1870
  msgid "Blog listing, single posts"
1871
  msgstr ""
1872
 
1873
+ #: themes/bauhaus/root-functions.php:302
1874
  msgid "Blog listing, single posts & pages"
1875
  msgstr ""
1876
 
1877
+ #: themes/bauhaus/root-functions.php:303
1878
  msgid "All (blog, single, pages, search & archive)"
1879
  msgstr ""
1880
 
1881
+ #: themes/bauhaus/root-functions.php:311
1882
  msgid "Thumbnail Type"
1883
  msgstr ""
1884
 
1885
+ #: themes/bauhaus/root-functions.php:316
1886
  msgid "Post featured images"
1887
  msgstr ""
1888
 
1889
+ #: themes/bauhaus/root-functions.php:317
1890
  msgid "Post custom field"
1891
  msgstr ""
1892
 
1893
+ #: themes/bauhaus/root-functions.php:325
1894
  msgid "Thumbnail custom field name"
1895
  msgstr ""
1896
 
1897
+ #: themes/bauhaus/root-functions.php:336
1898
  msgid "Show post categories and tags"
1899
  msgstr ""
1900
 
1901
+ #: themes/bauhaus/root-functions.php:347
1902
  msgid "Show post date"
1903
  msgstr ""
1904
 
1905
+ #: themes/bauhaus/root-functions.php:358
1906
  msgid "Show post author"
1907
  msgstr ""
1908
 
1909
+ #: themes/bauhaus/root-functions.php:369
1910
  msgid "Show comment bubbles on posts"
1911
  msgstr ""
1912
 
1913
+ #: themes/bauhaus/root-functions.php:380
1914
  msgid "Use infinite scrolling for blog"
1915
  msgstr ""
1916
 
1917
+ #: themes/bauhaus/root-functions.php:519
1918
  msgid "Featured Slider Page"
1919
  msgstr ""
1920
 
1921
+ #: themes/bauhaus/root-functions.php:520
1922
  msgid "Choose which page should display the featured slider"
1923
  msgstr ""
1924
 
2009
  msgstr ""
2010
 
2011
  #: themes/foundation/modules/featured/featured.php:405
2012
+ msgid "Slide transition Delay"
2013
  msgstr ""
2014
 
2015
  #: themes/foundation/modules/featured/featured.php:410
2016
+ msgid "Long"
2017
  msgstr ""
2018
 
2019
  #: themes/foundation/modules/featured/featured.php:411
2021
  msgstr ""
2022
 
2023
  #: themes/foundation/modules/featured/featured.php:412
2024
+ msgid "Short"
2025
  msgstr ""
2026
 
2027
  #: themes/foundation/modules/featured/featured.php:423
2231
  msgstr ""
2232
 
2233
  #: themes/foundation/modules/tablets/tablets.php:64
2234
+ #: themes/foundation/root-functions.php:463
2235
  msgid "%d by %d pixels (PNG)"
2236
  msgstr ""
2237
 
2251
  msgid "Custom Content"
2252
  msgstr ""
2253
 
2254
+ #: themes/foundation/root-functions.php:50
2255
  msgid "Language: "
2256
  msgstr ""
2257
 
2258
+ #: themes/foundation/root-functions.php:387
2259
  msgid "Theme Colors"
2260
  msgstr ""
2261
 
2262
+ #: themes/foundation/root-functions.php:403
2263
  msgid "Number of posts in post listings"
2264
  msgstr ""
2265
 
2266
+ #: themes/foundation/root-functions.php:404
2267
  msgid ""
2268
  "Overrides the WordPress Reading settings for \"Blog pages show at most\""
2269
  msgstr ""
2270
 
2271
+ #: themes/foundation/root-functions.php:416
2272
  msgid "Excluded categories"
2273
  msgstr ""
2274
 
2275
+ #: themes/foundation/root-functions.php:417
2276
  msgid "Comma separated by category name"
2277
  msgstr ""
2278
 
2279
+ #: themes/foundation/root-functions.php:424
2280
  msgid "Excluded tags"
2281
  msgstr ""
2282
 
2283
+ #: themes/foundation/root-functions.php:425
2284
  msgid "Comma separated by tag name"
2285
  msgstr ""
2286
 
2287
+ #: themes/foundation/root-functions.php:436
2288
  msgid "Blog"
2289
  msgstr ""
2290
 
2291
+ #: themes/foundation/root-functions.php:446
2292
+ #: themes/foundation/root-functions.php:1218
2293
  msgid "Pages"
2294
  msgstr ""
2295
 
2296
+ #: themes/foundation/root-functions.php:457
2297
  msgid "Site Icon"
2298
  msgstr ""
2299
 
2300
+ #: themes/foundation/root-functions.php:481
2301
  msgid "Site Logo"
2302
  msgstr ""
2303
 
2304
+ #: themes/foundation/root-functions.php:493
2305
  msgid "Header"
2306
  msgstr ""
2307
 
2308
+ #: themes/foundation/root-functions.php:505
2309
  msgid "Footer"
2310
  msgstr ""
2311
 
2312
+ #: themes/foundation/root-functions.php:511
2313
  msgid "Custom footer content (HTML is allowed)"
2314
  msgstr ""
2315
 
2316
+ #: themes/foundation/root-functions.php:526
2317
  msgid "Custom CSS"
2318
  msgstr ""
2319
 
2320
+ #: themes/foundation/root-functions.php:532
2321
  msgid "Custom CSS Declarations"
2322
  msgstr ""
2323
 
2324
+ #: themes/foundation/root-functions.php:883
2325
  msgid "search results for '%s'"
2326
  msgstr ""
2327
 
2328
+ #: themes/foundation/root-functions.php:885
2329
  msgid "%sCategories &rsaquo;%s %s"
2330
  msgstr ""
2331
 
2332
+ #: themes/foundation/root-functions.php:887
2333
  msgid "Tags &rsaquo; %s"
2334
  msgstr ""
2335
 
2336
+ #: themes/foundation/root-functions.php:889
2337
+ #: themes/foundation/root-functions.php:891
2338
+ #: themes/foundation/root-functions.php:893
2339
  msgid "Archives &rsaquo; %s"
2340
  msgstr ""
2341
 
2342
+ #: themes/foundation/root-functions.php:908
2343
  msgid "Load more from this category"
2344
  msgstr ""
2345
 
2346
+ #: themes/foundation/root-functions.php:910
2347
  msgid "Load more tagged like this"
2348
  msgstr ""
2349
 
2350
+ #: themes/foundation/root-functions.php:912
2351
  msgid "Load more from this day"
2352
  msgstr ""
2353
 
2354
+ #: themes/foundation/root-functions.php:914
2355
  msgid "Load more from this month"
2356
  msgstr ""
2357
 
2358
+ #: themes/foundation/root-functions.php:916
2359
  msgid "Load more from this year"
2360
  msgstr ""
2361
 
2362
+ #: themes/foundation/root-functions.php:918
2363
  msgid "Load more in this section"
2364
  msgstr ""
2365
 
2366
+ #: themes/foundation/root-functions.php:920
2367
  msgid "Load more entries"
2368
  msgstr ""
2369
 
2370
+ #: themes/foundation/root-functions.php:1167
2371
  msgid "Post"
2372
  msgstr ""
2373
 
2374
+ #: themes/foundation/root-functions.php:1169
2375
  msgid "Page"
2376
  msgstr ""
2377
 
2378
+ #: wptouch.php:155 wptouch.php:162
2379
+ msgid "%sSign-up to to get WPtouch new on updates and changes via email:%s"
2380
+ msgstr ""
2381
+
2382
+ #: wptouch.php:161
2383
+ msgid ""
2384
+ "%sNEW! WPtouch now supports live editing in the WordPress Customizer!%s "
2385
+ "Check it out: <a href=\"%s?"
2386
+ "wptouch_free_message_419=1&utm_source=free_admin&utm_medium=website&utm_term=dale&utm_campaign=admin_notice"
2387
+ "\">Customize WPtouch Now &rarr;</a> %s"
2388
+ msgstr ""
2389
+
2390
  #. Plugin Name of the plugin/theme
2391
  msgid "WPtouch Mobile Plugin"
2392
  msgstr ""
readme.txt CHANGED
@@ -1,9 +1,9 @@
1
  === Plugin Name ===
2
- Contributors: bravenewcode, duanestorey, dalemugford, mkuplens
3
  Tags: wptouch, iphone, ipod, bravenewcode, mobile, mobile-friendly, android, blackberry, smartphone, responsive, design, mobile plugin, ios, mobile theme
4
  Requires at least: 4.2
5
- Stable tag: 4.1.8
6
- Tested up to: 4.5.3
7
  License: GPLv2
8
 
9
  Make your WordPress website mobile-friendly with just a few clicks.
@@ -33,6 +33,11 @@ For more information visit [WPtouch.com](http://www.wptouch.com/?utm_campaign=wp
33
 
34
  == Changelog ==
35
 
 
 
 
 
 
36
  = Version 4.1.8 (July 19, 2016) =
37
 
38
  * Updated: Spanish translations
1
  === Plugin Name ===
2
+ Contributors: bravenewcode, duanestorey, dalemugford, adamdipardo
3
  Tags: wptouch, iphone, ipod, bravenewcode, mobile, mobile-friendly, android, blackberry, smartphone, responsive, design, mobile plugin, ios, mobile theme
4
  Requires at least: 4.2
5
+ Stable tag: 4.2
6
+ Tested up to: 4.6
7
  License: GPLv2
8
 
9
  Make your WordPress website mobile-friendly with just a few clicks.
33
 
34
  == Changelog ==
35
 
36
+ = Version 4.2 (August 3, 2016) =
37
+
38
+ * Added: NEW! Change theme settings in the WordPress Customizer!
39
+ * Fixed: Minor bugs and issues
40
+
41
  = Version 4.1.8 (July 19, 2016) =
42
 
43
  * Updated: Spanish translations
themes/bauhaus/default/functions.php CHANGED
@@ -107,4 +107,4 @@ function bauhaus_show_featured_slider( $show_featured_slider, $featured_slider_e
107
  }
108
 
109
  return $show_featured_slider;
110
- }
107
  }
108
 
109
  return $show_featured_slider;
110
+ }
themes/bauhaus/default/header-bottom.php CHANGED
@@ -21,11 +21,11 @@
21
  </div>
22
  </div>
23
 
24
- <!-- Back Button for Web-App Mode -->
25
- <div class="wptouch-icon-arrow-left back-button tappable"><!-- css-button --></div>
26
-
27
  <div class="page-wrapper">
28
 
 
 
 
29
  <header id="header-title-logo">
30
  <?php if ( bauhaus_should_show_search() ) { ?>
31
  <div id="search-toggle" class="search-toggle tappable <?php if ( bauhaus_is_menu_position_default() ) { echo 'search-right'; } else { echo 'search-left'; } ?>" role="button"><!--icon-search--></div>
21
  </div>
22
  </div>
23
 
 
 
 
24
  <div class="page-wrapper">
25
 
26
+ <!-- Back Button for Web-App Mode -->
27
+ <div class="wptouch-icon-arrow-left back-button tappable"><!-- css-button --></div>
28
+
29
  <header id="header-title-logo">
30
  <?php if ( bauhaus_should_show_search() ) { ?>
31
  <div id="search-toggle" class="search-toggle tappable <?php if ( bauhaus_is_menu_position_default() ) { echo 'search-right'; } else { echo 'search-left'; } ?>" role="button"><!--icon-search--></div>
themes/bauhaus/default/style.css CHANGED
@@ -1127,8 +1127,8 @@ form#commentform button#submit {
1127
  }
1128
 
1129
  .ios7.web-app-mode.has-fixed header {
 
1130
  position: -webkit-sticky;
1131
- opacity: 0.97;
1132
  padding-top: 20px;
1133
  top: 0;
1134
  }
1127
  }
1128
 
1129
  .ios7.web-app-mode.has-fixed header {
1130
+ -webkit-backdrop-filter: blur(20px) saturate(150%);
1131
  position: -webkit-sticky;
 
1132
  padding-top: 20px;
1133
  top: 0;
1134
  }
themes/bauhaus/readme.txt CHANGED
@@ -2,7 +2,7 @@ Theme Name: Bauhaus
2
  Theme URI: http://www.wptouch.com/themes/bauhaus
3
  Author: BraveNewCode Inc.
4
  Description: Clean, modern, functional design. Great for all types of WordPress sites.
5
- Version: 1.6.10
6
  Depends on: 4.1.6
7
  Framework: 2.0
8
  Tags: smartphone
@@ -23,6 +23,12 @@ Bauhaus is one of our more flexible themes, and is designed to easily take on th
23
 
24
  == Changelog ==
25
 
 
 
 
 
 
 
26
  = Version 1.6.10 =
27
 
28
  * Fixed: Search behaviour in some languages
2
  Theme URI: http://www.wptouch.com/themes/bauhaus
3
  Author: BraveNewCode Inc.
4
  Description: Clean, modern, functional design. Great for all types of WordPress sites.
5
+ Version: 1.7
6
  Depends on: 4.1.6
7
  Framework: 2.0
8
  Tags: smartphone
23
 
24
  == Changelog ==
25
 
26
+ = Version 1.7 =
27
+
28
+ * Added: Frosted header support in iOS for Web App Mode
29
+ * Added: Android browser chrome colouring support
30
+ * Fixed: Minor issues and bugs
31
+
32
  = Version 1.6.10 =
33
 
34
  * Fixed: Search behaviour in some languages
themes/bauhaus/root-functions.php CHANGED
@@ -1,6 +1,6 @@
1
  <?php
2
 
3
- define( 'BAUHAUS_THEME_VERSION', '1.6.10' );
4
  define( 'BAUHAUS_SETTING_DOMAIN', 'bauhaus' );
5
  define( 'BAUHAUS_DIR', wptouch_get_bloginfo( 'theme_root_directory' ) );
6
  define( 'BAUHAUS_URL', wptouch_get_bloginfo( 'theme_parent_url' ) );
@@ -9,6 +9,8 @@ define( 'BAUHAUS_URL', wptouch_get_bloginfo( 'theme_parent_url' ) );
9
  add_action( 'foundation_init', 'bauhaus_theme_init' );
10
  add_action( 'foundation_modules_loaded', 'bauhaus_register_fonts' );
11
  add_action( 'customize_controls_enqueue_scripts', 'bauhaus_enqueue_customizer_script' );
 
 
12
 
13
  // Bauhaus filters
14
  add_filter( 'wptouch_registered_setting_domains', 'bauhaus_setting_domain' );
@@ -19,6 +21,8 @@ add_filter( 'wptouch_featured_slider_settings', 'bauhaus_featured_slider_setting
19
  add_filter( 'wptouch_body_classes', 'bauhaus_body_classes' );
20
  add_filter( 'wptouch_post_classes', 'bauhaus_post_classes' );
21
 
 
 
22
  // Bauhaus GUI Settings
23
  add_filter( 'foundation_settings_header', 'bauhaus_header_settings' );
24
  add_filter( 'foundation_settings_blog', 'bauhaus_blog_settings' );
@@ -84,7 +88,7 @@ function bauhaus_setting_defaults( $settings ) {
84
  }
85
 
86
  function bauhaus_foundation_setting_defaults( $settings ) {
87
- $settings->typography_sets = 'lato_roboto';
88
  return $settings;
89
  }
90
 
@@ -137,12 +141,18 @@ function bauhaus_theme_init() {
137
  foundation_register_theme_color( 'bauhaus_header_color', __( 'Header & Menu', 'wptouch-pro' ),'', 'body, header, .wptouch-menu, .pushit, #search-dropper, .date-circle', BAUHAUS_SETTING_DOMAIN, WPTOUCH_PRO_LIVE_PREVIEW_SETTING, 150, 'header' );
138
  foundation_register_theme_color( 'bauhaus_link_color', __( 'Links', 'wptouch-pro' ), '.content-wrap a, #slider a p:after', '.dots li.active, #switch .active', BAUHAUS_SETTING_DOMAIN, WPTOUCH_PRO_LIVE_PREVIEW_SETTING );
139
  foundation_register_theme_color( 'bauhaus_post_page_header_color', __( 'Post/Page Headers', 'wptouch-pro' ), '', '.bauhaus, form#commentform button#submit', BAUHAUS_SETTING_DOMAIN, WPTOUCH_PRO_LIVE_PREVIEW_SETTING, 150, 'post-head' );
 
140
  }
141
 
142
  // Example of how to register Google font pairings
143
  // (Apply to (Headings or Body), Google font Pretty Name, kerning, weights)
144
  function bauhaus_register_fonts() {
145
  if ( foundation_is_theme_using_module( 'google-fonts' ) ) {
 
 
 
 
 
146
  foundation_register_google_font_pairing(
147
  'lato_roboto',
148
  foundation_create_google_font( 'heading', 'Lato', 'sans-serif', array( '300', '600' ) ),
@@ -181,6 +191,13 @@ function bauhaus_register_fonts() {
181
  }
182
  }
183
 
 
 
 
 
 
 
 
184
  function bauhaus_body_classes( $classes ) {
185
  $settings = bauhaus_get_settings();
186
 
@@ -509,3 +526,8 @@ function bauhaus_featured_slider_settings( $featured_slider_settings ) {
509
 
510
  return $featured_slider_settings;
511
  }
 
 
 
 
 
1
  <?php
2
 
3
+ define( 'BAUHAUS_THEME_VERSION', '1.7' );
4
  define( 'BAUHAUS_SETTING_DOMAIN', 'bauhaus' );
5
  define( 'BAUHAUS_DIR', wptouch_get_bloginfo( 'theme_root_directory' ) );
6
  define( 'BAUHAUS_URL', wptouch_get_bloginfo( 'theme_parent_url' ) );
9
  add_action( 'foundation_init', 'bauhaus_theme_init' );
10
  add_action( 'foundation_modules_loaded', 'bauhaus_register_fonts' );
11
  add_action( 'customize_controls_enqueue_scripts', 'bauhaus_enqueue_customizer_script' );
12
+ // Add custom css to Web App Mode to allow for a frosted header appearance on iOS 7 or higher
13
+ add_action( 'wp_head', 'bauhaus_add_frosted_header_wam', 100 );
14
 
15
  // Bauhaus filters
16
  add_filter( 'wptouch_registered_setting_domains', 'bauhaus_setting_domain' );
21
  add_filter( 'wptouch_body_classes', 'bauhaus_body_classes' );
22
  add_filter( 'wptouch_post_classes', 'bauhaus_post_classes' );
23
 
24
+ add_filter( 'wptouch_theme_color', 'bauhaus_theme_color' );
25
+
26
  // Bauhaus GUI Settings
27
  add_filter( 'foundation_settings_header', 'bauhaus_header_settings' );
28
  add_filter( 'foundation_settings_blog', 'bauhaus_blog_settings' );
88
  }
89
 
90
  function bauhaus_foundation_setting_defaults( $settings ) {
91
+ $settings->typography_sets = 'oswald_opensans';
92
  return $settings;
93
  }
94
 
141
  foundation_register_theme_color( 'bauhaus_header_color', __( 'Header & Menu', 'wptouch-pro' ),'', 'body, header, .wptouch-menu, .pushit, #search-dropper, .date-circle', BAUHAUS_SETTING_DOMAIN, WPTOUCH_PRO_LIVE_PREVIEW_SETTING, 150, 'header' );
142
  foundation_register_theme_color( 'bauhaus_link_color', __( 'Links', 'wptouch-pro' ), '.content-wrap a, #slider a p:after', '.dots li.active, #switch .active', BAUHAUS_SETTING_DOMAIN, WPTOUCH_PRO_LIVE_PREVIEW_SETTING );
143
  foundation_register_theme_color( 'bauhaus_post_page_header_color', __( 'Post/Page Headers', 'wptouch-pro' ), '', '.bauhaus, form#commentform button#submit', BAUHAUS_SETTING_DOMAIN, WPTOUCH_PRO_LIVE_PREVIEW_SETTING, 150, 'post-head' );
144
+
145
  }
146
 
147
  // Example of how to register Google font pairings
148
  // (Apply to (Headings or Body), Google font Pretty Name, kerning, weights)
149
  function bauhaus_register_fonts() {
150
  if ( foundation_is_theme_using_module( 'google-fonts' ) ) {
151
+ foundation_register_google_font_pairing(
152
+ 'oswald_opensans',
153
+ foundation_create_google_font( 'heading', 'Oswald', 'sans-serif', array( '300', '700' ) ),
154
+ foundation_create_google_font( 'body', 'Open Sans', 'sans-serif', array( '400', '700', '400italic', '700italic' ) )
155
+ );
156
  foundation_register_google_font_pairing(
157
  'lato_roboto',
158
  foundation_create_google_font( 'heading', 'Lato', 'sans-serif', array( '300', '600' ) ),
191
  }
192
  }
193
 
194
+ function bauhaus_add_frosted_header_wam(){
195
+
196
+ $settings = bauhaus_get_settings();
197
+ $color = 'rgba(' . wptouch_hex_to_rgb( $settings->bauhaus_header_color, true ) . ',.88)';
198
+ echo "<style>.ios7.web-app-mode.has-fixed header{ background-color: " . $color . " !important;}</style>";
199
+ }
200
+
201
  function bauhaus_body_classes( $classes ) {
202
  $settings = bauhaus_get_settings();
203
 
526
 
527
  return $featured_slider_settings;
528
  }
529
+
530
+ function bauhaus_theme_color() {
531
+ $settings = bauhaus_get_settings();
532
+ return $settings->bauhaus_header_color;
533
+ }
themes/foundation/default/style.css CHANGED
@@ -1435,7 +1435,7 @@ span.wpcf7-form-control-wrap {
1435
  bottom: 30px;
1436
  left: 30px;
1437
  transition: background-color .5s linear;
1438
- z-index: 1;
1439
  }
1440
 
1441
  .smartphone.web-app-mode .back-button.visible {
1435
  bottom: 30px;
1436
  left: 30px;
1437
  transition: background-color .5s linear;
1438
+ z-index: 100;
1439
  }
1440
 
1441
  .smartphone.web-app-mode .back-button.visible {
themes/foundation/modules/featured/featured.php CHANGED
@@ -402,14 +402,14 @@ function foundation_featured_settings( $page_options ) {
402
  wptouch_add_pro_setting(
403
  'list',
404
  'featured_speed',
405
- __( 'Slide transition speed', 'wptouch-pro' ),
406
  false,
407
  WPTOUCH_SETTING_BASIC,
408
  '2.0',
409
  array(
410
- 'slow' => __( 'Slow', 'wptouch-pro' ),
411
  'normal' => __( 'Normal', 'wptouch-pro' ),
412
- 'fast' => __( 'Fast', 'wptouch-pro' )
413
  )
414
  ),
415
  wptouch_add_setting(
402
  wptouch_add_pro_setting(
403
  'list',
404
  'featured_speed',
405
+ __( 'Slide transition Delay', 'wptouch-pro' ),
406
  false,
407
  WPTOUCH_SETTING_BASIC,
408
  '2.0',
409
  array(
410
+ 'slow' => __( 'Long', 'wptouch-pro' ),
411
  'normal' => __( 'Normal', 'wptouch-pro' ),
412
+ 'fast' => __( 'Short', 'wptouch-pro' )
413
  )
414
  ),
415
  wptouch_add_setting(
themes/foundation/root-functions.php CHANGED
@@ -24,6 +24,7 @@ add_action( 'wptouch_post_head', 'foundation_setup_smart_app_banner' );
24
  add_action( 'wptouch_post_head', 'foundation_setup_viewport' );
25
  add_action( 'wptouch_post_head', 'foundation_setup_homescreen_icons' );
26
  add_action( 'wptouch_post_head', 'foundation_inline_styles' );
 
27
 
28
  if ( !defined( 'WPTOUCH_IS_FREE' ) ) {
29
  add_action( 'pre_get_posts', 'foundation_posts_per_page' );
@@ -1250,4 +1251,14 @@ function foundation_custom_die_handler( $function ) {
1250
  }
1251
 
1252
  return $function;
1253
- }
 
 
 
 
 
 
 
 
 
 
24
  add_action( 'wptouch_post_head', 'foundation_setup_viewport' );
25
  add_action( 'wptouch_post_head', 'foundation_setup_homescreen_icons' );
26
  add_action( 'wptouch_post_head', 'foundation_inline_styles' );
27
+ add_action( 'wptouch_post_head', 'foundation_add_meta_theme_color' );
28
 
29
  if ( !defined( 'WPTOUCH_IS_FREE' ) ) {
30
  add_action( 'pre_get_posts', 'foundation_posts_per_page' );
1251
  }
1252
 
1253
  return $function;
1254
+ }
1255
+
1256
+ function foundation_add_meta_theme_color() {
1257
+
1258
+ $header_color = apply_filters( 'wptouch_theme_color', '' );
1259
+
1260
+ if ( strlen( $header_color ) ) {
1261
+ echo '<meta name="theme-color" content="' . $header_color . '">';
1262
+ }
1263
+
1264
+ }
wptouch.php CHANGED
@@ -2,7 +2,7 @@
2
  /*
3
  Plugin Name: WPtouch Mobile Plugin
4
  Plugin URI: http://www.wptouch.com/
5
- Version: 4.1.8
6
  Description: Make a beautiful mobile-friendly version of your website with just a few clicks
7
  Author: BraveNewCode Inc.
8
  Author URI: http://www.bravenewcode.com/
@@ -14,7 +14,7 @@
14
 
15
  function wptouch_create_four_object() {
16
  if ( !defined( 'WPTOUCH_IS_PRO' ) ) {
17
- define( 'WPTOUCH_VERSION', '4.1.8' );
18
 
19
  define( 'WPTOUCH_BASE_NAME', basename( __FILE__, '.php' ) . '.php' );
20
  define( 'WPTOUCH_DIR', WP_PLUGIN_DIR . DIRECTORY_SEPARATOR . basename( __FILE__, '.php' ) );
@@ -53,6 +53,7 @@ function wptouch_create_four_object() {
53
  }
54
  }
55
 
 
56
  function is_wptouch_pro_active() {
57
  $active_plugins = get_option( 'active_plugins', array() );
58
  if ( in_array( 'wptouch-pro/wptouch-pro.php', $active_plugins ) ) {
@@ -130,3 +131,52 @@ if ( !is_wptouch_pro_active() ) {
130
  return false;
131
  }
132
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2
  /*
3
  Plugin Name: WPtouch Mobile Plugin
4
  Plugin URI: http://www.wptouch.com/
5
+ Version: 4.2
6
  Description: Make a beautiful mobile-friendly version of your website with just a few clicks
7
  Author: BraveNewCode Inc.
8
  Author URI: http://www.bravenewcode.com/
14
 
15
  function wptouch_create_four_object() {
16
  if ( !defined( 'WPTOUCH_IS_PRO' ) ) {
17
+ define( 'WPTOUCH_VERSION', '4.2' );
18
 
19
  define( 'WPTOUCH_BASE_NAME', basename( __FILE__, '.php' ) . '.php' );
20
  define( 'WPTOUCH_DIR', WP_PLUGIN_DIR . DIRECTORY_SEPARATOR . basename( __FILE__, '.php' ) );
53
  }
54
  }
55
 
56
+
57
  function is_wptouch_pro_active() {
58
  $active_plugins = get_option( 'active_plugins', array() );
59
  if ( in_array( 'wptouch-pro/wptouch-pro.php', $active_plugins ) ) {
131
  return false;
132
  }
133
  }
134
+
135
+ function wptouch_free_get_random_site( $amount ) {
136
+ $home_url = get_home_url();
137
+
138
+ $result = md5( $home_url, true );
139
+
140
+ return $result % $amount;
141
+ }
142
+
143
+ function wptouch_free_admin_notice() {
144
+ global $current_user;
145
+ $user_id = $current_user->ID;
146
+
147
+ //delete_user_meta( $user_id, 'wptouch_free_message_419' );
148
+ $random_num = wptouch_free_get_random_site( 2 );
149
+
150
+ if ( !get_user_meta( $user_id, 'wptouch_free_message_419' ) ) {
151
+ echo '<div style="position:relative;" class="notice notice-success">';
152
+ switch( $random_num ) {
153
+ case 0:
154
+ $current_user = wp_get_current_user();
155
+ echo '<p><form action="http://wptouch.createsend.com/t/t/s/xurhlk/" method="post" id="subForm"><input id="fieldName" name="cm-name" type="hidden" value="' . $current_user->first_name . ' ' . $current_user->last_name . '" /><input id="fieldEmail" name="cm-xurhlk-xurhlk" type="hidden" value="' . $current_user->user_email . '" />' . sprintf( __( '%sSign-up to to get WPtouch new on updates and changes via email:%s', 'wptouch' ), '<strong>', '</strong>' ) . '<button class="button button-secondary" type="submit" style="margin-left: 10px; margin-top:-5px;">Subscribe &rarr;</button></form></p>';
156
+ echo '<a style="text-decoration:none;" class="notice-dismiss" href="?wptouch_free_message_419=1"></a>';
157
+ break;
158
+ case 1:
159
+ $current_user = wp_get_current_user();
160
+ $customizer_url = admin_url( 'customize.php' );
161
+ echo '<p>' . sprintf( __( '%sNEW! WPtouch now supports live editing in the WordPress Customizer!%s Check it out: <a href="%s?wptouch_free_message_419=1&utm_source=free_admin&utm_medium=website&utm_term=dale&utm_campaign=admin_notice">Customize WPtouch Now &rarr;</a> %s', 'wptouch' ), '<strong>', '</strong>', $customizer_url, '<a style="text-decoration:none;" class="notice-dismiss" href="?wptouch_free_message_419=1"></a>' ) . '</p>';
162
+ echo '<p><form action="http://wptouch.createsend.com/t/t/s/xurhlk/" method="post" id="subForm"><input id="fieldName" name="cm-name" type="hidden" value="' . $current_user->first_name . ' ' . $current_user->last_name . '" /><input id="fieldEmail" name="cm-xurhlk-xurhlk" type="hidden" value="' . $current_user->user_email . '" />' . sprintf( __( '%sSign-up to to get WPtouch new on updates and changes via email:%s', 'wptouch' ), '<strong>', '</strong>' ) . '<button class="button button-secondary" type="submit" style="margin-left: 10px; margin-top:-5px;">Subscribe &rarr;</button></form></p>';
163
+ echo '<a style="text-decoration:none;" class="notice-dismiss" href="?wptouch_free_message_419=1"></a>';
164
+ break;
165
+ }
166
+ echo '</div>';
167
+ }
168
+ }
169
+
170
+ function wptouch_free_admin_notice_dismiss() {
171
+ global $current_user;
172
+ $user_id = $current_user->ID;
173
+
174
+ /* If user clicks to ignore the notice, add that to their user meta */
175
+ if ( isset( $_GET['wptouch_free_message_419'] ) && $_GET['wptouch_free_message_419'] == '1' ) {
176
+ setcookie( 'wptouch_customizer_use', 'mobile' );
177
+ add_user_meta( $user_id, 'wptouch_free_message_419', '1' );
178
+ }
179
+ }
180
+
181
+ add_action( 'admin_init', 'wptouch_free_admin_notice_dismiss' );
182
+ add_action( 'admin_notices', 'wptouch_free_admin_notice' );