Skip to content

Instantly share code, notes, and snippets.

@basdog22
Created May 13, 2015 04:49
Show Gist options
  • Save basdog22/f49a656a1935d310a133 to your computer and use it in GitHub Desktop.
Save basdog22/f49a656a1935d310a133 to your computer and use it in GitHub Desktop.
<?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