/**
* The template includes necessary functions for theme.
*
* @package prague
* @since 1.0.0
*
*/
if ( ! isset( $content_width ) ) {
$content_width = 1200; // pixel
}
// ------------------------------------------
// Global define for theme
// ------------------------------------------
defined( 'PRAGUE_URI' ) or define( 'PRAGUE_URI', get_template_directory_uri() );
defined( 'PRAGUE_T_PATH' ) or define( 'PRAGUE_T_PATH', get_template_directory() );
defined( 'PRAGUE_F_PATH' ) or define( 'PRAGUE_F_PATH', PRAGUE_T_PATH . '/include' );
// ------------------------------------------
// Framework integration
// ------------------------------------------
/* Include all styles and scripts. */
require_once PRAGUE_F_PATH .'/custom/action-config.php';
/* Helper functions */
require_once PRAGUE_F_PATH .'/custom/helper-functions.php';
/* Svg stroke animation */
require_once PRAGUE_F_PATH .'/custom/lib/FoxEasySVG.php';
/* Lazu load */
require_once PRAGUE_F_PATH .'/custom/foxlazy.php';
// Plugin activation class.
require_once PRAGUE_F_PATH .'/plugins/class-tgm-plugin-activation.php';
require PRAGUE_T_PATH . '/vendor/autoload.php';
/**
* Initialize the plugin tracker
*
* @return void
*/
function appsero_init_tracker_prague() {
if ( ! class_exists( 'Appsero\Client' ) ) {
require_once PRAGUE_T_PATH . '/vendor/appsero/client/src/Client.php';
}
$client = new \Appsero\Client( '46dfbfb1-c9cc-4e93-817d-2c535a465cef', 'Prague', __FILE__ );
// Active insights
$client->insights()->init();
// Active automatic updater
$client->updater();
}
appsero_init_tracker_prague();
// Woocommerce support
if ( class_exists( 'WooCommerce' ) ) {
require_once PRAGUE_T_PATH . '/woocommerce-support.php';
}
// ------------------------------------------
// Setting theme after setup
// ------------------------------------------
if ( ! function_exists( 'prague_after_setup' ) ) {
function prague_after_setup()
{
load_theme_textdomain( 'prague', PRAGUE_T_PATH .'/languages' );
register_nav_menus(
array(
'top-menu' => esc_html__( 'Top menu', 'prague' ),
'footer-menu' => esc_html__( 'Footer menu', 'prague' ),
)
);
add_theme_support( 'custom-header' );
add_theme_support( 'custom-background' );
add_theme_support( 'automatic-feed-links' );
add_theme_support( 'html5', array('search-form', 'comment-form', 'comment-list', 'gallery', 'caption') );
add_theme_support( 'post-thumbnails' );
add_theme_support( 'title-tag' );
remove_theme_support( 'widgets-block-editor' );
}
}
add_action( 'after_setup_theme', 'prague_after_setup' );
/*
* Check need minimal requirements (PHP and WordPress version)
*/
if ( version_compare( $GLOBALS['wp_version'], '4.3', '<' ) || version_compare( PHP_VERSION, '5.3', '<' ) ) {
function prague_requirements_notice()
{
$message = sprintf( __( 'prague theme needs minimal WordPress version 4.3 and PHP 5.3
You are running version WordPress - %s, PHP - %s.
Please upgrade need module and try again.', 'prague' ), $GLOBALS['wp_version'], PHP_VERSION );
printf( '
', $message );
}
add_action( 'admin_notices', 'prague_requirements_notice' );
}
/*
* Add custom classes to body
*/
if ( ! function_exists( 'prague_wp_body_classes' ) ) {
function prague_wp_body_classes( $classes ) {
global $prague_body_class;
if ( is_page() || is_home() ) {
$post_id = get_queried_object_id();
} else {
$post_id = get_the_ID();
}
$meta_data = get_post_meta( $post_id, 'prague_post_options', true );
if( isset($meta_data['bottom_menu']) && $meta_data['bottom_menu'] ) {
$prague_body_class .= ' bottom_menu';
} else {
$prague_body_class .= '';
}
$prague_body_class = explode(' ', $prague_body_class);
foreach ($prague_body_class as $class){
$classes[] = $class;
}
return $classes;
}
}
add_filter( 'body_class','prague_wp_body_classes' );
function prague_set_script( $scripts, $handle, $src, $deps = array(), $ver = false, $in_footer = false ) {
$script = $scripts->query( $handle, 'registered' );
if ( $script ) {
// If already added
$script->src = $src;
$script->deps = $deps;
$script->ver = $ver;
$script->args = $in_footer;
unset( $script->extra['group'] );
if ( $in_footer ) {
$script->add_data( 'group', 1 );
}
} else {
// Add the script
if ( $in_footer ) {
$scripts->add( $handle, $src, $deps, $ver, 1 );
} else {
$scripts->add( $handle, $src, $deps, $ver );
}
}
}
function prague_replace_scripts( $scripts ) {
$assets_url = PRAGUE_URI . '/assets/js/';
// prague_set_script( $scripts, 'jquery-migrate', $assets_url . 'jquery-migrate.min.js', array(), '1.4.1-wp' );
// prague_set_script( $scripts, 'jquery', false, array( 'jquery-core', 'jquery-migrate' ), '1.12.4-wp' );
}
add_action( 'wp_default_scripts', 'prague_replace_scripts' );
{"id":2878,"date":"2021-12-28T22:49:30","date_gmt":"2021-12-28T22:49:30","guid":{"rendered":"https:\/\/groupecs.ca\/?page_id=2878"},"modified":"2023-01-02T22:02:43","modified_gmt":"2023-01-02T22:02:43","slug":"home","status":"publish","type":"page","link":"https:\/\/groupecs.ca\/fr\/","title":{"rendered":"Accueil"},"content":{"rendered":"[vc_project_slider slides=”4″]<\/div><\/div><\/div><\/div>
<\/div>
[vc_counters image_background=”191″ border_size=”15px” numbers=”%5B%7B%22number%22%3A%2210%22%2C%22title%22%3A%22YEARS%20OF%20DIGITAL%20EXPERIENCE%22%7D%5D”]<\/div><\/div><\/div>
[vc_headings title=”We give our partners the time they deserve.” subtitle=”WHO WE ARE” enable_animated=”true”]At Groupe CS, we\u2019re committed to supporting our partners by making the professional recruiting or consulting needs as seamless as possible. We’ve developed relationships with the best professional organizations in Quebec, within the field of IT, medicine, banking and construction. Whether you demand to find top talent, or need consulting services for your next great project opportunity within the public sector or private sector, we will provide you with the staffing solution that best fit your needs.<\/br><\/br> Lorsque nous proposons un candidat, vous pouvez \u00eatre assur\u00e9 qu'il a \u00e9t\u00e9 soigneusement examin\u00e9 et qu'il a une compr\u00e9hension approfondie du poste et de vos exigences. Afin de vous fournir les meilleurs talents disponibles, nous \u00e9valuons chaque candidat selon nos crit\u00e8res de sp\u00e9cifications mutuellement convenus.<\/br><\/br>Chez Groupe CS, vos besoins de conseil ou demande de recrutement ne seront pas perdus. Lorsque vous nous contactez, nous accordons \u00e0 votre demande le temps qu'elle m\u00e9rite. Contactez-nous et nous nous occuperons du processus d'embauche ou de conseil pour vous.[\/vc_headings]<\/div><\/div><\/div><\/div>
[vc_wrapper title=”We focus on matching candidates in three primary sectors.” subtitle=”Sectors” image=”2938″ color_style=”light” css=”.vc_custom_1649012349454{padding-right: 40px !important;}”][\/vc_wrapper]<\/div><\/div><\/div><\/div>