Created
May 13, 2015 04:49
-
-
Save basdog22/f49a656a1935d310a133 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
class AnastasiaTheme { | |
static function listimages($params=''){ | |
return \Image::lists('original_filename','id'); | |
} | |
static function getimages($params=''){ | |
$slides = array(); | |
foreach($params as $k=>$slide){ | |
$slide['img'] = \Image::find($slide['img']); | |
$slide['url'] = url($slide['url']); | |
$slides[] = $slide; | |
} | |
return $slides; | |
} | |
static function getblockdata($params){ | |
return $params; | |
} | |
} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment