my_config['ImageButton'] == 8) || (empty($page['category']) && $this->my_config['HomeButton'] == 8) || (isset($page['category']) && $this->my_config['CategoryButton'] == 8) ) // $cssfile = ''; $cssfile = ''; } if (isset($cssfile)) $template->append('head_elements',$cssfile); } // Add Addthis icon function add_AddThis_icon() { global $template, $page, $user; include ADDTHIS_INC_PATH.'constants.inc.php'; if ($this->my_config['addthis_languser']) // langue de l'utilisateur { $research = pwg_query('SELECT language FROM '.USER_INFOS_TABLE.' WHERE user_id = '.$user['id'].';'); $defaultlanguage = mysql_fetch_array($research); $defaultlanguage = substr($defaultlanguage[0], 0, 2); if (in_array($defaultlanguage, $language_list[0])) $this->my_config['addthis_language'] = $defaultlanguage; } $addthis_img_src = array( '', '', '', '', '', '', '', '' ); // Taille des boutons $addthis_img_size = array( '', '125', '83', '123', '83', '125', '16', ''); $addthis_option = ''; $addthis_img = 0; if (isset($page['section']) && ($page['section']) == 'categories') { // image if (isset($page['image_id'])) { $addthis_img = $this->my_config['ImageButton']; } // Page accueil elseif( empty($page['category'])) { $addthis_img = $this->my_config['HomeButton']; } elseif (isset($page['category'])) { $addthis_img = $this->my_config['CategoryButton']; } } // pas d'affichage sur selection = 'desactive' ou si selection = 'icones' if ($addthis_img > 0 && $addthis_img < 9) { foreach ($this->my_config['addthis_options'] as $key => $value) { if ($value == true) { if (strlen($addthis_option) != 0) $addthis_option .= ', '; $addthis_option .= $key; } } $tpl_code = (isset($page['image_id']) ? "\n" :"\n