function translateCommonlabel($template) { global $pagesize, $articleid; $template = str_replace("【#sitename】", getSitename(), $template); $template = str_replace("【#htmltitle】", getHtmltitle(), $template); $template = str_replace("【#copyright】", getCopyright(), $template); $template = str_replace("【#path】", getPath(), $template); $template = str_replace("【#logo】", getLogo(), $template); $template = str_replace("【#chanels】", getChanels(), $template); $template = str_replace("【#childcolumnlist】", getChildcolumnlist(), $template); //网站,栏目,文章关键字 $template = str_replace("【#sitekeywords】", getSitekeywords(), $template); $template = str_replace("【#columnkeywords】", getColumnkeywords(), $template); $template = str_replace("【#articlekeywords】", getArticlekeywords(), $template); $template = str_replace("【#columnname】", getColumnname(), $template); $template = str_replace("【#articleid】", $articleid, $template); $template = str_replace("【#articletitle】", getArticletitle(), $template); $template = str_replace("【#articlecontent】", getArticlecontent(), $template); $template = str_replace("【#date】", getAdddate(), $template); $template = str_replace("【#hits】", getHits(), $template); $template = str_replace("【#author】", getAuthor(), $template); $template = str_replace("【#source】", getSource(), $template); $template = str_replace("【#picurl】", getPicurl(), $template); $template = str_replace("【#pre】", getPre(), $template); $template = str_replace("【#next】", getNext(), $template); $template = str_replace("【#notes】", getNotes(), $template); $template = str_replace("【#commentform】", getCommentform(), $template); //替换自定义字段标签 $template = translateSdefFeildlabel($template); $template = str_replace("【#showpage】", getPage($pagesize), $template); return $template; }
<footer> <div class="box-contact"> <p style="letter-spacing:0;">ホームページ、Webサイトでお困りの方は、ご遠慮なく鹿児島のホームページ、Webサイト制作会社アドダスまでご相談ください。</p> <p class="btn-arrow"><a href="#" title="ご相談・お問い合わせ"><i class="fa fa-paper-plane fa-fw"></i>ご相談・お問い合わせ</a></p> </div> <div class="company-info"> <p class="meta">鹿児島のホームページ、Webサイト制作会社</p> <p class="name">アドダス</p> <p class="phone"><span><i class="fa fa-phone fa-fw"></i>099-248-8609</span></p> <address>〒892-0816 鹿児島市山下町17-4<br class="visible-xs">第一照国ビル302号</address> </div> <p class="copy">© <?php echo date('Y'); ?> <?php echo getCopyright(); ?> </p> <p id="toPageTop"><a href="#wrapper">ページトップへ戻る</a></p> </footer> <!-- end of #wrapper --></div> <?php wp_footer(); ?> <script src="<?php bloginfo('template_url'); ?> /js/myScript.js"></script> </body> </html>
<?php require_once '../lib/functionsnew.php'; require_once '../0.6/ws/DataGetter.php'; require_once '../0.6/ws/DBDetails.php'; require_once 'copyrights.php'; $cleaned = clean_input($_REQUEST); $bbox_in = explode(",", $cleaned["bbox"]); $inProj = $cleaned["inProj"]; $sw = reproject($bbox_in[0], $bbox_in[1], $inProj, "3857"); $ne = reproject($bbox_in[2], $bbox_in[3], $inProj, "3857"); $bbox = array($sw[0], $sw[1], $ne[0], $ne[1]); $outProj = $cleaned["outProj"]; adjustProj($outProj); $conn = pg_connect("dbname=gis user=gis"); header("Content-type: application/json"); header("Access-Control-Allow-Origin: http://www.free-map.org.uk"); $dbd = new DBDetails(null, array("table" => "hampshire", "col" => "the_geom"), null, null, null, null); $dbd->setIntersection(false); $bg = new BboxGetter($bbox, null, $dbd, 3857); $bg->includePolygons(false); $data = $bg->getData(array("way" => "all"), null, null, $outProj); $counties = $bg->getUniqueList("county"); $arr = array(); foreach ($counties as $county) { $arr[$county] = getCopyright($county); } $bg->setCopyright($arr); $data = $bg->simpleGetData(); echo json_encode($data); pg_close($conn);