%PDF- %PDF-
Direktori : /home/dordingu/www/antikva/wp-content/themes/mexin/inc/shortcodes/ |
Current File : /home/dordingu/www/antikva/wp-content/themes/mexin/inc/shortcodes/alerts.php |
<?php // Alerts function webnus_alerts( $atts, $content = null ) { extract( shortcode_atts( array( 'type' => 'info', /* alert-info, alert-success, alert-error */ 'close' => 'true', /* display close link */ ), $atts ) ); $out = '<div class="alert alert-'. $type . '">'; if($close == 'true') { $out .= '<button type="button" class="close" data-dismiss="alert">×</button>'; } $out .= do_shortcode($content); $out .= '</div>'; return $out; } add_shortcode('alert', 'webnus_alerts'); ?>