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
{ | |
"name": "sage", | |
"homepage": "https://roots.io/sage/", | |
"authors": [ | |
"Ben Word <[email protected]>" | |
], | |
"license": "MIT", | |
"private": true, | |
"dependencies": { | |
"bootstrap": "git://github.com/twbs/bootstrap.git#v4.0.0", |
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
{ | |
"dependencies": { | |
"main.js": { | |
"files": [ | |
"scripts/main.js" | |
], | |
"main": true | |
}, | |
"main.css": { | |
"files": [ |
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 assets | |
*/ | |
function assets() { | |
wp_enqueue_style('sage/css', Assets\asset_path('styles/main.css'), false, null); | |
if (is_single() && comments_open() && get_option('thread_comments')) { | |
wp_enqueue_script('comment-reply'); | |
} |
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
{ | |
"name": "sage", | |
"homepage": "https://roots.io/sage/", | |
"authors": [ | |
"Ben Word <[email protected]>" | |
], | |
"license": "MIT", | |
"private": true, | |
"dependencies": { | |
"bootstrap": "^4.1.0", |
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
add_filter( 'bricks/setup/control_options', function( $control_options ) { | |
$control_options['queryTypes']['reviews'] = esc_html__( 'WP Social Ninja Reviews', 'pixite-reviews' ); | |
return $control_options; | |
} ); | |
add_filter( 'bricks/query/run', function( $results, $query_obj ) { | |
if ( $query_obj->object_type !== 'reviews' ) { | |
return $results; | |
} | |