Created
February 19, 2013 12:37
-
-
Save oscarandreu/4985522 to your computer and use it in GitHub Desktop.
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: Plugin práctica 2 | |
Plugin URI: http://www.whatsgoingon.es/ | |
Version: 0.1 | |
Author: Óscar Andreu Martínez | |
Description: Plugin como práctica docente. | |
License: GPL2 | |
*/ | |
/* Copyright 2012 Óscar Andreu (email : oscarandreu at gmail dot com) | |
This program is free software; you can redistribute it and/or modify | |
it under the terms of the GNU General Public License, version 2, as | |
published by the Free Software Foundation. | |
This program is distributed in the hope that it will be useful, | |
but WITHOUT ANY WARRANTY; without even the implied warranty of | |
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
GNU General Public License for more details. | |
You should have received a copy of the GNU General Public License | |
along with this program; if not, write to the Free Software | |
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA | |
*/ | |
function wgo_get_contact_form($atts) | |
{ | |
$content .= ' | |
<form> | |
<div><input name="nombre" placeholder="Nombre" value='.$atts[nombre].' required></div> | |
<div><input name="apell" placeholder="Apellidos" value='.$atts[apell].' required></div> | |
<div><input type="email" placeholder="email" value='.$atts[email].' required></div> | |
<div><input type="submit" value="Enviar"></div> | |
</form> | |
'; | |
return $content; | |
} | |
add_shortcode('wgo_getTheForm','wgo_get_contact_form'); | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment