Beispiel #1
0
 /**
  * Creates a image link.
  *
  * If the $src is an array with a 'module' key, the function will try to
  * resolve the module's path and use the 'src' key as a relative path to
  * the found module's directory. Uses the first found module directory.
  *
  * array('module' => 'module-name', src => 'assets/img/file.png') =>
  *   'modules/module-name-vsn/assets/img/file.png'
  *
  * @param   string        image source, or an array of attributes
  * @param   string|array  image alt attribute, or an array of attributes
  * @param   boolean       include the index_page in the link
  * @return  string
  */
 public static function image($src = NULL, $alt = NULL, $index = FALSE)
 {
     // Create attribute list
     $attributes = is_array($src) ? $src : array('src' => $src);
     if (!empty($attributes['module'])) {
         $m = glob(MODPATH . $attributes['module'] . '*');
         if (count($m) > 0) {
             $attributes['src'] = 'modules' . DIRECTORY_SEPARATOR;
             $attributes['src'] .= basename($m[0]) . DIRECTORY_SEPARATOR;
             $attributes['src'] .= ltrim($attributes['src'], DIRECTORY_SEPARATOR);
         }
     }
     unset($attributes['module']);
     return parent::image($attributes, $alt, $index);
 }
Beispiel #2
0
<p id="homepage-copy">
Oricât de bună ar fi memoria ta, cândva tot vei pierde ceva din vedere.<br />Da? <strong>Nu tocmai.</strong><br/>
De aceea vrem să îți venim în ajutor cu un loc unde îți poți organiza timpul exact așa cum vrei.<br/>
Aici tu stabilești ce e mai important pentru tine, la ce cursuri vrei să participi, ce evenimente vrei să urmarești, ce notițe vrei să ai la îndemana sau la ce examen trebuie să ajungi.
</p>


<div id="homepage-right">
    <img src="http://geek.hdragomir.com/media/smartstudentbanner.jpg" width="228" height="191" alt=" Smart Student" />
    
    <textarea rows="5" cols="50" style="width: 228px"><?php 
echo html_Core::specialchars('<a href="http://geek.hdragomir.com"><img src="http://geek.hdragomir.com/media/smartstudentbanner.jpg" width="125" height="125" alt=" Smart Student" /></a>');
?>
</textarea>
    
</div>

<div id="homepage-calendar">
    <?php 
echo $week;
?>
</div>



<div id="homepage-footer">
    <a href="http://tm-99-blog.org" target="_blank"><img src="http://tm-99-blog.org/banner/blogger-de-timisoara.png" alt="Blogger de Timisoara" border="0"  height="125"/></a>
    <a href="http://www.redasperanta.ro"> <img src="http://www.redasperanta.ro/files/banner/banner_125x125.jpg" alt="Redă Speranța" width="125" height="125" border="0"></a>
    <a href="http://www.newstimisoara.ro" title="" target="_blank"><img src="http://i47.tinypic.com/12151qx.png" width="" height="125" alt="" border="0" /></a>
    <a href="http://www.pedaleaza.ro" title="Verde pentru Biciclete"><img src="http://www.pedaleaza.ro/images/stories/sticker.jpg" alt="Verde pentru Biciclete" title="verde pentru biciclete" margin: 0px; width="160" height="106"></a>
    <a title="Blogosfera feminina" href="http://www.hotcity.ro//ce-ne-inconjoara/rubrica/blogosfera-feminina"><img src="http://www.hotcity.ro/i/125x125_hotcity.jpg" alt="sustin blogosfera feminina" /></a>
Beispiel #3
0
 /**
  * Creates a script link.
  *
  * @param   string|array  filename
  * @param   boolean       include the index_page in the link
  * @return  string
  */
 public static function script($script, $index = FALSE)
 {
     return str_replace(' type="text/javascript"', '', parent::script($script, $index));
 }