WPtouch - Version 4.3.4

Version Description

Download this release

Release Info

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

Code changes from version 4.3.3 to 4.3.4

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.3.3\n"
6
  "Report-Msgid-Bugs-To: http://wordpress.org/tag/wptouch\n"
7
- "POT-Creation-Date: 2016-10-03 20:29:16+00:00\n"
8
  "MIME-Version: 1.0\n"
9
  "Content-Type: text/plain; charset=UTF-8\n"
10
  "Content-Transfer-Encoding: 8bit\n"
@@ -1612,16 +1612,19 @@ msgid "next in gallery »"
1612
  msgstr ""
1613
 
1614
  #: themes/bauhaus/default/comments.php:10
 
1615
  #: themes/foundation/default/comments.php:10
1616
  msgid "no responses"
1617
  msgstr ""
1618
 
1619
  #: themes/bauhaus/default/comments.php:10
 
1620
  #: themes/foundation/default/comments.php:10
1621
  msgid "1 response"
1622
  msgstr ""
1623
 
1624
  #: themes/bauhaus/default/comments.php:10
 
1625
  #: themes/foundation/default/comments.php:10
1626
  msgid "% responses"
1627
  msgstr ""
@@ -2031,16 +2034,24 @@ msgstr ""
2031
  msgid "Comma-separated list of post/page IDs"
2032
  msgstr ""
2033
 
2034
- #: themes/bauhaus/root-functions.php:576
 
 
 
 
 
 
 
 
2035
  #: themes/foundation/modules/featured/featured.php:473
2036
  msgid "Only this post type"
2037
  msgstr ""
2038
 
2039
- #: themes/bauhaus/root-functions.php:589
2040
  msgid "Blog Featured Slider"
2041
  msgstr ""
2042
 
2043
- #: themes/bauhaus/root-functions.php:599
2044
  msgid "Blog Layout"
2045
  msgstr ""
2046
 
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.3.4\n"
6
  "Report-Msgid-Bugs-To: http://wordpress.org/tag/wptouch\n"
7
+ "POT-Creation-Date: 2016-10-13 19:59:28+00:00\n"
8
  "MIME-Version: 1.0\n"
9
  "Content-Type: text/plain; charset=UTF-8\n"
10
  "Content-Transfer-Encoding: 8bit\n"
1612
  msgstr ""
1613
 
1614
  #: themes/bauhaus/default/comments.php:10
1615
+ #: themes/bauhaus/default/post-loop.php:26
1616
  #: themes/foundation/default/comments.php:10
1617
  msgid "no responses"
1618
  msgstr ""
1619
 
1620
  #: themes/bauhaus/default/comments.php:10
1621
+ #: themes/bauhaus/default/post-loop.php:26
1622
  #: themes/foundation/default/comments.php:10
1623
  msgid "1 response"
1624
  msgstr ""
1625
 
1626
  #: themes/bauhaus/default/comments.php:10
1627
+ #: themes/bauhaus/default/post-loop.php:26
1628
  #: themes/foundation/default/comments.php:10
1629
  msgid "% responses"
1630
  msgstr ""
2034
  msgid "Comma-separated list of post/page IDs"
2035
  msgstr ""
2036
 
2037
+ #: themes/bauhaus/root-functions.php:573
2038
+ msgid "Featured Slider Page"
2039
+ msgstr ""
2040
+
2041
+ #: themes/bauhaus/root-functions.php:574
2042
+ msgid "Choose which page should display the featured slider"
2043
+ msgstr ""
2044
+
2045
+ #: themes/bauhaus/root-functions.php:586
2046
  #: themes/foundation/modules/featured/featured.php:473
2047
  msgid "Only this post type"
2048
  msgstr ""
2049
 
2050
+ #: themes/bauhaus/root-functions.php:599
2051
  msgid "Blog Featured Slider"
2052
  msgstr ""
2053
 
2054
+ #: themes/bauhaus/root-functions.php:609
2055
  msgid "Blog Layout"
2056
  msgstr ""
2057
 
readme.txt CHANGED
@@ -1,8 +1,8 @@
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.3.3
6
  Tested up to: 4.6
7
  License: GPLv2
8
 
@@ -33,6 +33,11 @@ For more information visit [WPtouch.com](http://www.wptouch.com/?utm_campaign=wp
33
 
34
  == Changelog ==
35
 
 
 
 
 
 
36
  = Version 4.3.3 (October 3, 2016) =
37
 
38
  * Fixed: An issue in the admin panel which made it appear that other plugins were disabled while WPtouch is running. No plugins are disabled by default when WPtouch is active.
1
  === Plugin Name ===
2
+ Contributors: kbmcardle, 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.3.4
6
  Tested up to: 4.6
7
  License: GPLv2
8
 
33
 
34
  == Changelog ==
35
 
36
+ = Version 4.3.4 (October 13, 2016) =
37
+
38
+ * Added: Support for adding the featured post slider to a page
39
+ * Fixed: Missing translations for number of comments in the blog listing
40
+
41
  = Version 4.3.3 (October 3, 2016) =
42
 
43
  * Fixed: An issue in the admin panel which made it appear that other plugins were disabled while WPtouch is running. No plugins are disabled by default when WPtouch is active.
themes/bauhaus/default/functions.php CHANGED
@@ -3,6 +3,7 @@
3
  add_action( 'foundation_enqueue_scripts', 'bauhaus_enqueue_scripts' );
4
  add_filter( 'amp_should_show_featured_image_in_header', 'bauhaus_should_show_thumbnail' );
5
  add_action( 'wp_loaded', 'bauhaus_featured_setup' );
 
6
  global $bauhaus_featured_args;
7
  global $bauhaus_featured_posts;
8
 
@@ -166,7 +167,7 @@ function bauhaus_featured_modify_query( $query ) {
166
 
167
  $should_modify_query = apply_filters(
168
  'bauhaus_featured_should_modify_query',
169
- ( $query->is_single || $query->is_page || $query->is_feed || $query->is_search || $query->is_archive || $query->is_category ) == false,
170
  $query
171
  );
172
 
@@ -284,11 +285,11 @@ function bauhaus_featured_slider() {
284
  if ( $settings->bauhaus_post_listing_autoplay ) {
285
  $classes[] = 'autoplay';
286
  }
287
-
288
  if ( $settings->bauhaus_post_listing_dots ) {
289
- $classes[] = 'dots';
290
  }
291
-
292
  if ( function_exists( 'wptouch_custom_posts_add_to_search' ) ) {
293
  $post_types = wptouch_custom_posts_add_to_search( array( 'post', 'page' ) );
294
  } else {
@@ -307,8 +308,29 @@ function bauhaus_featured_slider() {
307
  get_template_part( 'layouts/carousel-post-loop' );
308
  echo '</div>';
309
  }
310
-
311
- echo '</div>';
312
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
313
  }
314
- }
 
 
 
 
 
 
 
 
3
  add_action( 'foundation_enqueue_scripts', 'bauhaus_enqueue_scripts' );
4
  add_filter( 'amp_should_show_featured_image_in_header', 'bauhaus_should_show_thumbnail' );
5
  add_action( 'wp_loaded', 'bauhaus_featured_setup' );
6
+ add_filter( 'bauhaus_featured_show', 'bauhaus_show_featured_slider_in_page', 10, 2 );
7
  global $bauhaus_featured_args;
8
  global $bauhaus_featured_posts;
9
 
167
 
168
  $should_modify_query = apply_filters(
169
  'bauhaus_featured_should_modify_query',
170
+ ( $query->is_single || $query->is_page || $query->is_feed || $query->is_search || $query->is_archive || $query->is_category ) == false,
171
  $query
172
  );
173
 
285
  if ( $settings->bauhaus_post_listing_autoplay ) {
286
  $classes[] = 'autoplay';
287
  }
288
+
289
  if ( $settings->bauhaus_post_listing_dots ) {
290
+ $classes[] = 'dots';
291
  }
292
+
293
  if ( function_exists( 'wptouch_custom_posts_add_to_search' ) ) {
294
  $post_types = wptouch_custom_posts_add_to_search( array( 'post', 'page' ) );
295
  } else {
308
  get_template_part( 'layouts/carousel-post-loop' );
309
  echo '</div>';
310
  }
 
 
311
 
312
+ echo '</div>';
313
+
314
+ }
315
+ }
316
+
317
+ function bauhaus_show_featured_slider_in_page( $show_featured_slider, $featured_slider_enabled ) {
318
+ if ( bauhaus_allow_featured_slider_override() && $featured_slider_enabled == true ) {
319
+ $settings = bauhaus_get_settings();
320
+
321
+ global $post;
322
+ if ( $settings->featured_slider_page !== false && $post->ID == $settings->featured_slider_page ) {
323
+ $show_featured_slider = true;
324
+ } elseif ( $settings->featured_slider_page == true ) {
325
+ $show_featured_slider = false;
326
+ }
327
  }
328
+
329
+ return $show_featured_slider;
330
+ }
331
+
332
+ function bauhaus_allow_featured_slider_override() {
333
+ $settings = wptouch_get_settings();
334
+ $foundation_settings = foundation_get_settings();
335
+ return $settings->homepage_landing != 'none' && $settings->homepage_landing != $foundation_settings->latest_posts_page;
336
+ }
themes/bauhaus/default/page.php CHANGED
@@ -7,6 +7,10 @@
7
 
8
  <?php get_header(); ?>
9
 
 
 
 
 
10
  <div id="content">
11
  <?php if ( wptouch_have_posts() ) { ?>
12
  <?php wptouch_the_post(); ?>
@@ -22,4 +26,4 @@
22
 
23
  <?php get_footer(); ?>
24
 
25
- <?php } ?>
7
 
8
  <?php get_header(); ?>
9
 
10
+ <?php if ( !bauhaus_if_carousel_view_enabled() && bauhaus_should_show_featured() ) { ?>
11
+ <?php bauhaus_featured_slider(); ?>
12
+ <?php } ?>
13
+
14
  <div id="content">
15
  <?php if ( wptouch_have_posts() ) { ?>
16
  <?php wptouch_the_post(); ?>
26
 
27
  <?php get_footer(); ?>
28
 
29
+ <?php } ?>
themes/bauhaus/default/post-loop.php CHANGED
@@ -20,10 +20,10 @@
20
  <?php } ?>
21
 
22
  <h2 class="post-title heading-font"><?php the_title(); ?></h2>
23
-
24
  <?php if ( comments_open() || wptouch_have_comments() ) { ?>
25
  <div class="post-meta comments">
26
- <?php comments_number( 'no comments', 'one comment', '% comments' ); ?>
27
  </div>
28
  <?php } ?>
29
 
@@ -33,4 +33,4 @@
33
  <i class="arrow wptouch-icon-angle-right"></i>
34
  <?php } ?>
35
  <span class="bottom-border"><!--css border--></span>
36
- </a>
20
  <?php } ?>
21
 
22
  <h2 class="post-title heading-font"><?php the_title(); ?></h2>
23
+
24
  <?php if ( comments_open() || wptouch_have_comments() ) { ?>
25
  <div class="post-meta comments">
26
+ <?php comments_number( __('no responses', 'wptouch-pro'), __('1 response', 'wptouch-pro'), __('% responses', 'wptouch-pro') ); ?>
27
  </div>
28
  <?php } ?>
29
 
33
  <i class="arrow wptouch-icon-angle-right"></i>
34
  <?php } ?>
35
  <span class="bottom-border"><!--css border--></span>
36
+ </a>
themes/bauhaus/default/related-posts.php CHANGED
@@ -8,11 +8,13 @@
8
  <li class="<?php if ( $related_post->thumbnail != '' ) echo 'has-thumb'; ?><?php if ( $related_post->excerpt == '' ) { echo ' no-excerpt'; } ?>">
9
  <?php if ( $related_post->thumbnail != '' ) { ?>
10
  <?php echo $related_post->thumbnail; ?>
11
- <?php } ?>
12
- <div class="date-circle">
13
- <span class="month"><?php echo $related_post->month; ?></span>
14
- <span class="day"><?php echo $related_post->day; ?></span>
15
- </div>
 
 
16
  <strong>
17
  <a href="<?php echo $related_post->link; ?>"><?php echo $related_post->title; ?></a>
18
  </strong>
@@ -22,4 +24,4 @@
22
  </ul>
23
  </div>
24
  <?php } ?>
25
- <?php } ?>
8
  <li class="<?php if ( $related_post->thumbnail != '' ) echo 'has-thumb'; ?><?php if ( $related_post->excerpt == '' ) { echo ' no-excerpt'; } ?>">
9
  <?php if ( $related_post->thumbnail != '' ) { ?>
10
  <?php echo $related_post->thumbnail; ?>
11
+ <?php }
12
+ else { ?>
13
+ <div class="date-circle">
14
+ <span class="month"><?php echo $related_post->month; ?></span>
15
+ <span class="day"><?php echo $related_post->day; ?></span>
16
+ </div>
17
+ <?php } ?>
18
  <strong>
19
  <a href="<?php echo $related_post->link; ?>"><?php echo $related_post->title; ?></a>
20
  </strong>
24
  </ul>
25
  </div>
26
  <?php } ?>
27
+ <?php } ?>
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: 2.0.1
6
  Depends on: 4.3
7
  Framework: 2.0
8
  Tags: smartphone
@@ -25,6 +25,12 @@ Bauhaus is one of our more flexible themes, and is designed to easily take on th
25
 
26
  == Changelog ==
27
 
 
 
 
 
 
 
28
  = Version 2.0.1 =
29
 
30
  * Fixed: Parse error on older versions of PHP
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: 2.0.2
6
  Depends on: 4.3
7
  Framework: 2.0
8
  Tags: smartphone
25
 
26
  == Changelog ==
27
 
28
+ = Version 2.0.2 =
29
+
30
+ * Added: Support for adding the featured post slider to a page
31
+ * Fixed: Missing translations for number of comments in the blog listing
32
+ * Fixed: Listings under related posts now show thumbnail if available instead of date
33
+
34
  = Version 2.0.1 =
35
 
36
  * Fixed: Parse error on older versions of PHP
themes/bauhaus/root-functions.php CHANGED
@@ -1,6 +1,6 @@
1
  <?php
2
 
3
- define( 'BAUHAUS_THEME_VERSION', '2.0.1' );
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' ) );
@@ -232,11 +232,11 @@ function bauhaus_body_classes( $classes ) {
232
  }
233
 
234
  if ( $settings->bauhaus_post_listing_view == 'default' ) {
235
- $classes[] = 'list-view';
236
  }
237
 
238
  if ( $settings->bauhaus_post_listing_view == 'carousel' && $settings->bauhaus_featured_carousel_enabled == false && $settings->bauhaus_popular_enabled == false ) {
239
- $classes[] = 'slider-latest-only';
240
  }
241
 
242
  return $classes;
@@ -244,7 +244,7 @@ function bauhaus_body_classes( $classes ) {
244
 
245
  function bauhaus_post_classes( $classes ) {
246
  $settings = bauhaus_get_settings();
247
-
248
  if ( $settings->bauhaus_use_thumbnails != 'none' ) {
249
  $classes[] = 'show-thumbs';
250
  } else {
@@ -566,6 +566,16 @@ function bauhaus_render_theme_settings( $page_options ) {
566
  '2.0',
567
  false,
568
  BAUHAUS_SETTING_DOMAIN
 
 
 
 
 
 
 
 
 
 
569
  )
570
  );
571
 
@@ -580,7 +590,7 @@ function bauhaus_render_theme_settings( $page_options ) {
580
  array_merge( array( 'Select Post Type' ), wptouch_custom_posts_get_list() ),
581
  BAUHAUS_SETTING_DOMAIN
582
  );
583
-
584
  array_push( $bauhaus_featured_settings, $bauhaus_featured_post_type );
585
  }
586
 
@@ -593,7 +603,7 @@ function bauhaus_render_theme_settings( $page_options ) {
593
  BAUHAUS_SETTING_DOMAIN,
594
  true
595
  );
596
-
597
  wptouch_add_page_section(
598
  FOUNDATION_PAGE_GENERAL,
599
  __( 'Blog Layout', 'wptouch-pro' ),
@@ -744,4 +754,13 @@ function bauhaus_amp_show_taxonomy() {
744
  function bauhaus_theme_color() {
745
  $settings = bauhaus_get_settings();
746
  return $settings->bauhaus_header_color;
747
- }
 
 
 
 
 
 
 
 
 
1
  <?php
2
 
3
+ define( 'BAUHAUS_THEME_VERSION', '2.0.2' );
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' ) );
232
  }
233
 
234
  if ( $settings->bauhaus_post_listing_view == 'default' ) {
235
+ $classes[] = 'list-view';
236
  }
237
 
238
  if ( $settings->bauhaus_post_listing_view == 'carousel' && $settings->bauhaus_featured_carousel_enabled == false && $settings->bauhaus_popular_enabled == false ) {
239
+ $classes[] = 'slider-latest-only';
240
  }
241
 
242
  return $classes;
244
 
245
  function bauhaus_post_classes( $classes ) {
246
  $settings = bauhaus_get_settings();
247
+
248
  if ( $settings->bauhaus_use_thumbnails != 'none' ) {
249
  $classes[] = 'show-thumbs';
250
  } else {
566
  '2.0',
567
  false,
568
  BAUHAUS_SETTING_DOMAIN
569
+ ),
570
+ wptouch_add_setting(
571
+ 'list',
572
+ 'featured_slider_page',
573
+ __( 'Featured Slider Page', 'wptouch-pro' ),
574
+ __( 'Choose which page should display the featured slider', 'wptouch-pro' ),
575
+ WPTOUCH_SETTING_BASIC,
576
+ '2.0',
577
+ bauhaus_get_page_list(),
578
+ BAUHAUS_SETTING_DOMAIN
579
  )
580
  );
581
 
590
  array_merge( array( 'Select Post Type' ), wptouch_custom_posts_get_list() ),
591
  BAUHAUS_SETTING_DOMAIN
592
  );
593
+
594
  array_push( $bauhaus_featured_settings, $bauhaus_featured_post_type );
595
  }
596
 
603
  BAUHAUS_SETTING_DOMAIN,
604
  true
605
  );
606
+
607
  wptouch_add_page_section(
608
  FOUNDATION_PAGE_GENERAL,
609
  __( 'Blog Layout', 'wptouch-pro' ),
754
  function bauhaus_theme_color() {
755
  $settings = bauhaus_get_settings();
756
  return $settings->bauhaus_header_color;
757
+ }
758
+
759
+ function bauhaus_get_page_list() {
760
+ $contents = get_pages();
761
+ $pages = array( 'Select&hellip;' );
762
+ foreach ( $contents as $page ) {
763
+ $pages[ $page->ID ] = $page->post_title;
764
+ }
765
+ return $pages;
766
+ }
wptouch.php CHANGED
@@ -2,7 +2,7 @@
2
  /*
3
  Plugin Name: WPtouch Mobile Plugin
4
  Plugin URI: http://www.wptouch.com/
5
- Version: 4.3.3
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.3.3' );
18
 
19
  define( 'WPTOUCH_BASE_NAME', basename( __FILE__, '.php' ) . '.php' );
20
  define( 'WPTOUCH_DIR', WP_PLUGIN_DIR . DIRECTORY_SEPARATOR . basename( __FILE__, '.php' ) );
2
  /*
3
  Plugin Name: WPtouch Mobile Plugin
4
  Plugin URI: http://www.wptouch.com/
5
+ Version: 4.3.4
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.3.4' );
18
 
19
  define( 'WPTOUCH_BASE_NAME', basename( __FILE__, '.php' ) . '.php' );
20
  define( 'WPTOUCH_DIR', WP_PLUGIN_DIR . DIRECTORY_SEPARATOR . basename( __FILE__, '.php' ) );