PEEL Shopping
Open source ecommerce : PEEL Shopping
display_article.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: display_article.php 47101 2015-10-02 09:47:03Z gboussin $
14 if (!defined('IN_PEEL')) {
15  die();
16 }
17 
18 if (!function_exists('get_article_details_html')) {
26  function get_article_details_html($article_id)
27  {
28  $output = '';
29  $article = charge_article($article_id);
30  $tpl = $GLOBALS['tplEngine']->createTemplate('article_details_html.tpl');
31  $tpl->assign('is_article', (bool)$article);
32  if (!$article)
33  $tpl->assign('STR_NO_FIND_ART', $GLOBALS['STR_NO_FIND_ART']);
34  else{
35  $tpl->assign('titre', $article['titre']);
36  $tpl->assign('is_offline', ($article['etat'] == 0));
37  $tpl->assign('STR_OFFLINE_ART', $GLOBALS['STR_OFFLINE_ART']);
38 
39  if (!empty($article['image1'])) {
40  $this_thumb = thumbs($article['image1'], $GLOBALS['site_parameters']['medium_width'], $GLOBALS['site_parameters']['medium_height'], 'fit');
41  $tpl->assign('main_image', array(
42  'href' => $GLOBALS['repertoire_upload'] . '/' . String::rawurlencode($article['image1']),
43  'src' => $GLOBALS['repertoire_upload'] . '/thumbs/' . $this_thumb,
44  'is_pdf' => (pathinfo($article['image1'], PATHINFO_EXTENSION) == 'pdf')
45  ));
46  }
47  if(empty($GLOBALS['site_parameters']['chapo_in_article_page_disabled'])) {
48  $tpl->assign('chapo', $article['chapo']);
49  }
50  $tpl->assign('texte', $article['texte']);
51 
52  if (function_exists('get_share_feature')) {
53  $tpl->assign('share_feature', get_share_feature());
54  } elseif (empty($GLOBALS['site_parameters']['hide_share_article_link']) && check_if_module_active('direaunami')) {
55  $tpl->assign('tell_friends', array(
56  'src' => $GLOBALS['site_parameters']['general_send_email_image'],
57  'txt' => $GLOBALS['STR_TELL_FRIEND'],
58  'href' => get_tell_friends_url(false)
59  ));
60  }
61  if (a_priv('admin_content', false)) {
62  $tpl->assign('admin', array(
63  'href' => $GLOBALS['administrer_url'] . '/articles.php?mode=modif&id=' . $article['id'],
64  'modify_article_txt' => $GLOBALS['STR_MODIFY_ARTICLE']
65  ));
66  }
67  }
68  $output .= $tpl->fetch();
69  correct_output($output, true, 'html', $_SESSION['session_langue']);
70  return $output;
71  }
72 }
73 
74 if (!function_exists('get_rubriques_sons_html')) {
81  function get_rubriques_sons_html($rubid)
82  {
83  $output = '';
84  $qid_r = query("SELECT id, nom_" . $_SESSION['session_langue'] . ", description_" . $_SESSION['session_langue'] . ", parent_id, image
85  FROM peel_rubriques r
86  WHERE parent_id = '" . intval($rubid) . "' AND nom_" . $_SESSION['session_langue'] . "<>'' AND etat = 1 AND r.technical_code NOT IN ('other', 'iphone_content') AND " . get_filter_site_cond('rubriques', 'r') . "
87  ORDER BY r.position " . (!empty($GLOBALS['site_parameters']['content_category_primary_order_by'])? ", r." . $GLOBALS['site_parameters']['content_category_primary_order_by'] : '') . "
88  ");
89  if (num_rows($qid_r) > 0) {
90  $tpl = $GLOBALS['tplEngine']->createTemplate('rubriques_sons_html.tpl');
91  $tpl->assign('list_rubriques_txt', $GLOBALS['STR_LIST_RUBRIQUES'] . $GLOBALS['STR_BEFORE_TWO_POINTS']);
92  $data = array();
93  while ($rub = fetch_assoc($qid_r)) {
94  $tmp = array(
95  'href' => get_content_category_url($rub['id'], $rub['nom_' . $_SESSION['session_langue']]),
96  'name' => $rub['nom_' . $_SESSION['session_langue']]
97  );
98  if (!empty($rub['image'])) {
99  $tmp['image_src'] = $GLOBALS['repertoire_upload'] . '/thumbs/' . thumbs($rub['image'], $GLOBALS['site_parameters']['small_width'], $GLOBALS['site_parameters']['small_height'], 'fit');
100  }
101  if (!empty($rub['image_lien'])) {
102  $tmp['lien_src'] = $GLOBALS['repertoire_upload'] . '/thumbs/' . thumbs($rub['image_lien'], $GLOBALS['site_parameters']['small_width'], $GLOBALS['site_parameters']['small_height'], 'fit');
103  }
104  $data[] = $tmp;
105  }
106  $tpl->assign('data', $data);
107  $tpl->assign('description', String::str_shorten(trim(String::strip_tags(String::html_entity_decode_if_needed($rub['description_' . $_SESSION['session_langue']]))),500,'','...',450));
108  $output .= $tpl->fetch();
109  }
110  correct_output($output, true, 'html', $_SESSION['session_langue']);
111  return $output;
112  }
113 }
114 
115 if (!function_exists('get_articles_html')) {
123  function get_articles_html($rubid = 0, $get_sub_rubrique = false) {
124  $output = '';
125  $extra_sql = '';
126  if (!empty($rubid)) {
127  if (!empty($get_sub_rubrique)) {
128  $extra_sql .= " AND pc.rubrique_id IN (" . real_escape_string(implode(',', get_category_tree_and_itself($rubid, 'sons', 'rubriques'))) . ")";
129  } else {
130  $extra_sql .= " AND pc.rubrique_id = '" . intval($rubid) . "'";
131  }
132  }
133  $sql = "SELECT p.id, p.on_reseller, p.surtitre_" . $_SESSION['session_langue'] . " AS surtitre, p.titre_" . $_SESSION['session_langue'] . " AS titre , p.chapo_" . $_SESSION['session_langue'] . " AS chapo, p.texte_" . $_SESSION['session_langue'] . " AS texte, p.image1, p.on_special, pc.rubrique_id, r.nom_" . $_SESSION['session_langue'] . " AS rubrique_nom
134  FROM peel_articles p
135  INNER JOIN peel_articles_rubriques pc ON p.id = pc.article_id " . $extra_sql. "
136  INNER JOIN peel_rubriques r ON r.id = pc.rubrique_id AND " . get_filter_site_cond('rubriques', 'r') . "
137  WHERE p.etat = '1' AND p.titre_" . $_SESSION['session_langue'] . " != '' AND " . get_filter_site_cond('articles', 'p');
138  $Links = new Multipage($sql, 'get_articles_html', 15, 7, 0, false);
139  $Links->order_sql_prefix = 'p';
140  $Links->order_get_variable = 'tri';
141  $Links->sort_get_variable = 'sort';
142  $Links->OrderDefault = 'position';
143  $Links->SortDefault = 'ASC';
144  $Links->forced_second_order_by_string = 'p.id DESC';
145  $results_array = $Links->Query();
146 
147  $tpl = $GLOBALS['tplEngine']->createTemplate('articles_html.tpl');
148  $tpl->assign('is_content', !empty($results_array));
149  $tpl->assign('STR_MORE_DETAILS', $GLOBALS['STR_MORE_DETAILS']);
150  $tpl->assign('haut_de_page_txt', $GLOBALS['STR_HAUT_DE_PAGE']);
151  $tpl->assign('haut_de_page_href', '#haut_de_page');
152  $tpl->assign('category_content_show_explicit_buttons_if_articles_more_to_read', vb($GLOBALS['site_parameters']['category_content_show_explicit_buttons_if_articles_more_to_read'], true));
153 
154  if (!empty($results_array)) {
155  $data = array();
156  foreach ($results_array as $art) {
157  if ((!a_priv("admin_product") && !a_priv("reve")) && $art['on_reseller'] == 1) {
158  continue;
159  }
160  if(!empty($art['chapo'])){
161  $chapo = String::nl2br_if_needed(trim(String::html_entity_decode_if_needed($art['chapo'])));
162  }else{
164  }
165  $chapo = str_replace(array('<h1', '<h2', '<h3', '<h4', '</h1', '</h2', '</h3', '</h4'), array('<p', '<p', '<p', '<p', '</p', '</p', '</p', '</p'), $chapo);
166  if($chapo == strip_tags($chapo)) {
167  $chapo = '<p>' . $chapo . '</p>';
168  }
169  $data[] = array(
170  'href' => get_content_url($art['id'], $art['titre'], $art['rubrique_id'], $art["rubrique_nom"]),
171  'src' => (!empty($art['image1']) ? $GLOBALS['repertoire_upload'] . '/' . $art['image1'] : false),
172  'titre' => $art['titre'],
173  'chapo' => $chapo,
174  'texte' => $art['texte'],
175  'is_texte' => !empty($art['texte']),
176  );
177  }
178  $tpl->assign('data', $data);
179  }
180  $tpl->assign('multipage', $Links->GetMultipage());
181  $output .= $tpl->fetch();
182  correct_output($output, true, 'html', $_SESSION['session_langue']);
183  return $output;
184  }
185 }
186 
187 if (!function_exists('get_articles_list_brief_html')) {
194  function get_articles_list_brief_html($rubid)
195  {
196  $output ='';
197  $sqlrub = "SELECT image, description_" . $_SESSION['session_langue'] . " AS description, nom_" . $_SESSION['session_langue'] . " AS nom, articles_review, etat, technical_code
198  FROM peel_rubriques r
199  WHERE id = '" . intval($rubid) . "' AND nom_" . $_SESSION['session_langue'] . " != '' AND r.technical_code NOT IN ('other', 'iphone_content') AND " . get_filter_site_cond('rubriques', 'r') . "
200  ORDER BY r.position ASC, r.id DESC";
201  $resrub = query($sqlrub);
202  $rowrub = fetch_assoc($resrub);
203  $tpl = $GLOBALS['tplEngine']->createTemplate('articles_list_brief_html.tpl');
204  $tpl->assign('is_not_empty', !empty($rowrub));
205  if (!empty($rowrub)){
206  if($rowrub['technical_code'] == 'add_cart_by_reference') {
207  include($GLOBALS['dirroot'] . "/lib/fonctions/display_caddie.php");
208  $tpl->assign('add_cart_by_reference', add_cart_by_reference());
209  }
210  $tpl->assign('name', $rowrub['nom']);
211  if($rowrub['etat'] == 0 && a_priv('admin_content', false)) {
212  $tpl->assign('offline_rub_txt', $GLOBALS['STR_OFFLINE_RUB']);
213  }
214  if (!empty($rowrub['image'])) {
215  $this_thumb = thumbs($rowrub['image'], $GLOBALS['site_parameters']['medium_width'], $GLOBALS['site_parameters']['medium_height'], 'fit');
216  $tpl->assign('main_image', array(
217  'href' => $GLOBALS['repertoire_upload'] . '/' . String::rawurlencode($rowrub['image']),
218  'src' => $GLOBALS['repertoire_upload'] . '/thumbs/' . $this_thumb,
219  'is_pdf' => (get_file_type($rowrub['image']) == 'pdf')
220  ));
221  }
222  $tpl->assign('technical_code', $rowrub['technical_code']);
223  $tpl->assign('description', String::nl2br_if_needed($rowrub['description']));
224  if($rowrub['technical_code'] == 'clients' && check_if_module_active('clients')) {
225  $tpl->assign('descriptions_clients', affiche_descriptions_clients());
226  }
227  if($rowrub['technical_code'] == 'creation' && check_if_module_active('references')) {
228  $tpl->assign('reference_multipage', affiche_reference_multipage(vn($_GET['refid'])));
229  }
230  if ($rowrub['articles_review'] == '1') {
231  // On affiche des extraits d'articles qui correspondent à cette rubrique
232  $tpl->assign('articles_html', get_articles_html($rubid));
233  } elseif($rowrub['technical_code'] == 'tradefaire_home') {
234  $q = query('SELECT id
235  FROM peel_rubriques
236  WHERE technical_code="articles_home_tradefaire" AND ' . get_filter_site_cond('rubriques') . '');
237  $result_articles_home_tradefaire = fetch_assoc($q);
238  $tpl->assign('stocklots_exhibitors', get_user_picture('STOCKLOTS_EXHIBITORS'));
239  $tpl->assign('user_picture', get_user_picture('exhibitors'));
240  $tpl->assign('articles_html', get_articles_html($result_articles_home_tradefaire['id']));
241  }
242  }
243  if (!empty($GLOBALS['site_parameters']['display_content_category_diaporama'])) {
244  $tpl->assign('diaporama', get_diaporama('content_category', $rubid));
245  }
246  if (vb($GLOBALS['site_parameters']['content_category_count_method'], $GLOBALS['site_parameters']['category_count_method']) == 'global' || (empty($rubid) && empty($rowrub))) {
247  $tpl->assign('rubriques_sons_html', get_rubriques_sons_html($rubid));
248  }
249  if (est_identifie() && a_priv('admin_content')) {
250  $tpl->assign('admin', array(
251  'href' => $GLOBALS['administrer_url'] . '/rubriques.php?mode=modif&id=' . $rubid,
252  'modify_content_category_txt' => $GLOBALS['STR_MODIFY_CONTENT_CATEGORY']
253  ));
254  }
255  if (!empty($rubid) && !empty($GLOBALS['site_parameters']['show_special_on_content_category'])) {
256  $sql = "SELECT p.id, p.surtitre_" . $_SESSION['session_langue'] . " AS surtitre, p.titre_" . $_SESSION['session_langue'] . " AS titre , p.chapo_" . $_SESSION['session_langue'] . " AS chapo, p.texte_" . $_SESSION['session_langue'] . " AS texte, p.image1, p.on_special, pc.rubrique_id, r.nom_" . $_SESSION['session_langue'] . " AS rubrique_nom
257  FROM peel_articles p
258  INNER JOIN peel_articles_rubriques pc ON p.id = pc.article_id AND pc.rubrique_id = '" . intval($rubid) . "'
259  INNER JOIN peel_rubriques r ON r.id = pc.rubrique_id AND " . get_filter_site_cond('rubriques', 'r') . "
260  WHERE p.etat = '1' AND p.on_special = 1 AND titre_" . $_SESSION['session_langue'] . " != '' AND " . get_filter_site_cond('articles', 'p') . "
261  ORDER BY p.position ASC, p.id DESC";
262  $res = query($sql);
263  if (num_rows($res) > 0) {
264  $plus = array(
265  'src' => $GLOBALS['repertoire_images'] . '/coin.png',
266  'arts' => array()
267  );
268  while ($art = fetch_assoc($res)) {
269  if ((!a_priv("admin_product") && !a_priv("reve")) && $art['on_reseller'] == 1) {
270  continue;
271  } else {
272  $plus['arts'][] = array(
273  'titre' => $art['titre'],
274  'texte' => $art['texte']
275  );
276  }
277  }
278  $tpl->assign('plus', $plus);
279  }
280  }
281 
282  $output .= $tpl->fetch();
283  correct_output($output, true, 'html', $_SESSION['session_langue']);
284  return $output;
285  }
286 }
287 
288 if (!function_exists('affiche_arbre_rubrique')) {
297  function affiche_arbre_rubrique($rubid = 0, $additional_text = null, $hidden = false)
298  {
299  static $tpl;
300  $output = '';
301  $qid = query('SELECT parent_id, nom_' . $_SESSION['session_langue'] . '
302  FROM peel_rubriques r
303  WHERE id = "' . intval($rubid) . '" AND etat = "1" AND r.technical_code NOT IN ("other", "iphone_content") AND ' . get_filter_site_cond('rubriques', 'r') . '');
304  if (num_rows($qid)) {
305  list($parent, $nom) = fetch_row($qid);
306  if(empty($tpl)) {
307  $tpl = $GLOBALS['tplEngine']->createTemplate('arbre_rubrique.tpl');
308  }
309  $tpl->assign('href', get_content_category_url($rubid, $nom));
310  $tpl->assign('label', $nom);
311  $tpl->assign('hidden', $hidden);
312  $nom = $tpl->fetch();
313  } else {
314  $parent = 0;
315  $nom = '';
316  }
317  if ($parent > 0) {
318  return affiche_arbre_rubrique($parent, ' &gt; ' . $nom, $hidden);
319  } else {
320  return $nom . (!$hidden ? $additional_text : '');
321  }
322  }
323 }
324 
331 function get_rss_feed_content($feed_url) {
332  $output = '';
333  // Appel de la libraire SimplePie.
334  include_once $GLOBALS['dirroot'].'/lib/class/Simplepie.php';
335  $feed = new SimplePie();
336  $feed->set_cache_location($GLOBALS['dirroot'].'/'.$GLOBALS['site_parameters']['cache_folder']);
337  // On introduit une durée de cache random pour éviter qu'une page avec plusieurs flux mette à chaque fois tout à jour en même temps
338  if(!empty($_GET['update']) && $_GET['update']==1){
339  $feed->set_cache_duration(1);
340  } else {
341  $feed->set_cache_duration(3600 * rand(12,16));
342  }
343  // on peut lui interdire de trier par date. true par défaut.
344  // $feed->enable_order_by_date(false);
345  $feed->set_feed_url(html_entity_decode($feed_url));
346  // on lance la récupération du contenu
347  $feed->init();
348  if($feed->data){
349  // On défini le nombre d'articles qui nous intéressent.
350  $max = $feed->get_item_quantity(100);
351  // Nous voici au coeur du code d'intégration.
352  if($feed->get_title()) {
353  $output .= '
354  <div class="rss_header">
355  <h3>' . $feed->get_title() . '</h3>
356  <p>' . $feed->get_description() . '</p>
357  </div>
358 ';
359  }
360  for($x=0; $x<$max; $x++) {
361  // On prend le x-iéme item.
362  $item=$feed->get_item($x);
363  $enclosure=$item->get_enclosure(0);
364  $output .= '
365  <div class="rss_content" style="margin-bottom: 10px;">
366  <h4><a href="'. $item->get_permalink(). '" onclick="return(window.open(this.href)?false:true);">'. $item->get_title().'</a></h4>';
367  if(!empty($enclosure) && $enclosure->get_link()!=''){
368  $output .= '<img src="' . $enclosure->get_link() . '" style="float: left; margin: 4px; margin-top: 8px;" />';
369  }
370  if($item->get_date()){
371  $output .= String::ucfirst(get_formatted_date($item->get_date(), 'long', 'short')) . ' - ';
372  }
373  $output .= String::ucfirst($item->get_description()). '
374  </div>';
375  }
376  }
377  return $output;
378 }
379 
380 if (!function_exists('get_articles_in_container_html')) {
387  function get_articles_in_container_html($articles_data_array, $only_show_article_with_picture = true)
388  {
389  static $tpl;
390  $output = '';
391  if (!empty($articles_data_array['id']) && !empty($articles_data_array['etat'])) {
392  $urlprod = get_content_url($articles_data_array['id']);
393  $display_picture = $articles_data_array['image'];
394  if (!$only_show_article_with_picture || !empty($display_picture)) {
395  if(empty($tpl)) {
396  $tpl = $GLOBALS['tplEngine']->createTemplate('articles_in_container_html.tpl');
397  }
398  $tpl->assign('href', $urlprod);
399  $tpl->assign('name', $articles_data_array['name']);
400  if (!empty($display_picture)) {
401  $this_picture = thumbs($display_picture, $GLOBALS['site_parameters']['small_width'], $GLOBALS['site_parameters']['small_height'], "fit");
402  if($only_show_article_with_picture && empty($this_picture)) {
403  return false;
404  }
405  $tpl->assign('src', $GLOBALS['repertoire_upload'] . '/thumbs/' . $this_picture);
406  } else {
407  $tpl->assign('src', null);
408  }
409  $tpl->assign('more_detail_label', $GLOBALS['STR_MORE_DETAILS']);
410  $output .= $tpl->fetch();
411  }
412  }
413  return $output;
414  }
415 }
foreach(array('date1', 'date2', 'type', 'renewals', 'width') as $item) $data
Definition: chart-data.php:29
SimplePie.
static strip_tags($string, $allowed_tags=null)
String::strip_tags()
Definition: String.php:548
fetch_row($query_result)
fetch_row()
Definition: database.php:264
charge_article($id, $show_all_etat_if_admin=true)
charge_article()
Definition: fonctions.php:394
static html_entity_decode_if_needed($string)
String::html_entity_decode_if_needed()
Definition: String.php:533
$results_array
if(!empty($_GET['id'])) if(isset($_POST['form_name'], $_POST['form_subject'], $_POST['form_text'], $_POST['form_lang'])&&empty($_GET['id'])) if(empty($_GET['id'])) $tpl
if(!defined('IN_PEEL')) thumbs($source_filename, $width, $height, $method= 'fit', $source_folder=null, $thumb_folder=null, $thumb_rename=true, $return_absolute_path=false)
Charge l'image dont le nom est $source_filename dans le répertoire d'upload, et crée une vignette pou...
Definition: fonctions.php:33
real_escape_string($value)
real_escape_string()
Definition: database.php:374
get_filter_site_cond($table_technical_code, $table_alias=null, $use_strict_rights_if_in_admin=false, $specific_site_id=null, $exclude_public_items=false, $admin_force_multisite_if_allowed=false)
Retourne la condition SQL permettant de filtrer les données pour une table.
Definition: fonctions.php:4643
get_category_tree_and_itself($id_or_ids_array, $mode= 'sons', $table_to_use= 'categories')
get_category_tree_and_itself()
Definition: fonctions.php:933
query($query, $die_if_error=false, $database_object=null, $silent_if_error=false, $security_sql_filter=true)
The query() function is meant to be called anywhere you want to make a query.
Definition: database.php:158
if(!defined('IN_PEEL')) est_identifie()
Retourne true si l'utilisateur est identifié
Definition: user.php:23
vb(&$var, $default=null)
Variable blanche if $var n'est pas défini, retourne $default, sinon retourne $var.
Definition: format.php:97
if(strlen($date2)== '10') if($type== 'users-by-age'&&a_priv('admin_users', true)) elseif($type== 'forums-count'&&a_priv('admin_content', true)) elseif($type== 'forums-categories'&&a_priv('admin_content', true)) elseif($type== 'users-count'&&a_priv('admin_users', true)) elseif($type== 'product-categories'&&a_priv('admin_products', true)) elseif($type== 'users-by-sex'&&a_priv('admin_users', true)) elseif($type== 'users-by-country'&&a_priv('admin_users', true)) elseif($type== 'sales'&&a_priv('admin_sales', true))
Definition: chart-data.php:160
num_rows($query_result)
num_rows()
Definition: database.php:321
fetch_assoc($query_result)
fetch_assoc()
Definition: database.php:283
if(!defined('IN_PEEL')) if(!function_exists('get_article_details_html')) if(!function_exists('get_rubriques_sons_html')) if(!function_exists('get_articles_html')) if(!function_exists('get_articles_list_brief_html')) if(!function_exists('affiche_arbre_rubrique')) get_rss_feed_content($feed_url)
Récupère le contenu d'un fichier RSS.
get_formatted_date($datetime_or_timestamp=null, $mode= 'short', $hour_minute=false)
Afficher une date formatée, en évitant les problèmes liés aux noms de mois sur les serveurs qui ne so...
Definition: format.php:440
get_file_type($filename)
get_file_type()
Definition: fonctions.php:3571
$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
a_priv($requested_priv, $demo_allowed=false, $site_configuration_modification=false, $user_id=null)
Renvoie true si l'utilisateur de la session a le privilège $requested_priv ou un droit supérieur Des ...
Definition: user.php:63
$rubid
Definition: index.php:29
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...
correct_output(&$output, $replace_template_tags=false, $format=null, $lang=null)
Corrige le contenu à afficher, notamment pour avoir du https même si http est stocké en BDD...
Definition: format.php:854
static nl2br_if_needed($string)
Fonction de compatibilité avec de vieilles versions de PEEL ou du contenu qui vient d'ailleurs...
Definition: String.php:559
static str_shorten($string, $length_limit, $middle_separator= '', $ending_if_no_middle_separator= '...', $ideal_length_with_clean_cut_if_possible=null)
Raccourcit une chaine de caractère en insérant au milieu ou à la fin un séparateur.
Definition: String.php:233
static ucfirst($string)
Returns string with first letter uppercase.
Definition: String.php:173
if(defined('IN_PEEL_ADMIN')||IN_INSTALLATION) $_SESSION['session_langue']
static rawurlencode($string, $avoid_slash=true)
Returns string compatible with Apache without the AllowEncodedSlashes directive ON => avoids systemat...
Definition: String.php:893

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