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%; |
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
/** | |
* añadir esto a tu init.js si tienes uno o crera uno y añadir ver | |
http://codex.wordpress.org/Function_Reference/wp_enqueue_script | |
añadir | |
jQuery(document).ready(function(){ | |
jQuery(".toggle_content").hide(); | |
jQuery(".toggle_title").click(function() { | |
jQuery(this).toggleClass("toggle_active").next().slideToggle('fast'); | |
return false; |
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
.gform_wrapper ul { | |
padding-left: 0; | |
list-style: none; } | |
.gform_wrapper li { | |
margin-bottom: 15px; } | |
.gform_wrapper form { | |
margin-bottom: 0; } | |
OlderNewer