Last active
August 29, 2015 14:17
Revisions
-
Emili Castells revised this gist
Mar 15, 2015 . 1 changed file with 7 additions and 0 deletions.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -1,3 +1,10 @@ <?php /** * Plugin Name: Boton * Description: Un ejemplo de shortcode */ if ( ! defined( 'ABSPATH' ) ) exit; /** * Crea shortcode [boton] * [boton]texto[/boton] -
Emili Castells revised this gist
Mar 15, 2015 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -4,7 +4,7 @@ */ function boton_shortcode( $atts, $content = null ) { $boton = '<a style="" href="">'; $boton .= $content; $boton .= '</a>'; -
Emili Castells revised this gist
Mar 15, 2015 . 1 changed file with 3 additions and 5 deletions.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -4,11 +4,9 @@ */ function boton_shortcode( $atts, $content = null ) { $boton .= '<a style="" href="">'; $boton .= $content; $boton .= '</a>'; return $boton; -
Emili Castells renamed this gist
Mar 15, 2015 . 1 changed file with 0 additions and 0 deletions.There are no files selected for viewing
File renamed without changes. -
Emili Castells revised this gist
Mar 15, 2015 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -10,7 +10,7 @@ function boton_shortcode( $atts, $content = null ) { $boton .= '</a>'; $boton .= '</div>'; return $boton; } -
Emili Castells revised this gist
Mar 15, 2015 . 1 changed file with 1 addition and 0 deletions.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -1,5 +1,6 @@ /** * Crea shortcode [boton] * [boton]texto[/boton] */ function boton_shortcode( $atts, $content = null ) { -
Emili Castells created this gist
Mar 15, 2015 .There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,16 @@ /** * Crea shortcode [boton] */ function boton_shortcode( $atts, $content = null ) { $boton = '<div style="">'; $boton .= '<a href="">'; $boton .= $content; $boton .= '</a>'; $boton .= '</div>'; return $boton; } add_shortcode( 'boton', 'boton_shortcode' );