Skip to content

Instantly share code, notes, and snippets.

ximo ximosa

Block or report user

Report or block ximosa

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@ximosa
ximosa / index.html
Created Dec 4, 2019
Lector de feed completo. Blogger
View index.html
<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>
@ximosa
ximosa / onboarding.php
Created Oct 30, 2019
Revolution Pro Onboarding
View onboarding.php
<?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
@ximosa
ximosa / shorcodes
Created Dec 5, 2017
shorcodes drive
View shorcodes
Como saber la id de tu carpeta
https://drive.google.com/drive/folders/12e7s6DPEOneGu56tyyu
https://drive.google.com/drive/folders/esto es la id de tu carpeta
Como poner carpeta de videos
[useyourdrive dir="ide de tu carpeta" mode="video" viewrole="administrator|editor|author|contributor|subscriber|guest"
downloadrole="administrator|editor|author|contributor|subscriber|guest" mediaextensions="mp4"]
@ximosa
ximosa / functions.php
Created Mar 5, 2017
Ver fecha de actualización en wordpress
View functions.php
function wpb_last_updated_date( $content ) {
$u_time = get_the_time('U');
$u_modified_time = get_the_modified_time('U');
if ($u_modified_time >= $u_time + 86400) {
$updated_date = get_the_modified_time('F jS, Y');
$updated_time = get_the_modified_time('h:i a');
$custom_content .= '<p class="actualizado">Actualizado en '. $updated_date . ' at '. $updated_time .'</p>';
}
$custom_content .= $content;
@ximosa
ximosa / pagina-hija
Last active Feb 15, 2017
Crear listado de páginas hijas en genesis
View pagina-hija
<?php
// Template Name: Pages-hijas
remove_action('genesis_loop', 'genesis_do_loop');
add_action('genesis_loop', 'custom_loop');
function custom_loop() {
global $post;
$pageid = $post->ID;
@ximosa
ximosa / codigo
Last active Dec 1, 2016
Listado paginas hijas
View codigo
// función para poner código corto [wpb_childpages].
function wpb_list_child_pages() {
global $post;
if ( is_page() && $post->post_parent )
$childpages = wp_list_pages( 'sort_column=menu_order&title_li=&child_of=' . $post->post_parent . '&echo=0' );
else
@ximosa
ximosa / loguin .php
Last active Nov 30, 2016
PAGINA SOLO PARA USUARIOS
View loguin .php
<?php
/**
* Template Name: Loguin-wp
*/
get_header(); ?>
<div class="tu clase css">
<div class="tu clase css">
<main class="tu clase css">
<?php if ( is_user_logged_in() ) : ?>
<?php while ( have_posts() ) : the_post(); ?>
@ximosa
ximosa / Collapse.js
Created May 1, 2016
Colapse abrir y cerrar contenidos
View Collapse.js
+function(t){"use strict";function e(e){var a,s=e.attr("data-target")||(a=e.attr("href"))&&a.replace(/.*(?=#[^\s]+$)/,"");return t(s)}function a(e){return this.each(function(){var a=t(this),i=a.data("bs.collapse"),n=t.extend({},s.DEFAULTS,a.data(),"object"==typeof e&&e);!i&&n.toggle&&/show|hide/.test(e)&&(n.toggle=!1),i||a.data("bs.collapse",i=new s(this,n)),"string"==typeof e&&i[e]()})}var s=function(e,a){this.$element=t(e),this.options=t.extend({},s.DEFAULTS,a),this.$trigger=t('[data-toggle="collapse"][href="#'+e.id+'"],[data-toggle="collapse"][data-target="#'+e.id+'"]'),this.transitioning=null,this.options.parent?this.$parent=this.getParent():this.addAriaAndCollapsedClass(this.$element,this.$trigger),this.options.toggle&&this.toggle()};s.VERSION="3.3.6",s.TRANSITION_DURATION=350,s.DEFAULTS={toggle:!0},s.prototype.dimension=function(){var t=this.$element.hasClass("width");return t?"width":"height"},s.prototype.show=function(){if(!this.transitioning&&!this.$element.hasClass("in")){var e,i=this.$parent&&this.
View json-ld.php
<?php
function get_post_data() {
global $post;
return $post;
}
// para cualquier página
$payload["@context"] = "http://schema.org/";
@ximosa
ximosa / front-page.php
Last active Mar 11, 2018
Crear pagina de incio en genesis con widgets
View front-page.php
<?php
/**
* crear pagina de inicio.
*
* @author webgae
* @front-page.php
*/
//* Eliminar breadcrumbs
remove_action( 'genesis_before_loop', 'genesis_do_breadcrumbs' );
//* Eliminar Genesis loop
You can’t perform that action at this time.