<?php /** * @name Accordeon Menu CK params * @package com_accordeonmenuck * @copyright Copyright (C) 2014. All rights reserved. * @license GNU General Public License version 2 or later; see LICENSE.txt * @author Cedric Keiflin - http://www.template-creator.com - http://www.joomlack.fr */ defined('_JEXEC') or die; ?> <div class="clearfix" style="min-height:35px;margin: 0 5px;"> <?php $url = ACCORDEONMENUCK_MEDIA_URI . '/presets/'; $folder_path = ACCORDEONMENUCK_MEDIA_PATH . '/presets/'; $folders = JFolder::folders($folder_path); natsort($folders); $i = 1; foreach ($folders as $folder) { $theme_title = ""; if ( file_exists($folder_path . $folder. '/styles.json') ) { if ( file_exists($folder_path . '/' . $folder. '/preview.png') ) { $theme = $url . $folder . '/preview.png'; } else { $theme = ACCORDEONMENUCK_MEDIA_URI . '/images/what.png" width="110" height="110'; } } else { continue; } echo '<div class="themethumb" data-name="' . $folder . '" onclick="ckLoadPreset(\'' . $folder . '\', \'horizontal\')">' . '<div class="themethumbimg">' . '<img src="' . $theme . '" style="margin:0;padding:0;" title="' . $theme_title . '" class="cktip" />' . '</div>' . '<div class="themename">' . $folder . '</div>' . '</div>'; $i++; } ?> </div>