PEEL Shopping
Open source ecommerce : PEEL Shopping
bas.php
Go to the documentation of this file.
1 <?php
2 // This file should be in UTF8 without BOM - Accents examples: éèê
3 // +----------------------------------------------------------------------+
4 // | Copyright (c) 2004-2015 Advisto SAS, service PEEL - contact@peel.fr |
5 // +----------------------------------------------------------------------+
6 // | This file is part of PEEL Shopping 8.0.0, which is subject to an |
7 // | opensource GPL license: you are allowed to customize the code |
8 // | for your own needs, but must keep your changes under GPL |
9 // | More information: https://www.peel.fr/lire/licence-gpl-70.html |
10 // +----------------------------------------------------------------------+
11 // | Author: Advisto SAS, RCS 479 205 452, France, https://www.peel.fr/ |
12 // +----------------------------------------------------------------------+
13 // $Id: bas.php 47234 2015-10-08 11:03:43Z gboussin $
14 if (!defined('IN_PEEL')) {
15  die();
16 }
17 
18 $tpl = $GLOBALS['tplEngine']->createTemplate('bas.tpl');
19 $tpl->assign('MODULES_BOTTOM_MIDDLE', get_modules('bottom_middle', true, null, vn($_GET['catid'])));
20 $tpl->assign('page_columns_count', $GLOBALS['page_columns_count']);
21 if ($GLOBALS['page_columns_count'] == 3) {
22  $modules_below_middle = get_modules('below_middle', true, null, vn($_GET['catid']));
23  $tpl->assign('MODULES_BELOW_MIDDLE', $modules_below_middle);
24 }
25 if (!empty($GLOBALS['modules_right'])) {
26  $tpl->assign('MODULES_RIGHT', $GLOBALS['modules_right']);
27 }
28 $tpl->assign('IN_HOME', defined('IN_HOME'));
29 if (defined('IN_HOME')) {
30  $tpl->assign('CONTENT_HOME_BOTTOM', affiche_contenu_html("home_bottom", true));
31 }
32 $tpl->assign('CONTENT_FOOTER', affiche_contenu_html("footer", true));
33 $tpl->assign('MODULES_FOOTER', get_modules('footer', true, null, vn($_GET['catid'])));
34 
35 $tpl->assign('FOOTER', affiche_footer(true));
36 $tpl->assign('footer_columns_width_sm', vb($GLOBALS['site_parameters']['footer_columns_width_sm'], 4));
37 $tpl->assign('footer_columns_width_md', vb($GLOBALS['site_parameters']['footer_columns_width_md'], 3));
38 
39 $tpl->assign('flags', affiche_flags(true, null, false, $GLOBALS['lang_codes'], false, 26));
40 if (check_if_module_active('devises')) {
41  $tpl->assign('module_devise', affiche_module_devise(true));
42 }
43 
44 if (!empty($_SESSION['session_display_popup']['error_text'])) {
45  // Dévelopement de la popup affichant les détails de l'ajout au caddie (si la quantité demandée est supérieure à la quantité disponible en stock) et suppression de la variable de session
46  $GLOBALS['js_ready_content_array'][] = "bootbox.alert('".filtre_javascript($_SESSION['session_display_popup']['error_text'], true, true, false, true, false) ."')";
47  unset($_SESSION['session_display_popup']['error_text']);
48 }
49 // Message d'alerte de problème de téléchargement d'image
50 if (!empty($_SESSION["session_display_popup"]["no_uploaded_image"])) {
51  unset($_SESSION["session_display_popup"]["no_uploaded_image"]);
52 }
53 
54 $tpl->assign('tag_analytics', get_tag_analytics());
55 
57 if (!empty($GLOBALS['site_parameters']['google_premium_account_id']) && !empty($GLOBALS['integrate_javascript_google_ads']) && empty($GLOBALS['disable_google_ads']) && strpos($GLOBALS['wwwroot'], '://localhost')===false && strpos($GLOBALS['wwwroot'], '://127.0.0.1')===false && check_if_module_active('annonces')) {
58  include($GLOBALS['dirroot'] . '/modules/annonces/fonctions_google_premium.php');
59  if (!empty($GLOBALS['integrate_afs_ads'])) {
60  $end_javascript .= get_google_afs_script($GLOBALS['afs_searched'], (isset($_GET['page'])?$_GET['page']:(isset($_GET['pageNum_rs1'])?$_GET['pageNum_rs1'] + 1:1)));
61  } else {
62  $end_javascript .= get_google_afc_script((isset($_GET['page'])?$_GET['page']:1));
63  }
64 }
65 if (!empty($GLOBALS['site_parameters']['twenga_ads_account_url']) && !empty($GLOBALS['integrate_twenga_ads']) && !empty($GLOBALS['twenga_ads_searched']) && strpos($GLOBALS['wwwroot'], '://localhost')===false && strpos($GLOBALS['wwwroot'], '://127.0.0.1')===false && check_if_module_active('annonces')) {
66  include($GLOBALS['dirroot'] . '/modules/annonces/fonctions_twenga_ads.php');
67  $end_javascript .= get_twenga_ads_script($GLOBALS['twenga_ads_searched'], (isset($_GET['page'])?$_GET['page']:1));
68 }
69 $tpl->assign('end_javascript', $end_javascript);
70 
71 if (defined('PEEL_DEBUG') && PEEL_DEBUG) {
72  $tpl->assign('peel_debug', $GLOBALS['peel_debug']);
73 }
74 $tpl->assign('DEBUG_TEMPLATES', defined('DEBUG_TEMPLATES') && DEBUG_TEMPLATES);
75 $tpl->assign('STR_BEFORE_TWO_POINTS', $GLOBALS['STR_BEFORE_TWO_POINTS']);
76 // Si js_files pas mis dans haut.php (chargement asynchrone ou demandés entre temps dans la génération PHP)
77 // Au cas où on veuille mettre les javascript en pied de <body> au lieu de head, pour plus de vitesse (mais moins conforme aux usages)
78 $tpl->assign('js_output', get_javascript_output(!empty($GLOBALS['site_parameters']['load_javascript_async']), !empty($GLOBALS['site_parameters']['minify_js'])));
79 
80 $tpl->assign('rss', affiche_social_icons(true));
81 $tpl->assign('footer_link', affiche_contenu_html("footer_link", true));
82 $tpl->assign('block_columns_width_sm', vb($GLOBALS['site_parameters']['block_columns_width_sm'], 4));
83 $tpl->assign('block_columns_width_md', vb($GLOBALS['site_parameters']['block_columns_width_md'], 3));
84 if(function_exists('get_footer_bottom')) {
85  $footer_bottom = get_footer_bottom();
86 } else {
87  $footer_bottom = vb($GLOBALS['site_parameters']['footer_bottom']);
88 }
89 $tpl->assign('footer_bottom', $footer_bottom);
90 if(function_exists('get_footer_column')) {
91  $tpl->assign('footer_column', get_footer_column());
92 }
93 $tpl->assign('scroll_to_top', vb($GLOBALS['site_parameters']['scroll_to_top'], false));
94 
95 echo $tpl->fetch();
96 
97 // Clôture de la génération de page - affiche des informations de debug si mode debug activé
if(!function_exists('desinscription_newsletter')) close_page_generation($html_page=true)
Fonction à appeler à la fin de la génération d'une page, afin d'exécuter certaines requêtes SQL qui n...
Definition: fonctions.php:3797
get_tag_analytics()
get_tag_analytics()
Definition: fonctions.php:441
affiche_module_devise($return_mode=false)
affiche_module_devise()
Definition: fonctions.php:90
get_javascript_output($async=false, $minify=false, $output_only_script_loading=false, $js_filenames_array=array('js_files', 'js_files_pageonly', 'js_files_nominify', 'js_files_noasync', 'js_files_nominify_noasync'))
Chargement du chargement des scripts.
Definition: fonctions.php:1275
get_modules($location, $return_mode=false, $technical_code=null, $id_categorie=null, $this_annonce_number=0, $return_array_with_raw_information=false, $criterias=null)
Récupère le contenu HTML des modules en fonction des contraintes données en paramètre Il est possible...
Definition: fonctions.php:543
vb(&$var, $default=null)
Variable blanche if $var n'est pas défini, retourne $default, sinon retourne $var.
Definition: format.php:97
if(!defined('IN_PEEL')) $tpl
Definition: bas.php:18
$GLOBALS['page_columns_count']
vn(&$var, $default=0)
Variable nulle if $var n'est pas défini, retourne $default, sinon retourne $var.
Definition: format.php:110
check_if_module_active($module_name, $specific_file_name=null)
Renvoie si un module est présent et activé ou non - Peut être appelé avant ou après le chargement d'u...
$end_javascript
Definition: bas.php:56
if(defined('IN_PEEL_ADMIN')||IN_INSTALLATION) $_SESSION['session_langue']

This documentation for Open ecommerce PEEL Shopping and PEEL.fr has been generated by Doxygen on Thu Oct 15 2015 14:41:23 - Peel ecommerce is a product of Agence web Advisto SAS. All rights reserved.