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
<style> | |
#postList12 { | |
max-width: 600px; margin: auto; | |
} | |
#postList12 li{ | |
list-style: none; | |
} | |
#postList12 a { | |
background-color: #eee; | |
color: black; |
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
<b:if cond='data:view.isPage'> | |
<style> | |
.entry-title, #comments { | |
display: none; | |
} | |
</style> | |
</b:if> |
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
add_action( 'woocommerce_after_shop_loop_item_title', 'dcms_show_stock_list_products' ); | |
function dcms_show_stock_list_products() { | |
global $product; | |
if ( $product->is_in_stock() ) { | |
echo '<div class="stock" >' . $product->get_stock_quantity() . ' en stock</div>'; | |
} else { | |
echo '<div class="out-stock" >No hay stock</div>'; | |
} | |
} |
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
Para aplicar etiquetas, debe tener un poco de conocimiento de HTML, observe que básicamente comienza con una etiqueta con el atributo "cond" y termina con una etiqueta de cierre. Entre estas etiquetas, el contenido (html, estilo, script, widgets ...) solo aparecerán o seguirán ciertas condiciones. | |
Por ejemplo, en el siguiente código: | |
<b:if cond='your condition'> | |
<style>...css code...</style> | |
<script>...javascript code...</script> | |
</b:if> | |
Parte 1. Etiquetas de condición | |
1. Página de inicio | |
<b:if cond='data:view.isHomepage'> |
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
'use strict'; | |
// Shortcuts to DOM Elements. | |
var signInButton = document.getElementById('sign-in-button'); | |
var signOutButton = document.getElementById('sign-out-button'); | |
var splashPage = document.getElementById('page-splash'); | |
var recentPostsSection = document.getElementById('recent-posts-list'); | |
var userPostsSection = document.getElementById('user-posts-list'); | |
var topUserPostsSection = document.getElementById('top-user-posts-list'); |
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
<form action="https://docs.google.com/forms/u/0/d/e/1FAIpQLSfwzUmXZaoxSWzlz7HMPP9Bm0jDu0QchCF3HposYvjFnV3gfA/formResponse" target="_self" method="POST" id="mG61Hd"> | |
<div class="form-row shadow-lg p-3 mb-5 bg-white rounded"> | |
<label class="font-weight-light" for="formGroupExampleInput">Su nombre</label> | |
<input class="form-control"type="text" aria-describedby="i.desc.1898404042 i.err.1898404042" name="entry.1391857090" placeholder="Díganos su nombre"> | |
<label class="font-weight-light" for="exampleFormControlInput1">Dirección de correo electrónico | |
</label> | |
<input class="form-control" type="email" jsname="YPqjbf" autocomplete="email" tabindex="0" aria-label="Tu dirección de correo electrónico" name="emailAddress" value="" required="" dir="auto" data-initial-dir="auto" data-initial-value="" placeholder="Dirección de correo electrónico"> | |
<label class="font-weight-light" for="exampleFormControlTextarea1">Mensaje</label> | |
<textarea class="form-control s" jsaction="input:Lg5SV;ti6hGc:XMgOHc;rcuQ6b:WYd;" required="" name= |
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
// Aqui sus datos de firebase | |
var firebaseConfig = { | |
apiKey: "tu key", | |
authDomain: "tuproyecto.firebaseapp.com", | |
databaseURL: "https://tuproyecto.firebaseio.com", | |
projectId: "", | |
storageBucket: "", | |
messagingSenderId: "", | |
appId: "" |
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
<?xml version="1.0" encoding="UTF-8" ?> | |
<!DOCTYPE html> | |
<html xmlns='http://www.w3.org/1999/xhtml' xmlns:b='http://www.google.com/2005/gml/b' xmlns:data='http://www.google.com/2005/gml/data' xmlns:expr='http://www.google.com/2005/gml/expr'> | |
<head> | |
<meta charset='utf-8'/> | |
<meta content='width=device-width, initial-scale=1, shrink-to-fit=no' name='viewport'/> | |
<b:include data='blog' name='all-head-content'/> | |
<title><data:blog.pageTitle/></title> | |
<link crossorigin='anonymous' href='https://stackpath.bootstrapcdn.com/bootstrap/4.4.1/css/bootstrap.min.css' integrity='sha384-Vkoo8x4CGsO3+Hhxv8T/Q5PaXtkKtu6ug5TOeNV6gBiFeWPGFN9MuhOf23Q9Ifjh' rel='stylesheet'/> | |
<link href='https://cdnjs.cloudflare.com/ajax/libs/plyr/3.5.6/plyr.css' rel='stylesheet'/> |
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
<link href='https://fonts.googleapis.com/css?family=Abel' rel='stylesheet' type='text/css'> | |
<div id="total"></div> | |
<div class="loading"></div> | |
<div id="feed"></div> | |
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 | |
/** | |
* Revolution Pro. | |
* | |
* Onboarding config to load plugins and homepage content on theme activation. | |
* | |
* Visit `/wp-admin/admin.php?page=genesis-getting-started` to trigger import. | |
* | |
* @package Revolution Pro | |
* @author StudioPress |
NewerOlder