Exemple #1
0
 public function getFileSrc()
 {
     if (!$this->isNew()) {
         return Picture::getInstance('', $this->getObject()->getPicture(), '', 50, 50)->getRawLink('resize');
     } else {
         return '';
     }
 }
 public function getFileSrc($pic)
 {
     $method = $pic == 'picture' ? 'getPicture' : 'getPictureInactive';
     if (!$this->isNew() && $this->getObject()->{$method}()) {
         return Picture::getInstance('', $this->getObject()->{$method}(), '', 50, 50)->getRawLink('resize');
     } else {
         return '';
     }
 }
 public function getFileSrcForLang($lang)
 {
     return $this->getObject()->Translation[$lang]->value ? Picture::getInstance('', $this->getObject()->Translation[$lang]->value, '', 50, 50)->getRawLink('resize') : '';
 }
Exemple #4
0
 public function getMediaWithSize($width, $height)
 {
     return Picture::getInstance('', $this->getPicture(), '', $width, $height)->getRawLink('resize');
 }
Exemple #5
0
    ?>
						<?php 
    if ($index + 1 != count($pictures)) {
        ?>
							<a href="<?php 
        echo url_for('@admin_page?module=product&action=productpicspriority&order=down&id=' . $pict['id']);
        ?>
">
								<img src="/img/admin/sort_down.gif" style="padding:5px" border="0" alt="Down">
							</a>
						<?php 
    }
    ?>
					</td>
					<td align="center" class="formLabel"><img src="<?php 
    echo Picture::getInstance('', $pict['file'], '', 70, 70)->getRawLink('resize');
    ?>
" /></td>
					<td align="center" ><input type="checkbox" name="deletepics[]" class="sf_admin_batch_checkbox" value="<?php 
    echo $pict['id'];
    ?>
" /></td>
				</tr>
			<?php 
}
?>

			</tbody>
		</table> 
		<br />
		<input class="formInput" type="submit" name="Salvesta" value="<?php 
Exemple #6
0
			UL.animals LI.item<?php 
    echo $pGroup['id'];
    ?>
 A { background: url(<?php 
    echo Picture::getInstance('', $pGroup['picture_inactive'], '', 36, 36, true)->getRawLink('resize');
    ?>
) 50% 0 no-repeat; }
			UL.animals LI.item<?php 
    echo $pGroup['id'];
    ?>
 A:hover,
			UL.animals LI.item<?php 
    echo $pGroup['id'];
    ?>
 A.active { background: url(<?php 
    echo Picture::getInstance('', $pGroup['picture'], '', 36, 36, true)->getRawLink('resize');
    ?>
) 50% 0 no-repeat; }
		<?php 
}
?>
	</style>	
<?php 
end_slot();
?>


<?php 
slot('product_catalog_overlay');
?>
<!-- Modal Overlay -->