AlkantarClanX12
Your IP : 216.73.216.59
<?php
defined('ABSPATH') || exit;
/*
Plugin Name: Head, Footer and Post Injections
Plugin URI: https://www.satollo.net/plugins/header-footer
Description: Header and Footer lets to add html/javascript code to the head and footer and posts of your blog. Some examples are provided on the <a href="http://www.satollo.net/plugins/header-footer">official page</a>.
Version: 3.3.6
Requires PHP: 7.0
Requires at least: 6.1
Author: Stefano Lissa
Author URI: https://www.satollo.net
Disclaimer: Use at your own risk. No warranty expressed or implied is provided.
*/
if (!defined('HEADER_FOOTER_ALLOW_PHP')) {
define('HEADER_FOOTER_ALLOW_PHP', true);
}
if (!defined('HEADER_FOOTER_MULTISITE_ALLOW_PHP')) {
define('HEADER_FOOTER_MULTISITE_ALLOW_PHP', false);
}
$hefo_options = get_option('hefo', []);
$hefo_is_mobile = false;
if (isset($_SERVER['HTTP_USER_AGENT']) && isset($hefo_options['mobile_user_agents_parsed'])) {
$hefo_is_mobile = preg_match('/' . $hefo_options['mobile_user_agents_parsed'] . '/', strtolower($_SERVER['HTTP_USER_AGENT']));
}
if (is_admin()) {
require_once __DIR__ . '/admin/admin.php';
}
if (isset($hefo_options['disable_css_id'])) {
function hefo_style_loader_tag($link) {
global $hefo_options;
$link = preg_replace("/id='.*?-css'/", "", $link);
if (isset($hefo_options['disable_css_media'])) {
if (!preg_match("/media='print'/", $link)) {
$link = preg_replace("/media='.*?'/", "", $link);
}
}
return $link;
}
add_filter('style_loader_tag', 'hefo_style_loader_tag');
}
register_activation_hook(__FILE__, function () {
$options = get_option('hefo');
if (!is_array($options)) {
$options = [];
}
// Compatibility with "already" installed
if (!empty($options)) {
$options['enable_php'] = 1;
}
$options = array_merge(['enable_php' => 0, 'after' => '', 'before' => '', 'head' => '', 'body' => '', 'head_home' => '', 'footer' => ''], $options);
for ($i = 1; $i <= 5; $i++) {
$options['snippet_' . $i] = '';
$options['generic_' . $i] = '';
}
$options['updated'] = time(); // Force an update if the old options match (otherwise the autoload is not saved)
update_option('hefo', $options, true);
});
register_deactivation_hook(__FILE__, function () {
$options = get_option('hefo');
if ($options) {
$options['updated'] = time();
update_option('hefo', $options, false);
}
});
add_action('template_redirect', 'hefo_template_redirect', 1);
$hefo_body_block = '';
$hefo_generic_block = array();
// This is used only for the generaic replacements, probably no one is using...
function hefo_template_redirect() {
global $hefo_body_block, $hefo_generic_block, $hefo_options, $hefo_is_mobile;
if (function_exists('is_amp_endpoint') && is_amp_endpoint()) {
return;
}
for ($i = 1; $i <= 5; $i++) {
if ($hefo_is_mobile && isset($hefo_options['mobile_generic_enabled_' . $i])) {
$hefo_generic_block[$i] = hefo_execute_option('mobile_generic_' . $i);
} else {
$hefo_generic_block[$i] = hefo_execute_option('generic_' . $i);
}
}
if ($hefo_generic_block) {
ob_start('hefo_callback');
}
}
function hefo_callback($buffer) {
global $hefo_body_block, $hefo_generic_block, $hefo_options, $hefo_is_mobile;
for ($i = 1; $i <= 5; $i++) {
if (isset($hefo_options['generic_tag_' . $i]))
hefo_insert_before($buffer, $hefo_generic_block[$i], $hefo_options['generic_tag_' . $i]);
}
return $buffer;
}
add_action('wp_body_open', function () {
global $hefo_body_block, $hefo_options, $hefo_is_mobile;
// Amp pages have their own wp_body_open, I don't know if this hook is called on AMP context, but...
if (function_exists('is_amp_endpoint') && is_amp_endpoint()) {
return;
}
if ($hefo_is_mobile && isset($hefo_options['mobile_body_enabled'])) {
$hefo_body_block = hefo_execute_option('mobile_body');
} else {
$hefo_body_block = hefo_execute_option('body');
}
echo $hefo_body_block;
});
add_action('wp_head', 'hefo_wp_head_pre', 1);
function hefo_wp_head_pre() {
global $hefo_options, $wp_query;
if (isset($hefo_options['disable_wlwmanifest_link'])) {
remove_action('wp_head', 'wlwmanifest_link');
}
if (isset($hefo_options['disable_rsd_link'])) {
remove_action('wp_head', 'rsd_link');
}
if (isset($hefo_options['disable_feed_links_extra'])) {
remove_action('wp_head', 'feed_links_extra', 3);
}
if (isset($hefo_options['disable_wp_shortlink_wp_head'])) {
remove_action('wp_head', 'wp_shortlink_wp_head', 10);
}
if (isset($hefo_options['disable_wp_shortlink_wp_head'])) {
remove_action('wp_head', 'wp_shortlink_wp_head', 10);
}
}
add_action('wp_head', 'hefo_wp_head_post', 11);
function hefo_wp_head_post() {
if (is_front_page()) {
hefo_execute_option('head_home', true);
}
hefo_execute_option('head', true);
}
add_action('amp_post_template_head', function () {
hefo_execute_option('amp_head', true);
}, 100);
add_action('amp_post_template_css', function () {
hefo_execute_option('amp_css', true);
}, 100);
add_action('amp_post_template_body_open', function () {
hefo_execute_option('amp_body', true);
}, 100);
add_action('amp_post_template_footer', function () {
hefo_execute_option('amp_footer', true);
}, 100);
add_action('wp_footer', 'hefo_wp_footer');
function hefo_wp_footer() {
global $hefo_is_mobile, $hefo_options;
if ($hefo_is_mobile && isset($hefo_options['mobile_footer_enabled'])) {
hefo_execute_option('mobile_footer', true);
} else {
hefo_execute_option('footer', true);
}
}
add_action('the_content', 'hefo_the_content');
function hefo_the_content($content) {
global $hefo_options, $wpdb, $post, $hefo_is_mobile;
$before = '';
$after = '';
// AMP detection
if (function_exists('is_amp_endpoint') && is_amp_endpoint()) {
$before = hefo_execute_option('amp_post_before');
$after = hefo_execute_option('amp_post_after');
return $before . $content . $after;
}
if (!is_singular()) {
return $content;
}
$type = '';
// Being an experienced code, I should write this thing much better... :-)
if (is_page() && !isset($hefo_options['page_use_post'])) {
$type = 'page_';
} else if ($post->post_type !== 'post') {
if (isset($hefo_options[$post->post_type . '_mode'])) {
if ($hefo_options[$post->post_type . '_mode'] === 'enabled') {
$type = $post->post_type . '_';
} else if ($hefo_options[$post->post_type . '_mode'] === 'disabled') {
return $content;
}
}
}
if (!get_post_meta($post->ID, 'hefo_before', true)) {
if ($hefo_is_mobile && isset($hefo_options['mobile_' . $type . 'before_enabled'])) {
$before = hefo_execute_option('mobile_' . $type . 'before');
} else {
$before = hefo_execute_option($type . 'before');
}
}
if (!get_post_meta($post->ID, 'hefo_after', true)) {
if ($hefo_is_mobile && isset($hefo_options['mobile_' . $type . 'after_enabled'])) {
$after = hefo_execute_option('mobile_' . $type . 'after');
} else {
$after = hefo_execute_option($type . 'after');
}
}
// Rules
for ($i = 1; $i <= 5; $i++) {
if (empty($hefo_options['inner_tag_' . $i])) {
continue;
}
$prefix = '';
if ($hefo_is_mobile && isset($hefo_options['mobile_inner_enabled_' . $i])) {
$prefix = 'mobile_';
}
$skip = trim($hefo_options['inner_skip_' . $i]);
if (empty($skip)) {
$skip = 0;
} else if (substr($skip, -1) == '%') {
$skip = intval(round((intval($skip) * strlen($content) / 100)));
}
if ($hefo_options['inner_pos_' . $i] == 'after') {
$res = hefo_insert_after($content, hefo_execute_option($prefix . 'inner_' . $i), $hefo_options['inner_tag_' . $i], $skip);
} else {
$res = hefo_insert_before($content, hefo_execute_option($prefix . 'inner_' . $i), $hefo_options['inner_tag_' . $i], $skip);
}
if (!$res) {
switch ($hefo_options['inner_alt_' . $i]) {
case 'after':
$content = $content . hefo_execute_option($prefix . 'inner_' . $i);
break;
case 'before':
$content = hefo_execute_option($prefix . 'inner_' . $i) . $content;
}
}
}
return $before . $content . $after;
}
function hefo_insert_before(&$content, $what, $marker, $starting_from = 0) {
if (strlen($content) < $starting_from) {
return false;
}
if (empty($marker)) {
$marker = ' ';
}
$x = strpos($content, $marker, $starting_from);
if ($x !== false) {
$content = substr_replace($content, $what, $x, 0);
return true;
}
return false;
}
function hefo_insert_after(&$content, $what, $marker, $starting_from = 0) {
if (strlen($content) < $starting_from) {
return false;
}
if (empty($marker)) {
$marker = ' ';
}
$x = strpos($content, $marker, $starting_from);
if ($x !== false) {
$content = substr_replace($content, $what, $x + strlen($marker), 0);
return true;
}
return false;
}
add_action('the_excerpt', 'hefo_the_excerpt');
global $hefo_count;
$hefo_count = 0;
function hefo_the_excerpt($content) {
global $hefo_options, $post, $wpdb, $hefo_count;
$hefo_count++;
if (is_category() || is_tag()) {
$before = hefo_execute_option('excerpt_before');
$after = hefo_execute_option('excerpt_after');
return $before . $content . $after;
} else {
return $content;
}
}
function hefo_replace($buffer) {
global $hefo_options, $post;
for ($i = 1; $i <= 5; $i++) {
if (empty($hefo_options['snippet_' . $i]))
continue;
$buffer = str_replace('[snippet_' . $i . ']', $hefo_options['snippet_' . $i], $buffer);
}
return $buffer;
}
function hefo_execute($buffer) {
global $hefo_options, $post;
if (!HEADER_FOOTER_ALLOW_PHP) {
return $buffer;
}
if (is_multisite() && !HEADER_FOOTER_MULTISITE_ALLOW_PHP) {
return $buffer;
}
if (apply_filters('hefo_php_exec', !empty($hefo_options['enable_php']))) {
ob_start();
eval('?>' . $buffer);
$buffer = ob_get_clean();
}
return $buffer;
}
function hefo_execute_option($key, $echo = false) {
global $hefo_options, $wpdb, $post;
if (empty($hefo_options[$key]))
return '';
$buffer = hefo_replace($hefo_options[$key]);
if ($echo)
// phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
echo hefo_execute($buffer);
else
return hefo_execute($buffer);
}
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