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
function apk_share_post($content) { | |
if( is_single ) { | |
$content .= '<div class="share-post"> | |
<h4><?php _e("Compartir", "theme_name");?></h4> | |
<a href="https://www.facebook.com/sharer/sharer.php?u=<?php the_permalink(); ?>" class="facebook" target="_blank"> | |
<i class="fa fa-facebook"></i> Facebook |
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 | |
/* | |
* | |
* Crear metabox | |
* | |
* Defino el metabox en el que irán los campos personalizados | |
* | |
* @author Jonathan Martinez | |
* @package Bluu | |
* |
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 | |
/** | |
* Ejemplo de búsqueda avanzada para propiedades | |
* | |
* @author Francisco Aguilera G. | |
* | |
*/ | |
?> |
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
<!DOCTYPE html> | |
<html lang="es"> | |
<head> | |
<meta charset="UTF-8" /> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<title>Unidades de medida</title> | |
<style type="text/css"> | |
body { |
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 // No incluyas esta etiqueta de apertura | |
/** | |
* Implementando código Typekit | |
* | |
* Cargamos el código Javascript de typekit | |
* en la cabecera de nuestro sitio | |
* | |
* @uses wp_head | |
* |
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 | |
// Verificar si es un usuario logueado | |
if( is_user_logged_in() ) : | |
//Se llama a las variable global de usuario | |
global $current_user; | |
//Se cargan los datos de usuario | |
get_currentuserinfo(); | |
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 method="get" class="search-form" action="<?php echo home_url(); ?>"> | |
<input type="text" value="<?php the_search_query(); ?>" name="s" id="s" /> | |
<input type="submit" value="<?php _e('Buscar', 'apk');?>" /> | |
</form> |