Example #1
0
							<div class="tip"><span>*</span> 删除状态为"已删除"的评论,若删除此处,则多说评论管理中,"已删除"中的评论将无法在本地被恢复</div>
						</p>
						<p class="title">导出JSON文件</p>
						<p>
							<button value="ExportJson" class="primary" id="btn-exportjson" onclick="exprotjson();">导出博客评论为多说JSON格式</button>
						</p>
						<p class="title">清空多说站点配置</p>
						<p>
							<button value="Reset" class="primary" id="btn-reset" onclick="resetduoshuo();">清空多说站点配置,用于重新绑定多说帐号</button>
						</p>
						</div>
						<iframe src="" width="0" height="0" id="exportjson-frm" border="0"></iframe>
						';
        break;
    case 'statistics':
        echo '<iframe id="duoshuo-remote-window" src="http://' . $short_name . '.duoshuo.com/admin/statistics/?jwt=' . Duoshuo_Action::encodeJWT($token, $secret) . '" style="width: 100%;border:0"></iframe>';
        break;
    case 'setting':
        echo '<div id="duoshuo-remote-window" class="conbox">
							<p class="title">初始化设置</p>
							<p id="ds-export">
							<button value="Export" class="primary" id="btn-export" onclick="fireExport();">点我同步一下</button>
							<!--<button value="Setting" id="btn-setting" onclick="Setting();">已同步过,直接跳过</button>-->
							</p>
							<div class="tip">
								<p><span>*</span>这将会使本地用户,文章[不会上传文章内容],评论直接同步至多说,支持断点上传,如果出现中断,请刷新后再次点击...</p>
								<p><span>*</span>已经同步过的用户不必担心,重复同步并不会造成数据叠加,请耐心等候</p>
								<!--<p><span>*</span>如果已经同步过,误点了清空,请选后者...</p>-->
							</div>
						</div>';
        break;
Example #2
0
     <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 
Example #3
0
            		}else{
            			$('#btn-setting').html('初始化失败,请点击左侧同步按钮手动初始化...');
            		}
            	}else{
                    alert(response.errorMessage);
            	}
            },
            dataType:'json'
        });
    };
    settingProgress()
    return false;
}
<?php 
}
if ($act == 'getcode' && !Duoshuo_Action::_engine()) {
    ?>
function tcomment(){
	var $ = jQuery;
	$('#btn-tcomment').removeClass('primary').attr("disabled", true);
    $('#btn-tcomment').html('开始写入 <img src="../usr/plugins/Duoshuo/images/waiting.gif" />');
    var exportProgress = function (){
        $.ajax({
            url:ajaxurl,
            data:{do: 'writecomments'},
            error:duoshuoOnError,
            success:function(response) {
            	if (response.code == 0){

            		$('#btn-tcomment').html('写入完成,备份文件已生成');
            	}else{