Create New Item
Item Type
File
Folder
Item Name
Search file in folder and subfolders...
Are you sure want to rename?
File Manager
/
wp-content
/
plugins
/
blog2social
/
includes
/
PRG
/
Ship
:
Image.php
Advanced Search
Upload
New Item
Settings
Back
Back Up
Advanced Editor
Save
<?php class PRG_Ship_Image { public function __construct() { } public function getItemHtml($postId,$postContent,$postUrl,$userLang='en') { $content = ''; $imageData = B2S_Util::getImagesByPostID($postId,$postContent,$postUrl, true,$userLang); $isImage = (is_array($imageData) && !empty($imageData)) ? true : false; if ($isImage) { $tempCountImage = 0; foreach ($imageData as $key => $image) { $content .='<div class="prg-image-item">'; $content .='<div class="prg-image-item-thumb">'; $content .='<label for="prg-image-count-' . $tempCountImage . '">'; $content .='<img class="img-thumbnail" alt="blogImage" src="' . esc_url($image[0]) . '">'; $content .= '</label>'; $content .='</div>'; $content .='<div class="prg-image-item-caption text-center">'; $content .= '<input ' . (($tempCountImage == 0) ? 'checked="checked"' : '') . ' type="radio" value="' . esc_attr($image[0]) . '" name="bild" class="prgImage" id="prg-image-count-' . esc_attr($tempCountImage) . '">'; $content .= '</div>'; $content .= '</div>'; $tempCountImage++; } } return $content; } }