Changeset 3090567
- Timestamp:
- 05/22/2024 06:00:51 AM (3 months ago)
- Location:
- sardinia-poi
- Files:
-
- 2 edited
- 1 copied
Legend:
- Unmodified
- Added
- Removed
-
sardinia-poi/tags/1.3/trunk/class/sardinia-poi-class.php
r3069345 r3090567 10 10 const SARDINIAPOIHEADER = 'sardinia_poi_title_area'; 11 11 const SARDINIAPOITEMPLATE = 'sardinia_poi_template'; 12 13 12 14 13 15 public function __construct() { … … 31 33 $text .= '<ul>'; 32 34 foreach($data as $poi) { 33 $text .= '<li>'.str_replace(['{TIPOLOGIA}', '{NOME}','{google_link}'],[$poi['TIPOLOGIA'],$poi['NOME'],$this->sardiniapoi_generateGoogleMapsLink($poi['DO_Y'],$poi['DO_X'])], get_option(SELF::SARDINIAPOITEMPLATE)).'</li>';35 $text .= '<li>'.str_replace(['{TIPOLOGIA}', '{NOME}','{google_link}'],[$poi['TIPOLOGIA'],$poi['NOME'],$this->sardiniapoi_generateGoogleMapsLink($poi['DO_Y'],$poi['DO_X'])],)).'</li>'; 34 36 } 35 37 $text .= '</ul>'; 36 38 37 39 return $text; 40 41 42 43 38 44 } 39 45 -
sardinia-poi/trunk/class/sardinia-poi-class.php
r3069345 r3090567 10 10 const SARDINIAPOIHEADER = 'sardinia_poi_title_area'; 11 11 const SARDINIAPOITEMPLATE = 'sardinia_poi_template'; 12 13 12 14 13 15 public function __construct() { … … 31 33 $text .= '<ul>'; 32 34 foreach($data as $poi) { 33 $text .= '<li>'.str_replace(['{TIPOLOGIA}', '{NOME}','{google_link}'],[$poi['TIPOLOGIA'],$poi['NOME'],$this->sardiniapoi_generateGoogleMapsLink($poi['DO_Y'],$poi['DO_X'])], get_option(SELF::SARDINIAPOITEMPLATE)).'</li>';35 $text .= '<li>'.str_replace(['{TIPOLOGIA}', '{NOME}','{google_link}'],[$poi['TIPOLOGIA'],$poi['NOME'],$this->sardiniapoi_generateGoogleMapsLink($poi['DO_Y'],$poi['DO_X'])],)).'</li>'; 34 36 } 35 37 $text .= '</ul>'; 36 38 37 39 return $text; 40 41 42 43 38 44 } 39 45
Note: See TracChangeset
for help on using the changeset viewer.