コード例 #1
0
ファイル: listing.tmpl.php プロジェクト: Tjorriemorrie/app
		<span style="font-size: smaller">language: <?php 
    echo $row->wiki->city_lang;
    ?>
</span>
	</a></h4>
	<?php 
    echo empty($row->wiki->city_description) ? "no description" : $row->wiki->city_description;
    ?>
	<br />
	<em>Used domains: <?php 
    echo CityListPager::bold(implode(", ", (array) $row->domains), $part);
    ?>
</em>
	<br />
	<span style="color: darkgreen;"><?php 
    CityListPager::bold($row->wiki->city_url, $part);
    ?>
</a></span>
	 - <a href="<?php 
    echo $title->getFullUrl() . "/{$row->wiki->city_id}";
    ?>
">wikifactory</a>
	 - <a href="<?php 
    echo $row->wiki->city_url;
    ?>
">link</a>
</div>
<?php 
    if ($cnt > $limit) {
        break;
    }
コード例 #2
0
 /**
  * doWikiSelector
  *
  * Pager with all wikis
  *
  * @access private
  * @author eloy
  *
  * @return nothing
  */
 private function doWikiSelector()
 {
     global $wgOut;
     $oTmpl = new EasyTemplate(dirname(__FILE__) . "/templates/");
     $oTmpl->set_vars(array("title" => $this->mTitle, "domain" => $this->mDomain));
     if (!empty($this->mDomain)) {
         $pager = new CityListPager($this->mDomain);
         $oTmpl->set("pager", $pager->render());
     }
     $wgOut->addHTML($oTmpl->render("selector"));
 }