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
<script> | |
$ModalvideoID = 'mV7KeHRu6os'; | |
$width = '450'; | |
$height = '283'; | |
function modalAutoPlayVideo(vcode, width, height){ | |
"use strict"; | |
jQuery(".ult_modal-body.ult-youtube").html('<iframe width="'+width+'" height="'+height+'" src="https://www.youtube.com/embed/'+vcode+'?autoplay=1&loop=1&rel=0&wmode=transparent" frameborder="0" allowfullscreen wmode="Opaque"></iframe>'); | |
} |
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 | |
/** | |
* CLASS_NAME setup | |
* | |
* @since 1.0 | |
*/ | |
class CLASS_NAME { | |
private static $instance; |
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
#!/bin/sh | |
sed -i.default "s/^zend_extension=/;zend_extension=/" /usr/local/etc/php/7.1/conf.d/ext-xdebug.ini | |
launchctl unload ~/Library/LaunchAgents/homebrew.mxcl.php71.plist | |
launchctl load ~/Library/LaunchAgents/homebrew.mxcl.php71.plist | |
sudo brew services restart php71 | |
echo "xdebug disabled" |
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 // don't copy this line in your code. | |
add_action('init', 'your_prefix_setup_actions' ); | |
function your_prefix_setup_actions() { | |
remove_action( 'astra_masthead_content', 'astra_site_branding_markup', 8 ); | |
add_action( 'astra_masthead_content', 'your_prefix_header_markup', 8 ); | |
} | |
function your_prefix_header_markup() { |
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 // don't copy this line in your code | |
/** | |
* Display only last modified date in the post metadata. | |
* | |
* @param String $output Markup for the last modified date. | |
* @return void | |
*/ | |
function your_prefix_post_date( $output ) { | |
$output = ''; |
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 | |
/** | |
* Enqueue styles | |
*/ | |
function astra_bb_custom_layout_styles_in_head() { | |
if ( ! is_callable( 'FLBuilder::enqueue_layout_styles_scripts_by_id' ) ) { | |
return; | |
} |
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 to change the Next Post/ Previous post text. | |
* | |
* @param array $args Arguments for next post / previous post links. | |
* @return array | |
*/ | |
function astra_change_next_prev_text( $args ) { | |
$next_post = get_next_post(); |
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 // don't add this line to your file. | |
add_filter( 'astra_schema_body', '__return_empty_string' ); | |
add_filter( | |
'astra_attr_post-meta-author', | |
function( $attr ) { | |
unset( $attr['itemprop'] ); | |
unset( $attr['itemscope'] ); | |
unset( $attr['itemtype'] ); |