/si"; $repl[] = ''; $reg[] = "/<\/span>/si"; $repl[] = ''; $text = preg_replace( $reg, $repl, $text ); // Clean up variables unset($reg, $repl); return $text; } function _addscript($url, &$text) { // The method depends on event type. onAfterRender is complex and others are simple based on framework if ($this->event!='onAfterRender') $this->document->addScript($url); else { // Get header $reg = "/(]*>)(.*?)(<\/HEAD>)(.*)/si"; $count = preg_match_all($reg,$text,$html); if ($count>0) { $head=$html[2][0]; } else { $head=''; } // clean browser if statements $reg = "//si"; $head = preg_replace($reg, '', $head); // define scripts regex $reg = '/]*[^<]*(<\/script>)?/i'; $found = false; $count = preg_match_all($reg,$head,$scripts,PREG_OFFSET_CAPTURE | PREG_PATTERN_ORDER); if ($count>0) foreach ($scripts[1] as $script) { if ($script[0]==$url) { $found = true; break; } } if (!$found) { $script = "\n"; if ($count==0) { // No scripts then just add it before $pos = strpos($text, ""); $text = substr($text,0, $pos-1).$script.substr($text,$pos); } else { //add script after the last script // position last script and add length $pos = strpos($text, trim($scripts[0][$count-1][0]))+strlen(trim($scripts[0][$count-1][0])); $text = substr($text,0, $pos+1).$script.substr($text,$pos+2); } } // Clean up variables unset($reg, $count, $head, $found, $scripts, $script, $pos); } } function _addstylesheet($url, &$text) { // The method depends on event type. onAfterRender is complex and others are simple based on framework if ($this->event!='onAfterRender') $this->document->addStyleSheet($url); else { // Get header $reg = "/(]*>)(.*?)(<\/HEAD>)(.*)/si"; $count = preg_match_all($reg,$text,$html); if ($count>0) { $head=$html[2][0]; } else { $head=''; } // clean browser if statements $reg = "//si"; $head = preg_replace($reg, '', $head); // define scripts regex $reg = '/]*[^<]*(<\/link>)?/i'; $found = false; $count = preg_match_all($reg,$head,$styles,PREG_OFFSET_CAPTURE | PREG_PATTERN_ORDER); if ($count>0) foreach ($styles[1] as $style) { if ($style[0]==$url) { $found = true; break; } } if (!$found) { $style = "\n"; if ($count==0) { // No styles then just add it before $pos = strpos($text, ""); $text = substr($text,0, $pos-1).$style.substr($text,$pos); } else { //add style after the last style // position last style and add length $pos = strpos($text, trim($styles[0][$count-1][0]))+strlen(trim($styles[0][$count-1][0])); $text = substr($text,0, $pos+1).$style.substr($text,$pos+2); } } // Clean up variables unset($reg, $count, $head, $found, $styles, $style, $pos); } } function _addstyledeclaration($source, &$text) { // The method depends on event type. onAfterRender is complex and others are simple based on framework if ($this->event!='onAfterRender') $this->document->addStyleDeclaration($source); else { // Get header $reg = "/(]*>)(.*?)(<\/HEAD>)(.*)/si"; $count = preg_match_all($reg,$text,$html); if ($count>0) { $head=$html[2][0]; } else { $head=''; } // clean browser if statements $reg = "//si"; $head = preg_replace($reg, '', $head); // define scripts regex $reg = '/]*>(.*?)<\/style>/si'; $found = false; $count = preg_match_all($reg,$head,$styles,PREG_OFFSET_CAPTURE | PREG_PATTERN_ORDER); if ($count>0) foreach ($styles[1] as $style) { if ($style[0]==$source) { $found = true; break; } } if (!$found) { $source = "\n"; if ($count==0) { // No styles then just add it before $pos = strpos($text, ""); $text = substr($text,0, $pos-1).$source.substr($text,$pos); } else { //add style after the last style // position last style and add length $pos = strpos($text, trim($styles[0][$count-1][0]))+strlen(trim($styles[0][$count-1][0])); $text = substr($text,0, $pos+1).$source.substr($text,$pos+2); } } // Clean up variables unset($reg, $count, $head, $found, $styles, $style, $pos); } } function _upgrade_plugin() { if ($this->params->get( 'publ', '' )=='') { if (substr($this->jversion,0,3)=="1.5") { $database =& JFactory::getDBO(); $query = "SELECT params FROM #__plugins AS b WHERE b.element='plugin_googlemap2' AND b.folder='content'"; $database->setQuery($query); if (!$database->query()) JError::raiseWarning(1, 'plgSystemPlugin_googlemap2::install_params: '.JText::_('SQL Error')." ".$database->stderr(true)); $params = $database->loadResult(); $savparams = $database->getEscaped($params); if ($params!="") { $query = "UPDATE #__plugins AS a SET a.params = '{$savparams}' WHERE a.element='plugin_googlemap2' AND a.folder='system'"; $database->setQuery($query); if (!$database->query()) JError::raiseWarning(1, 'plgSystemPlugin_googlemap2::install_params: '.JText::_('SQL Error')." ".$database->stderr(true)); $this->params = new JParameter( $params ); } // Clean up variables unset($database, $query, $params, $savparams, $plugin); } } } } ?> Contacto NMGHW
nomegusta_mas_info_ok



... si necesitas cualquier información adicional, puedes contactar con nosotros:

A través del teléfono: 699 592 790

En las redes sociales:
  facebook_log_32 twitter_log_32

Enviándonos un correo:  Esta dirección electrónica esta protegida contra spam bots. Necesita activar JavaScript para visualizarla


Más fácil, rápido y cómodo nuestro formulario, pregúntanos lo que quieras ...


 
Tu nombre
Tu dirección de correo
Asunto


* Para demostranos que no eres un falso robot, haz clic en nuestro robot azul :)
desarrolloJoomla cdmonlogo logoHub dcollab Happy Afternoon MIMA Espacio Creativo sep
Nombre: Email:
newsletter


No Me Gusta Hacer Web Workshops,
Madrid / Valencia / Barcelona, 2013
  hola@nomegustahacerweb.com