Esempio n. 1
0
		        <?php 
        if ($options->item_image_display == 1) {
            ?>
		        	<div class="bsn-image">
			        	<a href="<?php 
            echo $items->image;
            ?>
" title="" data-rel="prettyPhoto">
			        		<?php 
            //Create placeholder images
            $src = $items->image;
            if (file_exists($src)) {
                echo "<img src='" . Ytools::resize($items->image, $image_config) . "' alt='" . $items->title . "'/>";
            } else {
                if ($is_placehold) {
                    echo yt_placehold($placehold_size['featured_posts']);
                }
            }
            ?>
						</a>
         
		        	</div>
		        <?php 
        }
        ?>
			        <h2>
			        	<a title="<?php 
        echo $items->title;
        ?>
" target="<?php 
        echo $options->item_link_target;
Esempio n. 2
0
    $imgfloat = empty($images->float_intro) ? $params->get('float_intro') : $images->float_intro;
    ?>
    <?php 
    // Begin:  The way to resize your image.
    $templateParams = JFactory::getApplication()->getTemplate(true)->params;
    YTTemplateUtils::getImageResizerHelper(array('background' => $templateParams->get('thumbnail_background', '#000'), 'thumbnail_mode' => $templateParams->get('thumbnail_mode', 'fit')));
    $imgW = isset($leadingFlag) && $leadingFlag ? $templateParams->get('leading_width', '300') : $templateParams->get('intro_width', '200');
    $imgH = isset($leadingFlag) && $leadingFlag ? $templateParams->get('leading_height', '300') : $templateParams->get('intro_height', '200');
    $imgsrc = YTTemplateUtils::resize($images->image_intro, $imgW, $imgH);
    //Create placeholder items images
    $src = $images->image_intro;
    if (file_exists(JPATH_BASE . '/' . $src)) {
        $thumb_img = '<img src="' . $imgsrc . '" alt="' . $images->image_intro_alt . '" />';
    } else {
        if ($is_placehold) {
            $thumb_img = yt_placehold($placehold_size['leading']);
        }
    }
    ?>
	<figure class="pull-<?php 
    echo htmlspecialchars($imgfloat);
    ?>
 item-image" >
		<a  class="listingimg" title="<?php 
    echo htmlspecialchars($images->image_fulltext_alt);
    ?>
" href="<?php 
    echo JRoute::_(ContentHelperRoute::getArticleRoute($this->item->slug, $this->item->catid));
    ?>
" >
			<?php 
Esempio n. 3
0
        if ($this->params->get('tag_list_show_item_image', 1) == 1 && !empty($images->image_intro)) {
            ?>
							<?php 
            $imgfloat = empty($images->float_intro) ? 'left' : $images->float_intro;
            //$imgfloat = (empty($images->float_fulltext)) ?  'none' :$images->float_fulltext;
            $imgW = isset($leadingFlag) && $leadingFlag ? $templateParams->get('leading_width', '870') : $templateParams->get('intro_width', '200');
            $imgH = isset($leadingFlag) && $leadingFlag ? $templateParams->get('leading_height', '320') : $templateParams->get('intro_height', '200');
            $imgsrc = YTTemplateUtils::resize($images->image_intro, $imgW, $imgH, array($templateParams->get('thumbnail_background', '#ffffff')));
            //Create placeholder items images
            $src = $images->image_intro;
            if (file_exists(JPATH_BASE . '/' . $src)) {
                $thumb_img = '<img src="' . $src . '" alt="' . $images->image_intro_alt . '" />';
                $full_img = JURI::base() . '/' . htmlspecialchars($images->image_intro);
            } else {
                if ($is_placehold) {
                    $thumb_img = yt_placehold($placehold_size['article']);
                    $full_img = 'http://placehold.it/' . $placehold_size['article'] . '/969696';
                }
            }
            ?>
							<figure class="pull-<?php 
            echo htmlspecialchars($imgfloat);
            ?>
 item-image" >
									<?php 
            echo $thumb_img;
            ?>
							</figure>
						
						<?php 
        }
Esempio n. 4
0
                ?>
" title="<?php 
                echo JText::_('K2_CONTINUE_READING');
                ?>
 &quot;<?php 
                echo K2HelperUtilities::cleanHtml($item->title);
                ?>
&quot;">
				<?php 
                //Create placeholder items images
                $src = $item->image;
                if (!empty($src)) {
                    $thumb_img = '<img src="' . $src . '" alt="' . $item->title . '" />';
                } else {
                    if ($is_placehold) {
                        $thumb_img = yt_placehold($placehold_size['k2contentReviews'], $item->title, $item->title);
                    }
                }
                echo $thumb_img;
                ?>

	

	      </a>
	      <?php 
            }
            ?>
			
			<?php 
            if ($params->get('itemCommentsCounter')) {
                ?>
Esempio n. 5
0
" target="<?php 
            echo $options->item_link_target;
            ?>
" href="<?php 
            echo $items->link;
            ?>
">
							
							<?php 
            //Create placeholder images
            $src = $items->image;
            if (file_exists($src)) {
                echo "<img src='" . Ytools::resize($items->image, $image_config) . "' alt='" . $items->title . "'/>";
            } else {
                if ($is_placehold) {
                    echo yt_placehold($placehold_size['popular']);
                }
            }
            ?>
						</a>
				</div>
			<?php 
        }
        ?>
				
			<h2 class="basicnews-title">
				<a title="<?php 
        echo $items->title;
        ?>
" target="<?php 
        echo $options->item_link_target;
Esempio n. 6
0
    if (!empty($this->item->image_caption)) {
        echo K2HelperUtilities::cleanHtml($this->item->image_caption);
    } else {
        echo K2HelperUtilities::cleanHtml($this->item->title);
    }
    ?>
">
					
					<?php 
    //Create placeholder items images
    $src = isset($this->item->image) ? $this->item->image : '';
    if (!empty($src)) {
        $thumb_img = '<img src="' . $src . '" alt="' . $item->title . '" />';
    } else {
        if ($is_placehold) {
            $thumb_img = yt_placehold($placehold_size['listing'], $this->item->title, $this->item->title);
        }
    }
    echo $thumb_img;
    ?>
				</a>
			  
		  </div>
		  <?php 
}
?>
		
		<div class="catItemHeader">		
		  <?php 
if ($this->item->params->get('latestItemTitle')) {
    ?>
Esempio n. 7
0
                echo JText::_('K2_CONTINUE_READING');
                ?>
 &quot;<?php 
                echo K2HelperUtilities::cleanHtml($item->title);
                ?>
&quot;">
             <?php 
                //Create placeholder items images
                if (isset($item->image)) {
                    $src = $item->image;
                }
                if (!empty($src)) {
                    $thumb_img = '<img src="' . $src . '" alt="' . K2HelperUtilities::cleanHtml($item->title) . '" />';
                } else {
                    if ($is_placehold) {
                        $thumb_img = yt_placehold($placehold_size['k2_content_featured'], $item->title, $item->title);
                    }
                }
                echo $thumb_img;
                ?>
	      </a>
	      <?php 
            }
            ?>



      <?php 
        }
        ?>
Esempio n. 8
0
            ?>
" target="<?php 
            echo $options->item_link_target;
            ?>
" href="<?php 
            echo $items->link;
            ?>
">
							<?php 
            //Create placeholder images
            $src = $items->image;
            if (file_exists($src)) {
                echo "<img src='" . Ytools::resize($items->image, $image_config) . "' alt='" . $items->title . "'/>";
            } else {
                if ($is_placehold) {
                    echo yt_placehold($placehold_size['video_box']);
                }
            }
            ?>

						</a>
						
				</div>
			<?php 
        }
        ?>
			
				
				
				
				<?php 
Esempio n. 9
0
        if ($commenter->userImage) {
            ?>
			<a class="k2Avatar tcAvatar" rel="author" href="<?php 
            echo $commenter->link;
            ?>
">
				
                <?php 
            if (isset($commenter->userImage)) {
                $src = $commenter->userImage;
            }
            if (!empty($src)) {
                $thumb_img = '<img style="width:' . $tcAvatarWidth . 'px;height:auto;" src="' . $src . '" alt="' . JFilterOutput::cleanText($commenter->userName) . '" />';
            } else {
                if ($is_placehold) {
                    $thumb_img = yt_placehold($placehold_size['k2_content_avatar'], $commenter->userName, $commenter->userName);
                }
            }
            echo $thumb_img;
            ?>
			</a>
			<?php 
        }
        ?>

			<?php 
        if ($params->get('commenterLink')) {
            ?>
			<a class="tcLink" rel="author" href="<?php 
            echo $commenter->link;
            ?>
Esempio n. 10
0
            ?>
" title="<?php 
            echo JText::_('K2_CONTINUE_READING');
            ?>
 &quot;<?php 
            echo K2HelperUtilities::cleanHtml($item->title);
            ?>
&quot;">
				<?php 
            //Create placeholder items images
            $src = $item->image;
            if (!empty($src)) {
                $thumb_img = '<img src="' . $src . '" alt="' . $item->title . '" />';
            } else {
                if ($is_placehold) {
                    $thumb_img = yt_placehold($placehold_size['k2contentMega'], $item->title, $item->title);
                }
            }
            echo $thumb_img;
            ?>

	

	      </a>
	      <?php 
        }
        ?>

      <?php 
        if ($params->get('itemExtraFields') && count($item->extra_fields)) {
            ?>
Esempio n. 11
0
                echo JText::_('K2_CONTINUE_READING');
                ?>
 &quot;<?php 
                echo K2HelperUtilities::cleanHtml($item->title);
                ?>
&quot;">
	      		<?php 
                //Create placeholder items images
                if (isset($item->image)) {
                    $src = $item->image;
                }
                if (!empty($src)) {
                    $thumb_img = '<img src="' . $src . '" alt="' . $item->title . '" />';
                } else {
                    if ($is_placehold) {
                        $thumb_img = yt_placehold($placehold_size['small'], $item->title, $item->title);
                        //var_dump( $thumb_img);
                    }
                }
                echo $thumb_img;
                ?>
	      </a>
	      <?php 
            }
            ?>
	      <div class="main">
		<?php 
            if ($params->get('itemTitle')) {
                ?>
		<a class="moduleItemTitle" href="<?php 
                echo $item->link;
Esempio n. 12
0
    ?>
    <?php 
    // Begin:  The way to resize your image.
    $templateParams = JFactory::getApplication()->getTemplate(true)->params;
    YTTemplateUtils::getImageResizerHelper(array('background' => $templateParams->get('thumbnail_background', '#000'), 'thumbnail_mode' => $templateParams->get('thumbnail_mode', 'fit')));
    $imgW = isset($leadingFlag) && $leadingFlag ? $templateParams->get('leading_width', '300') : $templateParams->get('intro_width', '200');
    $imgH = isset($leadingFlag) && $leadingFlag ? $templateParams->get('leading_height', '300') : $templateParams->get('intro_height', '200');
    //$imgsrc = YTTemplateUtils::resize($images->image_intro, $imgW, $imgH);
    $imgsrc = $images->image_intro;
    //Create placeholder items images
    $src = $images->image_intro;
    if (file_exists(JPATH_BASE . '/' . $src) || strpos($src, 'http://') !== false) {
        $thumb_img = '<img width="60" src="' . $imgsrc . '" alt="' . $images->image_intro_alt . '" />';
    } else {
        if ($is_placehold) {
            $thumb_img = yt_placehold($placehold_size['small']);
        }
    }
    ?>
	<figure class="pull-<?php 
    echo htmlspecialchars($imgfloat);
    ?>
 item-image" >
		
		<?php 
    echo $thumb_img;
    ?>
		
    </figure>
<?php 
}
Esempio n. 13
0
                echo JText::_('K2_CONTINUE_READING');
                ?>
 &quot;<?php 
                echo K2HelperUtilities::cleanHtml($item->title);
                ?>
&quot;">
				  <?php 
                //Create placeholder items images
                if (isset($item->image)) {
                    $src = $item->image;
                }
                if (!empty($src)) {
                    $thumb_img = '<img src="' . $src . '" alt="' . $item->title . '" />';
                } else {
                    if ($is_placehold) {
                        $thumb_img = yt_placehold($placehold_size['latest_news'], $item->title, $item->title);
                        //var_dump( $thumb_img);
                    }
                }
                echo $thumb_img;
                ?>
			</a>
			<?php 
                if ($params->get('itemReadMore') && $item->fulltext) {
                    ?>
			<a class="moduleItemReadMore" href="<?php 
                    echo $item->link;
                    ?>
">
				<?php 
                    echo JText::_('K2_VIEW_MORE');
Esempio n. 14
0
			
				<div class="images-slideshow">
					<img alt="<?php 
        echo $item->displaytitle;
        ?>
" src="<?php 
        echo $img;
        ?>
"/>					
				</div>
				
				
			<?php 
    } else {
        $no_image = ' no-images';
        echo yt_placehold($placehold_size['slideshow']);
    }
    ?>
			
			<div class="item-content">
				<div class="item-content-inner">
					<?php 
    // display title
    if ($item->displaytitle != '') {
        ?>
					
					<h3 class="item-title">
						<a href="<?php 
        echo $item->link;
        ?>
" title="<?php 
Esempio n. 15
0
                echo JText::_('K2_CONTINUE_READING');
                ?>
 &quot;<?php 
                echo K2HelperUtilities::cleanHtml($item->title);
                ?>
&quot;">
             <?php 
                //Create placeholder items images
                if (isset($item->image)) {
                    $src = $item->image;
                }
                if (!empty($src)) {
                    $thumb_img = '<img src="' . $src . '" alt="' . K2HelperUtilities::cleanHtml($item->title) . '" />';
                } else {
                    if ($is_placehold) {
                        $thumb_img = yt_placehold($placehold_size['k2_content_top_news4'], $item->title, $item->title);
                    }
                }
                echo $thumb_img;
                ?>
	      </a>
	      <?php 
            }
            ?>



      <?php 
        }
        ?>
Esempio n. 16
0
            ?>
" target="<?php 
            echo $options->item_link_target;
            ?>
" href="<?php 
            echo $items->link;
            ?>
">
							<?php 
            //Create placeholder images
            $src = $items->image;
            if (file_exists($src)) {
                echo "<img src='" . Ytools::resize($items->image, $image_config) . "' alt='" . $items->title . "'/>";
            } else {
                if ($is_placehold) {
                    echo yt_placehold($placehold_size['latest_news']);
                }
            }
            ?>
						</a>
						<a class="hover-link" href="<?php 
            echo $items->link;
            ?>
" target="<?php 
            echo $options->item_link_target;
            ?>
">

						</a>
				</div>
			<?php 
Esempio n. 17
0
			<?php 
            if ((int) $this->params->get('item_image_display', 1)) {
                ?>
				<div class="img-fulltext pull-none">
				
					<?php 
                $img = BaseHelper::getArticleImage($item, $_params);
                //Create placeholder images
                if (isset($img['src'])) {
                    $src = $img['src'];
                }
                if (file_exists($src)) {
                    echo BaseHelper::imageTag($img);
                } else {
                    if ($is_placehold) {
                        echo yt_placehold($placehold_size['related_items']);
                    }
                }
                ?>
					
				</div>
			<?php 
            }
            ?>
			
			<?php 
            if ((int) $_params->get('item_date_display', 1) == 1) {
                ?>
				<span class="related-item-date"><?php 
                echo JHtml::date($item->created, 'd.m.Y');
                ?>
Esempio n. 18
0
		     
			      <a class="" data-rel="prettyPhoto" href="<?php 
        echo $this->item->imageXLarge;
        ?>
" title="<?php 
        echo JText::_('K2_CLICK_TO_PREVIEW_IMAGE');
        ?>
">
				      <?php 
        //Create placeholder items images
        $src = $this->item->image;
        if (!empty($src)) {
            $thumb_img = '<img src="' . $src . '" alt="' . $this->item->title . '" />';
        } else {
            if ($is_placehold) {
                $thumb_img = yt_placehold($placehold_size['article'], $this->item->title);
            }
        }
        echo $thumb_img;
        ?>
			      </a>
		      
		</div>

		<?php 
        if ($this->item->params->get('itemImageMainCaption') && !empty($this->item->image_caption)) {
            ?>
		<!-- Image caption -->
		<span class="itemImageCaption"><?php 
            echo $this->item->image_caption;
            ?>
Esempio n. 19
0
		<ul class="items">
			<?php 
    foreach ($this->relatedItems as $key => $item) {
        ?>
			<li class="item">
				<div class="item-images">
				<?php 
        $src_rela = $item->imageLarge;
        $title_rela = K2HelperUtilities::cleanHtml($item->title);
        if ($this->item->params->get('itemRelatedImageSize')) {
            //Create placeholder items images
            if (!empty($src_rela)) {
                $thumb_img = '<img src="' . $src_rela . '" alt="' . $title_rela . '" />';
            } else {
                if ($is_placehold) {
                    $thumb_img = yt_placehold($placehold_size['related_items'], $this->item->title);
                }
            }
            echo $thumb_img;
        }
        ?>
				</div>
				<?php 
        if ($this->item->params->get('itemRelatedTitle', 1)) {
            ?>
				<h3 class="itemRelTitle" ><a href="<?php 
            echo $item->link;
            ?>
"><?php 
            echo $item->title;
            ?>
Esempio n. 20
0
>
												<?php 
            //Create placeholder images
            if (isset($img)) {
                ?>
									
														<img alt="<?php 
                echo $item->displaytitle;
                ?>
" src="<?php 
                echo $img;
                ?>
"/>	
													<?php 
            } else {
                echo yt_placehold($placehold_size['slider']);
            }
            ?>
											</a>
											<a data-rel="prettyPhoto" href="<?php 
            echo $img;
            ?>
" title="<?php 
            echo $item->title;
            ?>
" class="item-image">
												<i class="fa fa-plus"></i>
											</a>
										</div>
									</div>
								<?php 
Esempio n. 21
0
                echo JText::_('K2_CONTINUE_READING');
                ?>
 &quot;<?php 
                echo K2HelperUtilities::cleanHtml($item->title);
                ?>
&quot;">
	      		<?php 
                //Create placeholder items images
                if (isset($item->image)) {
                    $src = $item->image;
                }
                if (!empty($src)) {
                    $thumb_img = '<img src="' . $src . '" alt="' . $item->title . '" />';
                } else {
                    if ($is_placehold) {
                        $thumb_img = yt_placehold($placehold_size['k2_style_one'], $item->title, $item->title);
                        //var_dump( $thumb_img);
                    }
                }
                echo $thumb_img;
                ?>
	      </a>
		<?php 
            }
            ?>
		<?php 
            $string_color1 = strstr($item->categoryname, "|");
            $string_color2 = str_replace("|", "#", $string_color1);
            $string_cate = str_replace($string_color1, "", $item->categoryname);
            ?>
		<?php 
Esempio n. 22
0
    ?>
    <?php 
    // Begin:  The way to resize your image.
    $templateParams = JFactory::getApplication()->getTemplate(true)->params;
    YTTemplateUtils::getImageResizerHelper(array('background' => $templateParams->get('thumbnail_background', '#000'), 'thumbnail_mode' => $templateParams->get('thumbnail_mode', 'fit')));
    $imgW = isset($leadingFlag) && $leadingFlag ? $templateParams->get('leading_width', '300') : $templateParams->get('intro_width', '200');
    $imgH = isset($leadingFlag) && $leadingFlag ? $templateParams->get('leading_height', '300') : $templateParams->get('intro_height', '200');
    $imgsrc = YTTemplateUtils::resize($images->image_intro, $imgW, $imgH);
    //Create placeholder items images
    $src = $images->image_intro;
    if (file_exists(JPATH_BASE . '/' . $src)) {
        $thumb_img = '<img src="' . $imgsrc . '" alt="' . $images->image_intro_alt . '" />';
        $full_img = JURI::base() . '/' . htmlspecialchars($images->image_intro);
    } else {
        if ($is_placehold) {
            $thumb_img = yt_placehold($placehold_size['listing']);
            $full_img = 'http://placehold.it/' . $placehold_size['article'] . '/969696';
        }
    }
    ?>
	<figure class="pull-<?php 
    echo htmlspecialchars($imgfloat);
    ?>
 item-image" >
		<a  data-rel="prettyPhoto"   title="<?php 
    echo htmlspecialchars($images->image_fulltext_alt);
    ?>
" href="<?php 
    echo $full_img;
    ?>
" >
Esempio n. 23
0
    ?>
    <?php 
    // Begin:  The way to resize your image.
    $templateParams = JFactory::getApplication()->getTemplate(true)->params;
    YTTemplateUtils::getImageResizerHelper(array('background' => $templateParams->get('thumbnail_background', '#000'), 'thumbnail_mode' => $templateParams->get('thumbnail_mode', 'fit')));
    $imgW = isset($leadingFlag) && $leadingFlag ? $templateParams->get('leading_width', '300') : $templateParams->get('intro_width', '200');
    $imgH = isset($leadingFlag) && $leadingFlag ? $templateParams->get('leading_height', '300') : $templateParams->get('intro_height', '200');
    //$imgsrc = YTTemplateUtils::resize($images->image_intro, $imgW, $imgH);
    $imgsrc = $images->image_intro;
    //Create placeholder items images
    $src = $images->image_intro;
    if (file_exists(JPATH_BASE . '/' . $src) || strpos($src, 'http://') !== false) {
        $thumb_img = '<img src="' . $imgsrc . '" alt="' . $images->image_intro_alt . '" />';
    } else {
        if ($is_placehold) {
            $thumb_img = yt_placehold($placehold_size['project']);
        }
    }
    ?>
	<figure class="pull-<?php 
    echo htmlspecialchars($imgfloat);
    ?>
 item-image" >
		
		<?php 
    echo $thumb_img;
    ?>
		
    </figure>
<?php 
}
Esempio n. 24
0
				</div>
				<div class="acd-content-wrap cf">
					<div class="acd-content-wrap-inner cf">
						<div class="acd-image cf">
							
								<?php 
        //Create placeholder images
        $img = SjContentAccordionHelper::getAImage($item, $params);
        if (isset($img['src'])) {
            $src = $img['src'];
        }
        if (file_exists($src)) {
            echo SjContentAccordionHelper::imageTag($img);
        } else {
            if ($is_placehold) {
                echo yt_placehold($placehold_size['hot_stories']);
            }
        }
        ?>
	
								<a class="hover-link" href="<?php 
        echo $item->link;
        ?>
"></a>
							
						</div>
						<?php 
        if ($params->get('item_description_display') == 1 || $params->get('item_readmore_display') == 1) {
            ?>
						<div class="acd-content">
							<?php 
Esempio n. 25
0
" alt="<?php 
        if (!empty($this->item->image_caption)) {
            echo K2HelperUtilities::cleanHtml($this->item->image_caption);
        } else {
            echo K2HelperUtilities::cleanHtml($this->item->title);
        }
        ?>
" style="width:<?php 
        echo $this->item->imageWidth;
        ?>
px; height:auto;" />

					<?php 
    } else {
        if ($is_placehold) {
            $thumb_img = yt_placehold($placehold_size['grid'], $this->item->title, $this->item->title);
        }
    }
    echo $thumb_img;
    ?>
			  
		    </a>
		    <?php 
    if ($this->item->params->get('catItemExtraFields') && count($this->item->extra_fields)) {
        ?>
			  <!-- Item extra fields -->
			  <div class="catItemExtraFields">
				<ul>
					<?php 
        foreach ($this->item->extra_fields as $key => $extraField) {
            ?>