This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$array_images = array(); | |
$imagen = $this->item->imagenes; | |
$array_images[0] = $imagen; | |
$imagenes = json_decode($this->item->images); | |
if (count($imagenes)): |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public function save($data) | |
{ | |
$app = JFactory::getApplication(); | |
$generaThumbs = JComponentHelper::getParams('com_catalogo')->get('generaThumbs'); | |
$ancho = JComponentHelper::getParams('com_catalogo')->get('anchoThumbs'); | |
if (isset($data['images']) && is_array($data['images'])) | |
{ | |
$images = $data['images']; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html lang="es-es" dir="ltr"> | |
<head> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<meta http-equiv="X-UA-Compatible" content="IE=edge" /> | |
<meta charset="utf-8" /> | |
<meta name="keywords" content="primaria, kinder, maternal, Neill, cambridge, ingles, sistema uno, lexium, roboteando, Guadalajara, Jalisco, metropolitano, robotica" /> | |
<meta name="description" content="Un método educativo centrado en el clima de libertad, de confianza personal y de desarrollo democrático. Contamos con Jardín de niños y Primaria, basada en el Sistema Uno y Lexium y diversos talleres como robótica." /> | |
<meta name="generator" content="Joomla! - Open Source Content Management" /> | |
<title>Artículos: Editar - Neill School - Administración</title> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//Support for file field: file_1 | |
$input = JFactory::getApplication()->input; | |
$files = $input->files->get('jform'); | |
if(!empty($files['file_1'])){ | |
jimport('joomla.filesystem.file'); | |
$file = $files['file_1']; | |
//Check if the server found any error. | |
$fileError = $file['error']; | |
$message = ''; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$contenido = 'Aqui iria el contenido {jForm type="text" value="nombre"} de prueba {jForm test="probandox"} test.'; | |
$regex = '/{jForm\s(.*?)}/i'; | |
preg_match_all($regex, $contenido, $matches, PREG_SET_ORDER); | |
if ($matches) | |
{ | |
foreach ($matches as $match) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(function ($) { | |
$(document).ready(function () { | |
/** | |
* Asigna una clase en base al tipo de enlace | |
*/ | |
$('a[href^=tel]').addClass("link-phone"); | |
$('a[href^=mailto]').addClass("link-email").attr("target", "_blank"); | |
$('a[href*="wa.me"]').addClass("link-whatsapp").attr("target", "_blank"); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(.*)contact_posted\=true(.*) | |
checker | |
https://www.regextester.com/?fam=107058 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Activacion e incrustación de clases para eventos | |
*/ | |
document.querySelectorAll('a[href^="tel"]').forEach( element => { | |
element.classList.add("link-phone"); | |
element.addEventListener('click', function() { | |
if (typeof gtag == 'function') { | |
gtag('event', 'click', { 'event_category': 'telefono', 'event_label': 'llamada' }); | |
}; | |
if (typeof ga == 'function') { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* CONFIGURACION DE ADD TO CART | |
* Debemos identificar el click en el botón | |
*/ | |
var button = document.getElementById('addToCartButton'); | |
button.addEventListener( 'click', function() { | |
fbq('track', 'AddToCart', { | |
content_name: 'Nombre del producto', | |
content_category: 'Categoria del producto', | |
content_ids: ['1'], |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"require": { | |
"phpclassic/php-shopify": "^1.1" | |
} | |
} |
OlderNewer