' . $event->EventStartDate . '
/* Plugin Name: TexasAutist Plugin URI: http://jesusacosta.net/plugins/texasautist Description: Plugin para colocar códigos generales de Texas Autist Academy Author: Jesus Acosta Version: 1.0 Author URI: http://jesusacosta.net */ function texasautist_scripts() { // Register the script like this for a plugin: wp_register_script( 'texasautist_js', plugins_url( '/texasautist.js?'.rand(1111,9999), __FILE__ ) ); wp_enqueue_script( 'texasautist_js' ); wp_register_style( 'texasautist_css', plugins_url( '/texasautist.css?'.rand(1111,9999), __FILE__ ) ); wp_enqueue_style( 'texasautist_css' ); } add_action( 'wp_enqueue_scripts', 'texasautist_scripts', 20 ); /*Limitar extracto*/ function custom_excerpt_length( $length ) { return 30; } add_filter( 'excerpt_length', 'custom_excerpt_length', 999 ); /*Listar próximos eventos*/ function listar_eventos( $atts ) { $html = "
' . $event->EventStartDate . '
tags around HTML code in Text module remove_filter( 'the_content', 'wpautop' ); /*INCLUDES*/ /* Plugin Name: TopNotice Plugin URI: http://jesusacosta.net/plugins/topnotice Description: Plugin para poner un mensaje en la parte superior de la página web. Author: Jesús Acosta Version: 1.0 Author URI: http://jesusacosta.net */ function topnotice_scripts() { // Register the script like this for a plugin: wp_register_script( 'topnotice_js', plugins_url( '/topnotice.js', __FILE__ ) ); wp_enqueue_script( 'topnotice_js' ); wp_register_style( 'topnotice_css', plugins_url( '/topnotice.css', __FILE__ ) ); wp_enqueue_style( 'topnotice_css' ); } add_action( 'wp_enqueue_scripts', 'topnotice_scripts', 20 ); function page_render_topnotice() { global $wpdb; $saved; //POST //*Update data*/ if($_POST['save']=="Update"){ $saved = '
Updated.
Put title on the top of webpage.
} /**Menu*/ function topnotice_admin_menu() { add_menu_page( 'TopNotice', 'TopNotice', 'activate_plugins', 'topnotice', 'page_render_topnotice' ); } add_action( 'admin_menu', 'topnotice_admin_menu' ); function topnotice(){ global $wpdb; $data = $wpdb->get_row( 'SELECT * FROM '.$wpdb->prefix.'topnotice WHERE id = 0'); if($data->active==1){ echo "