Plugin Directory

Changeset 2483999


Ignore:
Timestamp:
03/02/2021 03:28:06 AM (5 years ago)
Author:
marcshowpass
Message:

add custom button class to calendar widget, keep shopping false

Location:
showpass/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • showpass/trunk/js/showpass-custom.js

    r2483951 r2483999  
    8888            var params = {
    8989                'theme-primary': $(this).attr('data-color') || $('#option_widget_color').val(),
     90                'keep-shopping': false
    9091            };
    9192
  • showpass/trunk/showpass-wordpress-plugin-shortcode.php

    r2483970 r2483999  
    933933      $label = 'Get Tickets';
    934934    }
    935     $button = '<span data-org-id="'.$organization_id.'" class="showpass-button open-calendar-widget href="#">'.$label.'</span>';
     935    if (isset($atts['class'])) {
     936        $class = $atts['class'];
     937    } else {
     938        $class = 'showpass-button';
     939    }
     940    $button = '<span data-org-id="'.$organization_id.'" class="'.$class.' open-calendar-widget" href="#">'.$label.'</span>';
    936941    return $button;
    937942  } else {
  • showpass/trunk/showpass-wordpress-plugin.php

    r2483951 r2483999  
    55     Description: List events, display event details and products. Use the Showpass purchase widget for on site ticket & product purchases all with easy to use shortcodes. See our git repo here for full documentation. https://github.com/showpass/showpass-wordpress-plugin
    66     Author: Showpass / Up In Code Inc.
    7      Version: 3.5.4
     7     Version: 3.5.5
    88     Author URI: https://www.showpass.com
    99     */
Note: See TracChangeset for help on using the changeset viewer.