|
|
@ -555,9 +555,10 @@
|
|
|
|
if ($information->ic_photo && $show_photo_meta !== 'no') {
|
|
|
|
if ($information->ic_photo && $show_photo_meta !== 'no') {
|
|
|
|
$amp_photo = $this->config->item('site_image_url').$information->ic_photo;
|
|
|
|
$amp_photo = $this->config->item('site_image_url').$information->ic_photo;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
$amp_build_url = "/amp_app/?icid=".$information->ic_id."&is_path=".$information->is_path."&usr=".urlencode($amp_user['OPI_Name'])."&url=".urlencode($information->ic_url)."&photo=".urlencode($amp_photo)."&site=".urlencode($this->config->item('site_url'))."&imgurl=".urlencode($this->config->item('site_image_url'));
|
|
|
|
?>
|
|
|
|
?>
|
|
|
|
<?php if(is_series_site()){ ?>
|
|
|
|
<?php if(is_series_site()){ ?>
|
|
|
|
<label title="AMP页面编辑"><a href="/amp_app/?icid=<?php echo($information->ic_id); ?>&is_path=<?php echo($information->is_path); ?>&usr=<?php echo(urlencode($amp_user['OPI_Name'])); ?>&url=<?php echo(urlencode($information->ic_url)); ?>&photo=<?php echo(urlencode($amp_photo)); ?>&site=<?php echo(urlencode($this->config->item('site_url'))); ?>&imgurl=<?php echo(urlencode($this->config->item('site_image_url'))); ?>" target="_blank">AMP构建工具</a></label> |
|
|
|
|
<label title="AMP页面编辑"><a href="<?php echo($amp_build_url);?>" target="_blank">AMP构建工具</a></label> |
|
|
|
|
<?php } ?>
|
|
|
|
<?php } ?>
|
|
|
|
<?php if (get_meta($information->ic_id, 'AMP_STATUS') === '1') {?>
|
|
|
|
<?php if (get_meta($information->ic_id, 'AMP_STATUS') === '1') {?>
|
|
|
|
<label title="AMP页面编辑"><a href="<?php echo site_url('amp/edit/' . $information->ic_id); ?>" target="_blank"><i class="glyphicon glyphicon-flash"></i></a></label>
|
|
|
|
<label title="AMP页面编辑"><a href="<?php echo site_url('amp/edit/' . $information->ic_id); ?>" target="_blank"><i class="glyphicon glyphicon-flash"></i></a></label>
|
|
|
@ -1279,8 +1280,14 @@ foreach ($author_list as $author_item) {
|
|
|
|
if (editor.html() != '' && editor.text() == '') {
|
|
|
|
if (editor.html() != '' && editor.text() == '') {
|
|
|
|
alert('当前信息内容只包含空白标签,请在编辑器HTML界面把空白代码标签去掉再保存!');
|
|
|
|
alert('当前信息内容只包含空白标签,请在编辑器HTML界面把空白代码标签去掉再保存!');
|
|
|
|
return false;
|
|
|
|
return false;
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
//保存增加AMP判断 - lmr
|
|
|
|
|
|
|
|
<?php if (get_meta($information->ic_id, 'AMP_JSON') && get_meta($information->ic_id, 'AMP_STATUS')) {?>
|
|
|
|
|
|
|
|
var amp_confirm = window.confirm('\n检测到页面存在AMP版本,是否需要打开AMP编辑界面?\n\r注意:如果修改了PC端版本,那么同时也需要修改AMP版本。\n');
|
|
|
|
|
|
|
|
if (amp_confirm) {
|
|
|
|
|
|
|
|
window.open('<?php echo($amp_build_url);?>', '_blank');
|
|
|
|
}
|
|
|
|
}
|
|
|
|
;
|
|
|
|
<?php } ?>
|
|
|
|
if (information_check() != false) {
|
|
|
|
if (information_check() != false) {
|
|
|
|
submitForm('form_information_edit');
|
|
|
|
submitForm('form_information_edit');
|
|
|
|
}">保存修改</a>
|
|
|
|
}">保存修改</a>
|
|
|
|