AlkantarClanX12
Your IP : 216.73.217.24
<?php
/**
* Shortcode for Popup
*
* @package PopupMaker
* @copyright Copyright (c) 2024, Code Atlantic LLC
*/
if ( ! defined( 'ABSPATH' ) ) {
exit;
}
/**
* Class PUM_Shortcode_Popup
*
* Registers the popup_close shortcode.
*/
class PUM_Shortcode_Popup extends PUM_Shortcode {
public $version = 2;
public $has_content = true;
public $inner_content_priority = 15;
/**
* The shortcode tag.
*/
public function tag() {
return 'popup';
}
public function label() {
return __( 'Popup', 'popup-maker' );
}
public function description() {
return __( 'Insert a popup inline rather. Great for simple popups used for supporting content.', 'popup-maker' );
}
public function inner_content_labels() {
return [
'label' => __( 'Content', 'popup-maker' ),
'description' => __( 'Can contain other shortcodes, images, text or html content.', 'popup-maker' ),
];
}
public function post_types() {
return [];
}
/**
* @return array
*/
public function tabs() {
return [
'general' => __( 'General', 'popup-maker' ),
'display' => __( 'Display', 'popup-maker' ),
'position' => __( 'Position', 'popup-maker' ),
'animation' => __( 'Animation', 'popup-maker' ),
'close' => __( 'Close', 'popup-maker' ),
];
}
/**
* @return array
*/
public function subtabs() {
return apply_filters(
'pum_sub_form_shortcode_subtabs',
[
'general' => [
'main' => __( 'General', 'popup-maker' ),
],
'display' => [
'main' => __( 'Display', 'popup-maker' ),
],
'position' => [
'main' => __( 'Position', 'popup-maker' ),
],
'animation' => [
'main' => __( 'Animation', 'popup-maker' ),
],
'close' => [
'main' => __( 'Close', 'popup-maker' ),
],
]
);
}
public function fields() {
return [
'general' => [
'main' => [
'id' => [
'label' => __( 'Unique Popup ID', 'popup-maker' ),
'placeholder' => __( '`offer`, `more-info`', 'popup-maker' ),
'desc' => __( 'Used in popup triggers to target this popup', 'popup-maker' ),
'priority' => 5,
'required' => true,
],
'title' => [
'label' => __( 'Popup Title', 'popup-maker' ),
'placeholder' => __( 'Enter popup title text,', 'popup-maker' ),
'desc' => __( 'This will be displayed above the content. Leave it empty to disable it.', 'popup-maker' ),
'priority' => 10,
],
],
],
'display' => [
'main' => [
'theme_id' => [
'type' => 'select',
'label' => __( 'Popup Theme', 'popup-maker' ),
'placeholder' => __( 'Choose a theme,', 'popup-maker' ),
'desc' => __( 'Choose which popup theme will be used.', 'popup-maker' ),
'std' => pum_get_default_theme_id(),
'select2' => true,
'options' => pum_is_settings_page() ? PUM_Helpers::popup_theme_selectlist() : null,
'required' => true,
'priority' => 5,
],
'overlay_disabled' => [
'label' => __( 'Disable Overlay', 'popup-maker' ),
'description' => __( 'Checking this will disable and hide the overlay for this popup.', 'popup-maker' ),
'type' => 'checkbox',
'std' => false,
'priority' => 10,
],
'size' => [
'label' => __( 'Size', 'popup-maker' ),
'description' => __( 'Select the size of the popup.', 'popup-maker' ),
'type' => 'select',
'std' => 'small',
'options' => array_flip( apply_filters( 'popmake_popup_display_size_options', [] ) ),
'priority' => 15,
],
'width' => [
'label' => __( 'Width', 'popup-maker' ),
'priority' => 20,
],
'width_unit' => [
'label' => __( 'Width Unit', 'popup-maker' ),
'type' => 'select',
'std' => 'px',
'options' => array_flip( apply_filters( 'popmake_size_unit_options', [] ) ),
'priority' => 25,
],
'height' => [
'label' => __( 'Height', 'popup-maker' ),
'priority' => 30,
],
'height_unit' => [
'label' => __( 'Height Unit', 'popup-maker' ),
'type' => 'select',
'std' => 'px',
'options' => array_flip( apply_filters( 'popmake_size_unit_options', [] ) ),
'priority' => 35,
],
],
],
'position' => [
'main' => [
'location' => [
'label' => __( 'Location', 'popup-maker' ),
'description' => __( 'Choose where the popup will be displayed.', 'popup-maker' ),
'type' => 'select',
'std' => 'center top',
'priority' => 4,
'options' => array_flip( apply_filters( 'popmake_popup_display_location_options', [] ) ),
],
'position_top' => [
'label' => __( 'Top', 'popup-maker' ),
'description' => sprintf(
/* translators: 1. Screen Edge: top, bottom. */
_x( 'Distance from the %s edge of the screen.', 'Screen Edge: top, bottom', 'popup-maker' ),
strtolower( __( 'Top', 'popup-maker' ) )
),
'type' => 'rangeslider',
'std' => 100,
'priority' => 10,
'step' => 1,
'min' => 0,
'max' => 500,
'unit' => 'px',
],
'position_bottom' => [
'label' => __( 'Bottom', 'popup-maker' ),
'description' => sprintf(
/* translators: 1. Screen Edge: top, bottom. */
_x( 'Distance from the %s edge of the screen.', 'Screen Edge: top, bottom', 'popup-maker' ),
strtolower( __( 'Bottom', 'popup-maker' ) )
),
'type' => 'rangeslider',
'std' => 0,
'priority' => 10,
'step' => 1,
'min' => 0,
'max' => 500,
'unit' => 'px',
],
'position_left' => [
'label' => __( 'Left', 'popup-maker' ),
'description' => sprintf(
/* translators: 1. Screen Edge: top, bottom. */
_x( 'Distance from the %s edge of the screen.', 'Screen Edge: top, bottom', 'popup-maker' ),
strtolower( __( 'Left', 'popup-maker' ) )
),
'type' => 'rangeslider',
'std' => 0,
'priority' => 10,
'step' => 1,
'min' => 0,
'max' => 500,
'unit' => 'px',
],
'position_right' => [
'label' => __( 'Right', 'popup-maker' ),
'description' => sprintf(
/* translators: 1. Screen Edge: top, bottom. */
_x( 'Distance from the %s edge of the screen.', 'Screen Edge: top, bottom', 'popup-maker' ),
strtolower( __( 'Right', 'popup-maker' ) )
),
'type' => 'rangeslider',
'std' => 0,
'priority' => 10,
'step' => 1,
'min' => 0,
'max' => 500,
'unit' => 'px',
],
],
],
'animation' => [
'main' => [
'animation_type' => [
'label' => __( 'Animation Type', 'popup-maker' ),
'description' => __( 'Select an animation type for your popup.', 'popup-maker' ),
'type' => 'select',
'std' => 'fade',
'priority' => 5,
'options' => array_flip( apply_filters( 'popmake_popup_display_animation_type_options', [] ) ),
],
'animation_speed' => [
'label' => __( 'Animation Speed', 'popup-maker' ),
'description' => __( 'Set the animation speed for the popup.', 'popup-maker' ),
'type' => 'rangeslider',
'std' => 350,
'priority' => 10,
'step' => 10,
'min' => 50,
'max' => 1000,
'unit' => __( 'ms', 'popup-maker' ),
],
'animation_origin' => [
'label' => __( 'Animation Origin', 'popup-maker' ),
'description' => __( 'Choose where the animation will begin.', 'popup-maker' ),
'type' => 'select',
'std' => 'center top',
'priority' => 15,
'options' => array_flip( apply_filters( 'popmake_popup_display_animation_origin_options', [] ) ),
],
],
],
'close' => [
'main' => [
'overlay_click' => [
'label' => __( 'Click Overlay to Close', 'popup-maker' ),
'description' => __( 'Checking this will cause popup to close when user clicks on overlay.', 'popup-maker' ),
'type' => 'checkbox',
'std' => false,
'priority' => 5,
],
],
],
];
}
/**
* Shortcode handler
*
* @param array $atts shortcode attributes
* @param string $content shortcode content
*
* @return string
*/
public function handler( $atts, $content = null ) {
global $popup;
$atts = shortcode_atts(
apply_filters(
'pum_popup_shortcode_default_atts',
[
'id' => '',
'title' => '',
'theme_id' => null,
'theme' => null,
'overlay_disabled' => 0,
'size' => 'small',
'width' => '',
'width_unit' => 'px',
'height' => '',
'height_unit' => 'px',
'location' => 'center top',
'position_top' => 100,
'position_left' => 0,
'position_bottom' => 0,
'position_right' => 0,
'position_fixed' => 0,
'animation_type' => 'fade',
'animation_speed' => 1000,
'animation_origin' => 'top',
'overlay_click' => 0,
'esc_press' => 1,
]
),
$atts,
'popup'
);
// We need to fake a popup using the PUM_Popup data model.
$post_id = wp_rand( -99999, - 1 ); // negative ID, to avoid clash with a valid post
$post = new stdClass();
$post->ID = $post_id;
$post->post_author = 1;
$post->post_date = current_time( 'mysql' );
$post->post_date_gmt = current_time( 'mysql', 1 );
$post->post_title = $atts['title'];
$post->post_content = $content;
$post->post_status = 'publish';
$post->comment_status = 'closed';
$post->ping_status = 'closed';
$post->post_name = $atts['id']; // append random number to avoid clash
$post->post_type = 'popup';
$post->filter = 'raw'; // important!
$post->data_version = 3;
$post->mock = true;
// Convert to WP_Post object
$wp_post = new WP_Post( $post );
// Add the fake post to the cache
wp_cache_add( $post_id, $wp_post, 'posts' );
$popup = new PUM_Model_Popup( $wp_post );
// Get Theme ID
if ( ! $atts['theme_id'] ) {
$atts['theme_id'] = $atts['theme'] ? $atts['theme'] : pum_get_default_theme_id();
}
$popup->title = $atts['title'];
$popup->settings = array_merge(
PUM_Admin_Popups::defaults(),
[
'disable_analytics' => true,
'theme_id' => $atts['theme_id'],
'size' => $atts['size'],
'overlay_disabled' => $atts['overlay_disabled'],
'custom_width' => $atts['width'],
'custom_width_unit' => $atts['width_unit'],
'custom_height' => $atts['height'],
'custom_height_unit' => $atts['height_unit'],
'custom_height_auto' => $atts['width'] > 0 ? 0 : 1,
'location' => $atts['location'],
'position_top' => $atts['position_top'],
'position_left' => $atts['position_left'],
'position_bottom' => $atts['position_bottom'],
'position_right' => $atts['position_right'],
'position_fixed' => $atts['position_fixed'],
'animation_type' => $atts['animation_type'],
'animation_speed' => $atts['animation_speed'],
'animation_origin' => $atts['animation_origin'],
'close_on_overlay_click' => $atts['overlay_click'],
'close_on_esc_press' => $atts['esc_press'],
'triggers' => [
[
'type' => 'click_open',
'settings' => [
'extra_selectors' => '#popmake-' . $atts['id'],
],
],
],
]
);
$current_global_popup = pum()->current_popup;
pum()->current_popup = $popup;
$return = pum_get_template_part( 'popup' );
// Small hack to move popup to body.
$return .= "<script type='text/javascript' id='pum-move-popup-" . $post_id . "'>jQuery(document).ready(function () {
jQuery('#pum-" . $post_id . "').appendTo('body');
window.pum_vars.popups[ 'pum-" . $popup->ID . "' ] = " . PUM_Utils_Array::safe_json_encode( $popup->get_public_settings() ) . ";
window.pum_popups[ 'pum-" . $popup->ID . "' ] = " . PUM_Utils_Array::safe_json_encode( $popup->get_public_settings() ) . ";
jQuery('#pum-move-popup-" . $post_id . "').remove();
});</script>";
pum()->current_popup = $current_global_popup;
return $return;
}
public function template() {
?>
<p class="pum-sub-form-desc">
<?php esc_html_e( 'Popup', 'popup-maker' ); ?>: ID "{{attrs.id}}"
</p>
<?php
}
}
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