Last active
August 29, 2015 14:27
-
-
Save 8lane/0d007cd562be2dce4b55 to your computer and use it in GitHub Desktop.
ips4 theme setting multiple images
This file contains hidden or 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 | |
| $images = array(); | |
| foreach(explode(',', $value) as $key) { | |
| $images[] = \IPS\File::get( 'core_Theme', $key ); | |
| } | |
| return new \IPS\Helpers\Form\Upload( "core_theme_setting_title_{$row['sc_id']}", isset($images) ? $images : null, FALSE, array( 'storageExtension' => 'core_Theme', 'multiple' => true, 'image' => TRUE ), NULL, NULL, NULL, 'base_lc_bg_imgs' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment