This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
;(function (global, factory) { | |
if (typeof define === "function" && define.amd) { | |
define(["module", "exports"], factory) | |
} else if (typeof exports !== "undefined") { | |
factory(module, exports) | |
} else { | |
const mod = { exports: {} } | |
factory(mod, mod.exports) | |
global.WOW = mod.exports | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Gutenberg Block customization for this theme. | |
*/ | |
// gutenberg disable for posts | |
//add_filter('use_block_editor_for_post', '__return_false', 10); | |
// gutenberg disable for post types | |
//add_filter('use_block_editor_for_post_type', '__return_false', 10); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
function generate_css_from_theme_settings() { | |
if ( !function_exists('wp_get_global_settings') ) { | |
return new WP_Error('missing_function', 'wp_get_global_settings() is missing'); | |
} | |
$colors = wp_get_global_settings(); | |
$colors = $colors['color']['palette']['theme']; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if ( ! function_exists( 'separator_hookr' ) ) { | |
add_filter( 'render_block_core/separator', 'separator_hookr', null, 2 ); | |
/** | |
* separator_hookr | |
* | |
* Method to add hooks using core/separator block | |
* seperator block must have a trigger class name of wps-action-hook | |
* followed by the desired hook name. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Output embedded videos | |
* wraps embed in Bootstrap Markup | |
* Pod field is repeatable "oembed" named video_url | |
* @example embeded_videos($user->ID); | |
* @param [type] $user as object ID | |
*/ | |
function embeded_videos($user) | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Theme Customizer enhancements for a better user experience. | |
* | |
* Contains handlers to make Theme Customizer preview reload changes asynchronously. | |
* $deselector to exclude elements with var | |
*/ | |
function osq_classes_live_update( id, classes, selector, deselector, prefix ) { | |
classes = typeof classes !== 'undefined' ? classes : ''; | |
prefix = typeof prefix !== 'undefined' ? prefix : ''; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
( function ( api ) { | |
'use strict'; | |
function osq_hide_controls( id, target, option ) { | |
target = typeof target !== 'undefined' ? target : ''; | |
option= typeof option !== 'undefined' ? option : ''; | |
api( 'osq_settings[' + id + ']', function ( setting ) { | |
var linkSettingValueToControlActiveState; | |
/** | |
* Update a control's active state according to the setting's value. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Putting this here for reference in case others need to accomplish similar. This creates | |
a new archives widget and adds some settings for bootstrap classes then apply's them | |
with a couple filters. | |
*/ | |
/** | |
* Widget API: WP_Widget_Archives class | |
* | |
* @package WordPress |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Post API: Walker_Page class | |
* | |
* @package ClassicPress | |
* @subpackage Template | |
* @since WP-4.4.0 | |
* | |
* Modified for Bootstrap 5 List Group with Accordian |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Function for recreating BuddyPress pagination with BootStrap 5 markup | |
* | |
* @package SystemPress | |
*/ | |
// Exit if accessed directly. | |
defined('ABSPATH') || exit; |
NewerOlder