Skip to content

Releases: pixelwatt/method

v1.4.4-prerelease

14 Feb 21:58
v1.4.4-prerelease
8270153
Compare
Choose a tag to compare
v1.4.4-prerelease Pre-release
Pre-release

Changes:

  • Added an early implementation of the new add_script() method to the Method layout class. This method allows for different blocks of js to be built out progressively over a page's buildout.
  • method_get_class() now has an argument for specifying whether output should be echoed or returned (default: $echo = false, meaning output is returned)
  • method_get_post_array() now accepts an array of post types, and a new $label argument was added (default: false). If set to true, the singular post type name for each post is displayed in parentheses after the post title.

v1.4.3

29 Nov 20:26
v1.4.3
7b9c8a4
Compare
Choose a tag to compare

v1.4.3 changes

  • Updated Bootstrap Icons to v1.11.2
  • FIX: Added missing str_replace_assoc() method to the Method_Utility class
  • Added ability to pass custom option key for social accounts being pulled (to support multiple groups of social accounts when needed),
  • Added Threads social icon support
  • Added Bluesky social icon support (using square-fill BS icon)
  • Updated Twitter icon to be the new X icon.
  • Added function to theme-setup.php for conditionally enabling the block editor (commented out by default)
  • Added function to theme-setup.php for conditionally enabling or disabling WordPress features (such as the built in editor or featured image) (commented out by default)

v1.4.2

23 Oct 18:29
v1.4.2
95d6aad
Compare
Choose a tag to compare

Changes:

  • ( lib/class-method-utility.php ) Added a new class, Method_Utility, for working with loaded post meta and theme options. This class is essentially a stripped-down version of Method_Layout, with its loaded meta and options methods. Meta must be loaded via the load_meta() method, while theme options are loaded automatically via __construct(). To set the correct options key for custom method builds, the method_utility_option_key filter is used. A callback is now included to set options keys in Method Generator v1.4.2.
  • ( lib/cmb2-helper-functions.php ) A "no-media" template is now available by default for the method_cmb2_tinymce_options() function

v1.4.0

07 Jul 17:10
v1.4.0
38ad077
Compare
Choose a tag to compare

Changes:

  • ( lib/class-method-layout.php ) Added new check_property() method for safely checking if object properties exist (in the same syntax as check_array_key())
  • Updated bundled Bootstrap to v5.3.0
  • Updated bundled Boostrap Icons to v1.10.5

v1.3.9

17 Feb 16:34
v1.3.9
Compare
Choose a tag to compare

Changes:

  • ( lib/class-method-layout.php ) Added new methods for loading and retrieving term meta: load_term_meta(), unload_term_meta(), get_loaded_term_meta()
  • ( lib/class-method-layout.php ) Added new property, loaded_term_meta, for storing term meta
  • ( lib/class-method-layout.php ) Added a new method, check_array_key(), for checking whether an array key exists. This essentially accomplishes the same end as check_key(), but is cleaner (no undefined errors) and has slightly different syntax. check_key() is still available, but should now be considered deprecated
  • ( lib/class-method-layout.php ) Refactored methods calling the check_key() method to use check_array_key() instead
  • ( lib/class-method-layout.php ) Added a new method, check_array(), for seeing if a specific key exists and is set in the first key of an indexed array
  • ( lib/class-method-layout.php ) Fixed an issue in the inject_bs_modal() method that could potentially trigger an undefined variable warning
  • ( lib/class-method-layout.php ) The build_page() and init_page() methods now set the 'is_front' key of the $attr property to false before evaluating whether it should be true, so that it always has a value

v1.3.8

22 Jul 08:26
v1.3.8
Compare
Choose a tag to compare

Changes:

  • Updated bundled Bootstrap to v5.2.0
  • Updated bundled Boostrap Icons to v1.9.1
  • ( lib/class-method-layout.php ) Added support for twitch and tiktok to the build_social_icons() method
  • ( lib/theme-customization.php ) Added twitch and tiktok as options when adding social media links
  • ( lib/cmb2-helper-functions.php ) Added a new function, method_cmb2_tinymce_options(), for quickly setting wysiwyg field options when creating CMB2 metabox options

v1.3.7

20 May 21:14
v1.3.7
996b065
Compare
Choose a tag to compare

Changes:

  • ( lib/admin-customization.php ) Markup for the format tags dialogue is now wrapped in a hidden, undisplayed div so that markup does not appear at the bottom of admin pages while admin js is loading.
  • ( lib/helper-functions.php ) The theme name has been prepended to the "full-width-outer-col" and "full-width-container" classes for consistency
  • ( theme.scss ) The class name "full-width-container" has been updated to "method-full-width-container"
  • ( inc/bootstrap-icons/ ) Updated bundled Bootstrap Icons to v1.8.2

No updates were made to lib/class-method-layout.php in this release.

v1.3.6

08 Apr 08:58
v1.3.6
Compare
Choose a tag to compare

Changes:

  • ( lib/class-method-layout.php ) Added new method, init_archive(), for initializing an archive template
  • ( lib/class-method-layout.php ) Added new method, init_search(), for initializing a search template (barebones)
  • ( lib/class-method-layout.php ) Added the ability to pass a custom CSS class ( $args['class'] ) and custom close button markup ( $args['button_html'] ) to the inject_bs_modal() method
  • ( lib/cmb2-metaboxes.php ) Removed all uses of $prefix from CMB2 metabox declarations
  • ( lib/helper-functions.php ) Added a new function, method_get_menus_array(), which returns an array of menus created using the menu editor, using the term_id as the key and name as the value
  • ( lib/theme-setup.php ) Changed the custom image size name (header_bg) to a new name that reflects its dimensions (method_1400_600)
  • ( style.css ) Added license

v1.3.5

02 Nov 21:53
v1.3.5
9d2fc56
Compare
Choose a tag to compare

Changes:

  • Updated bundled Bootstrap to v5.1.3
  • Updated bundled Boostrap Icons to v1.7.0
  • Updated bundled Jarallax to v1.12.8
  • Jarallax Video is now bundled with the theme, but not included in the gulpfile's scripts task (must be manually added if needed)
  • ( lib/class-method-layout.php ) Added additional format tags: [b]...[/b], which is shorthand for [strong]...[/strong]

v1.3.4

25 Sep 09:02
v1.3.4
16479bd
Compare
Choose a tag to compare

Changes:

  • ( lib/class-method-layout.php ) Implemented a new filter, 'method_format_tags', which can be used to add format tags to the array of format tags found in the format_tags() method.
  • ( lib/class-method-layout.php ) Added a new format tag, [bull], which is converted to <span class="method-bull">&bull;</span> by the format_tags() method.
  • ( lib/class-method-layout.php ) Added an optional $fallback argument to the get_meta(), get_loaded_meta(), and get_option() methods. If the requested key does not exist or is empty, the value of $fallback will be returned, if provided. Fallback values will not be processed in any way and support full html.
  • ( lib/admin-customization.php ) Added a new action, 'method_after_tags_dialog_html', which can be used to inject html into the bottom of the format tags dialog.