PageRenderTime 5ms CodeModel.GetById 1ms app.highlight 2ms RepoModel.GetById 1ms app.codeStats 0ms

/source/plugin/renren/template/rr_postmiddle.htm

https://bitbucket.org/renren_platform/renren-api-discuz-sdk/
HTML | 26 lines | 17 code | 0 blank | 9 comment | 0 complexity | e05de12a2db48a8ff0118b91a1ef490c MD5 | raw file
 1<!--{block return}-->
 2<!--{if $_G['cache']['plugin']['renren']['rr_customfeed']}-->
 3<script type="text/javascript">
 4function rrpermcheck() {
 5	var rrfeedbox = document.getElementById("rrfeed");
 6	if(rrfeedbox.checked){
 7	XN.Connect.showPermissionDialog('publish_feed',function(ok){if(!ok){rrfeedbox.checked="";}});
 8	}
 9}
10</script>
11<!--{/if}-->
12<!--{if $_G['gp_action'] == 'newthread'}-->
13	<p class="mbn"><input type="checkbox" id="rrfeed" name="rrfeed" class="pc" value="1"<!--{if $iffeed[0]}--> checked="checked"<!--{/if}--><!--{if $_G['cache']['plugin']['renren']['rr_customfeed']}--> onclick="rrpermcheck();"<!--{/if}--> /><label for="rrfeed"> {lang renren:rr_feedthread} </label><img    src="source/plugin/renren/template/image/rr.png" /></p>
14<!--{elseif $_G['gp_action'] == 'reply'}-->
15	<p class="mbn"><input type="checkbox" id="rrfeed" name="rrfeed" class="pc" value="1"<!--{if $iffeed[1]}--> checked="checked"<!--{/if}--><!--{if $_G['cache']['plugin']['renren']['rr_customfeed']}--> onclick="rrpermcheck();"<!--{/if}--> /><label for="rrfeed"> {lang renren:rr_feedreply} </label><img    src="source/plugin/renren/template/image/rr.png" /></p>
16<!--{/if}-->
17<!--{if !$perm}-->
18<script type="text/javascript">
19if(document.all) {
20	window.attachEvent('onload',rrpermcheck);
21} else {
22	window.addEventListener('load',rrpermcheck,false);
23}
24</script>
25<!--{/if}-->
26<!--{/block}-->