<div class="ds-thread" data-thread-key="<?php $this->cid(); ?> " data-title="<?php $this->title(); ?> " data-author-key="<?php $this->authorId(); ?> " data-url=<?php $this->permalink(); ?> "></div> <script type="text/javascript"> var duoshuoQuery = {short_name:"<?php echo trim(Duoshuo_Action::getOption('short_name')); ?> ",theme:"<?php echo $this->options->Duoshuo_theme ? $this->options->Duoshuo_theme : 'bluebox'; ?> "}; (function() { var ds = document.createElement("script"); ds.type = "text/javascript";ds.async = true; ds.src = "http://static.duoshuo.com/embed.js"; ds.charset = "UTF-8"; (document.getElementsByTagName("head")[0] || document.getElementsByTagName("body")[0]).appendChild(ds); })(); </script> <!-- Duoshuo Comment END --> </div><?php
<?php include 'header.php'; include 'menu.php'; $short_name = trim(Duoshuo_Action::getOption('short_name')); $secret = trim(Duoshuo_Action::getOption('secret')); $synchronized = intval(Duoshuo_Action::getOption('synchronized')); $act = Duoshuo_Action::ActMap($request->get('do')); if (!$short_name || !$secret) { $act = 'comments'; } //若未绑定,则锁定在绑定页面 if (!$synchronized && $short_name && $secret && is_numeric($synchronized)) { $act = 'setting'; } if ($short_name && $secret) { $token = array('short_name' => $short_name, 'user_key' => 1, 'name' => $user->name); } ?> <div class="main"> <div class="body container"> <?php include 'page-title.php'; ?> <div class="clearfix" style="padding-left: 20px;"> <ul class="typecho-option-tabs"> <?php if ($act == 'setting') { ?> <li class="setting"><a href="<?php $options->adminUrl('extending.php?panel=Duoshuo/manage-duoshuo.php&do=manage-comments');