Exemple #1
0
 function ag_imageInfo($imageURLPHP)
 {
     list($width, $height, $type, $attr) = getimagesize($imageURLPHP);
     $types = array(1 => 'GIF', 2 => 'JPG', 3 => 'PNG', 4 => 'SWF', 5 => 'PSD', 6 => 'BMP', 7 => 'TIFF(intel byte order)', 8 => 'TIFF(motorola byte order)', 9 => 'JPC', 10 => 'JP2', 11 => 'JPX', 12 => 'JB2', 13 => 'SWC', 14 => 'IFF', 15 => 'WBMP', 16 => 'XBM');
     if ($type) {
         return $imageInfo = array("width" => $width, "height" => $height, "type" => $types[$type], "size" => agHelper::ag_fileRoundSize(filesize($imageURLPHP)));
     }
 }
Exemple #2
0
<?php

$ag->addCSS('/plugins/content/AdmirorGallery/templates/' . $ag->params['galleryStyle'] . '/template.css');
// Form HTML code
$html = '<!-- ======================= Admiror Gallery -->
<div id="AdmirorGallery' . $galleryCount . '(' . $ag->params['galleryStyle'] . '' . $articleID . ')">
<table cellspacing="0" cellpadding="0" border="0" width="100%">
<tbody>
<tr>
<td class="agArtistic_galleryHolder">
';
foreach ($ag->images as $imagesKey => $imageValue) {
    // Calculate $listed_imageSize
    $agArtistic_imageInfo_array = agHelper::ag_imageInfo(JPATH_BASE . DS . $ag->params['rootFolder'] . $ag->imagesFolderName . '/' . $imageValue);
    $html .= '<span class="ag_thumb' . $ag->params['galleryStyle'] . '">';
    $html .= $ag->generatePopupHTML($popup, $imageValue);
    $html .= '<span class="agArtistic_description">' . $ag->getDescription($imageValue) . '</span>';
    $html .= '<span class="agArtistic_size">' . agHelper::ag_fileRoundSize($agArtistic_imageInfo_array['size']) . '</span>';
    $html .= '</span>';
}
$html .= '
</td>
</tr>
</tbody>
</table>
';
$html .= '</div>';
//if there is any extra script that needs to be put after gallery html.
$html .= $popup->jsInclude;
Exemple #3
0
    $imageInfo_array = agHelper::ag_imageInfo(JPATH_BASE . DS . $ag->params['rootFolder'] . $ag->imagesFolderName . '/' . $imageValue);
    $html .= '
    <table border="0" cellspacing="0" cellpadding="0" width="100%" class="ag_overscroll_item">
    <tbody>
    <tr><td class="ag_overscroll_thumbTd">
    <span class="ag_thumb' . $ag->params['galleryStyle'] . '">';
    $html .= $ag->generatePopupHTML($popup, $imageValue);
    $html .= '</span></td><td class="ag_overscroll_info">
    <table border="0" cellspacing="0" cellpadding="0">
    <tbody>
    <tr><td class="ag_overscroll_description">
    ' . $ag->getDescription($imageValue) . '
    <tr><td class="ag_overscroll_imageStat">
    <span>W:' . $imageInfo_array["width"] . 'px</span>
    <span>H:' . $imageInfo_array["height"] . 'px</span>
    <span>S:' . agHelper::ag_fileRoundSize($imageInfo_array['size']) . '</span>
    </td></tr>
    </td></tr></tbody></table>
    </td></tr></tbody></table>';
}
$html .= '
    </div>
  </div>
</div>
';
$html .= '
<script type="text/javascript">

jQuery(function($) {
  jQuery(".ag_overscroll_bodyHolder").overscroll();
});
Exemple #4
0
 /**
  * Gets image info data, and loads it in imageInfo array. It also rounds image size.
  * @param <string> $imageName
  */
 function getImageInfo($imageName)
 {
     $this->imageInfo = agHelper::ag_imageInfo($this->imagesFolderPhysicalPath . $this->DS . $imageName);
     $this->imageInfo["size"] = agHelper::ag_fileRoundSize($this->imageInfo["size"]);
 }