增加AMP_BODY_PC_STATUS

hotfix/远程访问多媒体中心
lmrwork 7 years ago
parent 6237e3c419
commit 0c5924cebb

@ -538,17 +538,25 @@
}
$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()) {
if (get_meta($information->ic_id, 'AMP_BODY_PC_STATUS') == 'yes') {
$PcAmpChecked = 'checked';
} else {
$PcAmpChecked = '';
}
?>
<style type="text/css">#PcAmp{color:#069;cursor: pointer;}#PcAmp input{position: relative;top: 2px;}</style>
<label id="PcAmp">
<input type="checkbox"> PC端页面也使用构建工具发布
<input type="checkbox" <?php echo($PcAmpChecked); ?>>
PC端页面也使用构建工具发布
</label> |
<label title="AMP页面编辑">
<a href="<?php echo($amp_build_url); ?>" target="_blank"> AMP构建工具 </a>
</label> |
<script type="text/javascript">
$('#PcAmp input').on('change', function(){
var checked = $(this).is(':checked');
checked ? meta('save', '<?php echo $information->ic_id; ?>', 'AMP_BODY_PC_STATUS', 'yes') : meta('save', '246006647', 'AMP_BODY_PC_STATUS', 'no');
});
</script>
<?php } ?>

Loading…
Cancel
Save