- XAMPP for Windows: https://www.apachefriends.org/download.html
- The VC14 builds require to have the Visual C++ Redistributable for Visual Studio 2015 x86 or x64 installed
- The VC15 builds require to have the Visual C++ Redistributable for Visual Studio 2017 x64 or x86 installed
This file contains hidden or 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
class Widget_Zona51 extends WP_Widget { | |
function Widget_Zona51() { | |
// Nombre, decsripciรณn, etc. del widget | |
parent::WP_Widget(false, $name = 'Zona 51', $widget_options = array('description' => 'Acceso a la Zona 51')); | |
} | |
function widget($args, $instance) { | |
// Muestra el contenido del widget | |
echo 'Hola !'; |
This file contains hidden or 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 create_post_type_eventos() { | |
register_post_type( 'eventos', | |
array( | |
'labels' => array( | |
'name' => __( 'Eventos' ), | |
'singular_name' => __( 'Eventos' ), | |
'all_items' => __('Todos los eventos'), | |
), | |
'public' => true, |
This file contains hidden or 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 styles_and_scripts() { | |
wp_enqueue_style( 'estilos', get_bloginfo('template_directory').'/library/css/main.css' ); | |
wp_enqueue_script( 'navigation', get_bloginfo('template_directory').'/library/js/main.js', array(), '1.0', true ); | |
wp_enqueue_script( 'jQuery', 'http://ajax.googleapis.com/ajax/libs/jquery/1.11.0/jquery.min.js', array(), '1.11.0', false ); | |
// ENQUEUE ANGULAR JS |
This file contains hidden or 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
foreach($miArray as $elem) { | |
if ($elem === end($miArray)) { | |
echo "รLTIMO ELEMENTO"; | |
} | |
if ($elem === reset($miArray)) { | |
echo "PRIMER ELEMENTO"; | |
} |
This file contains hidden or 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 create_plugin_table() { | |
global $wpdb; | |
$table_name = $wpdb->prefix .'info'; | |
if($wpdb->get_var("SHOW TABLES LIKE '$table_name'") != $table_name) { | |
$query_create = 'CREATE TABLE ' . $table_name . ' ( | |
id mediumint(9) NOT NULL AUTO_INCREMENT, |
This file contains hidden or 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 pluginUninstall() { | |
global $wpdb; | |
$table_name = $wpdb->prefix."adslzone_info"; | |
// ยฟBorrar otras opciones? | |
//delete_option('wp_yourplugin_version'); | |
$wpdb->query("DROP TABLE IF EXISTS $table_name"); | |
} |
People
![]() :bowtie: |
๐ :smile: |
๐ :laughing: |
---|---|---|
๐ :blush: |
๐ :smiley: |
:relaxed: |
๐ :smirk: |
๐ :heart_eyes: |
๐ :kissing_heart: |
๐ :kissing_closed_eyes: |
๐ณ :flushed: |
๐ :relieved: |
๐ :satisfied: |
๐ :grin: |
๐ :wink: |
๐ :stuck_out_tongue_winking_eye: |
๐ :stuck_out_tongue_closed_eyes: |
๐ :grinning: |
๐ :kissing: |
๐ :kissing_smiling_eyes: |
๐ :stuck_out_tongue: |
This file contains hidden or 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 | |
// This can be found in the Symfony\Component\HttpFoundation\Response class | |
const HTTP_CONTINUE = 100; | |
const HTTP_SWITCHING_PROTOCOLS = 101; | |
const HTTP_PROCESSING = 102; // RFC2518 | |
const HTTP_OK = 200; | |
const HTTP_CREATED = 201; | |
const HTTP_ACCEPTED = 202; |
This file contains hidden or 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
// Move last pushed commit from branch a to branch b | |
git checkout b | |
git cherry-pick $commitHash | |
git push origin b | |
git checkout a | |
git rebase -i HEAD~1 | |
git push -f origin a |
OlderNewer