Ejemplo n.º 1
0
function getTheTheSliderSkins()
{
    global $TheTheIS;
    $arrSkins = array();
    $strDir = $TheTheIS['wp_plugin_dir'] . '/style/skins/';
    if (is_dir($strDir)) {
        if ($dh = opendir($strDir)) {
            while (($file = readdir($dh)) !== false) {
                if (is_dir($strDir . $file) && $file != '.' && $file != '..') {
                    $arrSkins[$file] = FormatStyle($file);
                }
            }
            closedir($dh);
        }
    }
    $arrSkins['none'] = 'None';
    return $arrSkins;
}
Ejemplo n.º 2
0
				</td>
				<td class="author column-author"><?php 
        echo $arrOptions['_slider_width'] . (!empty($arrOptions['_slider_width']) || !empty($arrOptions['_slider_height']) ? 'x' : '') . $arrOptions['_slider_height'];
        ?>
</td>
                <?php 
        $bgImg = $arrOptions['_slider_style'] == 'none' ? THETHE_IMAGE_SLIDER_URL . 'style/images/blank.gif' : THETHE_IMAGE_SLIDER_URL . 'style/skins/' . $arrOptions['_slider_style'] . '/buttons.png';
        ?>
				<td class="author column-author"><img class="thethe-slider-style-thumb" src="<?php 
        echo $bgImg;
        ?>
" alt="<?php 
        echo FormatStyle($arrOptions['_slider_style']);
        ?>
" title="<?php 
        echo FormatStyle($arrOptions['_slider_style']);
        ?>
" /></td>
				<td class="author column-author"><input type="text" value="<?php 
        echo htmlentities('[thethe-image-slider name="' . $arrOptions['_slider_name'] . '"]');
        ?>
" style="width: 80%"/></td>
			</tr>
			<tr id="viewslider<?php 
        echo get_the_ID();
        ?>
slides" class="thethe-slider-hidden">
				<td colspan="4">			
				<div class="">
					<form action="admin.php?page=thethe-image-slider" method="POST" class="thethe-ajaxformsubmit" id="slider<?php 
        echo get_the_ID();