| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104 | 
							- <?php /* Smarty version 2.6.17, created on 2018-05-29 15:03:54
 
-          compiled from events_article.html */ ?>
 
- <?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
 
- smarty_core_load_plugins(array('plugins' => array(array('modifier', 'date_format', 'events_article.html', 14, false),)), $this); ?>
 
- <?php $_smarty_tpl_vars = $this->_tpl_vars;
 
- $this->_smarty_include(array('smarty_include_tpl_file' => "header.html", 'smarty_include_vars' => array()));
 
- $this->_tpl_vars = $_smarty_tpl_vars;
 
- unset($_smarty_tpl_vars);
 
-  ?>
 
- <?php $_smarty_tpl_vars = $this->_tpl_vars;
 
- $this->_smarty_include(array('smarty_include_tpl_file' => "nav.html", 'smarty_include_vars' => array()));
 
- $this->_tpl_vars = $_smarty_tpl_vars;
 
- unset($_smarty_tpl_vars);
 
-  ?>
 
- <style>
 
- .praise {cursor: pointer;}
 
- </style>
 
- <!--公用标题居中显示-->
 
- <?php $_smarty_tpl_vars = $this->_tpl_vars;
 
- $this->_smarty_include(array('smarty_include_tpl_file' => "common_header.html", 'smarty_include_vars' => array()));
 
- $this->_tpl_vars = $_smarty_tpl_vars;
 
- unset($_smarty_tpl_vars);
 
-  ?>
 
- <div class="wrapper clear">    
 
-     <div class="arti_body">    
 
-         <div class="arti_title"><?php echo $this->_tpl_vars['article']['article_title']; ?>
 
- </div>            
 
-         <div class="arti_info">
 
-         	<span><?php echo ((is_array($_tmp=$this->_tpl_vars['article']['begin_time'])) ? $this->_run_mod_handler('date_format', true, $_tmp, '%Y-%m-%d') : smarty_modifier_date_format($_tmp, '%Y-%m-%d')); ?>
 
- </span><span><?php if ($this->_tpl_vars['article']['article_author']): ?>作者:<?php echo $this->_tpl_vars['article']['article_author']; ?>
 
- <?php endif; ?></span>
 
-         </div>
 
-         <div class="arti_content clear"><?php echo $this->_tpl_vars['article']['article_text']; ?>
 
- </div>
 
-         
 
-         <div class="clear"></div>
 
- 	    <div class="vogue_read"><?php if ($this->_tpl_vars['article']['article_original_url']): ?><a href="<?php echo $this->_tpl_vars['article']['article_original_url']; ?>
 
- ">阅读原文</a> <?php endif; ?>阅读 <?php echo $this->_tpl_vars['clickNum']; ?>
 
-  <span class="praise"><i class="fa <?php if ($this->_tpl_vars['isHasLikes']): ?>fa-thumbs-up<?php else: ?>fa-thumbs-o-up<?php endif; ?>"></i> <em><?php echo $this->_tpl_vars['likes']; ?>
 
- </em></span></div>
 
- 	    <div class="clear"></div>
 
-     </div>
 
- </div>
 
- <input name="events_id" type="hidden" value="<?php echo $this->_tpl_vars['article']['id']; ?>
 
- "/>
 
- <script>
 
- KISSY.use('node, io', function (S, Node, IO) {
 
- 	var $ = S.all;
 
- 	
 
- 	//视频自适应
 
- 	var screenWidth = $(window).width();
 
- 	var baseWidth = 510;
 
- 	var video_scale = screenWidth / baseWidth;
 
- 	$(".video_iframe").each(function () {
 
- 		var new_width = $(this).width() * video_scale;
 
- 		$(this).width(new_width - 20);
 
- 		var new_height = $(this).height() * video_scale;
 
- 		$(this).height(new_height - 20);
 
- 	});
 
- 	
 
- 	$('.vogue_add_btn').on('click', function() {
 
- 		$('#add_tips').show();
 
- 	});
 
- 	
 
- 	$('.add_join_btn').on('click', function () {
 
- 		$('#add_tips').hide();
 
- 	});
 
- 	
 
- 	$(".praise").on('click', function () {
 
- 		var num = $('em', $(this)).text();
 
- 		if ($('i', $(this)).hasClass('fa-thumbs-up')) { //已赞过
 
- 			$('em', $(this)).text(--num);
 
- 			submit(2);
 
- 			$('i', $(this)).replaceClass('fa-thumbs-up', 'fa-thumbs-o-up');
 
- 		} else { //未赞过
 
- 			$('em', $(this)).text(++num);
 
- 			submit(1);
 
- 			$('i', $(this)).replaceClass('fa-thumbs-o-up', 'fa-thumbs-up');
 
- 		}
 
- 	});
 
- 	
 
- 	function submit(type) {
 
- 		var events_id = $("input[name=events_id]").val();
 
- 		new IO({
 
- 			type: "post"
 
- 			, url: VG.conf.root_domain + '/?c=EventsArticle&a=Likes'
 
- 			, data: {'events_id':events_id, 'type': type}
 
- 			, success: function (data) {}
 
- 			, error: function (NULL, textStatus) {
 
- 				alert("请求服务器失败,原因:"+textStatus);
 
- 			}
 
- 			, dataType: "json"
 
- 		});
 
- 	}
 
- });
 
- </script>
 
- <?php $_smarty_tpl_vars = $this->_tpl_vars;
 
- $this->_smarty_include(array('smarty_include_tpl_file' => "bottom.html", 'smarty_include_vars' => array()));
 
- $this->_tpl_vars = $_smarty_tpl_vars;
 
- unset($_smarty_tpl_vars);
 
-  ?>
 
 
  |