diff --git a/assets/css/admin.css b/assets/css/admin.css index b5e85a8b..735e12e5 100644 --- a/assets/css/admin.css +++ b/assets/css/admin.css @@ -392,10 +392,15 @@ table.widefat.sp-sortable-table tbody tr .icon { } /* TipTip */ -.tips { +.sp-tip, +.sp-desc-tip { cursor: help; } +.sp-desc-tip:before { + color: #aaa; +} + #tiptip_holder { display: none; position: absolute; @@ -575,7 +580,7 @@ table.sp-modules-table [class^="sp-icon-"], table.sp-modules-table [class*=" sp-icon-"], table.sp-modules-table .dashicons { position: relative; - top: 3px; + top: 2px; left: -0.5px; line-height: 1; } @@ -615,11 +620,11 @@ table.sp-modules-table .sp-module-unavailable label .dashicons { outline: 0; } -table.sp_status_table td mark { +table.sp-status-table td mark { background: transparent none; } -table.sp_status_table td mark.yes { +table.sp-status-table td mark.yes { color: #7ad03a; } @@ -661,6 +666,72 @@ table.sp_status_table td mark.yes { color: #f00; } +/* Welcome Screen */ +.about-sportspress-wrap .sp-welcome-logo { + display: inline; +} +.about-sportspress-wrap .sp-about-text { + min-height: 0; + margin-right: 165px; +} +.about-sportspress-wrap .sp-badge { + float: right; + background: #00cac4 url(../images/welcome/sp-badge.png) no-repeat center top; + text-rendering: optimizeLegibility; + padding-top: 10px; + height: 150px; + width: 150px; + font-size: 14px; + line-height: 1.75; + text-align: center; + font-weight: 600; + color: #c4fffc; + margin: 5px 0 0 0; + -webkit-box-shadow: 0 1px 3px rgba(0,0,0,.2); + box-shadow: 0 1px 3px rgba(0,0,0,.2); +} +.about-sportspress-wrap .sportspress-actions .twitter-share-button { + margin-top: -3px; + margin-left: 3px; + vertical-align: middle; +} +.about-sportspress-wrap .sp-feature { + overflow: visible !important; + *zoom:1; +} +.about-sportspress-wrap .sp-feature:before, +.about-sportspress-wrap .sp-feature:after { + content: " "; + display: table; +} +.about-sportspress-wrap .sp-feature:after { + clear: both; +} +.about-sportspress-wrap div.icon { + width: 0 !important; + padding: 0; + margin: 0; +} +.about-sportspress-wrap .sp-feature div.icon:before { + font-family: sportspress !important; + font-weight: normal; + width: 100%; + font-size: 170px; + line-height: 125px; + color: #9c5d90; + display: inline-block; + position: relative; + text-align: center; + speak: none; + margin: ; + content: "\f111"; + -webkit-font-smoothing: antialiased; + -moz-osx-font-smoothing: grayscale; +} +.about-sportspress-wrap .form-table th { + width: auto; +} + /* Media Queries */ @media only screen and (max-width: 850px) { .sp-modules-wrapper { @@ -696,4 +767,18 @@ table.sp_status_table td mark.yes { table.sp-modules-table td .button { margin: -3px -7px -3px 10px; } -} \ No newline at end of file +} + +@media only screen and (max-width: 600px) { + .about-sportspress-wrap .sp-welcome-logo, + .about-sportspress-wrap .sp-about-text { + display: block; + text-align: center; + margin-right: 0; + padding-right: 0; + } + .about-sportspress-wrap .sp-badge { + float: none; + margin: 20px auto 10px; + } +} diff --git a/assets/images/welcome/sportspress-pro.png b/assets/images/welcome/sportspress-pro.png new file mode 100644 index 00000000..f19d5d27 Binary files /dev/null and b/assets/images/welcome/sportspress-pro.png differ diff --git a/assets/images/welcome/sportspress.png b/assets/images/welcome/sportspress.png new file mode 100644 index 00000000..144ce4f0 Binary files /dev/null and b/assets/images/welcome/sportspress.png differ diff --git a/assets/js/admin/sportspress-admin.js b/assets/js/admin/sportspress-admin.js index a1b282cd..67176d65 100644 --- a/assets/js/admin/sportspress-admin.js +++ b/assets/js/admin/sportspress-admin.js @@ -1,11 +1,17 @@ jQuery(document).ready(function($){ // Tiptip - $(".tips").tipTip({ + $(".sp-tip").tipTip({ delay: 200, fadeIn: 100, fadeOut: 100 }); + $(".sp-desc-tip").tipTip({ + delay: 200, + fadeIn: 100, + fadeOut: 100, + defaultPosition: 'right' + }); // Chosen select $(".chosen-select, #poststuff #post_author_override").chosen({ @@ -459,6 +465,11 @@ jQuery(document).ready(function($){ // Trigger player list layout change $(".post-type-sp_list #post-formats-select input.post-format").trigger("change"); + // Auto-select hides options + $(".sp-select-setting").change(function() { + $(".sp-select-options").toggle("manual"==$(this).val()); + }); + // Configure primary result option (Ajax) $(".sp-admin-config-table").on("click", ".sp-primary-result-option", function() { $.post( ajaxurl, { diff --git a/includes/admin/class-sp-admin-settings.php b/includes/admin/class-sp-admin-settings.php index 562b9ce0..937921b6 100644 --- a/includes/admin/class-sp-admin-settings.php +++ b/includes/admin/class-sp-admin-settings.php @@ -224,7 +224,9 @@ class SP_Admin_Settings { if ( $description && in_array( $value['type'], array( 'textarea', 'radio' ) ) ) { $description = '

' . wp_kses_post( $description ) . '

'; } elseif ( $description && in_array( $value['type'], array( 'checkbox' ) ) ) { - $description = wp_kses_post( $description ); + $description = wp_kses_post( $description ); + } elseif ( $description && in_array( $value['type'], array( 'select' ) ) ) { + $description = '

' . wp_kses_post( $description ) . '

'; } elseif ( $description ) { $description = '' . wp_kses_post( $description ) . ''; } @@ -235,7 +237,7 @@ class SP_Admin_Settings { } elseif ( $tip ) { - $tip = ''; + $tip = ''; } diff --git a/includes/admin/class-sp-admin-welcome.php b/includes/admin/class-sp-admin-welcome.php index 7cad772e..43a75844 100644 --- a/includes/admin/class-sp-admin-welcome.php +++ b/includes/admin/class-sp-admin-welcome.php @@ -85,82 +85,6 @@ class SP_Admin_Welcome { remove_submenu_page( 'index.php', 'sp-about' ); remove_submenu_page( 'index.php', 'sp-credits' ); remove_submenu_page( 'index.php', 'sp-translators' ); - - // Badge for welcome page - $badge_url = SP()->plugin_url() . '/assets/images/welcome/sp-badge.png'; - ?> - - version, 0, 3 ); ?> -

+ + +
version ); ?>
-
version ); ?>
-

@@ -242,6 +166,9 @@ class SP_Admin_Welcome { -

+ + +

+ + +

@@ -285,7 +217,7 @@ class SP_Admin_Welcome { - + -