From e852134419d27c7cc3eea401f8c436a5b608d555 Mon Sep 17 00:00:00 2001 From: Brian Miyaji Date: Sat, 11 Apr 2015 01:56:26 +1000 Subject: [PATCH] Display module descriptions in admin --- assets/css/admin.css | 11 ++++------- assets/css/menu.css | 8 +++++++- assets/fonts/sportspress.eot | Bin 7760 -> 8296 bytes assets/fonts/sportspress.svg | 4 +++- assets/fonts/sportspress.ttf | Bin 7580 -> 8116 bytes assets/fonts/sportspress.woff | Bin 7656 -> 8192 bytes .../settings/class-sp-settings-modules.php | 15 +++++++++++++-- includes/class-sp-modules.php | 14 +++++++++++++- 8 files changed, 40 insertions(+), 12 deletions(-) diff --git a/assets/css/admin.css b/assets/css/admin.css index 0f4eb725..15753852 100644 --- a/assets/css/admin.css +++ b/assets/css/admin.css @@ -612,12 +612,9 @@ table.sp-modules-table td .button { top: 9px; } -table.sp-modules-table .button-primary { - display: none; -} - -table.sp-modules-table td:hover .button-primary { - display: inline-block; +table.sp-modules-table .sp-desc { + color: #aaa; + float: right; } table.sp-modules-table [class^="sp-icon-"], @@ -629,7 +626,7 @@ table.sp-modules-table .dashicons { line-height: 1; } -table.sp-modules-table .sp-module-unavailable span { +table.sp-modules-table .sp-module-unavailable .sp-desc-tip { vertical-align: middle; color: #aaa; } diff --git a/assets/css/menu.css b/assets/css/menu.css index 01de645b..69b06f8d 100644 --- a/assets/css/menu.css +++ b/assets/css/menu.css @@ -102,7 +102,7 @@ content: "\f330"; } .sp-icon-stopwatch:before { - content: "\f503"; + content: "\f469"; } .sp-icon-availability:before { content: "\f508"; @@ -119,6 +119,12 @@ .sp-icon-export:before { content: "\f317"; } +.sp-icon-box:before { + content: "\f480"; +} +.sp-icon-branding:before { + content: "\f332"; +} #adminmenu #toplevel_page_sportspress .toplevel_page_sportspress div.wp-menu-image:before, #adminmenu #toplevel_page_themeboy .toplevel_page_themeboy div.wp-menu-image:before, diff --git a/assets/fonts/sportspress.eot b/assets/fonts/sportspress.eot index 84a2c62cdb79cfbbf9b2a616d140295b301872cf..1aa6ece19743fba5f2b5d6ef4acc9dbf39d80e6c 100755 GIT binary patch delta 1023 zcmYLHUuauZ82`R=?>+b4+>_ke<|gTu+~&`6;~J?=ZjzgBZAoVZCGAi|VRkTrE=_A| zD=jini750?*}p2R$Wtr3sETw5PK|Iz!wElNC04_MjU*xCk(wqWd1YYksFBD6dO6;Ob+ ze!(o}TT%9yk?$6|<%4GqRu0~3HJCT@qu3We7+)Em8y^~NW6X#e*t*6Z?{wMDP*VZ_ zVHdl2mqdnP49f5{fEV_PDJxTOQb}$FLvFrQO#io{Ymd?;+AH;b7Gq*E#ng+nDz z2@r88r3R3;sn9Dq8HcOwdj0E+ZCQ37xHyQm)oXSl)$!xih-M3+=*g9n)2m6H3lY_F$85uZd&$Q}NL_i-NtWMLl80DZ~`S^C$Zni)6_ zmB?G)@xV0s4j@_gln2>?@0{JY9-e$)J(CPDD`+z}Kg)`R36^>&=@bhk>Yf$ksa<_s z7}JW(rCH*|dj-Y*P+Ms4!V@EXtZJ>#`K!N?J2jRVZn$Fm^w? zP>#pT3)yUSDjuJzX6Kfc=K8=B{3Susbc1+K*`PZ((|p{|RG%zKvQK4x?$cOMZt5~g zGe)|KpR1;pR(L>C`&y)(Nc^MS`(SCVa`tRxZV9M^F1Yv&w!sG$9HHq{)GpBzAgY}0UzFRo=_W$v4j{)wtE+2gqoz|B}mq-0{YLO5nED&5mt{+>K=wjlA jKCkcS*Le|AlirIiM(?90DHXcjM))PSI;y~t9VY$dS^sZdd= zLNDH|&x449haA0aAs)PVQ&FfOy(%e!^duU+X`SGq^7t5j^Ua%q@2j&@RWFzTPmC?K z6fyg|gDvObMm<XcLd-GuOOMV)@wvtqYK* zqqq{RcGo~53yfQ`jW;=U!J$Vdh + - + + diff --git a/assets/fonts/sportspress.ttf b/assets/fonts/sportspress.ttf index 2952da9568d86251da58a31a8a547fdfe939468e..e545e7180badd7a038a50f7d2d114729167744d2 100755 GIT binary patch delta 998 zcmYLIU1%d!6h7z9%$=FcO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b@1~vw11`VKPrpltmrplA`#pN6rC5_XJrL?@w z6&20BwY0q~6cjAHwC$s!>>Z+_92gmW8;m!DM37bdn+1`z2Zr9}Xo*4=l}FdM%f<8C zd}ZKf0{MX9qQ0Fdg8u)2iGlI)f!JvB0$E?#Q=B}U hW}GLuSh&`3edEsJUc&u~#{y^yBM_@>=962-2mr3BX#)TN diff --git a/assets/fonts/sportspress.woff b/assets/fonts/sportspress.woff index 54f54342ef2f60b35820d66871835ac4cc5f535f..db2e73f2c6266cdc71ec32fe3d94212e3e96680a 100755 GIT binary patch delta 1054 zcmYLIU1%It6h7z9%$=E?yFVm5vzsP6``4YN*--Zdttr%s*(1bPwxh8N>E0b6s-x;_$bjsW1uGh_MRmliiK0qqsY|TirXox3YKT26H1niyiTkamV<|_}FM0abw6pkPe(r zw9YfNbB(pVfRVr4>ng8C1%^b&4(TdpU z9>?raq$-tL5v$@V0ZJUA)Bw^lZFDP6*5PWq(fBTFo2KmnXM52$yUk9tK76De)odXY zJ+(4Ev6|Ak5HTGGqV*%g^{5^bg6pZ(iSd<`t_Wdk*J`zU_s&?hZFw@Iy^^~Uf zIpMI=$A!!klmc?l4u$NX9FS09vfx;jHCfhWDZrJC7F1QCWVpiE!`w_Yk*Ln(a`mx9 zVyvE-F<(4s&?*NZE7CqoJvr_@39R&FyRnQVlu^Jm@Lx_Ak9UxSeeA6>6XlN z8MnGuRUO;9+I`myq8&85?MAyzL`a>SRQ2vw&@_V&9(-OZbw0FSk`I5g{aIrnIPn`8 zjHVgjhna;p{*U|H3~;BFAAAg**7?Du0Y6pE5{3vfgc70P#n#=y+1%Iqw0>3p(s#ml k-{8g<#vfu$d@6qRA0tI1IGBf&r%o4Uj`epIhTg`10BTsmRR910 delta 483 zcmZp0cwsG4?(gQtz{mguvM(68!StNT0ZbATb>!<+7#J8;yb3&`(i4jd7#Ns(fYKaL zERdd4nFbV_!oVN_l#?iEVcVXZk(!voz#z>6RAUCh%(Z)7WdH?%Vm3fN&^!he=0{Ad z8M!4DK(PcMe*y?QY-f|s$xjBU`vBy7fpG34ql~oN#0sF{G9b+gVC>Fll$V&B3KWY0 zIxZ807fcck7GHwDWPWL!%)(?Y z_>|`{_et(8+;h2SaLaN_as8j{$K<+sDpQNVW?m5yW(j5nBL*qPGmKjp*chZ4G=P?v zDvKJMDo?H!mvdm0G)^;?((*P}R5bV2()O}YP_XdQwvURkcZiB|U}W@dFy0IjL00i^ z7DU!Qih*JCa*09~l}FdM%f<8Cd}ZKf0y>w0;iA5sD1!d~fQf?uwjPBYFETr6B`xV~{`aWCP1#bW_91r(hso1^5GF#-T< CN^hnB diff --git a/includes/admin/settings/class-sp-settings-modules.php b/includes/admin/settings/class-sp-settings-modules.php index 91bbb727..ab5b402f 100644 --- a/includes/admin/settings/class-sp-settings-modules.php +++ b/includes/admin/settings/class-sp-settings-modules.php @@ -248,8 +248,16 @@ class SP_Settings_Modules extends SP_Settings_Page { - - + + + + + + + + + + @@ -259,6 +267,9 @@ class SP_Settings_Modules extends SP_Settings_Page { + + + diff --git a/includes/class-sp-modules.php b/includes/class-sp-modules.php index a6115a9c..0a09434c 100644 --- a/includes/class-sp-modules.php +++ b/includes/class-sp-modules.php @@ -27,30 +27,35 @@ class SP_Modules { 'calendars' => array( 'label' => __( 'Calendars', 'sportspress' ), 'icon' => 'sp-icon-calendar', + 'desc' => __( 'Organize and publish calendars using different layouts.', 'sportspress' ), ), 'tournaments' => array( 'label' => __( 'Tournaments', 'sportspress' ), 'class' => 'SportsPress_Tournaments', 'icon' => 'sp-icon-tournament', 'link' => 'http://tboy.co/tournaments', + 'desc' => __( 'Schedule tournaments and create interactive playoff brackets.', 'sportspress' ), ), ), 'team' => array( 'league_tables' => array( 'label' => __( 'League Tables', 'sportspress' ), 'icon' => 'sp-icon-chart', + 'desc' => __( 'Create automated league tables to keep track of team standings.', 'sportspress' ), ), 'team_colors' => array( 'label' => __( 'Team Colors', 'sportspress' ), 'class' => 'SportsPress_Team_Colors', 'icon' => 'sp-icon-color', 'link' => 'http://tboy.co/colors', + 'desc' => __( 'Create a custom color palette for each team.', 'sportspress' ), ), ), 'player' => array( 'player_lists' => array( 'label' => __( 'Player Lists', 'sportspress' ), 'icon' => 'sp-icon-list', + 'desc' => __( 'Create team rosters, player galleries, and ranking charts.', 'sportspress' ), ), 'birthdays' => array( 'label' => __( 'Birthdays', 'sportspress' ), @@ -63,6 +68,7 @@ class SP_Modules { __( 'Add your [stars] on [link]wordpress.org[/link] and get the Birthdays module for free.','sportspress' ) ), 'icon' => 'sp-icon-cake', + 'desc' => __( "Display each player's birthday and their current age.", 'sportspress' ), ), ), 'staff' => array( @@ -71,12 +77,14 @@ class SP_Modules { 'class' => 'SportsPress_Staff_Directories', 'icon' => 'sp-icon-archive', 'link' => 'http://tboy.co/directories', + 'desc' => __( 'Organize and display staff in list and gallery layouts.', 'sportspress' ), ), ), 'other' => array( 'tutorials' => array( 'label' => __( 'Tutorials', 'sportspress' ), 'icon' => 'dashicons dashicons-video-alt3', + 'desc' => __( 'Display a dashboard page with SportsPress video tutorials.', 'sportspress' ), ), 'twitter' => array( 'label' => __( 'Twitter', 'sportspress' ), @@ -85,24 +93,28 @@ class SP_Modules { 'link' => 'http://tboy.co/tweet', 'tip' => __( 'Help spread the word by tweeting with #SportsPress and get the Twitter module for free.', 'sportspress' ), 'icon' => 'dashicons dashicons-twitter', + 'desc' => __( 'Add a Twitter feed to team, player, and staff pages.', 'sportspress' ), ), 'branding' => array( 'label' => __( 'Branding', 'sportspress' ), 'class' => 'SportsPress_Branding', - 'icon' => 'sp-icon-sportspress', + 'icon' => 'sp-icon-branding', 'link' => 'http://tboy.co/branding', + 'desc' => __( 'Instantly rebrand the dashboard with your own logo and colors.', 'sportspress' ), ), 'league_menu' => array( 'label' => __( 'League Menu', 'sportspress' ), 'class' => 'SportsPress_League_Menu', 'icon' => 'sp-icon-menu', 'link' => 'http://tboy.co/menu', + 'desc' => __( 'Add a global navigation bar to display logos that link to each team.', 'sportspress' ), ), 'sponsors' => array( 'label' => __( 'Sponsors', 'sportspress' ), 'class' => 'SportsPress_Sponsors', 'icon' => 'sp-icon-megaphone', 'link' => 'http://tboy.co/sponsors', + 'desc' => __( 'Attract sponsors by offering them advertising space on your website.', 'sportspress' ), ), ), ));