Esempio n. 1
0
		protected function _getList($params, $module){
			$this->params = $params;
			$list = array();
			$source_category = $params->get('source');
			
			$items = $this->getCategoryItems($source_category, $params);	
			
			if(!empty($items)) {
				include_once JPATH_SITE . DS . 'components' . DS . 'com_content' . DS . 'helpers' . DS . 'route.php';											
				$custom = $this->_getCustomUrl($params);
				foreach($items as $key => $item){
					$category = $this->getCategory($item->catid);
					$item->catitle = $category->title;
					if(!$this->getItemImage($item)){
						$item->image = 'modules/'.Ytools::getModule()->module . '/assets/images/nophoto.png';
					}
					if(array_key_exists($item->id, $custom)){
						$item->link=  trim($custom[$item->id]->url);
					}else{						
						$item->link = JRoute::_(ContentHelperRoute::getArticleRoute($item->id, $item->catid));
					}												
						$item->description = strip_tags($item->introtext);
				}
			}	
			return $items;
		}
Esempio n. 2
0
        echo $options->item_link_target;
        ?>
" href="<?php 
        echo $items->link;
        ?>
"><?php 
        echo YTools::truncate($items->title, $options->item_title_max_characs);
        ?>
</a>
			</h2>
				
			<?php 
        if ($options->item_desc_display == 1) {
            ?>
				<p class="basicnews-desc"><?php 
            echo Ytools::truncate($items->description, $options->item_desc_max_characs);
            ?>
</p>
			<?php 
        }
        ?>
				   
			<?php 
        if ($options->item_date_display == 1 || $options->cat_title_display == 1) {
            ?>
				<div class="row-fluid clear basicnews-info">
					<?php 
            if ($options->item_date_display == 1) {
                ?>
							<div class=" basic-date">
								<?php 
Esempio n. 3
0
File: item.php Progetto: rodhoff/MNW
        ?>
			<a href="<?php 
        echo $item['link'];
        ?>
"
				<?php 
        echo YTools::parseTarget($params->get('item_link_target'));
        ?>
			>
		<?php 
    }
    // open anchor tag
    ?>
			<img
				src="<?php 
    echo Ytools::resize($item['image'], $image_config);
    ?>
"
				alt="<?php 
    echo $item['title'];
    ?>
"
				title="<?php 
    echo $item['title'];
    ?>
"	
				style="max-width: <?php 
    echo (int) $params->get('item_image_autofit', 1) ? $params->get('item_image_width') : $width_item_wrap;
    ?>
px;"				
			/>
Esempio n. 4
0
" href="<?php 
                        echo $item['link'];
                        ?>
" target = "<?php 
                        echo $options->cat_link_target;
                        ?>
"> 
												<?php 
                        echo Ytools::truncate($item['title'], $options->cat_sub_title_max_characs);
                        ?>
											</a>                                     									
										<?php 
                    } else {
                        ?>
												<?php 
                        echo Ytools::truncate($item['title'], $options->cat_sub_title_max_characs);
                        ?>
										<?php 
                    }
                    ?>
 									
									</div>
									<?php 
                    if ($options->cat_all_article == 1) {
                        ?>
									<div class="num_items"><?php 
                        echo '(' . $item['count_item'] . ')';
                        ?>
</div>
									<?php 
                    }
Esempio n. 5
0
                            <span><?php 
                echo date("d F Y", strtotime($item['publish']));
                ?>
</span>

                    <?php 
            }
            ?>

                    <?php 
            if ($options->show_normal_description == 1) {
                ?>

                        <p style="margin: 0 !important;font-size:12px !important;padding: 0 !important;display:block !important;"><?php 
                echo Ytools::truncate($item['sub_normal_content'], $options->limit_normal_description);
                ?>
</p>

                    <?php 
            }
            ?>
 

                    </li>

              </ul>

        </li>

        <?php 
Esempio n. 6
0
</a><?php 
            }
            ?>
                        </div>                 
                    </div>
                    <?php 
        }
        ?>
    
                    <div class="yt-accordion-content">                        
                        <?php 
        if ($options->item_description_display == 1) {
            ?>
                              <div class="yt_item_desc">
                                    <?php 
            echo Ytools::truncate($item['desc'], $options->item_description_max_characters);
            ?>
                              </div>                              
                        <?php 
        }
        ?>
                       						
                        <?php 
        if ($options->item_readmore_display == 1) {
            ?>
								<span class="yt-accordion-readmore" title="<?php 
            echo $item['title'];
            ?>
" style="float:left; ">
									<a href="<?php 
            echo $item['link'];
Esempio n. 7
0
											<div class="normal_title" style="font-weight: normal">
												<?php 
                        if ($options->item_title_linkable == 1) {
                            ?>
		
												<a href="<?php 
                            echo $item['link'];
                            ?>
" target="<?php 
                            echo $options->item_link_target;
                            ?>
" style=" font-weight: normal"> <?php 
                        }
                        ?>
														<?php 
                        echo Ytools::truncate($item['title'], $options->item_title_max_characters);
                        ?>
												 <?php 
                        if ($options->item_title_linkable == 1) {
                            ?>
												 </a>  					
												 <?php 
                        }
                        ?>
											</div><!--normal_title_price-->
										<?php 
                    }
                    ?>
								</li>
                              <?php 
                }
Esempio n. 8
0
 ;" >
											<?php 
                echo Ytools::truncate($item['title'], $options->item_title_max_characs);
                ?>
										</a>
									<?php 
            }
            ?>
								</h4>
									<div class="so_content" style="display:<?php 
            echo $options->item_desc_display ? "display" : "none";
            ?>
;">	       			
										<div class="so_description">
										<?php 
            echo Ytools::truncate($item['desc'], $options->item_desc_max_characs);
            ?>
										</div>
									</div>	
									<div class="so_readmore" style="display:<?php 
            echo $options->item_readmore_display ? "block" : "none";
            ?>
;">
										<a href="<?php 
            echo $item['link'];
            ?>
" title="<?php 
            echo $item['title'];
            ?>
" target="<?php 
            echo $options->item_link_target;