<?php
/* ------------------------------------------------------------------------ *
 * Seja Framework Version 3.0
 *
 * 3.4 - YouTube
 * ------------------------------------------------------------------------ */

function seja_youtube_rel_callback($args) { 
    
	$this_option = get_option('seja_youtube_options_rel');
	 
    ?><input type="checkbox" id="seja_youtube_options_rel" name="seja_youtube_options_rel" value="1"<?php echo checked(1, $this_option, false) ?> class="seja-checkbox"/>
    <label for="seja_youtube_options_rel"></label><?php echo $args[0] ?>
	
    <?php

}

function seja_youtube_width_callback($args) { 
    
	$this_option = get_option('seja_youtube_options_width');
	 
    ?>
    <input name="seja_youtube_options_width" type="text" id="seja_youtube_options_width" value="<?php echo $this_option ?>" class="regular-text" />
    <label for="seja_youtube_options_width"><?php echo $args[0] ?></label>
    <?php
}

function seja_youtube_height_callback($args) { 
    
	$this_option = get_option('seja_youtube_options_height');
	
    ?>
	<input name="seja_youtube_options_height" type="text" id="seja_youtube_options_height" value="<?php echo $this_option ?>" class="regular-text" />
    <label for="seja_youtube_options_height"><?php echo $args[0] ?></label>
	
	
    <div style="border:1px dotted #ccc; background:#e5e5e5; padding:20px; margin-top:20px; max-width:500px;">
    <p>This sets the defaults for YouTube videos sitewide, however videos can be individually styled by adding additional calls to the shortcode</p>	
	<h3>Default Usage</h3>
    <p>[youtube video=xxxxxxxxxxx]</p>
	<h3>Additional usage</h3>
	<p><strong>title </strong><em>Adds a title to the frame above the video.</em><br>
	<strong>rel </strong><em>Toggle related videos (rel=1 to show rel=0 to hide)</em><br>
	<strong>height</strong> and <strong>width</strong> <em>are used to set height and width of the video</em></p>
	<p><strong>Example</strong><br>[youtube video=xxxxxxxxxxx rel=1 width=415 height=337]</p>
    </div>
    
    <?php
}
function seja_youtube_debug_callback($args) { 
	
	if ( SEJA_DEBUG_MODE == '1'):
	
			?>
            <h3>TESTING VARIABLES - disable by setting debug to zero in definitions</h3>
	<p>SEJA_YOUTUBE_SHORTCODE_REL <strong>: <?php echo SEJA_YOUTUBE_SHORTCODE_REL ?></strong><br>
			SEJA_YOUTUBE_SHORTCODE_WIDTH <strong>: <?php echo SEJA_YOUTUBE_SHORTCODE_WIDTH ?></strong><br>
	SEJA_YOUTUBE_SHORTCODE_HEIGHT <strong>: <?php echo SEJA_YOUTUBE_SHORTCODE_HEIGHT ?></strong></p>
			
			<?php
	
	endif;

}

?>