admin_head.php
8 years ago
admin_init.php
8 years ago
admin_menu.php
8 years ago
admin_notices.php
8 years ago
pmxe_after_export.php
8 years ago
pmxe_before_export.php
8 years ago
pmxe_exported_post.php
8 years ago
wp_ajax_dismiss_export_warnings.php
8 years ago
wp_ajax_generate_zapier_api_key.php
8 years ago
wp_ajax_wpae_available_rules.php
8 years ago
wp_ajax_wpae_filtering.php
8 years ago
wp_ajax_wpae_filtering_count.php
8 years ago
wp_ajax_wpae_preview.php
8 years ago
wp_ajax_wpallexport.php
8 years ago
wp_loaded.php
8 years ago
wpmu_new_blog.php
8 years ago
admin_notices.php
19 lines
| 1 | <?php |
| 2 | |
| 3 | function pmxe_admin_notices() { |
| 4 | |
| 5 | // notify user if history folder is not writable |
| 6 | $uploads = wp_upload_dir(); |
| 7 | |
| 8 | $input = new PMXE_Input(); |
| 9 | $messages = $input->get('pmxe_nt', array()); |
| 10 | if ($messages) { |
| 11 | is_array($messages) or $messages = array($messages); |
| 12 | foreach ($messages as $type => $m) { |
| 13 | in_array((string)$type, array('updated', 'error')) or $type = 'updated'; |
| 14 | ?> |
| 15 | <div class="<?php echo $type ?>"><p><?php echo $m ?></p></div> |
| 16 | <?php |
| 17 | } |
| 18 | } |
| 19 | } |