This file contains hidden or 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
<section class="slider-advisory"> | |
<div class="container p-0"> | |
@php | |
$wp_query = new WP_Query( | |
array( | |
'post_type' => 'advisory', | |
'post_status' => 'publish', | |
'posts_per_page' => -1 | |
) | |
); |
This file contains hidden or 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 @php(language_attributes())> | |
@include('partials.head') | |
<body @php(body_class())> | |
@php(do_action('get_header')) | |
@if (elementor_location_exits( 'header_content', true )) | |
@include('partials.header') | |
@else | |
@include('partials.header-home') | |
@endif |
This file contains hidden or 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
var items = ""; | |
$.getJSON( "http://localhost/wordpress/?page_id=246&json=1", function(data) { | |
for (var i = 0; i < data.page.comments.length; i++) { | |
items += '<p>'+data.page.comments[i].name+'</p>>'; | |
} | |
$("#lista_comentarios").html(items); | |
}) |
This file contains hidden or 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 | |
//PRIMERA OPCION - funciones nativas php | |
//Optengo la API REST | |
$url = "http://localhost/wordpress/?page_id=2&json=1"; | |
$data = file_get_contents($url); | |
$json = json_decode($data); | |
//Muestro los resultados | |
echo "<p>".$json->status."</p>"; | |
echo "<p>".$json->page->id."</p>"; |
This file contains hidden or 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
#!/bin/bash | |
## Install ISPConfig3 on Ubuntu 14.04 64Bits | |
## Author Original: Nilton OS blog.linuxpro.com.br | |
## Modificado Español: Luis Gago Casas luisgagocasas.com | |
## Version 0.6 | |
## Caso precise | |
## echo 'LC_ALL="en_US.utf8"' >>/etc/environment | |
## dpkg-reconfigure dash |
This file contains hidden or 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
Para que funcione con extends tiene que usar esta configuración en su archivo Gruntfile.js | |
//base.jade | |
<!DOCTYPE html> | |
html(lang="es") | |
head | |
meta(charset="UTF-8") | |
block titulo | |
title Luis Gago Casas | |
body |
This file contains hidden or 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
Responsive CSS Image Slider - Jade, Stylus | |
------------------------------------------ | |
Preprocessor: Jade Stylus | |
https://luisgagocasas.com/ | |
A [Pen](http://codepen.io/luisgagocasas/pen/eNyvoz) |
NewerOlder