AlkantarClanX12
Your IP : 216.73.217.24
<?php
/**
* Class for Triggers
*
* @package PopupMaker
* @copyright Copyright (c) 2024, Code Atlantic LLC
*/
if ( ! defined( 'ABSPATH' ) ) {
// Exit if accessed directly.
exit;
}
/**
* Class PUM_Triggers
*/
class PUM_Triggers {
/**
* @var PUM_Triggers
*/
public static $instance;
/**
* @var bool
*/
public $preload_posts = false;
/**
* @var array
*/
public $triggers;
/**
* Initializes the triggers.
*/
public static function init() {
self::instance();
}
/**
* Creates the triggers instance.
*
* @return PUM_Triggers
*/
public static function instance() {
if ( ! isset( self::$instance ) ) {
self::$instance = new self();
self::$instance->preload_posts = pum_is_popup_editor();
}
return self::$instance;
}
/**
* Adds an array of triggers to the initialized triggers.
*
* @param array $triggers The array of triggers to add.
* @uses PUM_Triggers::add_trigger()
*/
public function add_triggers( $triggers = [] ) {
foreach ( $triggers as $key => $trigger ) {
if ( empty( $trigger['id'] ) && ! is_numeric( $key ) ) {
$trigger['id'] = $key;
}
$this->add_trigger( $trigger );
}
}
/**
* Initializes a single trigger
*
* @param array $trigger The trigger array.
*/
public function add_trigger( $trigger = [] ) {
if ( ! empty( $trigger['id'] ) && ! isset( $this->triggers[ $trigger['id'] ] ) ) {
$trigger = wp_parse_args(
$trigger,
[
'id' => '',
'name' => '',
'modal_title' => '',
'settings_column' => '',
'priority' => 10,
'tabs' => $this->get_tabs(),
'fields' => [],
]
);
if ( empty( $trigger['modal_title'] ) && ! empty( $trigger['name'] ) ) {
$trigger['modal_title'] = sprintf(
/* translators: 1. Trigger name. */
_x( '%s Trigger Settings', 'trigger settings modal title', 'popup-maker' ),
$trigger['name']
);
}
// Here for backward compatibility to merge in labels properly.
$labels = $this->get_labels();
$trigger_labels = isset( $labels[ $trigger['id'] ] ) ? $labels[ $trigger['id'] ] : [];
if ( ! empty( $trigger_labels ) ) {
foreach ( $trigger_labels as $key => $value ) {
if ( empty( $trigger[ $key ] ) ) {
$trigger[ $key ] = $value;
}
}
}
// Remove cookie fields.
if ( ! empty( $trigger['fields']['cookie'] ) ) {
unset( $trigger['fields']['cookie'] );
}
// Add cookie fields for all triggers automatically.
if ( empty( $trigger['fields']['general']['cookie_name'] ) ) {
$trigger['fields']['general'] = array_merge( $trigger['fields']['general'], $this->cookie_fields() );
}
$this->triggers[ $trigger['id'] ] = apply_filters( 'pum_trigger', $trigger );
}
}
/**
* Retrieves all initialized triggers.
*
* @return array The triggers
*/
public function get_triggers() {
if ( ! isset( $this->triggers ) ) {
$this->register_triggers();
}
return $this->triggers;
}
/**
* Retrieves a single trigger by the trigger key
*
* @param string|null $trigger The key for the trigger.
* @return mixed|null The trigger array or null if none found
*/
public function get_trigger( $trigger = null ) {
$triggers = $this->get_triggers();
return isset( $triggers[ $trigger ] ) ? $triggers[ $trigger ] : null;
}
/**
* @param null $trigger
* @param array $settings
*
* @return array
* @deprecated
*/
public function validate_trigger( $trigger = null, $settings = [] ) {
return $settings;
}
/**
* Registers all known triggers when called.
*
* @uses PUM_Triggers::add_triggers()
*/
public function register_triggers() {
$triggers = apply_filters(
'pum_registered_triggers',
[
'click_open' => [
'name' => __( 'Click Open', 'popup-maker' ),
'modal_title' => __( 'Click Trigger Settings', 'popup-maker' ),
'settings_column' => sprintf( '<strong>%1$s</strong>: %2$s', __( 'Extra Selectors', 'popup-maker' ), '{{data.extra_selectors}}' ),
'fields' => [
'general' => [
'click_info' => [
'type' => 'html',
'content' => '<p>' . __( 'Adding the class "popmake-<span id="pum-default-click-trigger-class">{popup-ID}</span>" to an element will trigger it to be opened once clicked. Additionally you can add additional CSS selectors below.', 'popup-maker' ) . '</p>',
],
'extra_selectors' => [
'label' => __( 'Extra CSS Selectors', 'popup-maker' ),
'desc' => __( 'For more than one selector, separate by comma (,)', 'popup-maker' ) . '<br /><strong>eg: </strong>' . __( ' .class-here, .class-2-here, #button_id', 'popup-maker' ),
'placeholder' => __( '.class-here', 'popup-maker' ),
'doclink' => 'https://wppopupmaker.com/docs/triggering-popups/getting-css-selectors/?utm_campaign=contextual-help&utm_medium=inline-doclink&utm_source=plugin-popup-editor&utm_content=extra-selectors',
],
],
'advanced' => [
'do_default' => [
'type' => 'checkbox',
'label' => __( 'Do not prevent the default click functionality.', 'popup-maker' ),
'desc' => __( 'This prevents us from disabling the browsers default action when a trigger is clicked. It can be used to allow a link to a file to both trigger a popup and still download the file.', 'popup-maker' ),
],
],
],
],
'auto_open' => [
'name' => __( 'Time Delay / Auto Open', 'popup-maker' ),
'modal_title' => __( 'Time Delay Settings', 'popup-maker' ),
'settings_column' => sprintf( '<strong>%1$s</strong>: %2$s', __( 'Delay', 'popup-maker' ), '{{data.delay}}' ),
'fields' => [
'general' => [
'delay' => [
'type' => 'rangeslider',
'label' => __( 'Delay', 'popup-maker' ),
'desc' => __( 'The delay before the popup will open in milliseconds.', 'popup-maker' ),
'std' => 500,
'min' => 0,
'max' => 10000,
'step' => 500,
'unit' => 'ms',
],
],
],
],
'form_submission' => [
'name' => __( 'Form Submission', 'popup-maker' ),
// 'settings_column' => sprintf( '<strong>%1$s</strong>: %2$s', __( 'Form', 'popup-maker' ), '' ),
'fields' => [
'general' => [
'form' => [
'type' => 'select',
'label' => __( 'Form', 'popup-maker' ),
'options' => $this->preload_posts ? array_merge(
[
'any' => __( 'Any Supported Form*', 'popup-maker' ),
__( 'Popup Maker', 'popup-maker' ) => [
'pumsubform' => __( 'Subscription Form', 'popup-maker' ),
],
],
PUM_Integrations::get_integrated_forms_selectlist()
) : [],
'std' => 'any',
],
'delay' => [
'type' => 'rangeslider',
'label' => __( 'Delay', 'popup-maker' ),
'desc' => __( 'The delay before the popup will open in milliseconds.', 'popup-maker' ),
'std' => 0,
'min' => 0,
'max' => 10000,
'step' => 500,
'unit' => 'ms',
],
],
],
],
]
);
foreach ( $triggers as $key => $trigger ) {
$triggers[ $key ]['fields'] = PUM_Admin_Helpers::parse_tab_fields(
$triggers[ $key ]['fields'],
[
'has_subtabs' => false,
'name' => '%s',
]
);
}
// @deprecated filter.
$old_triggers = apply_filters( 'pum_get_triggers', [] );
foreach ( $old_triggers as $type => $trigger ) {
if ( isset( $triggers[ $type ] ) ) {
continue;
}
if ( ! empty( $trigger['fields'] ) ) {
foreach ( $trigger['fields'] as $tab_id => $tab_fields ) {
foreach ( $tab_fields as $field_id => $field ) {
if ( ! empty( $field['options'] ) ) {
$trigger['fields'][ $tab_id ][ $field_id ]['options'] = array_flip( $trigger['fields'][ $tab_id ][ $field_id ]['options'] );
}
}
}
}
$triggers[ $type ] = $trigger;
}
$this->add_triggers( $triggers );
}
/**
* Prepares an array to create a dropdown list of triggers
*
* @return array An array of triggers with ID as key and name as value
*/
public function dropdown_list() {
$_triggers = $this->get_triggers();
$triggers = [];
foreach ( $_triggers as $id => $trigger ) {
$triggers[ $id ] = $trigger['name'];
}
return $triggers;
}
/**
* Returns the cookie fields used for trigger options.
*
* @return array
* @uses filter pum_trigger_cookie_fields
*/
public function cookie_fields() {
/**
* Filter the array of default trigger cookie fields.
*
* @param array $fields The list of trigger cookie fields.
*/
return apply_filters(
'pum_trigger_cookie_fields',
[
'cookie_name' => $this->cookie_field(),
]
);
}
/**
* Returns the cookie field used for trigger options.
*
* @return array
* @uses filter pum_trigger_cookie_field
*/
public function cookie_field() {
/**
* Filter the array of default trigger cookie field.
*
* @param array $fields The list of trigger cookie field.
*/
return apply_filters(
'pum_trigger_cookie_field',
[
'label' => __( 'Cookie Name', 'popup-maker' ),
'desc' => __( 'Choose which cookies will disable this trigger', 'popup-maker' ),
'type' => 'select',
'multiple' => true,
'as_array' => true,
'select2' => true,
'priority' => 99,
'options' => [
'add_new' => __( 'Add New Cookie', 'popup-maker' ),
],
]
);
}
/**
* Returns an array of section labels for all triggers.
*
* Use the filter pum_get_trigger_section_labels to add or modify labels.
*
* @return array
*/
public function get_tabs() {
/**
* Filter the array of trigger section labels.
*
* @param array $to_do The list of trigger section labels.
*/
return apply_filters(
'pum_get_trigger_tabs',
[
'general' => __( 'General', 'popup-maker' ),
'cookie' => __( 'Cookie', 'popup-maker' ),
'advanced' => __( 'Advanced', 'popup-maker' ),
]
);
}
/**
* Returns an array of trigger labels.
*
* Use the filter pum_get_trigger_labels to add or modify labels.
*
* @return array
*/
public function get_labels() {
static $labels;
if ( ! isset( $labels ) ) {
/**
* Filter the array of trigger labels.
*
* @param array $to_do The list of trigger labels.
*/
$labels = apply_filters( 'pum_get_trigger_labels', [] );
}
return $labels;
}
}
Home - Capital GMC Buick Regina
Skip to content
{{ $t(category) }}
Error
{{vehicle.modelData.year}} {{vehicle.modelData.make}} {{vehicle.modelData.model}}
Starting from {{vehicle.modelData.startingPrice | moneyFormat(lang)}}
Welcome to Capital GMC BUICK – REGINA
Thank you for choosing Capital GMC Buick | Regina, your premier certified Buick and GMC dealership proudly serving drivers in Regina and the surrounding communities. Whether you’re searching for a brand-new Buick or GMC vehicle or a meticulously inspected pre-owned model, we have a diverse selection to match your needs and lifestyle.
Beyond our impressive inventory, we offer a seamless and stress-free financing experience through our well-connected finance centre, where our team of experts is dedicated to securing the best loan or lease options for you, quickly, transparently, and hassle-free.
But our commitment to you doesn’t stop at the sale. Our state-of-the-art service centre is staffed with skilled Buick and GMC technicians who use the latest equipment and genuine OEM parts to keep your vehicle running at its best. From routine maintenance to complex repairs, we’ve got you covered.
Experience top-tier customer service, quality vehicles, and expert care, all in one place. Visit Capital GMC Buick | Regina today or call us at 306-205-8072 with any questions. We’re here to help!
Ask a Question
Capital GMC Buick – Regina
Contact Us
Have a question or need assistance? Fill out the form and we will reach out to you as soon as possible.
Notice: JavaScript is required for this content.
CLOSE
Schedule a Visit
Let us know when you are coming and how we can assist you. We can ensure someone will be on hand to help you out at the desired date and time.
Notice: JavaScript is required for this content.
CLOSE
Find a Career
Have a look at our list of available positions and apply online today to join our team!
×
Opportunities to Grow
The auto industry is constantly changing and we want to continue to grow. We offer growth, leadership & mentorship programs to allow our staff to grow with us.
×
Competitive Salary
We have a significant earning potential with incentive-based pay in most roles. We also offer an employee referral bonus with paid bonuses.
×
Health & Dental
We offer a comprehensive benefits package including extended health, dental, and vision care. We also include paramedical, life insurance, paid sick leave, short & long-term disability coverages.
×
Vacation
We value our employees and want everyone to take their vacation time. We offer a minimum of 2 weeks vacation each year.
×
Training & Development
We have many opportunities for paid education and training in-house as well as training from the Manufacturer.
×
$10,000 Cash Giveaway – Terms & Conditions
All October long, stop by Capital GMC Buick Cadillac, to enter for your chance to win $10,000 cash. No purchase is required, but entries must be made in-store.
The contest is open to residents of Saskatchewan who are 18+. Dealership employees and their households are not eligible. Entries will be accepted from October 1 to October 31, 2025. A random draw will take place on November 1, 2025.
The prize is one $10,000 award, paid by cheque, and must be accepted as awarded. Winner will be contacted by phone or email and must respond within 7 days or another entry may be drawn. Odds of winning depend on the number of entries received.By entering, you agree that Capital Automotive Group may use your name and photo for winner announcements. The contest is governed by the laws of Saskatchewan.
Notice: JavaScript is required for this content.
CLOSE