Advertisement
firoze

// SMOF usage করে on এবং off ব্যবহার করে data input করার নি

Dec 2nd, 2014
168
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 1.94 KB | None | 0 0
  1. // SMOF usage করে  on এবং off ব্যবহার করে data input করার নিয়ম |
  2. /**********************************************************************************************/
  3. $of_options[] = array(  "name"      => "Logo Settings",
  4.                         "type"      => "heading"
  5.                 );
  6. // logo/banner usage                   
  7. $of_options[] = array(  "name"      => "left Header logo here!",
  8.                         "desc"      => "",
  9.                         "id"        => "header_logo_left",
  10.                         "std"       => "",
  11.                         "icon"      => true,
  12.                         "type"      => "upload"
  13.                 );
  14.  
  15. // logo/banner usage by on & off
  16. $of_options[] = array(  "name"      => "Uploader Your Logo/Banner", // This will display name
  17.                         "desc"      => "Select Option That You Like",
  18.                         "id"        => "header_logo_right", // ******************************//
  19.                         "on"        => "Need To Upload",    // This is button option
  20.                         "off"       => "Not Need To Upload",  // This is button option
  21.                         "std"       => 0,
  22.                         "type"      => "switch"
  23.                 );
  24. $of_options[] = array(  "name"      => "Uploader Option",
  25.                         "desc"      => "Pate Image/logo/banner oul OR Click To upload",
  26.                         "id"        => "default_logo",  // This will display default logo from our theme directory (show SMOF data input document)
  27.                         "std"       => "",
  28.                     //  'mod'       =>'min', // This is for only upload not use any url
  29.                         "fold"      => "header_logo_right", /* the switch hook */ //***************************//
  30.                         "type"      => "upload"
  31.                 );             
  32.                            
  33. /**********************************************************************************************/
  34.  
  35.  
  36. // যেভাবে data input করব |
  37. <div class="col-md-6">
  38.             <?php global $data; ?>
  39.             <?php if($data['header_logo_right']): ?>
  40.                 <img src="<?php global $data; echo $data['default_logo']; ?>" alt="" /> <!--// This will display default logo from our theme directory-->
  41.                 <?php else:?>
  42.                  <img src="<?php echo get_template_directory_uri();?>/images/a7.jpg" alt="" />
  43.                  <?php endif;?>
  44.             </div>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement