Plugin Directory

Changeset 1901512


Ignore:
Timestamp:
06/30/2018 12:15:22 AM (8 years ago)
Author:
checkfront
Message:

Update list of shortcode params

Location:
checkfront-wp-booking/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • checkfront-wp-booking/trunk/CheckfrontWidget.php

    r992935 r1901512  
    77 * @version     3.0
    88 * @author      Checkfront <[email protected]>
    9  * @copyright   2008-2014 Checkfront Inc
     9 * @copyright   2008-2018 Checkfront Inc
    1010 * @license     http://opensource.org/licenses/bsd-license.php New BSD License
    1111 * @link        http://www.checkfront.com/developers/
     
    6262
    6363
    64     public $load_msg = 'Searching Availability';
     64    public $load_msg     = 'Searching Availability';
    6565    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.';
    6767
    6868    public $arg = array();
     
    183183
    184184        $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'      => '',
    199201        );
    200202
     
    225227            $html .= "category_id: '{$cnf['category_id']}',\n";
    226228        }   
    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
    237242        $html .= "provider: '{$this->provider}'\n";
    238243        $html .="}).render();\n</script>\n";
  • checkfront-wp-booking/trunk/checkfront.php

    r1874912 r1901512  
    1616/* ------------------------------------------------------*/
    1717
    18 //Shortcode [clean-conract parameter="value"]
     18//Shortcode [checkfront parameter="value"]
    1919function checkfront_func($cnf, $content=null) {
    2020    $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'    => '',
    3234        'partner_id' => '',
     35        'popup'      => '',
    3336    ), $cnf);
    3437    return checkfront($cnf);
     
    115118}
    116119
    117 // pligin init
     120// plugin init
    118121function checkfront_init() {
    119122    global $Checkfront;
     
    196199/*
    197200 Create Checkront class.  If you wish to include this in a custom theme (not shortcode)
    198  see the custom-theme-sample.php
     201 see the checkfront-custom-template-sample.php
    199202*/
    200203// Include Checkfront Widget Class
Note: See TracChangeset for help on using the changeset viewer.