Skip to content

Instantly share code, notes, and snippets.

@Dinamiko
Last active August 29, 2015 14:17

Revisions

  1. Emili Castells revised this gist Mar 15, 2015. 1 changed file with 7 additions and 0 deletions.
    7 changes: 7 additions & 0 deletions boton_01.php
    Original 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]
  2. Emili Castells revised this gist Mar 15, 2015. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion boton_01.php
    Original file line number Diff line number Diff line change
    @@ -4,7 +4,7 @@
    */
    function boton_shortcode( $atts, $content = null ) {

    $boton .= '<a style="" href="">';
    $boton = '<a style="" href="">';
    $boton .= $content;
    $boton .= '</a>';

  3. Emili Castells revised this gist Mar 15, 2015. 1 changed file with 3 additions and 5 deletions.
    8 changes: 3 additions & 5 deletions boton_01.php
    Original file line number Diff line number Diff line change
    @@ -4,11 +4,9 @@
    */
    function boton_shortcode( $atts, $content = null ) {

    $boton = '<div style="">';
    $boton .= '<a href="">';
    $boton .= $content;
    $boton .= '</a>';
    $boton .= '</div>';
    $boton .= '<a style="" href="">';
    $boton .= $content;
    $boton .= '</a>';

    return $boton;

  4. Emili Castells renamed this gist Mar 15, 2015. 1 changed file with 0 additions and 0 deletions.
    File renamed without changes.
  5. Emili Castells revised this gist Mar 15, 2015. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion boton:01.php
    Original 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;
    return $boton;

    }

  6. Emili Castells revised this gist Mar 15, 2015. 1 changed file with 1 addition and 0 deletions.
    1 change: 1 addition & 0 deletions boton:01.php
    Original 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 ) {

  7. Emili Castells created this gist Mar 15, 2015.
    16 changes: 16 additions & 0 deletions boton:01.php
    Original 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' );