REQUIRED!  If "type" (see above), ISN'T "Sidebar", then enter a dummy value (eg; 999) EOT; // ------------------------------------------------------------------------- $help_text_sidebar_fit_start_height_div_width = <<
  • The resulting ad image height, and;
  • The ad image width multiplied by the value of this field.
  • As follows:-
    LESS THAN OR EQUAL
    The ad is displayed with it's aspect ratio preserved.
    GREATER THAN
    The ad will be shrunk - heightwise - to the ad image width multiplied by the value of this field.
    (optional - default = 1) EOT; // ------------------------------------------------------------------------- $help_text_sidebar_fit_end_discard_start_height_div_width = <<
  • The resulting ad image height, and;
  • The ad image width multiplied by the value of this field.
  • As follows:-
    LESS THAN OR EQUAL
    The ad is DISPLAYED (though possibly reduced in size - heightwise - as specified by the previous field).
    GREATER THAN
    The ad is DISCARDED.
    (optional - default = 1.5) EOT; // ------------------------------------------------------------------------- $temp = array( // ----------------------------------------------------------------- // sidebar_outer_width_px // ----------------------------------------------------------------- array( 'form_field_name' => 'sidebar_outer_width_px' , 'zebra_control_type' => 'text' , 'label' => 'Outer Width (px)' , 'help_text' => $help_text_sidebar_outer_width_px , 'attributes' => array( // 'style' => 'width:98%' ) , 'rules' => array( 'required' => array( 'error' , // variable to add the error message to 'Field is required' // error message if value doesn't validate ) ) ) , // ----------------------------------------------------------------- // sidebar_outer_max_height_px // sidebar_max_ads // ----------------------------------------------------------------- array( 'form_field_name' => 'sidebar_outer_max_height_px' , 'zebra_control_type' => 'text' , 'label' => 'Outer Height Max. (px)' , 'help_text' => '(optional:  Default = 1000   —   0 = NO limit)' , 'attributes' => array( // 'style' => 'width:98%' ) , 'rules' => array() ) , // ----------------------------------------------------------------- array( 'form_field_name' => 'sidebar_max_ads' , 'zebra_control_type' => 'text' , 'label' => 'Max. #Ads' , 'help_text' => '(optional - default = 999 (effectively, no limit) - 0 = no limit)' , 'attributes' => array( // 'style' => 'width:98%' ) , 'rules' => array() ) , // ----------------------------------------------------------------- // sidebar_gap_height_px // sidebar_gap_colour // ----------------------------------------------------------------- array( 'form_field_name' => 'sidebar_gap_height_px' , 'zebra_control_type' => 'text' , 'label' => 'Gap Height (px)' , 'help_text' => '(optional - default = 8)' , 'attributes' => array( // 'style' => 'width:98%' ) , 'rules' => array() ) , // ----------------------------------------------------------------- array( 'form_field_name' => 'sidebar_gap_colour' , 'zebra_control_type' => 'text' , 'label' => 'Gap Colour (#123ABC)' , 'help_text' => '(optional - default = transparent)' , 'attributes' => array( // 'style' => 'width:98%' ) , 'rules' => array() ) , // ----------------------------------------------------------------- // sidebar_fit_start_height_div_width // sidebar_fit_end_discard_start_height_div_width // ----------------------------------------------------------------- array( 'form_field_name' => 'sidebar_fit_start_height_div_width' , 'zebra_control_type' => 'text' , 'label' => 'Fit Start Height/Width' , 'help_text' => $help_text_sidebar_fit_start_height_div_width , 'attributes' => array( // 'style' => 'width:98%' ) , 'rules' => array() ) , // ----------------------------------------------------------------- array( 'form_field_name' => 'sidebar_fit_end_discard_start_height_div_width' , 'zebra_control_type' => 'text' , 'label' => 'Fit End / Discard Start Height/Width' , 'help_text' => $help_text_sidebar_fit_end_discard_start_height_div_width , 'attributes' => array( // 'style' => 'width:98%' ) , 'rules' => array() ) , // ----------------------------------------------------------------- // sidebar_extra_style // ----------------------------------------------------------------- array( 'form_field_name' => 'sidebar_extra_style' , 'zebra_control_type' => 'text' , 'label' => 'Extra Style' , 'help_text' => '(optional - CSS style string - eg; "margin-left:2em; overflow:none" - without the surrounding double quotes)' , 'attributes' => array( 'style' => 'width:98%' ) , 'rules' => array() ) // ----------------------------------------------------------------- ) ; // ============================================================================= // That's that! // =============================================================================