Plugin Directory

Changeset 1709116


Ignore:
Timestamp:
08/06/2017 12:32:40 PM (9 years ago)
Author:
dangub86
Message:

Added Target Groups feature and Display only in dashboard and other code optimizations

Location:
admin-notices-for-team/trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • admin-notices-for-team/trunk/README.txt

    r1692758 r1709116  
    4747== Changelog ==
    4848
     49= 1.0.2 =
     50
     51* Fixed Languages folder
     52* Add feature: add setting for display notices only in dashboard and in its subpages (index.php)
     53* Update Authors meta box with name instead of nickname and update Notice Showing function
     54* Added custom capabilities and set specific capabilities for editors and authors
     55* Now showing all users in meta box Target Authors
     56* Add feature: add target Author groups with default groups based on roles
     57* Add feature: target more users in order to create custom groups
     58
    4959= 1.0.1 =
    5060
     
    6676== Upgrade Notice ==
    6777
     78= 1.0.2 =
     79
     80* Added features. Metabox with target author groups and possibility to show notices only in dashboard. Other code optimizations.
     81
    6882= 1.0.1 =
    6983
  • admin-notices-for-team/trunk/admin/css/ant_admin_notices_team-admin.css

    r1692756 r1709116  
    268268
    269269
    270 .meta_hidden {
     270.meta_hidden, #return_group, #add_group_alt, #target_label_alt, #target_groups_alt {
    271271    display: none;
     272}
     273.hidden {
     274    display: none !important;
     275}
     276.author_tags_container {
     277    display: flex;
     278    flex-wrap: wrap;
     279}
     280.author_tags {
     281    flex-grow: 1;
     282    justify-content: space-between;
     283    text-align: center;
     284    background-color: royalblue;
     285    color: whitesmoke;
     286    padding: 2% 1%;
     287    border: solid 1px white;
     288    border-radius: 20px;
    272289}
    273290
     
    306323    -webkit-transition: all .65s cubic-bezier(.85, -0.18, .31, 1.26), opacity .65s;
    307324    -moz-transition: all .65s cubic-bezier(.85, -0.18, .31, 1.26), opacity .65s;
     325
    308326}
    309327.ant-tip:hover::before,
  • admin-notices-for-team/trunk/admin/js/ant_admin_notices_team-admin.js

    r1692007 r1709116  
    6161
    6262        $( '#add_group' ).on( 'click', function() {
    63             $(".meta_hidden").fadeIn(500);
     63            $(".meta_hidden").fadeIn(700);
     64            $("#target_groups").fadeOut(500);
     65            $("#return_group").fadeIn(700);
     66            $( '#add_group' ).fadeOut(500);
     67        });
     68        $( '#return_group' ).on( 'click', function() {
     69            $(".meta_hidden").fadeOut(500);
     70            $("#return_group").fadeOut(500);
     71            $( '#add_group' ).fadeIn(700);
     72            $("#target_groups").fadeIn(700);
     73        });
     74        $( '#add_group_alt' ).on( 'click', function() {
     75            $(".meta_hidden_alt").fadeIn(700);
     76            $("#target_groups_alt").fadeOut(500);
     77            $("#target_label").fadeOut(500);
     78            $("#return_group_alt").fadeIn(700);
     79            $( '#add_group_alt' ).fadeOut(500);
     80        });
     81        $( '#return_group_alt' ).on( 'click', function() {
     82            $(".meta_hidden_alt").fadeOut(500);
     83            $("#return_group_alt").fadeOut(500);
     84            $( '#add_group_alt' ).fadeIn(700);
     85            $("#target_groups_alt").fadeIn(700);
     86            $("#target_label_alt").fadeIn(700);
    6487        });
    6588
  • admin-notices-for-team/trunk/includes/class-ant_admin_notices_team.php

    r1692756 r1709116  
    165165        //Action -> Force Notices to Private Status
    166166        $this->loader->add_action( 'transition_post_status', $plugin_admin, 'post_status_to_private', 10, 3 );
     167        //Action -> Register Custom Post Type
     168        $this->loader->add_action( 'admin_init', $plugin_admin, 'add_users_caps' );
     169
     170        //$this->loader->add_action( 'admin_init', $plugin_admin, 'get_users_by_role' );
    167171
    168172        //Action -> Add and Save Meta Box
Note: See TracChangeset for help on using the changeset viewer.