Пример #1
0
?>
<div id="phocagallery-comments">	
	<?php 
echo '<div style="font-size:1px;height:1px;margin:0px;padding:0px;">&nbsp;</div>';
//because of IE bug
if (!empty($this->commentitem)) {
    $userImage = JHTML::_('image.site', 'components/com_phocagallery/assets/images/icon-user.' . $this->tmpl['formaticon'], '', '', '', '', '');
    $smileys = PhocaGalleryHelperComment::getSmileys();
    foreach ($this->commentitem as $itemValue) {
        $date = JHTML::_('date', $itemValue->date, JText::_('DATE_FORMAT_LC2'));
        $comment = $itemValue->comment;
        $comment = PhocaGalleryHelperComment::bbCodeReplace($comment);
        foreach ($smileys as $smileyKey => $smileyValue) {
            $comment = str_replace($smileyKey, JHTML::_('image.site', 'components/com_phocagallery/assets/images/' . $smileyValue . '.' . $this->tmpl['formaticon'], '', '', '', '', ''), $comment);
        }
        echo '<fieldset>' . '<legend>' . $userImage . '&nbsp;' . $itemValue->username . '</legend>' . '<p><strong>' . PhocaGalleryHelperFront::wordDelete($itemValue->title, 50, '...') . '</strong></p>' . '<p style="overflow:auto;width:' . $this->tmpl['commentwidth'] . 'px;">' . $comment . '</p>' . '<p style="text-align:right"><small>' . $date . '</small></p>' . '</fieldset>';
    }
}
echo '<fieldset>' . '<legend>' . JText::_('Add comment') . '</legend>';
if ($this->tmpl['alreadycommented']) {
    echo '<p>' . JText::_('You have already submitted comment') . '</p>';
} else {
    if ($this->tmpl['notregistered']) {
        echo '<p>' . JText::_('Only registered and logged in user can submit a comment') . '</p>';
    } else {
        ?>
		
		<form action="<?php 
        echo $this->tmpl['action'];
        ?>
" name="phocagallerycommentsform" id="phocagallery-comments-form" method="post" >
Пример #2
0
						</div>
					</div>
				</div>
			</center>
			
		<?php 
        // subfolder
        if ($value->type == 1) {
            if ($value->displayname == 1 || $value->displayname == 2) {
                echo '<div class="name" style="font-size:' . $this->tmpl['fontsizename'] . 'px">' . PhocaGalleryHelperFront::wordDelete($value->title, $this->tmpl['charlengthname'], '...') . '</div>';
            }
        }
        // image
        if ($value->type == 2) {
            if ($value->displayname == 1) {
                echo '<div class="name" style="font-size:' . $this->tmpl['fontsizename'] . 'px">' . PhocaGalleryHelperFront::wordDelete($value->title, $this->tmpl['charlengthname'], '...') . '</div>';
            }
            if ($value->displayname == 2) {
                echo '<div class="name" style="font-size:' . $this->tmpl['fontsizename'] . 'px">&nbsp;</div>';
            }
        }
        if ($value->displayicondetail == 1 || $value->displayicondownload == 1 || $value->displayiconfolder == 1 || $value->displayiconvm || $value->startpiclens == 1 || $value->trash == 1 || $value->publishunpublish == 1 || $this->tmpl['displayicongeo'] == 1) {
            echo '<div class="detail" style="margin-top:2px">';
            if ($value->startpiclens == 1) {
                ?>
<a href="javascript:PicLensLite.start();" title="PicLens" ><img src="http://lite.piclens.com/images/PicLensButton.png" alt="PicLens" width="16" height="12" border="0" style="margin-bottom:2px" /></a><?php 
            }
            if ($value->displayicondetail == 1) {
                ?>
 <a class="<?php 
                echo $value->buttonother->methodname;
 		}
 */
 $output[$i] .= '<div class="phocagallery-box-file" style="height:' . $boxImageHeight . 'px; width:' . $boxImageWidth . 'px;float:left">' . "\n";
 $output[$i] .= '<center>' . "\n" . '<div class="phocagallery-box-file-first" style="height:' . $imageHeightBg . 'px;width:' . $imageWidthBg . 'px;">' . "\n" . '<div class="phocagallery-box-file-second">' . "\n" . '<div class="phocagallery-box-file-third">' . "\n" . '<center>' . "\n" . '<a class="' . $button->methodname . '" title="' . $valueImages->title . '" href="' . JRoute::_($valueImages->link) . '"';
 if ($detail_window == 1) {
     $output[$i] .= ' onclick="' . $button->options . '"';
     // Standard Popup window
 } else {
     $output[$i] .= ' rel="' . $button->options . '"';
     // Modal box
 }
 $output[$i] .= ' >' . "\n";
 $output[$i] .= '<img src="' . JURI::base(true) . '/' . $valueImages->linkthumbnailpath . '" alt="' . $valueImages->title . '" width="' . $imageWidth . '" height="' . $imageHeight . '" />';
 $output[$i] .= '</a>' . '</center>' . "\n" . '</div>' . "\n" . '</div>' . "\n" . '</div>' . "\n" . '</center>' . "\n";
 if ($display_name == 1) {
     $output[$i] .= '<div class="name" style="text-align:center;color: ' . $font_color . ' ;font-size:' . $font_size_name . 'px;">' . PhocaGalleryHelperFront::wordDelete($valueImages->title, $char_length_name, '...') . '</div>';
 }
 if ($display_icon_detail == 1 || $display_icon_download == 1) {
     $output[$i] .= '<div class="detail" style="text-align:right">';
     if ($display_icon_detail == 1) {
         $output[$i] .= '<a class="' . $button->methodname . '" title="' . JText::_('Image Detail') . '" href="' . JRoute::_($valueImages->link) . '"';
         if ($detail_window == 1) {
             $output[$i] .= ' onclick="' . $button->options . '"';
         } else {
             $output[$i] .= ' rel="' . $button->options . '"';
         }
         $output[$i] .= ' >';
         //$output[$i] .= JHTML::_('image', 'components/com_phocagallery/assets/images/icon-view....', $image->title);
         $output[$i] .= '<img src="' . JURI::base(true) . '/' . 'components/com_phocagallery/assets/images/icon-view.' . PhocaGalleryHelperFront::getFormatIconComponent() . '" alt="' . $valueImages->title . '" />';
         $output[$i] .= '</a>';
     }