Location: PHPKode > projects > injooosm > components/com_injooosm/views/injooosm/tmpl/default.php
<?php
/**
 * Joomla! 1.5 component injooosm
 *
 * @version $Id: default.php 2009-11-22 14:03:00$
 * @author Christian Knorr
 * @package injooosm
 * @subpackage frontend
 * @license GNU/GPL
 * @filesource
 *
 */

defined('_JEXEC') or die('Restricted access');
// var_dump($this);
// die();
echo $this->lh;
// Karten-Auswahl BEGIN
if($this->map == "disabled") {
	echo JText::_('OSM_NOSERVICE');
}
if($this->map == "osm") {
	echo $this->gps->writeOSMMap();
?>
<center><div id="map" style="width: <?php echo $this->cfg->map_width; ?>px; height: <?php echo $this->cfg->map_height; ?>px;" ><script>slippymap_init("map");</script></div></center>
<?php
}
if($this->map == "google") {
	echo $this->gps->writeGoogleMap();
?>
<script src="http://www.google.com/uds/solutions/localsearch/gmlocalsearch.js"
      type="text/javascript"></script>

<style type="text/css">
  @import url("http://www.google.com/uds/css/gsearch.css");
  @import url("http://www.google.com/uds/solutions/localsearch/gmlocalsearch.css");
</style>
<center><div id="map" style="width: <?php echo $this->cfg->map_width; ?>px; height: <?php echo $this->cfg->map_height; ?>px;" ></div></center>
<?php
}
// Karten-Auswahl END
?>
<div class="toptracks">
    <span class="headline"><?php echo JText::_('OSM_NEWEST'); ?></span>
    <ul>
        <li><div class="list-left"><b><?php echo JText::_('OSM_TITLE'); ?></a></b></div>
        <div class="list-right"><b><?php echo JText::_('OSM_CAT'); ?></b></div><div class="no-float"></div></li>
    <?php
    foreach($this->newest as $new)  {
        $link = JRoute::_('index.php?option=com_injooosm&view=files&layout=file&id=' . $new->id);
        ?>
        <li><div class="list-left"><a href="<?php echo $link; ?>"><?php echo $new->title; ?></a></div>
        <div class="list-right"><?php echo $new->cat; ?></div><div class="no-float"></div></li>
        <?php
    }
    ?>
    </ul>
</div>
<div class="toptracks">
    <span class="headline"><?php echo JText::_('OSM_MOSTHITS'); ?></span>
    <ul>
        <li><div class="list-left"><b><?php echo JText::_('OSM_TITLE'); ?></a></b></div>
        <div class="list-right"><b><?php echo JText::_('OSM_HITS'); ?></b></div><div class="no-float"></div></li>
    <?php
    foreach($this->hits as $hits)  {
        $link = JRoute::_('index.php?option=com_injooosm&view=files&layout=file&id=' . $hits->id);
        ?>
        <li><div class="list-left"><a href="<?php echo $link; ?>"><?php
if($hits->title != "")
	echo $hits->title;
else
	echo ("<i>".JText::_('OSM_NO_TITLE')."</i>");
?></a></div>
        <div class="list-right"><?php echo $hits->hits; ?></div>
        <div class="no-float"></div></li>
        <?php
    }
    ?>
    </ul>
</div>
<div class="no-float">
<?php
echo $this->footer;
?>
</div>
Return current item: injooosm