Exemplo n.º 1
0
 function avia_get_tracking_code()
 {
     global $avia_config;
     $avia_config['analytics_code'] = avia_option('analytics', false, false, true);
     if (empty($avia_config['analytics_code'])) {
         return;
     }
     if (strpos($avia_config['analytics_code'], 'UA-') === 0) {
         $avia_config['analytics_code'] = "\n\t\t\t\n<script>\n(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){ (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)})(window,document,'script','//www.google-analytics.com/analytics.js','ga');\nga('create', '" . $avia_config['analytics_code'] . "', 'auto');\nga('send', 'pageview');\n</script>\n";
     }
     if (strpos($avia_config['analytics_code'], 'i,s,o,g,r,a,m') !== false) {
         add_action('wp_head', 'avia_print_tracking_code', 100000);
     } else {
         add_action('wp_footer', 'avia_print_tracking_code', 100000);
     }
 }
Exemplo n.º 2
0
<!-- page title, displayed in your browser bar -->
<title><?php 
if (function_exists('avia_set_title_tag')) {
    echo avia_set_title_tag();
}
?>
</title>


<!-- add feeds, pingback and stuff-->
<link rel="profile" href="http://gmpg.org/xfn/11" />
<link rel="alternate" type="application/rss+xml" title="<?php 
echo get_bloginfo('name');
?>
 RSS2 Feed" href="<?php 
avia_option('feedburner', get_bloginfo('rss2_url'));
?>
" />
<link rel="pingback" href="<?php 
bloginfo('pingback_url');
?>
" />


<!-- mobile setting -->
<?php 
if (strpos($responsive, 'responsive') !== false) {
    echo '<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">';
}
?>
Exemplo n.º 3
0
 function avia_get_tracking_code()
 {
     global $avia_config;
     $avia_config['analytics_code'] = avia_option('analytics', false, false, true);
     if (empty($avia_config['analytics_code'])) {
         return;
     }
     if (strpos($avia_config['analytics_code'], 'UA-') === 0) {
         $avia_config['analytics_code'] = "\n\n<script type='text/javascript'>\n\n  var _gaq = _gaq || [];\n  _gaq.push(['_setAccount', '" . $avia_config['analytics_code'] . "']);\n  _gaq.push(['_trackPageview']);\n\n  (function() {\n    var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;\n    ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';\n    var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);\n  })();\n\n</script>\n\n";
     }
     if (strpos($avia_config['analytics_code'], '_gaq.push') !== false) {
         add_action('wp_head', 'avia_print_tracking_code');
     } else {
         add_action('wp_footer', 'avia_print_tracking_code');
     }
 }
Exemplo n.º 4
0
bloginfo('stylesheet_url');
?>
" />
<link rel="stylesheet" href="<?php 
echo get_bloginfo('template_url');
?>
/js/prettyPhoto/css/prettyPhoto.css" type="text/css" media="screen"/>
<link rel="stylesheet" href="<?php 
echo get_bloginfo('template_url');
?>
/js/projekktor/theme/style.css" type="text/css" media="screen"/>
<link rel="stylesheet" href="<?php 
echo get_bloginfo('template_url');
?>
/css/<?php 
avia_option('stylesheet', 'minimal-skin.css');
?>
" type="text/css" media="screen"/>
<link rel="stylesheet" href="<?php 
echo get_bloginfo('template_url');
?>
/css/shortcodes.css" type="text/css" media="screen"/>
<link rel="stylesheet" href="<?php 
echo get_bloginfo('template_url');
?>
/css/slideshow.css" type="text/css" media="screen"/>
<link rel="icon" type="image/png" href="<?php 
bloginfo('url');
?>
/wp-content/uploads/2013/01/kae-favicon.png" />
Exemplo n.º 5
0
				<style type="text/css" class='bg_fullscreen_ie_rule'>
				body {
				-ms-filter:"progid:DXImageTransform.Microsoft.AlphaImageLoader(src='<?php 
    echo $image;
    ?>
', sizingMethod='scale')";
				filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src='<?php 
    echo $image;
    ?>
', sizingMethod='scale');
				}
				</style>
				<![endif]-->
			<?php 
    echo "<div class='bg_container' style='background-image:url(" . avia_get_option('bg_image') . ");'></div>";
}
?>
		

<?php 
/* Always have wp_footer() just before the closing </body>
 * tag of your theme, or you will break many plugins, which
 * generally use this hook to reference JavaScript files.
 */
avia_option('analytics', false, true, true);
wp_footer();
?>
</div>

</body>
</html>