Beispiel #1
0
 /** @view-specific */
 public function getEventLinks()
 {
     $allEvents = $this->events;
     $croppedEvents_arr = array_slice($allEvents, 0, 4);
     $link_arr = array();
     foreach ($croppedEvents_arr as $event) {
         $htmlEncodedEventTitle = CHtml::encode($event->title);
         $url = Yii::app()->createUrl('event/view', SeoHelper::eventViewSEORouteArrayParam($event));
         //echo CHtml::link($htmlEncodedTagName,array('illust/index','search'=>$htmlEncodedTagName),array('class'=>'label label-info','title'=>$htmlEncodedTagName));
         array_push($link_arr, "<a href='{$url}' title='{$htmlEncodedEventTitle}'> <span class='label label-warning'> {$htmlEncodedEventTitle} </span> </a>");
     }
     return $link_arr;
 }
<li>
    
    <span class=" textOverflow forceInline" title="<?php 
echo CHtml::encode($data->title);
?>
">

                <a href="<?php 
echo $this->createUrl('event/view', SeoHelper::eventViewSEORouteArrayParam($data));
?>
">
                    <?php 
echo CHtml::encode($data->title);
?>
            </a>
        </span><!-- title -->
        <span class="pull-right"><?php 
echo CHtml::encode($data->event_date);
?>
</span>
        <span class="clearfix"></span>
        
</li>
<hr class="list-item-hr">
Beispiel #3
0
<div class="list-group panel panel-default userBelongGroupPanel">
            <div class="panel-heading list-group-item text-center hidden-xs">
                    <h4>
                            <span class="pull-left">過去活動</span> 
                            <span class="clearfix"></span>
                    </h4>
            </div><!-- header -->

            <ul class="list-group">
                <?php 
foreach ($allPastEvents as $event) {
    $illustURL = Yii::app()->createUrl('event/view', SeoHelper::eventViewSEORouteArrayParam($event));
    ?>
                <a href="<?php 
    echo $illustURL;
    ?>
" class="list-group-item">
                        <div class="media">
                                <div class="media-body">
                                        <p class="pull-left" rel="tooltip" title="<?php 
    echo CHtml::encode($event->title);
    ?>
" href="<?php 
    echo $illustURL;
    ?>
" data-original-title="<?php 
    echo CHtml::encode($event->title);
    ?>
">