web/wp-content/plugins/slideshow-jquery-image-gallery/views/SlideshowPluginShortcode/shortcode-inserter.php
changeset 204 09a1c134465b
parent 203 f507feede89a
child 205 a4f7897e21a9
equal deleted inserted replaced
203:f507feede89a 204:09a1c134465b
     1 <a
       
     2 	href="#TB_inline?width=450&inlineId=insertSlideshowShortcode"
       
     3 	class="thickbox"
       
     4 	title="<?php _e('Insert a Slideshow', 'slideshow-plugin'); ?>"
       
     5 >
       
     6 	<?php _e('Insert Slideshow', 'slideshow-plugin'); ?>
       
     7 	<img
       
     8 		src="<?php echo SlideshowPluginMain::getPluginUrl() . '/images/adminIcon.png'; ?>"
       
     9 		alt="<?php _e('Insert a Slideshow', 'slideshow-plugin'); ?>"
       
    10 	/>
       
    11 </a>
       
    12 
       
    13 <div id="insertSlideshowShortcode" style="display: none;">
       
    14 
       
    15 	<h3 style="padding: 10px 0; color: #5a5a5a;">
       
    16 		<?php _e('Insert a Slideshow', 'slideshow-plugin'); ?>
       
    17 	</h3>
       
    18 
       
    19 	<div style="border: 1px solid #ddd; padding: 10px; color: #5a5a5a;">
       
    20 
       
    21 		<?php if($slideshows instanceof WP_Query && count($slideshows->get_posts()) > 0): ?>
       
    22 
       
    23 		<table>
       
    24 			<tr>
       
    25 
       
    26 				<td><?php _e('Select a slideshow', 'slideshow-plugin'); ?></td>
       
    27 				<td>
       
    28 					<select id="insertSlideshowShortcodeSlideshowSelect">
       
    29 
       
    30 						<?php foreach($slideshows->get_posts() as $slideshow): ?>
       
    31 
       
    32 						<?php if(!is_numeric($slideshow->ID)) continue; ?>
       
    33 
       
    34 						<option value="<?php echo $slideshow->ID; ?>">
       
    35 							<?php echo (!empty($slideshow->post_title)) ? htmlspecialchars($slideshow->post_title) : __('Untitled slideshow', 'slideshow-plugin'); ?>
       
    36 						</option>
       
    37 
       
    38 						<?php endforeach; ?>
       
    39 
       
    40 					</select>
       
    41 				</td>
       
    42 
       
    43 			</tr>
       
    44 			<tr>
       
    45 
       
    46 				<td>
       
    47 					<input
       
    48 						type="button"
       
    49 						class="button-primary insertSlideshowShortcodeSlideshowInsertButton"
       
    50 						value="<?php _e('Insert Slideshow', 'slideshow-plugin'); ?>"
       
    51 					/>
       
    52 					<input
       
    53 						type="button"
       
    54 						class="button insertSlideshowShortcodeCancelButton"
       
    55 					    value="<?php _e('Cancel', 'slideshow-plugin'); ?>"
       
    56 					/>
       
    57 				</td>
       
    58 
       
    59 			</tr>
       
    60 		</table>
       
    61 
       
    62 		<?php else: ?>
       
    63 
       
    64 		<p>
       
    65 			<?php echo sprintf(
       
    66 				__('It seems you haven\'t created any slideshows yet. %sYou can create a slideshow here!%s', 'slideshow-plugin'),
       
    67 				'<a href="' . admin_url('post-new.php?post_type=' . SlideshowPluginPostType::$postType) . '" target="_blank">',
       
    68 				'</a>'
       
    69 			); ?>
       
    70 		</p>
       
    71 
       
    72 		<?php endif; ?>
       
    73 
       
    74     </div>
       
    75 </div>