Skip to content

Commit

Permalink
Method v1.3.8 changes
Browse files Browse the repository at this point in the history
  • Loading branch information
pixelwatt committed Jul 22, 2022
1 parent 612582e commit c473f6c
Show file tree
Hide file tree
Showing 5 changed files with 28 additions and 2 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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.
Expand Down
2 changes: 1 addition & 1 deletion build
Submodule build updated 224 files
18 changes: 18 additions & 0 deletions njk/assets/lib/cmb2-helper-functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 2 additions & 0 deletions njk/assets/lib/theme-customization.php
Original file line number Diff line number Diff line change
Expand Up @@ -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}}' ),
),
)
);
Expand Down
2 changes: 1 addition & 1 deletion njk/templates/_globals-defaults.html
Original file line number Diff line number Diff line change
Expand Up @@ -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/" %}
Expand Down

0 comments on commit c473f6c

Please sign in to comment.