コード例 #1
0
ファイル: Slot.php プロジェクト: WannaCoDev/PageImage
 public static function bkgImage($data)
 {
     $imageFiles = Service::pageImages();
     $images = array();
     foreach ($imageFiles as $image) {
         $file = $image;
         $options = array('type' => 'copy');
         $copiedImage = ipReflection($file, $options);
         if (!$copiedImage) {
             echo ipReflectionException();
         } else {
             $images[] = ipFileUrl($copiedImage);
         }
     }
     $answer = ipView('view/slot2.php', array('images' => $images))->render();
     return $answer;
 }
コード例 #2
0
ファイル: default.php プロジェクト: sspaeti/ImpressPages
    ?>
		<div class="item <?php 
    if ($key == 0) {
        echo 'active';
    }
    ?>
">
			<a href="<?php 
    echo $val['url'];
    ?>
">
				<?php 
    $options = array('type' => 'center', 'width' => ipGetOption('SlideShow.imageWidth', 1121), 'height' => ipGetOption('SlideShow.imageHeight', 397));
    $thumbnail = ipReflection($val['image'], $options);
    if (!$thumbnail) {
        $thumbnail = ipReflectionException();
    } else {
        $thumbnail = ipFileUrl($thumbnail);
    }
    ?>
				<img class="img-responsive" src="<?php 
    echo $thumbnail;
    ?>
" alt="" />
				<?php 
    if (!empty($val['text'])) {
        ?>
				<div class="carousel-caption">
					<div class="col-xs-4 col-xs-push-8">
						<div class="description">
							<h2><?php