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
/** | |
* Genesis custom | |
*crear dos paginas achivos archive-tax_lien.php | |
*otra de single-tax_lien.php | |
*/ | |
add_action( 'init', 'create_custom_post_type' ); | |
function create_custom_post_type() { | |
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
<div class="home-featured"><div class="wrap"><?php echo do_shortcode( '[home_featured_left]' ); ?><?php echo do_shortcode( '[home_featured_right]' ); ?></div></div> | |
----------css.............. | |
.wrap { | |
max-width: 1140px; | |
margin: 0 auto; | |
overflow: hidden; | |
} | |
.home-featured { | |
background-attachment: fixed; |
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 | |
require('xa-register.class.php'); | |
// En el frontend | |
// CSS | |
add_style('mi_estilo','css/estilo.css'); | |
// JS | |
add_script('mi_script','js/script.js'); |
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
header.php ...................... Header Section | |
index.php ......................... Main Section | |
sidebar.php .................... Sidebar Section | |
single.php ....................... Post Template | |
page.php ......................... Page Template | |
comments.php .................. Comment Template | |
search.php ...................... Search Content | |
searchform.php ............ Search Form Template | |
archive.php ................... Archive Template | |
functions.php ................ Special Functions |
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
//Ejecutar PHP en widgets de texto | |
function ejecutar_php($html){ | |
if(strpos($html,"<"."?php")!==false){ | |
ob_start(); | |
eval("?".">".$html); | |
$html=ob_get_contents(); | |
ob_end_clean(); | |
} | |
return $html; | |
} |
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
/* esto es como se creara el html */ | |
<p><a href="#modal"> Activar ventana</a></p> | |
<div id="modal"> | |
<div class="modal-content"> | |
<div class="header"> | |
<h2>Titulo de la ventana</h2> |
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
/*Lo primero es crear el archivo es la cabecera para indicar que es una página:*/ | |
<?php | |
/* | |
Template name: Pagina de Contacto | |
*/ | |
?> | |
<?php | |
//Si se envía el formulario | |
if(isset($_POST['submitted'])) { |
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 | |
/* | |
Plugin Name: usuarios | |
Plugin URI: http://webgae.com/ | |
Description: Plugin para usuarios wordpress . | |
Version: 1.0 | |
Author: Joaquin Saez | |
Author URI: http://webgae.com | |
License: GPLv2 o posterior | |
*/ |
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
//Personalizamos la funcion con nuestro código adsense | |
function get_adsense($atts) { | |
return '<script type="text/javascript"><!-- | |
google_ad_client = "pub-su numero de adsense"; | |
/* 468x60, created 9/13/10 */ | |
google_ad_slot = "su numero de adsense/"; | |
google_ad_width = 468; | |
google_ad_height = 60; | |
//--> |
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
//Creamos la funcion | |
function mi_generador_boton( $page = null, $target = null ) { | |
//Añádimos css | |
echo '<style> | |
#modal { | |
left:50%; | |
margin:-250px 0 0 -40%; |
OlderNewer