Beispiel #1
0
}
?>
</div>
<div class="clear"></div>

<?php 
cs()->registerScriptFile(sbu('libs/kindeditor/kindeditor-min.js'), CClientScript::POS_END);
cs()->registerScriptFile(sbu('libs/kindeditor/config.js'), CClientScript::POS_END);
?>

<script type="text/javascript">
$(function(){
	$('#post-title').focus();
    KindEditor.ready(function(K) {
    	var cssurl = '<?php 
echo tbu('styles/beta-all.css');
?>
';
    	var imageUploadUrl = '<?php 
echo aurl('upload/image');
?>
';
    	KEConfig.mini.cssPath = [cssurl];
    	KEConfig.mini.uploadJson = imageUploadUrl;
        KEConfig.common.cssPath = [cssurl];
        KEConfig.common.uploadJson = imageUploadUrl;
    	var betaSummary = K.create('#beta-summary', KEConfig.mini);
    	var betaContent = K.create('#beta-content', KEConfig.common);
    	$('#post-form').on('submit', {content:betaContent}, BetaPost.create);

    	$(document).on('click', '.temp-pictures li', function(event){
Beispiel #2
0
?>
</p>
        <p><?php 
echo t('site_content_share_announce');
?>
&nbsp;&copy;2012&nbsp;<?php 
echo app()->name;
?>
&nbsp;<?php 
echo param('beian_code');
?>
</p>
        <p>Powered by <a href="http://www.24beta.com/" target="_blank">24beta.com</a></p>
    </div>
</div>
<a class="beta-backtop" href="#top"><?php 
echo t('return_top');
?>
</a>
<?php 
echo param('footer_after_html');
echo param('tongji_code');
?>
</body>
</html>

<?php 
cs()->registerCoreScript('jquery');
cs()->registerScriptFile(sbu('libs/bootstrap/js/bootstrap.min.js'), CClientScript::POS_END);
cs()->registerScriptFile(tbu('scripts/beta-main.js'), CClientScript::POS_END);