🍬 WordPress child theme for Septera and Bravada https://habd.as/site/chicago-gang-history-iii/
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

62 lines
2.2 KiB

<?php
/**
* Footer Hook for Bravada
*/
function valkyrie_master_footer() {
$the_theme = wp_get_theme();
do_action( 'cryout_footer_hook' );
echo '<div style="display:block; margin: 0.5em auto;">' . __( "Powered by", "bravada" ) .
'<a target="_blank" href="' . esc_html( $the_theme->get( 'ThemeURI' ) ) . '" title="';
echo 'Valkyrie WordPress Child Theme for Bravada by ' . 'Comfusion"> ' . 'Valkyrie' .'</a> &amp; <a target="_blank" href="' . "https://habd.as/";
echo '" title="' . esc_attr__( "Please use the shiny responsively", "bravada") . '"> ' . sprintf( " %s", "habd.as" ) . '</a>.</div>';
}
function override_parent_actions () {
remove_action( 'cryout_master_footerbottom_hook', 'bravada_master_footer' );
add_action( 'cryout_master_footerbottom_hook', 'valkyrie_master_footer' );
}
add_action( 'init', 'override_parent_actions' );
/**
* Body Open Hook into WordPress Core
* @see {https://make.wordpress.org/themes/2019/03/29/addition-of-new-wp_body_open-hook/}
*/
function valkyrie_master_body_open () { ?>
<!-- Miles to Go Before I Sleep -->
<?php }
// add_action( 'wp_body_open', 'valkyrie_master_body_open' );
/**
* Head Hook into WordPress Core
*/
function valkyrie_master_header () { ?>
<!-- Improve visitor privacy -->
<meta name="referrer" content="same-origin">
<!-- Auto ads - Google AdSense -->
<script data-ad-client="ca-pub-XXXXXXXXXX" async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
<!-- Global site tag (gtag.js) - Google Analytics -->
<script async src="https://www.googletagmanager.com/gtag/js?id=G-XXXXXXXXXX"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'G-XXXXXXXXXX');
</script>
<?php }
add_action( 'wp_head', 'valkyrie_master_header' );
/**
* Enable Page excerpts
*
* When Pages are used as Featured Icon Blocks page excerpts
* allow more control over content presented to users. Once added,
* excerpt content cannot be edited without this via WP Admin.
*
* Only show page excerpts on the homepage.
*
* @return void
*/
function enable_page_excerpt () {
add_post_type_support( 'page', array( 'excerpt' ) );
}
add_action( 'init', 'enable_page_excerpt' );