Skip to content

Commit

Permalink
v1.4.2 changes
Browse files Browse the repository at this point in the history
  • Loading branch information
pixelwatt committed Oct 23, 2023
1 parent 63ae57e commit 844c076
Show file tree
Hide file tree
Showing 5 changed files with 24 additions and 2 deletions.
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
## 1.4.2

Changes:
* ( build/ ) Updated to Method v1.4.2

---

## 1.4.0

Changes:
Expand Down
2 changes: 1 addition & 1 deletion build
4 changes: 4 additions & 0 deletions njk/assets/lib/cmb2-helper-functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,10 @@ function {{globals.code_prefix}}cmb2_tinymce_options( $temp, $class = '' ) {
$output['textarea_rows'] = 8;
$output['teeny'] = true;
break;
case 'no-media':
$output['media_buttons'] = false;
$output['textarea_rows'] = 8;
break;
default:
// code...
break;
Expand Down
11 changes: 11 additions & 0 deletions njk/assets/lib/theme-setup.php
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,17 @@ function {{globals.code_prefix}}scripts() {
add_action( 'wp_enqueue_scripts', '{{globals.code_prefix}}scripts' );


//-----------------------------------------------------
// Set option key for Method_Utility class
//-----------------------------------------------------

function {{globals.code_prefix}}method_utility_option_key_callback( $string ) {
// (maybe) modify $string.
return '{{globals.code_prefix}}options';
}
add_filter( 'method_utility_option_key', '{{globals.code_prefix}}method_utility_option_key_callback', 10, 1 );


//-----------------------------------------------------
// Configure required plugins
//-----------------------------------------------------
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "method-generator",
"version": "1.4.0",
"version": "1.4.2",
"description": "This project allows you to rapidly create custom builds of the Method theme using Gulp and Nunjucks.",
"main": "index.js",
"scripts": {
Expand Down

0 comments on commit 844c076

Please sign in to comment.