-
Notifications
You must be signed in to change notification settings - Fork 41
Expand file tree
/
Copy pathpage.php
More file actions
30 lines (27 loc) · 959 Bytes
/
Copy pathpage.php
File metadata and controls
30 lines (27 loc) · 959 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
<?php if (!defined('__TYPECHO_ROOT_DIR__')) exit;
?>
<?php $this->need('compoment/head.php');?>
<?php $this->need('pages/page.php'); ?>
<script>
articleCid=<?php echo $this->cid;?>;
articleType= 'page';
function addPostView(){if (typeof articleCid != 'undefined' && articleCid) $.post('/',{postview:articleCid,postType:articleType},function (res) {articleCid='';
$('#ahot').html(res.data);
})}
function addPostEditBtn(){
$.post('<?php getIsLogin(); ?>',{action:'find'},function (res) {
res = JSON.parse(res);
switch(res.code){
case 1 :
$('#editbtn').show();
break;
}
})
}
$(function(){addPostView();addPostEditBtn();})
</script>
<?php if(Bsoptions('AIService') == true && Bsoptions('AIService_Key') !== ''): ?>
<script src="<?php AssetsDir();?>assets/vendors/aiTool/ai.min.js"></script>
<?php endif;?>
<?php $this->need('compoment/sidebar.php'); ?>
<?php $this->need('compoment/foot.php'); ?>