<?php
/* ------------------------------------------------------------------------ *
 * Seja Framework Version 3.0
 *
 * 3.1 - Facebook
 * ------------------------------------------------------------------------ */

function seja_facebook_url_callback($args) { 
    
	$this_option = get_option('seja_facebook_options_url'); 
	
    ?>
    <input name="seja_facebook_options_url" type="text" id="seja_facebook_url" value="<?php echo $this_option; ?>" class="regular-text" />
    <label for="seja_facebook_options_url"></label> 
   
    <?php
}

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

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

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

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

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

function seja_facebook_colourscheme_callback($args) { 
    
	$this_option = get_option('seja_facebook_options_colorscheme');
	$light = '';
	$dark = '';
	if( $this_option == 'light' ) : $light= ' selected="selected"'; endif;
	if ($this_option == 'dark'  ) : $dark = ' selected="selected"'; endif;
	
    ?>
    <select name="seja_facebook_options_colorscheme" class=" seja-select">
	<option id="seja_facebook_options_colorscheme_light" value="light"<?php echo $light ?>>Light</option>
	<option id="seja_facebook_options_colorscheme_dark" value="dark"<?php echo $dark ?>>Dark</option>
	</select>
    <label for="seja_facebook_options_colorscheme"><?php echo $args[0] ?></label>
    
	<?php
} 

function seja_facebook_bordercolour_callback($args) { 
    
	$this_option = get_option('seja_facebook_options_bordercolor');
	 
    ?>
    <input name="seja_facebook_options_bordercolor" type="text" id="seja_facebook_options_bordercolor" value="<?php echo $this_option ?>" class="regular-text" />
    <label for="seja_facebook_options_bordercolor"><?php echo $args[0] ?></label>
    <hr>
    <h3>Facebook Pixel</h3>
    <p>If you have a Facebook pixel ID, place it here.</p>
	<?php 
	
}
function seja_fb_pixel_callback($args) { 
     
	$this_option = get_option('seja_fb_pixel'); 
     
    ?>
	<input name="seja_fb_pixel" type="text" id="seja_fb_pixel" class="regular-text"  value="<?php echo $this_option; ?>" />
	Enter your facebook Pixel tracking ID
	<?php

}
function seja_facebook_debug_callback($args) {
	
	if ( SEJA_DEBUG_MODE == '1') :
			?>
            <h3>TESTING VARIABLES - disable by setting debug to zero in definitions</h3>
			<p>SEJA_FACEBOOK_URL <strong>: <?php echo SEJA_FACEBOOK_URL ?></strong><br>
			SEJA_FACEBOOK_WIDTH <strong>: <?php echo SEJA_FACEBOOK_WIDTH ?></strong><br>
			SEJA_FACEBOOK_HEIGHT <strong>: <?php echo SEJA_FACEBOOK_HEIGHT ?></strong><br>
			SEJA_FACEBOOK_SHOWFACES <strong>: <?php echo SEJA_FACEBOOK_SHOWFACES ?></strong><br>
			SEJA_FACEBOOK_SHOWSTREAM <strong>: <?php echo SEJA_FACEBOOK_SHOWSTREAM ?></strong><br>
			SEJA_FACEBOOK_SHOWHEADER <strong>: <?php echo SEJA_FACEBOOK_SHOWHEADER ?></strong><br>
			SEJA_FACEBOOK_COLORSCHEME <strong>: <?php echo SEJA_FACEBOOK_COLORSCHEME ?></strong><br>
			SEJA_FACEBOOK_BORDERCOLOR <strong>: <?php echo SEJA_FACEBOOK_BORDERCOLOR ?></strong></p>
            <?php
	
	 endif;
} 
?>