Skip to content

Instantly share code, notes, and snippets.

@8lane
Last active August 29, 2015 14:27
Show Gist options
  • Select an option

  • Save 8lane/0d007cd562be2dce4b55 to your computer and use it in GitHub Desktop.

Select an option

Save 8lane/0d007cd562be2dce4b55 to your computer and use it in GitHub Desktop.
ips4 theme setting multiple images
<?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