Skip to content

Releases: pixelwatt/method

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.

v1.3.3

16 Aug 22:09
v1.3.3
6b81c04
Compare
Choose a tag to compare

Changes:

  • ( lib/class-method-layout.php ) Fixed version number in file.
  • ( lib/class-method-layout.php ) Added a $fallback argument to the get_bg_inline_style() method. If provided, an inline style attribute will be generated for the fallback image path if building the attribute using an attachment id fails.
  • ( lib/class-method-layout.php ) Added format tags for underlined text ([u]...[/u]). CSS will have to be provided for this tag based on individual use cases. Text wrapped in this format tag will be wrapped in a span with the class "method-underlined"

v1.3.2

16 Jul 08:50
v1.3.2
78d9584
Compare
Choose a tag to compare

Changes:

  • ( lib/class-method-layout.php ) Fixed an issue in init_page() that could cause the post type to not be correctly set.
  • ( README.md ) Updated copy and linked to the new Method wiki.
  • Migrated to new theme branding.

v1.3.1

30 Jun 18:12
v1.3.1
65e7d89
Compare
Choose a tag to compare

Changes:

  • Bundled Bootstrap updated to v5.0.2
  • Bundled Bootstrap Icons updated to v1.5.0
  • Bundled Jarallax updated to v1.12.7

v1.3.0

24 May 09:42
v1.3.0
038e1cd
Compare
Choose a tag to compare

This release makes it possible to build layouts directly inside template files, while still being able to use the theme layout class for the header, footer, and any needed reusable components. It also includes new arguments for Method_Layout's inject_bs_modal() method and an upgraded Bootstrap release.

Changes:

  • ( lib/class-method-layout.php ) Added a new method, init_page(), for setting up the layout class from a template file. This method is intended to be used in the place of the build_layout() method, which requires all layout code to be contained within the theme's layout class. By default, the build_component(), get_header_markup(), and get_footer_markup() methods will only return markup from $this->html. Any added scripts or modals will be returned with get_footer_markup() when it is called. If you do no intend to call get_footer_markup(), pass the $standalone argument for init_page() as true. When set to true, build_component(), get_header_markup(), and get_footer_markup() will return merged output containing the contents of $this->html, $this->scripts, and $this->modals, resetting the contents of each every time one of the methods is called.
  • ( lib/class-method-layout.php ) Added a new method, build_component(), for building a single component contained within the theme layout class build_components() method.
  • ( lib/class-method-layout.php ) Added a new method, get_header_markup(), for returning the contents of the build_header() method.
  • ( lib/class-method-layout.php ) Added a new method, get_footer_markup(), for returning the contents of the build_footer() method.
  • ( lib/class-method-layout.php ) Added new methods (get_merged_markup(), reset_html(), and reset_markup()) for merging and resetting the contents of $this->html, $this->modals, and $this->scripts as needed.
  • ( lib/class-method-layout.php ) Added new arguments to the inject_bs_modal() method ('prepend_header', 'append_header', 'prepend_body', 'append_body') for appending and prepending markup to the modal-header and modal-body divs
  • ( lib/class-method-layout.php ) Added a new argument, 'return', to the inject_bs_modal() method to control whether modal markup is returned or added to the class modal attribute. By default, this argument is false.
  • ( lib/class-method-layout.php ) The following methods are now public and can be used outside of the theme layout class: get_meta(), get_serialized_meta(), get_headline(), get_content(), load_meta(), unload_meta(), get_loaded_meta(), get_serialized_loaded_meta(), get_loaded_headline(), get_loaded_content(), get_option(), get_headline_from_option(), get_content_from_option(), array_to_ul(), array_to_p(), format_tags(), format_headline(), check_key(), filter_content(), str_replace_assoc(), inject_modal(), inject_bs_modal(), get_bg_inline_style(), odd_or_even(), get_bs_icon_svg(), get_svg(), endsWith(), build_social_icons(), build_observer()
  • ( inc/bootstrap ) Bundled Bootstrap assets upgraded to Bootstrap v5.0.1