'
. '
'.lang('plugin/wechat', 'resource_select').'
'
. '';
$adminscript = ADMINSCRIPT;
echo <<
var showResourceId = null;
function showResource(id) {
showMenu({'ctrlid':'rsel','evt':'click','duration':3,'pos':'00'});
showResourceId = id;
ajaxget('$adminscript?action=plugins&operation=config&identifier=wechat&pmod=resource_setting&ac=select', 'rsel_content');
}
function selResource(id, text) {
$(showResourceId).value = '[resource=' + id + '] ' + text;
hideMenu();
}
EOF;
}
function menu() {
global $_G;
$_G['wechat']['setting'] = unserialize($_G['setting']['mobilewechat']);
echo <<
.floattop { display: none; }
.floattopempty { display: none; }
.mymenu { height:35px; }
.mymenu .floattop { display: inline; }
.mymenu .floattopempty { display: inline; }
EOF;
echo '';
if($_G['wechat']['setting']['wsq_siteid']) {
$time = TIMESTAMP;
echo <<
function pubEventCallbackCommon(re) {
if(re.errCode) {
return;
}
if(typeof re.data.event.peId != 'undefined') {
$('pubEventNum').innerHTML = 'New!';
$('pubEventNum').style.display = '';
}
}
EOF;
}
}
}