Exemplo n.º 1
0
/fonts/font-awesome/font-awesome.css"  media="all" />
<link rel="pingback" href="<?php 
bloginfo('pingback_url');
?>
" />
<!-- IE Fix for HTML5 Tags -->
  <!--[if lt IE 9]>
    <script src="<?php 
echo get_template_directory_uri();
?>
/includes/js/html5.js"></script>
  <![endif]-->
<!-- 引入主题js -->
<?php 
wp_enqueue_script('tinection');
wp_localize_script('tinection', 'tin', array('ajax_url' => admin_url('admin-ajax.php'), 'tin_url' => get_bloginfo('template_directory'), 'Tracker' => tin_tracker_param(), 'home' => get_bloginfo('url')));
?>
</head>
<body id="wrap" <?php 
body_class();
?>
>
<!-- Float Banner -->
<?php 
$floatad = ot_get_option('floatad');
if (!empty($floatad)) {
    ?>
	<?php 
    echo ot_get_option('floatad');
}
?>
Exemplo n.º 2
0
/includes/js/sgallery-plugins.js"></script>
<script type="text/javascript" src="<?php 
bloginfo('template_directory');
?>
/includes/js/sgallery.js"></script>
<script>
$(function(){
	$('#gallery-container').sGallery({
		fullScreenEnabled: true
	});
});
</script>
<script type="text/javascript">
/* <![CDATA[ */
var tin = {"ajax_url":"<?php 
echo admin_url('/admin-ajax.php');
?>
","tin_url":"<?php 
echo get_bloginfo('template_directory');
?>
","Tracker":<?php 
echo json_encode(tin_tracker_param());
?>
,"home":"<?php 
echo get_bloginfo('url');
?>
"};
/* ]]> */
</script>
<?php 
get_footer('simple');
Exemplo n.º 3
0
function tin_js_objects()
{
    $objects = array();
    $objects['ajax_url'] = admin_url('admin-ajax.php');
    $objects['tin_url'] = get_bloginfo('template_directory');
    $objects['Tracker'] = tin_tracker_param();
    $objects['uid'] = get_current_user_id();
    $objects_json = json_encode($objects);
    return $objects_json;
}
Exemplo n.º 4
0
<script type="text/javascript" id="bdshare_js" data="type=tools&mini=2"></script>
<script type="text/javascript" id="bdshell_js"></script>
<script type="text/javascript">
		//在这里定义bds_config
		var bds_config = {'snsKey':{'tsina':"<?php 
echo ot_get_option('tin_open_weibo_key', '2884429244');
?>
",'tqq':"<?php 
echo ot_get_option('tin_open_qq_id', '101166664');
?>
"}};
		document.getElementById('bdshell_js').src = "http://bdimg.share.baidu.com/static/js/shell_v2.js?cdnversion=" + Math.ceil(new Date()/3600000);
</script>
<!-- 引入用户自定义代码 -->
<?php 
if (ot_get_option('footercode')) {
    echo ot_get_option('footercode');
}
?>
<!-- 引入主题js -->
<?php 
wp_enqueue_script('xiapistudio');
wp_localize_script('xiapistudio', 'tin', array('ajax_url' => admin_url('admin-ajax.php'), 'tin_url' => get_bloginfo('template_directory'), 'Tracker' => tin_tracker_param(), 'uid' => get_current_user_id()));
wp_footer();
?>
<!-- /.Footer -->
<script type="text/javascript">
	$('.site_loading').animate({'width':'100%'},50);  //第五个节点
</script>
</body>
</html>