diff --git a/CHANGELOG.md b/CHANGELOG.md index 687ceea..49697cd 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,9 @@ +## 1.3.8 + +Implemented Method v1.3.8 changes. + +--- + ## 1.3.7 This release implements Method v1.3.7 changes and includes minor code optimizations. diff --git a/build b/build index 89e1a3c..18bfb28 160000 --- a/build +++ b/build @@ -1 +1 @@ -Subproject commit 89e1a3c5891a1a5f3a438d213f84e708aa391275 +Subproject commit 18bfb28fd0a96e89260ca55b059baefb50f0e128 diff --git a/njk/assets/lib/cmb2-helper-functions.php b/njk/assets/lib/cmb2-helper-functions.php index 7ab494b..d70c694 100644 --- a/njk/assets/lib/cmb2-helper-functions.php +++ b/njk/assets/lib/cmb2-helper-functions.php @@ -4,6 +4,24 @@ // CMB2 HELPER FUNCTIONS //====================================================================== +function {{globals.code_prefix}}cmb2_tinymce_options( $temp, $class = '' ) { + $output = array(); + if ( ! empty( $class ) ) { + $output['tinymce']['body_class'] = $class; + } + switch ( $temp ) { + case 'minimal': + $output['media_buttons'] = false; + $output['textarea_rows'] = 8; + $output['teeny'] = true; + break; + default: + // code... + break; + } + return $output; +} + /** * Include metabox only on the default page template (page.php). Heavily based of Ed Townend's front-page solution * @author Rob Clark diff --git a/njk/assets/lib/theme-customization.php b/njk/assets/lib/theme-customization.php index 019e839..5184f7c 100644 --- a/njk/assets/lib/theme-customization.php +++ b/njk/assets/lib/theme-customization.php @@ -75,6 +75,8 @@ function {{globals.code_prefix}}register_theme_options_metabox() { 'instagram' => esc_attr__( 'Instagram', '{{globals.code_textdomain}}' ), 'pinterest' => esc_attr__( 'Pinterest', '{{globals.code_textdomain}}' ), 'youtube' => esc_attr__( 'YouTube', '{{globals.code_textdomain}}' ), + 'twitch' => esc_attr__( 'Twitch', '{{globals.code_textdomain}}' ), + 'tiktok' => esc_attr__( 'TikTok', '{{globals.code_textdomain}}' ), ), ) ); diff --git a/njk/templates/_globals-defaults.html b/njk/templates/_globals-defaults.html index 046cf2a..b59554b 100644 --- a/njk/templates/_globals-defaults.html +++ b/njk/templates/_globals-defaults.html @@ -10,7 +10,7 @@ {% set theme_name = "Method" %} {% set theme_uri = "https://github.com/pixelwatt/method" %} {% set theme_description = "A barebones foundation for custom theme development." %} -{% set theme_version = "1.3.7" %} +{% set theme_version = "1.3.8" %} {% set theme_license = "GNU General Public License v2 or later" %} {% set theme_author = "Rob Clark" %} {% set theme_author_uri = "https://robclark.io/" %}