Example #1
0
 public function run()
 {
     $this->registerScript();
     foreach ($this->contents as $id => $options) {
         if (is_string($id)) {
             $options['clientOptions']['id'] = $id;
         }
         if (!isset($options['plugin'])) {
             $options['plugin'] = $this->plugin;
         }
         if ($options['plugin'] === $this->plugin) {
             if (!isset(self::$addContentMethod[$this->plugin])) {
                 continue;
             }
             $options['method'] = self::$addContentMethod[$this->plugin];
         } else {
             $options['parent'] = $this->clientOptions['id'];
         }
         $options['target'] = $this->target;
         Easy::widget($options);
     }
 }
          <ol class="breadcrumb">
            <li class="active">Recherche: <strong><?php 
echo $query;
?>
</h3></li>
          </ol>
          <?php 
foreach ($resultat as $album) {
    ?>
          <div class="col-sm-6 col-md-3">
            <div class="albumListing">
              <img src="<?php 
    echo $album->coverURL;
    ?>
" alt="...">
              <div class="caption">
                <h4> <?php 
    echo Easy::explodeString($album->title, 15);
    ?>
   </h4>
                <p><a href="#" class="btn btn-primary" role="button">Selectionner</a></p>
              </div>
            </div>
          </div>
          <?php 
}
?>
        </div>
        	</div>
         </div>
      </div>
                        <?php 
foreach ($playlists as $playlist) {
    ?>
                          <div class="col-sm-6 col-md-6">
                            <div class="albumListing">
                              <a href="<?php 
    echo _URL_APP_ROOT_ . 'playlist/' . $playlist->id;
    ?>
"><img src="<?php 
    echo $playlist->cover;
    ?>
" style="width:410px ;height:200px; "></a>
                              <div class="caption">
                                <h4><?php 
    echo Easy::explodeString($playlist->titre, 15);
    ?>
</h4>
                              </div>
                              <div class="row"> 
                                <div class="col-sm-1">
                                  <span class="nbrTracks"><?php 
    echo count($playlist->tracks);
    ?>
</span>
                                </div>
                                <div class="col-sm-11">
                                  <div><a style="float:right" href="<?php 
    echo _URL_APP_ROOT_ . 'playlist/' . $playlist->id;
    ?>
" class="btn btn-success">Ecouter</a></div>