public function wp_default_scripts($scripts)
 {
     $scripts->remove('common');
     $scripts->remove('translations-page');
     $scripts->add('common', gp_url_base_root() . 'plugins/child-theme/templates/js/common.js', array('jquery'), self::version);
     $scripts->add('translations-page', gp_url_base_root() . 'plugins/child-theme/templates/js/translations-page.js', array('common'), self::version);
     $scripts->add('bootstrap', gp_url_base_root() . 'plugins/child-theme/templates/js/bootstrap.min.js', array('jquery'), self::bootstrap_version);
 }
Esempio n. 2
0
<head>
	<meta http-equiv="Content-type" content="text/html; charset=utf-8" />
	<meta name="viewport" content="width=device-width">
	<title><?php 
echo gp_title();
?>
</title>

	<!-- HTML5 shim and Respond.js IE8 support of HTML5 elements and media queries -->
	<!--[if lt IE 9]>
		<script src="<?php 
echo gp_url_base_root();
?>
plugins/child-theme/templates/js/html5shiv.js" defer></script>
		<script src="<?php 
echo gp_url_base_root();
?>
plugins/child-theme/templates/js/respond.js" defer></script>
	<![endif]-->

	<?php 
gp_head();
?>

</head>

<body <?php 
body_class();
?>
>
	<script type="text/javascript">document.body.className = document.body.className.replace('no-js','js');</script>
Esempio n. 3
0
function gp_url_public_root()
{
    return gp_const_get('GP_URL', gp_url_base_root());
}