Changeset 1901512
- Timestamp:
- 06/30/2018 12:15:22 AM (8 years ago)
- Location:
- checkfront-wp-booking/trunk
- Files:
-
- 2 edited
-
CheckfrontWidget.php (modified) (4 diffs)
-
checkfront.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
checkfront-wp-booking/trunk/CheckfrontWidget.php
r992935 r1901512 7 7 * @version 3.0 8 8 * @author Checkfront <[email protected]> 9 * @copyright 2008-201 4Checkfront Inc9 * @copyright 2008-2018 Checkfront Inc 10 10 * @license http://opensource.org/licenses/bsd-license.php New BSD License 11 11 * @link http://www.checkfront.com/developers/ … … 62 62 63 63 64 public $load_msg = 'Searching Availability';64 public $load_msg = 'Searching Availability'; 65 65 public $continue_msg = 'Continue to Secure Booking System'; 66 public $offline_msg = 'Bookings not yet available here.';66 public $offline_msg = 'Bookings not yet available here.'; 67 67 68 68 public $arg = array(); … … 183 183 184 184 $cnf = array( 185 'widget_id'=>'', 186 'item_id'=>'', 187 'partner_id'=>'', 188 'lang_id'=>'', 189 'filter_category_id'=>'', 190 'category_id'=>'', 191 'theme'=>'', 192 'layout'=>'', 193 'tid'=>'', 194 'options'=>'', 195 'date'=>'', 196 'end_date'=>'', 197 'style'=>'', 198 'host'=>'', 185 'filter_category_id' => '', 186 'widget_id' => '', 187 'category_id'=> '', 188 'item_id' => '', 189 'partner_id' => '', 190 'lang_id' => '', 191 'theme' => '', 192 'layout' => '', 193 'tid' => '', 194 'options' => '', 195 'date' => '', 196 'start_date' => '', 197 'end_date' => '', 198 'style' => '', 199 'host' => '', 200 'popup' => '', 199 201 ); 200 202 … … 225 227 $html .= "category_id: '{$cnf['category_id']}',\n"; 226 228 } 227 if($cnf['theme']) $html .= "theme: '{$this->theme}',\n"; 228 if($cnf['width'] and $cnf['width'] > 0) $html .= "width: '{$cnf['width']}',\n"; 229 if($cnf['layout']) $html .= "layout: '{$cnf['layout']}',\n"; 230 if($cnf['partner_id']) $html .= "partner_id: '{$cnf['partner_id']}',\n"; 231 if($cnf['lang_id']) $html .= "lang_id: '{$cnf['lang_id']}',\n"; 232 if($cnf['tid']) $html .= "tid: '{$cnf['tid']}',\n"; 233 if($cnf['options']) $html.= "options: '{$cnf['options']}',\n"; 234 if($cnf['date']) $html.= "date: '{$cnf['date']}',\n"; 235 if($cnf['end_date']) $html.= "end_date: '{$cnf['end_date']}',\n"; 236 if($cnf['style']) $html .= "style: '{$cnf['style']}',\n"; 229 if($cnf['width'] and $cnf['width'] > 0) $html .= "width: '{$cnf['width']}',\n"; 230 if($cnf['theme']) $html .= "theme: '{$this->theme}',\n"; 231 if($cnf['layout']) $html .= "layout: '{$cnf['layout']}',\n"; 232 if($cnf['partner_id']) $html .= "partner_id: '{$cnf['partner_id']}',\n"; 233 if($cnf['lang_id']) $html .= "lang_id: '{$cnf['lang_id']}',\n"; 234 if($cnf['tid']) $html .= "tid: '{$cnf['tid']}',\n"; 235 if($cnf['options']) $html .= "options: '{$cnf['options']}',\n"; 236 if($cnf['date']) $html .= "date: '{$cnf['date']}',\n"; 237 if($cnf['start_date']) $html .= "start_date: '{$cnf['start_date']}',\n"; 238 if($cnf['end_date']) $html .= "end_date: '{$cnf['end_date']}',\n"; 239 if($cnf['style']) $html .= "style: '{$cnf['style']}',\n"; 240 if($cnf['popup']) $html .= "popup: '{$cnf['popup']}',\n"; 241 237 242 $html .= "provider: '{$this->provider}'\n"; 238 243 $html .="}).render();\n</script>\n"; -
checkfront-wp-booking/trunk/checkfront.php
r1874912 r1901512 16 16 /* ------------------------------------------------------*/ 17 17 18 //Shortcode [c lean-conract parameter="value"]18 //Shortcode [checkfront parameter="value"] 19 19 function checkfront_func($cnf, $content=null) { 20 20 $cnf=shortcode_atts(array( 21 'category_id' => '', 22 'item_id' => '', 23 'date' => '', 24 'tid' => '', 25 'discount' => '', 26 'options' => '', 27 'style' => '', 28 'host' => '', 29 'width' => '', 30 'theme' => '', 31 'lang_id' => '', 21 'category_id'=> '', 22 'item_id' => '', 23 'date' => '', 24 'start_date' => '', 25 'end_date' => '', 26 'tid' => '', 27 'discount' => '', 28 'options' => '', 29 'style' => '', 30 'host' => '', 31 'width' => '', 32 'theme' => '', 33 'lang_id' => '', 32 34 'partner_id' => '', 35 'popup' => '', 33 36 ), $cnf); 34 37 return checkfront($cnf); … … 115 118 } 116 119 117 // pl igin init120 // plugin init 118 121 function checkfront_init() { 119 122 global $Checkfront; … … 196 199 /* 197 200 Create Checkront class. If you wish to include this in a custom theme (not shortcode) 198 see the c ustom-theme-sample.php201 see the checkfront-custom-template-sample.php 199 202 */ 200 203 // Include Checkfront Widget Class
Note: See TracChangeset
for help on using the changeset viewer.