Changeset 1123786
- Timestamp:
- 03/30/2015 05:34:11 PM (11 years ago)
- Location:
- simple-alert-boxes
- Files:
-
- 43 added
- 1 deleted
- 2 edited
-
tags/1.1 (added)
-
tags/1.1/css (added)
-
tags/1.1/css/font-awesome.css (added)
-
tags/1.1/css/font-awesome.min.css (added)
-
tags/1.1/css/simple-alert-boxes.css (added)
-
tags/1.1/fonts (added)
-
tags/1.1/fonts/FontAwesome.otf (added)
-
tags/1.1/fonts/fontawesome-webfont.eot (added)
-
tags/1.1/fonts/fontawesome-webfont.svg (added)
-
tags/1.1/fonts/fontawesome-webfont.ttf (added)
-
tags/1.1/fonts/fontawesome-webfont.woff (added)
-
tags/1.1/fonts/fontawesome-webfont.woff2 (added)
-
tags/1.1/less (added)
-
tags/1.1/less/animated.less (added)
-
tags/1.1/less/bordered-pulled.less (added)
-
tags/1.1/less/core.less (added)
-
tags/1.1/less/fixed-width.less (added)
-
tags/1.1/less/font-awesome.less (added)
-
tags/1.1/less/icons.less (added)
-
tags/1.1/less/larger.less (added)
-
tags/1.1/less/list.less (added)
-
tags/1.1/less/mixins.less (added)
-
tags/1.1/less/path.less (added)
-
tags/1.1/less/rotated-flipped.less (added)
-
tags/1.1/less/stacked.less (added)
-
tags/1.1/less/variables.less (added)
-
tags/1.1/plugin.php (added)
-
tags/1.1/readme.txt (added)
-
tags/1.1/scss (added)
-
tags/1.1/scss/_animated.scss (added)
-
tags/1.1/scss/_bordered-pulled.scss (added)
-
tags/1.1/scss/_core.scss (added)
-
tags/1.1/scss/_fixed-width.scss (added)
-
tags/1.1/scss/_icons.scss (added)
-
tags/1.1/scss/_larger.scss (added)
-
tags/1.1/scss/_list.scss (added)
-
tags/1.1/scss/_mixins.scss (added)
-
tags/1.1/scss/_path.scss (added)
-
tags/1.1/scss/_rotated-flipped.scss (added)
-
tags/1.1/scss/_stacked.scss (added)
-
tags/1.1/scss/_variables.scss (added)
-
tags/1.1/scss/font-awesome.scss (added)
-
trunk/css/simple-alert-boxes.css (added)
-
trunk/css/style.css (deleted)
-
trunk/plugin.php (modified) (2 diffs)
-
trunk/readme.txt (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
simple-alert-boxes/trunk/plugin.php
r1119048 r1123786 4 4 * Plugin URI: http://www.rafael.mardojai.com/simple-alert-boxes-plugin 5 5 * Description: Use responsives alert boxes with shortcodes. 6 * Version: 1. 06 * Version: 1.1 7 7 * Author: Rafael Mardojai C.M. 8 8 * Author URI: http://www.rafael.mardojai.com … … 28 28 <?php 29 29 function wpsab_scripts() { 30 wp_enqueue_style( 'simple-alert-boxes', plugins_url( 'css/s tyle.css', __FILE__ ) );30 wp_enqueue_style( 'simple-alert-boxes', plugins_url( 'css/simple-alert-boxes.css', __FILE__ ) ); 31 31 wp_enqueue_style( 'simple-alert-boxes-icons', plugins_url( 'css/font-awesome.min.css', __FILE__ ) ); 32 32 } 33 33 add_action( 'wp_enqueue_scripts', 'wpsab_scripts' ); 34 function random_alert($atts) { 35 extract(shortcode_atts(array( 36 'type' => '', 37 'text' => '', 38 ), $atts)); 39 return '<div class="alert ' . $type . '"><p>' . $text . '</p></div>'; 34 add_shortcode( 'alert', 'alert_output' ); 35 function alert_output( $atts, $content ) { 36 $atts = shortcode_atts( array( 37 'type' => '', 38 'text' => '' 39 ), $atts ); 40 return '<div class="alert ' . $atts['type'] . '"><p>' . $atts['text'] . '' . $content . '</p></div>'; 40 41 } 41 add_shortcode('alert', 'random_alert'); 42 function my_admin_notice() { 43 ?> 44 <div class="updated"> 45 <h2><strong>Simple Alert Boxes Updated!</strong></h2> 46 <p><strong></strong><?php _e( 'Welcome to de New version!', 'my-text-domain' ); ?></p> 47 </div> 48 <?php 49 } 50 add_action( 'admin_notices', 'my_admin_notice' ); 42 51 ?> -
simple-alert-boxes/trunk/readme.txt
r1119053 r1123786 1 1 === Simple Alert Boxes === 2 2 Contributors: mardojai 3 Tags: shortcodes, alert, boxes 3 Tags: shortcodes, alert, boxes, mensajes, alertas, mensagges 4 4 Requires at least: 3.0.1 5 5 Tested up to: 4.1.1 … … 16 16 Is easy, only use the shortcodes. 17 17 18 Example: Use [alert type="success" text="Your text heer"] for a success mensagge. Use [alert type="info" text="Your text heer"] for a info mensagge. Use [alert type="warning" text="Your text heer"] for a warning mensagge. Use [alert type="danger" text="Your text heer"] for a danger mensagge. 18 Example: For a success mensagge use: [alert type="success"]Your text here[/alert], for a info mensagge: [alert type="info"]Your text here[/alert], for a warning mensagge: [alert type="warning"]Your text here[/alert] and for a danger mensagge: [alert type="danger"]Your text here[/alert]. 19 20 (For version 1.0 you must use: [alert type="success" text="Your text heer"]). 21 22 DEMO HERE: http://www.rafael.mardojai.com/simple-alert-boxes-plugin/ 23 GITHUB REPOSITORY: https://github.com/mardojai/Simple-Alert-Boxes-Wordpress-Plugin 19 24 20 25 … … 34 39 * Responsive Design 35 40 * Shortcodes 41 42 = 1.1 = 43 * Optimized Shortcodes 44 * Support bold, italic, links and more
Note: See TracChangeset
for help on using the changeset viewer.