Changeset 29429 for extensions/meta/main.inc.php
- Timestamp:
- Sep 8, 2014, 7:24:59 AM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/meta/main.inc.php
r29428 r29429 1 1 <?php 2 2 3 /* 3 4 Plugin Name: meta … … 26 27 include_once(dirname(__FILE__) . '/initadmin.php'); 27 28 } 28 29 29 30 30 //Gestion des meta dans le header … … 163 163 function add_metacat() { 164 164 global $template, $page, $meta_infos; 165 166 165 //meta categories 167 166 if (!empty($page['category']['id'])) { … … 194 193 function add_metaimg() { 195 194 global $template, $page, $meta_infos; 196 197 //meta images 195 //meta images 198 196 if (!empty($page['image_id'])) { 199 197 $query = ' … … 219 217 if (!empty($row['metadesimg'])) { 220 218 $template->assign('PLUG_META', $photoDesED); 221 } else {219 } else { 222 220 $meta_infosph = array(); 223 221 $meta_infosph['title'] = $template->get_template_vars('PAGE_TITLE'); … … 225 223 $meta_infosph['descimg'] = $template->get_template_vars('COMMENT_IMG'); 226 224 if (!empty($meta_infosph['descimg'])) { 227 $template->assign('PLUG_META', strip_tags($meta_infosph['descimg']) .' - '.$meta_infosph['title']);228 } else{229 $template->assign('PLUG_META', $meta_infosph['title'] .' - '.$meta_infosph['gt']);225 $template->assign('PLUG_META', strip_tags($meta_infosph['descimg']) . ' - ' . $meta_infosph['title']); 226 } else { 227 $template->assign('PLUG_META', $meta_infosph['title'] . ' - ' . $meta_infosph['gt']); 230 228 } 231 229 } … … 235 233 function set_meta_back() { 236 234 global $template, $meta_infos; 237 238 235 $template->assign 239 236 (array
Note: See TracChangeset
for help on using the changeset viewer.