<?php
/* ------------------------------------------------------------------------ *
 * Seja Framework Version 3.0
 *
 * 1.2 - WooCommerce
 * ------------------------------------------------------------------------ */



function seja_woopage_columns_callback($args) {
	
	$this_option = get_option('seja_woopage_columns'); 
	$disable_option = '';
	if( SEJA_TEMPLATE_TYPE == '3' )  $disable_option = ' disabled="disabled"'; ?>
      <select name="seja_woopage_columns" id="seja_woopage_columns" class="large-text code seja-select"<?php echo $disable_option; ?>>
    <?php seja_dropdown_option( 'left', 'Left Sidebar', $this_option ); ?>
    <?php seja_dropdown_option( 'right', 'Right Sidebar', $this_option ); ?>
    <?php seja_dropdown_option( 'slideout', 'Slideout Sidebar', $this_option ); ?>
      </select>
      <label for="seja_woopage_columns"><?php echo $args[0]; ?></label>
    
    <?php
	
}

function seja_woo_columns_callback($args) {
	
	$this_option = get_option('seja_woo_columns');
	 
    ?>
    <input name="seja_woo_columns" type="text" id="seja_woo_columns" value="<?php echo $this_option ?>" class="regular-text" />
    <label for="seja_woo_columns"><?php echo $args[0] ?></label> 
	</p>
	<p>Recommended: 3 to 4 products per column</p>
    
	<?php
}

function seja_woo_rows_callback($args) {
	
	$this_option = get_option('seja_woo_rows');
	 
    ?>
    <input name="seja_woo_rows" type="text" id="seja_woo_rows" value="<?php echo $this_option ?>" class="regular-text" />
    <label for="seja_woo_rows"><?php echo $args[0] ?></label> 
	<p>Recommended: 3 to 4 rows (9 - 16 products) per page </p>
    
	<?php
}
function seja_woo_haspadding_callback($args) { 
     
	$this_option = get_option('seja_woo_haspadding'); 
     
    ?><input type="checkbox" id="seja_woo_haspadding" name="seja_woo_haspadding" value="1" <?php echo checked(1, $this_option, false); ?> class="seja-checkbox">  
    <label for="seja_woo_haspadding"></label><?php echo $args[0] ?>
      
    <?php  
}
function seja_woo_disable_pricerange_callback($args) { 
     
	$this_option = get_option('seja_woo_disable_pricerange'); 
     
    ?><input type="checkbox" id="seja_woo_disable_pricerange" name="seja_woo_disable_pricerange" value="1" <?php echo checked(1, $this_option, false); ?> class="seja-checkbox">  
    <label for="seja_woo_disable_pricerange"></label><?php echo $args[0] ?>
    <p>Shows a single 'from' price, instead of a range.</p>
      
    <?php  
}
function seja_woo_remove_related_callback($args) { 
	$this_option = get_option('seja_woo_remove_related');
	
	?><input type="checkbox" id="seja_woo_remove_related" name="seja_woo_remove_related" value="1" <?php echo checked(1, $this_option, false); ?> class="seja-checkbox">  
    <label for="seja_woo_remove_related"></label><?php echo $args[0] ?>
    <p>Removes the 'Related Products' from the bottom of the product page.</p>
     
    <?php  

}

function seja_woo_remove_additionaltab_callback($args) {
	$this_option = get_option('seja_woo_remove_additionaltab');
	
	?><input type="checkbox" id="seja_woo_remove_additionaltab" name="seja_woo_remove_additionaltab" value="1" <?php echo checked(1, $this_option, false); ?> class="seja-checkbox">  
    <label for="seja_woo_remove_additionaltab"></label><?php echo $args[0] ?>
    <p>Removes the 'Additional Information' tab from the product page.</p>
     
    <?php  

}

function seja_woocommerce_debug_callback($args) {
	
	// FINAL SECTION OF PAGE

	if ( SEJA_DEBUG_MODE == '1') :
	
	?><h3>TESTING VARIABLES - disable by setting debug to zero in definitions</h3>
    <table cellpadding="2" cellspacing="1" class="debug-table">
      <tr>
      	<td>#name</td>
        <td>DEFINITION</td>
        <td>Output</td>
      </tr>
      <tr>
        <td>Sidebar Column</td>
        <td>SEJA_WOOPAGE_COLUMNS</td>
        <td><strong><?php echo SEJA_WOOPAGE_COLUMNS; ?></strong></td>
      </tr>
      <tr>
        <td>Product Columns (qty)</td>
        <td>SEJA_WOO_COL</td>
        <td><strong><?php echo SEJA_WOO_COL; ?></strong></td>
      </tr>
      <tr>
        <td>Produts per Row</td>
        <td>SEJA_WOO_ROW</td>
        <td><strong><?php echo SEJA_WOO_ROW; ?></strong></td>
      </tr>
      <tr>
        <td>Catelogue has padding</td>
        <td>SEJA_WOO_HASPADDING</td>
        <td><strong><?php echo SEJA_WOO_HASPADDING; ?></strong></td>
      </tr>
      <tr>
        <td>Total Products pp</td>
        <td>SEJA_WOO_TOTALPRODUCTS</td>
        <td><strong><?php echo SEJA_WOO_TOTALPRODUCTS; ?></strong></td>
      </tr>
      <tr>
        <td>Disable Price Range</td>
        <td>SEJA_WOO_DISABLE_PRICERANGE</td>
        <td><strong><?php echo SEJA_WOO_DISABLE_PRICERANGE; ?></strong></td>
      </tr>
      <tr>
        <td>Disable Related Products</td>
        <td>SEJA_WOO_REMOVE_RELATED</td>
        <td><strong><?php echo SEJA_WOO_REMOVE_RELATED; ?></strong></td>
      </tr>
      <tr>
        <td>Disable Additional Information tab</td>
        <td>SEJA_WOO_REMOVE_ADDITIONALTAB</td>
        <td><strong><?php echo SEJA_WOO_REMOVE_ADDITIONALTAB; ?></strong></td>
      </tr>
    </table>
    
    <?php
	
	 endif;
	      
} 
?>