WordPress.org

Plugin Directory

Changeset 779855


Ignore:
Timestamp:
09/29/13 14:51:33 (7 months ago)
Author:
eskapism
Message:

tagging version 0.1.3

Location:
ep-admin-messages/tags/0.1.3
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • ep-admin-messages/tags/0.1.3/ep-admin-messages.class.php

    r765237 r779855  
    5454         
    5555            // Get settings for message 
    56             // @todo: apparently i'm doing the same thing multple times here... 
    5756            // make an array with the keys to get and just get'em! 
    5857            $settings_to_get = array( 
     
    7776            // Detect language 
    7877            // @todo: Actually detect language 
     78             
     79            // Setup message to show 
    7980            $message_to_show = ""; 
    8081            if ( ! empty( $one_message->message ) ) { 
     
    8384            } 
    8485 
     86            // Setup message title 
     87            $message_title_to_show = __("Admin Message", "ep-admin-message"); 
     88            if ( ! empty( $one_message->title ) ) { 
     89                $message_title_to_show = $one_message->title; 
     90                if ( is_array($message_title_to_show)) $message_title_to_show = join($message_title_to_show); 
     91            } 
    8592             
    8693            // Determine if message should be shown on current screen 
     
    301308                    // Show message in a meta box on the edit post screen 
    302309                    $metabox_priority = "high"; // high', 'core', 'default' or 'low' 
    303                     $metabox_title = __("Admin Message", "ep-admin-message"); 
     310                    $metabox_title = $message_title_to_show; 
    304311                    $metabox_id = "ep-admin-message-" . md5( json_encode($one_message) ); 
    305312 
  • ep-admin-messages/tags/0.1.3/ep-config-example.json

    r765237 r779855  
    5959        "<p>Images are ok too:<br><img src='http://lorempixel.com/95/95/' alt='Dummy image from lorempixel.com' widht=100 height=100>" 
    6060      ], 
    61       "location": "dashboard_metabox" 
     61      "location": "dashboard_metabox", 
     62      "title": "This is the the text in title of the meta box" 
    6263    }, 
    6364    { 
  • ep-admin-messages/tags/0.1.3/readme.txt

    r765237 r779855  
    101101== Changelog == 
    102102 
    103 = 0.1.x = 
     103= 0.1.3 = 
    104104 
    105 *  Added support for limiting messages to users based on their role. 
     105* Added support for limiting messages to users based on their role. Usage: ```user_role: "editor,author"``` 
     106* Added support for custom title in metaboxes. Usage: ```"title": "This is the title of the message"``` 
    106107 
    107108= 0.1.2 = 
    108109 
    109 * Added support for limiting messages to users based on their ID or their username. 
     110* Added support for limiting messages to users based on their ID or their username. Usage: ```username: "admin"`` 
    110111 
    111112= 0.1.1 = 
Note: See TracChangeset for help on using the changeset viewer.