diff --git a/wp-content/themes/score/functions.php b/wp-content/themes/score/functions.php index fba7d5c..ddec306 100644 --- a/wp-content/themes/score/functions.php +++ b/wp-content/themes/score/functions.php @@ -38,6 +38,14 @@ define("ghostpool_admin", TEMPLATEPATH . '/lib/admin/inc/'); define("ghostpool_bp", TEMPLATEPATH . '/lib/buddypress/'); define("BP_THEME_URL", get_template_directory_uri()); +/* * ************************* Change Javascript position***************** */ + +remove_action( 'wp_head', 'wp_print_scripts' ); +remove_action( 'wp_head', 'wp_print_head_scripts', 9 ); +remove_action( 'wp_head', 'wp_enqueue_scripts', 1 ); +add_action( 'wp_footer', 'wp_print_scripts', 5 ); +add_action( 'wp_footer', 'wp_enqueue_scripts', 5 ); +add_action( 'wp_footer', 'wp_print_head_scripts', 5 ); /* * ************************* Additional Functions ************************** */ @@ -153,9 +161,10 @@ function gp_enqueue_styles() { wp_enqueue_style('reset', get_template_directory_uri() . '/lib/css/reset.css'); - wp_enqueue_style('style', get_template_directory_uri() . '/style.css'); + wp_enqueue_style('style', get_template_directory_uri() . '/style.min.css'); + //wp_enqueue_style('style', get_template_directory_uri() . '/style.css'); - wp_enqueue_style('prettyphoto', get_template_directory_uri() . '/lib/scripts/prettyPhoto/css/prettyPhoto.css'); + //wp_enqueue_style('prettyphoto', get_template_directory_uri() . '/lib/scripts/prettyPhoto/css/prettyPhoto.css'); wp_enqueue_style('videoslider', get_template_directory_uri() . '/lib/scripts/videoslider/css/videoGallery.css'); @@ -174,15 +183,14 @@ function gp_enqueue_styles() { } if (isset($_GET['skin']) OR (isset($_COOKIE['SkinCookie']) && $_COOKIE['SkinCookie'] != "default")) { - wp_enqueue_style('style-skin', get_template_directory_uri() . '/style-' . $skin . '.css'); } else { if ((is_singular() && !is_attachment() && !is_404()) && (get_post_meta($post->ID, 'ghostpool_skin', true) && get_post_meta($post->ID, 'ghostpool_skin', true) != "Default")) { wp_enqueue_style('style-skin', get_template_directory_uri() . '/style-' . get_post_meta($post->ID, 'ghostpool_skin', true) . '.css'); - } else { - + } else { + //wp_enqueue_style('style-skin', get_template_directory_uri() . '/style-' . $theme_skin . '.min.css'); wp_enqueue_style('style-skin', get_template_directory_uri() . '/style-' . $theme_skin . '.css'); } } @@ -215,19 +223,19 @@ function gp_enqueue_scripts() { if (is_singular() OR is_home() OR is_front_page()) wp_enqueue_script('comment-reply'); - wp_enqueue_script('swfobject', 'http://ajax.googleapis.com/ajax/libs/swfobject/2.2/swfobject.js'); + wp_enqueue_script('swfobject', get_template_directory_uri() . '/lib/scripts/swfobjects.js'); //wp_enqueue_script('jwplayer', get_template_directory_uri() . '/lib/scripts/mediaplayer/jwplayer.js', array('jquery')); //wp_enqueue_script('carousel', get_template_directory_uri().'/lib/scripts/jquery.carouFredSel.js', array('jquery')); - wp_enqueue_script('prettyphoto', get_template_directory_uri() . '/lib/scripts/prettyPhoto/js/jquery.prettyPhoto.js', array('jquery')); + //wp_enqueue_script('prettyphoto', get_template_directory_uri() . '/lib/scripts/prettyPhoto/js/jquery.prettyPhoto.js', array('jquery')); - wp_enqueue_script('jqtransform', get_template_directory_uri() . '/lib/scripts/jquery.jqtransform.js', array('jquery')); + //wp_enqueue_script('jqtransform', get_template_directory_uri() . '/lib/scripts/jquery.jqtransform.js', array('jquery')); - wp_enqueue_script('jqueryeasing', get_template_directory_uri() . '/lib/scripts/videoslider/js/jquery.easing.1.3.js', array('jquery')); + //wp_enqueue_script('jqueryeasing', get_template_directory_uri() . '/lib/scripts/videoslider/js/jquery.easing.1.3.js', array('jquery')); - wp_enqueue_script('froogaloop', get_template_directory_uri() . '/lib/scripts/videoslider/js/froogaloop.min.js', array('jquery')); + //wp_enqueue_script('froogaloop', get_template_directory_uri() . '/lib/scripts/videoslider/js/froogaloop.min.js', array('jquery')); wp_enqueue_script('apPlaylistManager', get_template_directory_uri() . '/lib/scripts/videoslider/js/jquery.apPlaylistManager.min.js', array('jquery')); //wp_enqueue_script('apPlaylistManager', get_template_directory_uri() . '/lib/scripts/videoslider/js/jquery.apPlaylistManager.js', array('jquery')); @@ -241,14 +249,18 @@ function gp_enqueue_scripts() { wp_enqueue_script('videoGallery', get_template_directory_uri().'/lib/scripts/videoslider/js/jquery.videoGallery.min.js', array('jquery')); //wp_enqueue_script('videoGallery', get_template_directory_uri() . '/lib/scripts/videoslider/js/jquery.videoGallery.js', array('jquery')); - wp_enqueue_script('mousewheel', get_template_directory_uri() . '/lib/scripts/videoslider/js/jquery.mousewheel.js', array('jquery')); + //wp_enqueue_script('mousewheel', get_template_directory_uri() . '/lib/scripts/videoslider/js/jquery.mousewheel.js', array('jquery')); //wp_enqueue_script('sharrre', get_template_directory_uri() . '/lib/scripts/videoslider/js/jquery.sharrre-1.3.0.min.js', array('jquery')); wp_enqueue_script('fullscreen', get_template_directory_uri() . '/lib/scripts/jquery.fullscreen-min.js', array('jquery')); - wp_enqueue_script('jtypewriter', get_template_directory_uri(). '/lib/scripts/jquery.jtypewriter.js', array('jquery')); + + wp_enqueue_script('jtypewriter', get_template_directory_uri(). '/lib/scripts/jquery.jtypewriter.min.js', array('jquery')); + //wp_enqueue_script('jtypewriter', get_template_directory_uri(). '/lib/scripts/jquery.jtypewriter.js', array('jquery')); + + wp_enqueue_script('asong2u', get_template_directory_uri(). '/lib/scripts/asong2u.min.js', array('jquery')); + //wp_enqueue_script('asong2u', get_template_directory_uri(). '/lib/scripts/asong2u.js', array('jquery')); } } - add_action('wp_print_scripts', 'gp_enqueue_scripts'); @@ -275,7 +287,11 @@ function gp_font_head() { if (isset($fonts[$body_key])) { $body_font = $fonts[$body_key]; - wp_enqueue_style('googleFonts', 'http://fonts.googleapis.com/css?family=' . $theme_font_dedication); + if ($theme_font_dedication === 'Give+You+Glory') { + wp_enqueue_style('googleFonts', get_template_directory_uri() . '/lib/css/giveyouglory.css'); + } else { + wp_enqueue_style('googleFonts', 'http://fonts.googleapis.com/css?family=' . $theme_font_dedication); + } echo ''; diff --git a/wp-content/themes/score/header.php b/wp-content/themes/score/header.php index 45f96e8..509ce32 100644 --- a/wp-content/themes/score/header.php +++ b/wp-content/themes/score/header.php @@ -15,7 +15,7 @@ - + diff --git a/wp-content/themes/score/lib/buddypress/bp.min.css b/wp-content/themes/score/lib/buddypress/bp.min.css new file mode 100644 index 0000000..c930f6e --- /dev/null +++ b/wp-content/themes/score/lib/buddypress/bp.min.css @@ -0,0 +1,239 @@ +#wp-admin-bar #admin-bar-logo{padding-top:7px} +.bp-wrapper div.item-list-tabs{clear:both;margin:15px 0;overflow:hidden;padding:0;position:relative} +.bp-wrapper div.item-list-tabs ul{line-height:200%;list-style:none;margin:0;padding:0} +.bp-wrapper div.item-list-tabs ul li{border-color:#d8d8d8;border-style:solid;border-width:0 0 1px;float:left;height:35px;margin:0;padding:0;position:relative} +.bp-wrapper div.item-list-tabs ul li.selected{border-width:1px 1px 0} +.bp-wrapper div.item-list-tabs ul li a,.bp-wrapper div.item-list-tabs ul li span{color:#999;display:block;font-weight:700;line-height:15px;margin:0;padding:10px} +.bp-wrapper div.item-list-tabs ul li a:hover,.bp-wrapper div.item-list-tabs ul li.selected a,.bp-wrapper div.item-list-tabs ul li.current a{color:#333} +.bp-wrapper div.item-list-tabs ul li a span{-moz-border-radius:3px;-webkit-border-radius:3px;background:#e5e5e5;border-radius:3px;color:#999;display:inline;font-size:10px;margin-left:3px;padding:3px 5px} +.bp-wrapper ul li.loading a{background-image:url(../../lib/images/loader.gif);background-position:94% 50%;background-repeat:no-repeat;padding-right:32px!important} +.bp-wrapper div.item-list-tabs#subnav{clear:both;margin:15px 0 30px;overflow:none;padding:0;position:relative} +.bp-wrapper div.item-list-tabs#subnav ul li{border:0;margin:0;padding:0} +.bp-wrapper div.item-list-tabs#subnav ul li.li-first{border-width:0} +.bp-wrapper div.item-list-tabs#subnav ul li.li-last label{margin-left:10px} +.rtl.bp-wrapper div.item-list-tabs#subnav ul li.li-last label{margin-left:0;margin-right:10px} +.bp-wrapper div.item-list-tabs#subnav ul li a,.bp-wrapper div.messages-options-nav a{font-size:11px;padding:0 15px 0 0} +.rtl.bp-wrapper div.item-list-tabs#subnav ul li a,.rtl.bp-wrapper div.messages-options-nav a{padding:0 0 0 15px} +.bp-wrapper div#subnav.item-list-tabs ul li.feed a{background:url(../../lib/images/sprite.png) no-repeat -250px -57px;display:block;height:16px;padding:0;text-indent:-9999px;width:16px} +.bp-wrapper #item-header{overflow:hidden;padding:5px 0 15px 5px} +.rtl.bp-wrapper #item-header{padding-left:0;padding-right:5px} +.bp-wrapper #item-header div#item-actions{float:right;width:20%} +#item-header-avatar .avatar{height:150px;width:150px} +.bp-wrapper #item-header img.avatar{float:left;margin:0 15px 20px 0} +.rtl.bp-wrapper #item-header img.avatar{float:right;margin-left:15px;margin-right:0} +.bp-wrapper div#item-header h2{color:#000;font-size:24px;line-height:24px;margin-bottom:10px} +.bp-wrapper div#item-header h2 a{color:#000} +.bp-wrapper div#item-header div#item-actions h3{font-family:Helvetica, Arial, sans-serif;font-size:12px;font-weight:700;margin-bottom:10px} +.bp-wrapper #item-header ul img.avatar,.bp-wrapper #item-header ul.avatars img.avatar{height:30px;margin:-10px 10px 30px 0;width:30px} +.bp-wrapper #item-header ul li{list-style:none;margin:0 2px 0 0;padding:10px 0} +.rtl.bp-wrapper #item-header ul li{margin-left:2px;margin-right:0} +.bp-wrapper span.highlight,.bp-wrapper .user-nicename{background:none!important;border:0;color:#999;font-size:11px;margin:0;padding:0 10px 0 0} +.rtl.bp-wrapper span.highlight,.rtl.bp-wrapper .user-nicename{padding-left:10px;padding-right:0} +.bp-wrapper #item-header #item-header-content .activity,.bp-wrapper span.activity{-moz-border-radius:3px;-pie-background:linear-gradient(rgba(255,255,255), rgba(255,255,255));-webkit-border-radius:3px;background-color:#ffeaa6;background-image:0 rgba(255,255,255,0));border:1px solid #e1ca82;border-radius:3px;color:#333;display:inline-block;font-size:11px;font-weight:400;line-height:1;margin-top:3px;padding:2px 8px;text-decoration:none} +.bp-wrapper #item-header #latest-update,.bp-wrapper #item-header #item-meta{line-height:19px;margin:10px 0 12px} +.bp-wrapper #item-header #item-buttons .generic-button{float:left;margin:0 4px 4px 0} +.bp-wrapper .dir-form div.dir-search{float:right;line-height:33px;margin:-35px 0 15px;width:auto} +.bp-wrapper .dir-form div.dir-search input[type=text]{margin-left:5px;margin-right:0;width:120px} +.bp-wrapper .dir-form h3{font-size:24px;line-height:24px} +.bp-wrapper ul.item-list{border-bottom:1px solid #d8d8d8;width:100%} +.bp-wrapper ul.item-list .item,.bp-wrapper li .admin-links,.bp-wrapper .item-list .activity-content,.bp-wrapper .post-content,.widget ul.item-list .item{margin-left:60px} +.rtl.bp-wrapper ul.item-list .item,.rtl.bp-wrapper li .admin-links,.rtl.bp-wrapper .item-list .activity-content,.rtl.bp-wrapper .post-content +.rtl .widget ul.item-list .item{margin-left:0;margin-right:50px} +.bp-wrapper .item-list .ac-form{margin:15px 0 0 25px} +.rtl.bp-wrapper .item-list .ac-form{margin-left:0;margin-right:25px} +.bp-wrapper .item-list .avatar,.bp-wrapper .activity-comments form div.ac-reply-avatar{float:left;height:50px;width:50px} +.bp-wrapper .post-content,.bp-wrapper .item-list .activity-content .activity-inner{border-color:#d8d8d8;margin-bottom:10px} +.bp-wrapper ul.item-list > li:first-child,.bp-wrapper .item-list li,.bp-wrapper .item-list li.mini{border-top:1px solid #e5e5e5;padding:15px 0;position:relative;width:100%} +.bp-wrapper .widget ul.item-list li.has-comments{padding-bottom:12px} +.bp-wrapper .item-list .activity-header a:first-child,.bp-wrapper .item-list .activity-header a:hover:first-child{background:none!important;border:0;margin:0;padding:0} +.bp-wrapper div.poster-meta,.bp-wrapper .item-list .activity-content .activity-header,.bp-wrapper .item-list .activity-content .comment-header{color:#999;font-size:11px} +.bp-wrapper .item-list li div.activity-inreplyto{background:url(../../../../plugins/buddypress/bp-themes/bp-default/_inc/images/replyto_arrow.gif) no-repeat 7px 0;color:#666;font-size:11px;line-height:19px;margin:0 0 10px 5px;padding:0 0 0 25px} +.rtl.bp-wrapper .item-list li div.activity-inreplyto{margin-left:0;margin-right:5px;padding-left:0;padding-right:25px} +.bp-wrapper #whats-new-content,.bp-wrapper div.activity-comments form div.ac-reply-content{font-size:11px;margin-left:50px;padding-left:10px} +.bp-wrapper div.activity-comments form div.ac-reply-content{margin-left:80px} +.rtl.bp-wrapper #whats-new-content,.rtl.bp-wrapper div.activity-comments form div.ac-reply-content{margin-left:0;margin-right:50px;padding-left:0;padding-right:10px} +.bp-wrapper div.activity-comments form .ac-textarea,.bp-wrapper #whats-new-textarea{background:#fff;border:1px solid #e5e5e5;margin-bottom:10px;padding:7px} +.bp-wrapper .activity-comments form textarea,.bp-wrapper #whats-new{background:none;border:0;color:#333;font-family:inherit;font-size:12px;height:50px;margin:0;padding:0;width:100%} +.bp-wrapper div.activity-comments form input{margin-bottom:3px;margin-top:5px} +.bp-wrapper div.activity-comments ul{padding-left:50px} +.rtl.bp-wrapper div.activity-comments ul{padding-left:0;padding-right:15px} +.bp-wrapper div.activity-comments li{background:none!important;border:0!important} +.bp-wrapper div.activity-comments ul li:last-child{padding-bottom:0} +.bp-wrapper div.activity-comments div.acomment-content{font-size:12px;margin-left:29px;margin-top:5px} +.bp-wrapper div.activity-comments .acomment-options{height:20px;margin-bottom:3px;margin-left:29px} +.bp-wrapper form#whats-new-form h5{font-size:20px;font-weight:400;margin:0 0 10px 50px;padding-left:10px} +.rtl.bp-wrapper form#whats-new-form h5{margin-left:0;margin-right:50px;padding-left:0;padding-right:10px} +.bp-wrapper #item-body form#whats-new-form{padding-bottom:70px} +.bp-wrapper #whats-new-avatar,.bp-wrapper .item-list div.activity-avatar{float:left;line-height:0;padding:0} +.bp-wrapper div.activity-comments div.acomment-meta{font-size:12px;line-height:1} +.messages.bp-wrapper .avatar,.bp-wrapper .thread-avatar .avatar,.item-list li .avatar,.bp-wrapper #whats-new-avatar .avatar,.bp-wrapper .item-list div.activity-avatar img{float:left;height:35px;margin-right:10px;width:35px} +.ac-reply-avatar img.avatar,.bp-wrapper .item-list li ul li img.avatar{float:left;height:50px;margin-right:10px;width:50px} +.bp-wrapper .ac-reply-avatar{padding-left:30px} +.rtl.bp-wrapper .ac-reply-avatar{padding-left:0;padding-right:30px} +.bp-wrapper #whats-new-options{float:left;height:0;margin:10px 0 30px;overflow:hidden;width:100%} +.bp-wrapper #new-submit,.bp-wrapper #whats-new-submit{float:right;margin:3px 3px 0 0} +.rtl.bp-wrapper #new-submit,.rtl.bp-wrapper #whats-new-submit{float:left;margin-left:3px;margin-right:0} +.widget #whats-new-options select{max-width:110px} +.bp-wrapper .activity-read-more{margin-left:5px} +.rtl .bp-wrapper .activity-read-more{margin-left:0;margin-right:5px} +.bp-wrapper a.loading{background-image:url(../../lib/images/loader.gif);background-position:95% 50%;background-repeat:no-repeat;padding-right:25px} +.rtl.bp-wrapper a.loading{padding-left:25px;padding-right:0} +.bp-wrapper .button,.button.submit,.bp-wrapper .generic-button a,.bp-wrapper ul.button-nav li a,.bp-wrapper .item-list .activity-meta a,.bp-wrapper .item-list .acomment-options a,.bp-wrapper .activity-meta a:hover span,.widget .item-options a{-moz-border-radius:3px;-webkit-border-radius:3px;border-radius:3px;color:#fff;cursor:pointer;font-family:Helvetica, Arial, sans-serif;font-size:9px;font-weight:400;line-height:1;padding:4px 6px} +.skin-blue.bp-wrapper .button,.skin-blue.button.submit,.skin-blue.bp-wrapper .generic-button a,.skin-blue.bp-wrapper ul.button-nav li a,.skin-blue.bp-wrapper .item-list .activity-meta a,.skin-blue.bp-wrapper .item-list .acomment-options a,.skin-blue.bp-wrapper .activity-meta a:hover span,.skin-blue .widget .item-options a{background:#2D5069} +.skin-black.bp-wrapper .button,.skin-black.button.submit,.skin-black.bp-wrapper .generic-button a,.skin-black.bp-wrapper ul.button-nav li a,.skin-black.bp-wrapper .item-list .activity-meta a,.skin-black.bp-wrapper .item-list .acomment-options a,.skin-black.bp-wrapper .activity-meta a:hover span,.skin-black .widget .item-options a{background:#6b6b6b} +.bp-wrapper .item-list .activity-meta a span,.bp-wrapper .item-list .activity-meta a:hover span{-moz-border-radius:3px;-webkit-border-radius:3px;border-radius:3px;display:inline;margin-left:3px;padding:0 3px} +.bp-wrapper .item-list .acomment-options,.bp-wrapper div.activity-meta{clear:none;margin:0} +.bp-wrapper .accepted,.bp-wrapper .accepted a,.bp-wrapper .accepted a:hover,.bp-wrapper .pending,.bp-wrapper .pending a,.bp-wrapper .pending a:hover,.bp-wrapper .disabled,.bp-wrapper .disabled a,.bp-wrapper .disabled a:hover{-moz-border-radius:5px;-webkit-border-radius:5px;background:#e5e5e5!important;border-radius:5px;color:#999!important;cursor:default!important} +.bp-wrapper ul.item-list li div.item-title,.bp-wrapper ul.item-list li h4{font-family:Helvetica, Arial, sans-serif;font-size:14px;font-weight:400;margin:0 0 5px;width:75%} +.bp-wrapper ul.item-list h5{font-family:Helvetica, Arial, sans-serif;font-size:13px;margin-bottom:5px} +.bp-wrapper ul.item-list div.action .generic-button{float:left;margin-left:3px} +.bp-wrapper ul.item-list .item-desc{font-size:11px;margin:5px 0 0} +.bp-wrapper ul.item-list div.action{position:absolute;right:0;text-align:right;top:20px} +.rtl.bp-wrapper ul.item-list div.action{left:0;right:auto;text-align:left} +.bp-wrapper form#send-invite-form{margin-top:20px} +.bp-wrapper .left-menu{float:left;margin-right:30px;width:150px} +.rtl.bp-wrapper .left-menu{float:right;margin-left:30px;margin-right:0} +.bp-wrapper #invite-list{border-color:#e5e5e5;border-left-width:1px;border-right-width:0;border-style:solid;height:400px;overflow:auto} +.bp-wrapper #invite-list li{list-style:none;margin:0} +.bp-wrapper .main-column #message{clear:none} +.bp-wrapper div.pagination{font-size:11px;margin:10px 0} +.bp-wrapper table.forum{border:1px solid #e5e5e5;border-bottom:0;margin:20px 0;width:100%} +.bp-wrapper table.forum tr th{background:#e5e5e5;padding:10px;vertical-align:middle} +.bp-wrapper table.forum tr td{background-color:#f8f8f8;padding:10px;vertical-align:middle} +.bp-wrapper .createForumButton{float:left;line-height:33px} +.bp-wrapper .forum-list-container{-moz-border-radius:5px;-webkit-border-radius:5px;background:#e5e5e5;border:1px solid #e5e5e5;border-radius:5px;margin:10px 0 20px;padding:0} +.bp-wrapper ul.forum-list{margin:0;padding:0} +.bp-wrapper ul.forum-list .thread-history{float:right;text-align:right} +.rtl.bp-wrapper ul.forum-list .thread-history{float:left;text-align:left} +.bp-wrapper ul.forum-list .thread-poster .avatar{margin:0 15px 0 0} +.rtl.bp-wrapper ul.forum-list .thread-poster .avatar{margin:0 0 0 15px} +.bp-wrapper ul.forum-list li{border-bottom:1px solid #e5e5e5;border-bottom-color:#444;border-top:1px solid #fff;border-top-color:#000;list-style-type:none;padding:12px 16px} +.bp-wrapper ul.forum-list li:first-child{-moz-border-radius:4px 4px 0 0;-webkit-border-radius:4px 4px 0 0;border-radius:4px 4px 0 0} +.bp-wrapper ul.forum-list li:last-child{-moz-border-radius:0 0 4px 4px;-webkit-border-radius:0 0 4px 4px;border-bottom-color:#fff;border-radius:0 0 4px 4px} +.bp-wrapper table.forum tr.sticky td{background:#FFFFE0;background-image:none} +.bp-wrapper table.forum td img.avatar{display:none;float:none;margin:0 5px -8px 0} +.bp-wrapper table.forum p.topic-meta{font-size:11px;margin:5px 0 0} +.bp-wrapper #item-body h3{font-size:22px} +.bp-wrapper div#topic-meta{padding:0;position:relative} +.bp-wrapper div.topic-tags{float:none;font-size:11px;margin:0 0 20px} +.bp-wrapper #post-topic-reply{float:left;margin-top:20px;width:100%} +.bp-wrapper #topic-meta .sub-tabs.admin-links{line-height:200%} +.bp-wrapper #topic-meta .sub-tabs.admin-links a{padding:0 3px 0 4px} +.bp-wrapper div.admin-links{font-size:11px;margin-bottom:10px;position:relative} +.bp-wrapper div#new-topic-post{margin:20px 0 0} +.bp-wrapper #message-threads{margin:0 0 10px} +.bp-wrapper #message-threads tr td{-pie-background:linear-gradient(#fff,#f8f8f8);background-color:#f8f8f8;background-image:0;border:1px solid #e5e5e5;border-bottom:0} +.bp-wrapper #message-threads tr:last-child td{border-bottom:1px solid #e5e5e5} +.bp-wrapper #message-threads td{line-height:19px;padding:10px;vertical-align:top} +.bp-wrapper #message-threads tr.unread td{background-color:#fff4d5} +.bp-wrapper #message-threads .m-sender,.bp-wrapper #message-threads .m-recipient,.bp-wrapper #message-threads .m-date,.bp-wrapper #message-threads .m-subject,.bp-wrapper #message-threads .thread-excerpt{overflow:hidden} +.bp-wrapper #message-threads .thread-count{text-align:right} +.rtl.bp-wrapper #message-threads .thread-count{text-align:left} +.bp-wrapper #message-threads .thread-avatar{width:14%} +.bp-wrapper #message-threads .thread-info{width:30%} +.bp-wrapper #message-threads .thread-options{width:20%} +.bp-wrapper #message-threads .thread-select{line-height:1} +.bp-wrapper #message-threads .m-date,.bp-wrapper #message-threads .m-from,.bp-wrapper #message-threads .m-to{color:#999;font-size:11px;text-transform:uppercase} +.bp-wrapper #message-thread .message-date{color:#666;float:right;font-size:10px;font-weight:700;text-transform:uppercase} +.bp-wrapper #message-thread #message-subject{font-family:Helvetica, Arial, sans-serif;font-size:12px;font-weight:700;margin-bottom:5px} +.bp-wrapper #message-thread #MessageContainers .message-box{border:1px solid #e5e5e5} +.bp-wrapper #message-thread .envelope-info{-moz-border-radius:4px 4px 0 0;-webkit-border-radius:4px 4px 0 0;background:#fff;border:1px solid #e5e5e5;border-radius:4px 4px 0 0;padding:2px 8px 3px} +.bp-wrapper .register-section .textInput,.bp-wrapper .register-section input[type=text],.bp-wrapper .create-form .textInput,.bp-wrapper .create-form input[type=text]{width:250px} +.bp-wrapper .register-section #signup_username,.bp-wrapper .register-section #signup_password,.bp-wrapper .register-section #signup_password_confirm{width:142px} +.bp-wrapper .register-section,.bp-wrapper .create-form{border:1px solid #e5e5e5;margin:15px 0;padding:20px} +.bp-wrapper .register-section h4,.bp-wrapper .create-form h4{font-size:20px;line-height:1} +.bp-wrapper .create-form label{font-weight:700} +.bp-wrapper .standard-form#signup_form div div.error{color:#8a1f11;margin:0 0 10px 37%;width:60%} +#message{-moz-border-radius:4px;-pie-background:linear-gradient(rgba(255,255,255), rgba(255,255,255));-webkit-border-radius:4px;background-color:#ffeaa6;background-image:0 rgba(255,255,255,0));border:1px solid #e1ca82;border-radius:4px;clear:both;color:#333;margin:15px 0;overflow:hidden;padding:10px;position:relative} +.bp-wrapper #message.updated{background-color:#e3f8bf;border-color:#9bd23a;color:#5e8a11} +.bp-wrapper #message.error{background-color:#FBE3E4;border-color:#FBC2C4;color:#8a1f11} +#message.info.notice{margin:0 0 30px} +.bp-wrapper div.message-box{border-bottom:1px solid #e5e5e5;padding:15px 0} +.bp-wrapper table{width:100%} +.bp-wrapper table tr td,.bp-wrapper table tr th{padding:10px} +.bp-wrapper table tr td.label{border-right:1px solid #ddd;font-weight:700;width:25%} +.frame.bp-wrapper table tr td.label{border-color:#e5e5e5} +.bp-wrapper form.standard-form .button-nav li,.bp-wrapper #send_message_form.standard-form li{border:0;float:left;list-style:none;margin:0 4px 4px 0;padding:5px 0} +.bp-wrapper form.standard-form label,.bp-wrapper form.standard-form span.label{display:block;margin:15px 0 5px} +.bp-wrapper form.standard-form div.checkbox label,.bp-wrapper form.standard-form div.radio label{font-weight:400;margin:15px 0 0} +.bp-wrapper .standard-form div.radio ul{margin:10px 0 15px} +.bp-wrapper form.standard-form textarea{height:120px;width:75%} +.bp-wrapper form.standard-form .submit{margin-top:10px} +.bp-wrapper #settings-form .notification-settings{border:1px solid #e5e5e5;border-bottom:0;margin:15px 0;width:100%} +.bp-wrapper #settings-form .notification-settings .yes,.bp-wrapper #settings-form .notification-settings .no{text-align:center;width:50px} +.bp-wrapper #settings-form .notification-settings .icon{padding:0;width:1px} +.bp-wrapper table.notification-settings{margin-bottom:20px} +.bp-wrapper #settings-form .submit{clear:both;margin:1em 0} +.bp-wrapper #send_message_form #subject{width:400px} +.bp-wrapper hr{margin:15px 0!important} +.widget ul.item-list{clear:both;margin-top:5px;padding:0} +.widget ul.item-list li{background:none!important;border-bottom:0!important;border-top:1px solid #e5e5e5!important;line-height:15px;margin:15px 0 0!important;overflow:hidden;padding:15px 0 0!important} +.widget.widget_display_views li,.widget.widget_display_replies li{background:none;font-size:11px;line-height:15px;overflow:hidden;padding-left:0;width:100%} +.widget .avatar-block .item-avatar img{float:left;height:30px;margin:3px;width:30px} +.widget ul.item-list li div.item-title,.widget ul.item-list li h4{font-family:Helvetica, Arial, sans-serif;font-size:12px!important;line-height:16px;margin:0} +.widget .item-options{color:transparent;display:inline-block;font-size:11px;line-height:19px;margin:2px 0 5px} +.widget span.activity{background:none!important;border:0!important;color:#333!important;font-size:11px;margin:0!important;padding:0!important} +.widget.bbp_widget_login fieldset{border:0;padding:0} +.bbPress #content table tr td,.bbPress #content table tr th{padding:10px;vertical-align:middle} +.bbPress #content .bbp-forums,.bbPress #content .bbp-topics,.bbPress #content .bbp-replies{border:1px solid #e5e5e5;margin:0 0 10px} +.bbPress #content span.bbp-admin-links,.bbPress #content span.bbp-admin-links a,.bbPress #content a.bbp-topic-permalink,.bbPress #content a.bbp-reply-permalink,.bbPress #content table.bbp-replies tr.bbp-reply-header td,.bbPress #content table.bbp-topic tr.bbp-topic-header td,.bbPress #content .bbp-author-ip{color:#666;font-size:11px;font-weight:400;text-transform:none} +.bbPress #content span.bbp-admin-links a:hover{color:#999} +.bbPress #content .bbp-forums tr.even td,.bbPress #content .bbp-topics tr.even td{background:#f5f5f5} +.bbPress #content table.bbp-topics tbody tr.status-closed td,.bbPress #content table.bbp-topics tbody tr.status-closed td a{color:#666} +.bbPress #content table tfoot tr td{background:#f8f8f8;border-bottom:1px solid #e5e5e5} +.bbPress #content .bbp-topic-started-by{font-weight:400} +.bbPress #content tr.sticky td{background-image:none} +.bbPress #content table tbody tr ul.bbp-forums{-moz-border-radius:0;-moz-box-shadow:none;-webkit-border-radius:0;-webkit-box-shadow:none;background:none;border-color:#444;border-radius:0;border-style:solid;border-width:0 0 0 1px;box-shadow:none;margin:10px 0 0} +.bbPress #content table tbody tr ul.bbp-forums li{background:none;border:0;display:inline;margin:0;padding:0} +.bbPress #content p.bbp-topic-meta span{white-space:normal} +.bbPress #content .bbp-replies tbody tr td{padding:20px 0} +.bbPress #content table.bbp-replies tr.bbp-reply-header td{background:#fff;padding:10px} +.bbPress #content .bbp-author-ip{font-size:9px;line-height:20px} +.bbPress #content .bbp-reply-revision-log li{background:none;border:0;color:#666;padding:0 0 10px} +.bbPress #content .bbp-replies .bbp-author-avatar img{-moz-border-radius:0;-moz-box-shadow:none;-webkit-border-radius:0;-webkit-box-shadow:none;background:none;border-radius:0;box-shadow:none;height:80px;padding:0;width:80px} +.bbPress #content .bbp-replies .bbp-author-name{display:block;font-size:11px;margin-top:5px} +.bbPress .form-allowed-tags{width:100%!important} +.bbPress p.form-allowed-tags code{overflow-y:hidden;width:100%!important} +.bbPress #content .bbp-form{border:1px solid #e5e5e5;padding:10px 20px} +.bbPress #content fieldset.bbp-form,.bbPress #content fieldset.bbp-form,.bbPress #content fieldset.bbp-form{clear:left;padding:20px} +.bbPress #content .bbp-form legend{padding:5px} +.bbPress #content tbody .bbp-topic-content,.bbPress #content tbody .bbp-reply-content{overflow:auto;vertical-align:top} +.bbPress #content fieldset.bbp-form label,.bbPress #container fieldset.bbp-form label,.bbPress #wrapper fieldset.bbp-form label{width:275px} +.bbPress #content .bbp-submit-wrapper{margin:10px 0 0} +.bbPress #content .bbp-submit-wrapper .button.submit{font-size:12px;font-weight:700;padding:8px 12px} +.bbPress #content .bbp-pagination{font-size:11px;margin-bottom:10px} +.bbPress #content .bbp-breadcrumb p{margin-bottom:30px} +.bbPress #content .bbp-breadcrumb,.bbPress #content .bbp-breadcrumb a{color:#999;font-size:11px} +.widget .bbp-login-links{float:left;width:100%} +.widget .bbp-login-form .bbp-username label,.widget .bbp-login-form .bbp-password label{min-width:70px;width:auto} +.widget .bbp-login-form .bbp-submit-wrapper button{font-size:11px;font-weight:700} +.widget .bbp-login-form .bbp-username input,.widget .bbp-login-form .bbp-email input,.widget .bbp-login-form .bbp-password input{padding:7px} +.widget .bbp-login-form .bbp-login-links a{clear:none;margin:10px 10px 0 0} +.bp-wrapper div.item-list-tabs ul li#activity-personal-li,.bp-wrapper #message-threads .m-sender .m-from,.bp-wrapper table.notification-settings th.icon,.bp-wrapper table.notification-settings td:first-child,.bbPress #content .bbp-template-notice .bbp-author-avatar,.bbPress #content .bbp-forums .bbp-author-avatar,.bbPress #content .bbp-topics .bbp-author-avatar{display:none} +.rtl.bp-wrapper div.item-list-tabs ul li,.bp-wrapper div.item-list-tabs ul li.last,.rtl.bp-wrapper .item-list .avatar,.rtl.bp-wrapper .activity-comments form div.ac-reply-avatar,.rtl.bp-wrapper div.activity-comments div.acomment-avatar img,.rtl.bp-wrapper #whats-new-avatar,.rtl.bp-wrapper .item-list div.activity-avatar,.rtl.bp-wrapper #whats-new-post-in-box,.bp-wrapper #group-creation-next,.rtl.bp-wrapper .forumTitle,.rtl.bp-wrapper .createForumButton,.rtl.bp-wrapper ul.forum-list .thread-poster,.rtl.bp-wrapper ul.forum-list .thread-info,.rtl .widget .avatar-block .item-avatar img{float:right} +.bp-wrapper div.item-list-tabs ul li a span:hover,.bp-wrapper div.item-list-tabs ul li a:hover span,.bp-wrapper .button:hover,.button.submit:hover,.bp-wrapper .generic-button a:hover,.bp-wrapper ul.button-nav li a:hover,.bp-wrapper .item-list .activity-meta a:hover,.bp-wrapper .item-list .acomment-options a:hover,.bp-wrapper .acomment-options a:hover,.bp-wrapper .activity-meta a span,.widget .item-options a:hover,.widget .item-options a.selected{color:#fff} +.skin-blue.bp-wrapper div.item-list-tabs ul li a:hover span,.skin-blue.bp-wrapper .button:hover,.skin-blue.button.submit:hover,.skin-blue.bp-wrapper .generic-button a:hover,.skin-blue.bp-wrapper ul.button-nav li a:hover,.skin-blue.bp-wrapper .item-list .activity-meta a:hover,.skin-blue.bp-wrapper .item-list .acomment-options a:hover,.skin-blue.bp-wrapper .acomment-options a:hover,.skin-blue.bp-wrapper .activity-meta a span,.skin-blue .widget .item-options a:hover,.skin-blue .widget .item-options a.selected{background:#273138} +.skin-black.bp-wrapper div.item-list-tabs ul li a:hover span,.skin-black.bp-wrapper .button:hover,.skin-black.button.submit:hover,.skin-black.bp-wrapper .generic-button a:hover,.skin-black.bp-wrapper ul.button-nav li a:hover,.skin-black.bp-wrapper .item-list .activity-meta a:hover,.skin-black.bp-wrapper .item-list .acomment-options a:hover,.skin-black.bp-wrapper .acomment-options a:hover,.skin-black.bp-wrapper .activity-meta a span,.skin-black .widget .item-options a:hover,.skin-black .widget .item-options a.selected{background:#393939} +.rtl.bp-wrapper div.item-list-tabs ul li.last,.rtl.bp-wrapper #item-header div#item-actions,.rtl.bp-wrapper .dir-form div.dir-search,.bp-wrapper div.activity-comments div.acomment-avatar img,.bp-wrapper #whats-new-post-in-box,.rtl.bp-wrapper #group-creation-next,.bp-wrapper .forumTitle,.bp-wrapper ul.forum-list .thread-poster,.bp-wrapper ul.forum-list .thread-info,.rtl.bp-wrapper #message-thread .message-date,.widget .bbp-login-form .bbp-submit-wrapper{float:left} +.bp-wrapper div.item-list-tabs#subnav ul li[id*=select],.bp-wrapper div#subnav.item-list-tabs ul li.feed,.bbPress #content table tfoot td{border:0} +.bp-wrapper div.item-list-tabs#subnav ul li select,.bp-wrapper #message-threads .thread-select input{margin:0} +.bp-wrapper #item-header #item-header-content,.bp-wrapper .main-column{margin-left:170px} +.rtl.bp-wrapper #item-header #item-header-content,.rtl.bp-wrapper .main-column{margin-left:0;margin-right:170px} +.rtl.bp-wrapper #item-header ul img.avatar,.rtl.bp-wrapper #item-header ul.avatars img.avatar,.rtl .widget .bbp-login-form .bbp-login-links a{margin-left:10px;margin-right:0} +.rtl.bp-wrapper #item-header #item-buttons .generic-button,.rtl.bp-wrapper form.standard-form .button-nav li,.rtl.bp-wrapper #send_message_form.standard-form li{float:right;margin-left:4px;margin-right:0} +.group-forum.bp-wrapper .post-content,.bp-wrapper div#message-thread div.message-content{margin-left:45px} +.rtl.group-forum.bp-wrapper .post-content,.rtl.bp-wrapper div#message-thread div.message-content{margin-left:0;margin-right:45px} +.bp-wrapper div.poster-meta,.bp-wrapper .item-list .activity-content .activity-header p,.bp-wrapper .item-list .activity-content .comment-header p,.bp-wrapper #message-threads .thread-info p,.bp-wrapper #message-thread .message-metadata,.bp-wrapper .standard-form div.radio ul li,.bp-wrapper .standard-form input[type=password]{margin-bottom:5px} +.rtl.bp-wrapper div.activity-comments div.acomment-content,.rtl.bp-wrapper div.activity-comments .acomment-options{margin-left:0;margin-right:29px} +.bp-wrapper div.activity-comments ul li p:last-child,.bp-wrapper .generic-button.group-button{margin-bottom:10px} +.rtl.messages.bp-wrapper .avatar,.rtl.bp-wrapper .thread-avatar .avatar,.rtl .item-list li .avatar,.rtl.bp-wrapper #whats-new-avatar .avatar,.rtl.bp-wrapper .item-list div.activity-avatar img,.rtl.ac-reply-avatar img.avatar,.rtl.bp-wrapper .item-list li ul li img.avatar{float:right;margin-left:10px;margin-right:0} +.bp-wrapper ul.item-list div.action .meta,.bp-wrapper table.forum td.td-freshness span.time-since,.bbPress #content tr td.bbp-forum-freshness,.bbPress #content tr td.bbp-topic-freshness,.bbPress #content div.bbp-topic-tags{font-size:11px} +.bp-wrapper #th-postcount,.bp-wrapper #th-freshness,.bp-wrapper .td-postcount,.bp-wrapper .td-freshness,.bbPress #content .bbp-forum-topic-count,.bbPress #content .bbp-forum-reply-count,.bbPress #content .bbp-topic-voice-count{text-align:center} +.bp-wrapper table.forum tr.alt td,.bbPress #content table.bbp-replies tbody tr.odd td{background-color:#f5f5f5} +.bp-wrapper table.forum tr td.td-title a.topic-title,.bbPress #content .bbp-forums td,.bbPress #content .bbp-topics td{font-size:13px} +.bp-wrapper #post-topic-reply h4,.widget.bbp_widget_login h4{font-family:Helvetica, Arial, sans-serif;font-size:14px} +.bp-wrapper #message-threads.notice-threads td,.bbPress #content .bbp-replies tr td,.bbPress #content .bbp-replies tr th{vertical-align:top} +#message p,.bp-wrapper .profile .data p{margin-bottom:0} +.bp-wrapper #settings-form .notification-settings thead,.bbPress #content table.bbp-forums th,.bbPress #content table.bbp-topics th,.bbPress #content table.bbp-topic th,.bbPress #content table.bbp-replies th,.bbPress #content table.bbp-forums tfoot td,.bbPress #content table.bbp-topics tfoot td,.bbPress #content table.bbp-topic tfoot td,.bbPress #content table.bbp-replies tfoot td,.bbPress #content table.bbp-topic tr.bbp-topic-header td{background:#e5e5e5} +.bbPress #content .bbp-forums tr td,.bbPress #content .bbp-topics tr td,.bbPress #content table.bbp-replies tbody tr.even td{background-color:#f8f8f8} +.bbPress #content .bbp-topic-meta,.bbPress #content .bbp-forums .bbp-forum-description{font-size:11px;line-height:15px;margin-top:5px} \ No newline at end of file diff --git a/wp-content/themes/score/lib/buddypress/functions-buddypress.php b/wp-content/themes/score/lib/buddypress/functions-buddypress.php index a8e8a76..15e8728 100644 --- a/wp-content/themes/score/lib/buddypress/functions-buddypress.php +++ b/wp-content/themes/score/lib/buddypress/functions-buddypress.php @@ -341,7 +341,8 @@ if (!is_admin()) { if (!function_exists('gp_bp_enqueue_defaults_init')) { function gp_bp_enqueue_defaults_init() { - wp_enqueue_style('buddypress', BP_THEME_URL . '/lib/buddypress/bp.css', false, '0.1', 'screen'); + wp_enqueue_style('buddypress', BP_THEME_URL . '/lib/buddypress/bp.min.css', false, '0.1', 'screen'); + //wp_enqueue_style('buddypress', BP_THEME_URL . '/lib/buddypress/bp.css', false, '0.1', 'screen'); wp_enqueue_script('dtheme-ajax-js', BP_PLUGIN_URL . '/bp-themes/bp-default/_inc/global.js', array('jquery')); } diff --git a/wp-content/themes/score/lib/css/custom-style-green.css b/wp-content/themes/score/lib/css/custom-style-green.css deleted file mode 100644 index 0cf4249..0000000 --- a/wp-content/themes/score/lib/css/custom-style-green.css +++ /dev/null @@ -1,109 +0,0 @@ -/* - -This stylesheet is not a full skin like style-blue.css and style-black.css. It is an example stylesheet which can be used to style individual posts. To style individual posts go to your post, scroll down to the Post Settings panel and add the relative URL to your custom stylesheet e.g. lib/css/custom-style.css in the Custom Stylesheet URL text field. - -*/ - -/*************************** General Styling ***************************/ - -/* Page Styling */ -body { -background: #000; -} - - -/*************************** Header ***************************/ - -/* Header */ -#header-bottom { -background-color: #2e3827; -} - - -/*************************** Social Wrapper ***************************/ - -/* Social Wrapper */ -#social-wrapper { -background: #3a432f; -border-top: 5px solid #1a2016; -} - -/* Scroller */ -#scroller a:hover { -color: #adff1e; -} -.scroller-bullet { -color: #b4ce8b; -} - - -/*************************** Navigation Menu ***************************/ - -/* Top Level Nav */ -#nav { -border-bottom: 1px solid #1a2016; -background: #272c1f; -} -#nav ul a:hover, -#nav ul a:hover { -color: #a9cc6b; -} -#nav ul > li { -border-color: #272c1f; -} -#nav ul > li:hover, -#nav ul li:hover .sub-menu { -background: #1e2318; -border-color: #1a2016; -border-bottom-color: #1e2318; -} - -/* Drop Down Menus */ -#nav .sub-menu { -background: #1e2318; -border-color: #1a2016; -} - - -/*************************** User Details ***************************/ - -#user-details a { -color: #b7ce8b; -} -#search-icon { -border-color: #272c1f; -} -#search-icon.active, -#search-icon:hover { -background-color: #1e2318; -border-color: #1a2016; -border-bottom-color: #1e2318; -} -#search-box { -background-color: #1e2318; -border-color: #1a2016; -} -#search-box input[type="submit"] { -background: #55692d; -} -#search-box input[type="submit"]:hover { -background: #2e3827; -} - - -/*************************** Footer ***************************/ - -/* Footer Widgets */ -.footer-widgets-border-left { -background: #31342d; -} - -/* Footer Bottom */ -#footer-bottom { -background-color: #2e3827; -border-top: 10px solid #1a2016; -color: #909787; -} -#footer-bottom a { -color: #b7bfaa; -} \ No newline at end of file diff --git a/wp-content/themes/score/lib/css/giveyouglory.css b/wp-content/themes/score/lib/css/giveyouglory.css new file mode 100644 index 0000000..73ade69 --- /dev/null +++ b/wp-content/themes/score/lib/css/giveyouglory.css @@ -0,0 +1,6 @@ +@font-face { + font-family: "Give You Glory"; + font-style: normal; + font-weight: 400; + src: local("Give You Glory"), local("GiveYouGlory"), url("giveyouglory.woff") format("woff"); +} \ No newline at end of file diff --git a/wp-content/themes/score/lib/css/giveyouglory.woff b/wp-content/themes/score/lib/css/giveyouglory.woff new file mode 100644 index 0000000..f56db54 Binary files /dev/null and b/wp-content/themes/score/lib/css/giveyouglory.woff differ diff --git a/wp-content/themes/score/lib/css/reset.css b/wp-content/themes/score/lib/css/reset.css index 0075c44..2671f62 100644 --- a/wp-content/themes/score/lib/css/reset.css +++ b/wp-content/themes/score/lib/css/reset.css @@ -1,40 +1,6 @@ -html, body, div, span, applet, object, iframe, -h1, h2, h3, h4, h5, h6, p, blockquote, pre, -a, abbr, acronym, address, big, cite, -del, dfn, font, img, ins, kbd, q, s, samp, -small, strike, sub, sup, tt, var, -dl, dt, dd, fieldset, form, label, legend, -table, caption, tbody, tfoot, thead, tr, th, td { - margin: 0; - padding: 0; - border: 0; - outline: 0; - font-weight: inherit; - font-style: inherit; - font-size: 100%; - font-family: inherit; - vertical-align: baseline; -} -/* remember to define focus styles! */ -:focus { - outline: 0; -} -body { - line-height: 1; -} -/* tables still need 'cellspacing="0"' in the markup */ -table { - border-collapse: separate; - border-spacing: 0; -} -caption, th, td { - text-align: left; - font-weight: normal; -} -blockquote:before, blockquote:after, -q:before, q:after { - content: ""; -} -blockquote, q { - quotes: "" ""; -} \ No newline at end of file +html,body,div,span,applet,object,iframe,h1,h2,h3,h4,h5,h6,p,blockquote,pre,a,abbr,acronym,address,big,cite,del,dfn,font,img,ins,kbd,q,s,samp,small,strike,sub,sup,tt,var,dl,dt,dd,fieldset,form,label,legend,table,caption,tbody,tfoot,thead,tr,th,td{border:0;font-family:inherit;font-size:100%;font-style:inherit;font-weight:inherit;margin:0;outline:0;padding:0;vertical-align:baseline} +:focus{outline:0} +body{line-height:1} +table{border-collapse:separate;border-spacing:0} +caption,th,td{font-weight:400;text-align:left} +blockquote:before,blockquote:after,q:before,q:after{content:""} \ No newline at end of file diff --git a/wp-content/themes/score/lib/scripts/asong2u.js b/wp-content/themes/score/lib/scripts/asong2u.js new file mode 100644 index 0000000..72373d9 --- /dev/null +++ b/wp-content/themes/score/lib/scripts/asong2u.js @@ -0,0 +1,231 @@ +jQuery(document).ready(function(){ + calc_video_height(); + jQuery('.controls_fullscreen').css('cursor', 'pointer'); + + _fullscreen = jQuery('.controls_fullscreen').children('img'); + _srcimg = _fullscreen.attr('src'); + + _fullscreen.hover( + function() { + _fullscreen.attr('src', _srcimg.replace('fullscreen.png', 'fullscreen_on.png')); + }, + function() { + _fullscreen.attr('src', _srcimg.replace('fullscreen_on.png', 'fullscreen.png')); + } + ); + + _fullscreen.bind('click', function(){ + if (jQuery('#the_slider').hasClass('fullscreen_div')) { + jQuery('#the_slider').removeClass('fullscreen_div'); + jQuery('.mediaWrapper').css('width', ''); + jQuery('.youtubeHolder').css('width', ''); + jQuery('.vimeoHolder').css('width', ''); + _fullscreen.parent().appendTo(jQuery('#dedicationFooter_container .columns.two.last')); + } else { + jQuery('#the_slider').addClass('fullscreen_div'); + _fullscreen.attr('src', _srcimg.replace('fullscreen.png', 'fullscreen_exit.png')); + //_fullscreen.parent().appendTo(jQuery('.slideshow_controls')); + _fullscreen.parent().appendTo(jQuery('#componentWrapper')); + } + calc_video_height(); + }); + + jQuery(window).resize(function(){calc_video_height()}); +}); + +function calc_video_height() { + if (jQuery('#the_slider').hasClass('fullscreen_div')) { + jQuery('#componentWrapper').css('height', '100%').css('height', '-=115px'); + } else { + if (jQuery('#componentWrapper').css('height') != '500px') { + jQuery('#componentWrapper').css('height', '500px'); + } + } +} + + +jQuery(document).ready(function(){ + jQuery('.home-page .wp-pagenavi a').live('click', function(e){ + e.preventDefault(); + link = jQuery(this).attr('href'); + jQuery('.home-page .wp-pagenavi').remove(); + + jQuery.get(link, function(data) { + var kids = jQuery(data).find('.contentInner').children(); + jQuery.each(kids, function(){ + jQuery('#content-wrapper #content .contentInner').append(jQuery(this)); + }); + }); + }); + + jQuery('.dedication-profile .home_column_my_dedications a.read-more').live('click', function(e){ + e.preventDefault(); + link = jQuery(this).attr('href'); + jQuery('.dedication-profile .home_column_my_dedications a.read-more').remove(); + + jQuery.get(link, function(data) { + var kids = jQuery(data).find('#content').children(); + jQuery.each(kids, function(){ + if (jQuery(this).hasClass('post-loop')) { + jQuery(this).removeClass(); + jQuery(this).addClass('home-my-dedications post-loop'); + } + jQuery('.dedication-profile .home_column_my_dedications').append(jQuery(this)); + }); + }); + }); + + + jQuery('.dedication-profile .home_column_dedicated_2_me a.read-more').live('click', function(e){ + e.preventDefault(); + link = jQuery(this).attr('href'); + jQuery('.dedication-profile .home_column_dedicated_2_me a.read-more').remove(); + + jQuery.get(link, function(data) { + var kids = jQuery(data).find('#content').children(); + jQuery.each(kids, function(){ + if (jQuery(this).hasClass('post-loop')) { + jQuery(this).removeClass(); + jQuery(this).addClass('home-dedicated-2-me post-loop'); + } + jQuery('.dedication-profile .home_column_dedicated_2_me').append(jQuery(this)); + }); + }); + }); + +}); + +var aIndex=-1; +var oUrl=''; + +function updateInfo() { + var id = jQuery.fn.videoGallery.getMediaID(); + + if ((aIndex != id) && (id >= 0)) { + aIndex = id; + + if (oUrl == '') { + oUrl = jQuery('#dedicate_this_song_button').attr("href"); + } + + var the_id = jQuery('#postdata-id-' + id).text(); + var new_title = jQuery('#postdata-title-' + id).html(); + var from_to = jQuery('#postdata-from-to-' + id).html(); + var artist = jQuery('#postdata-artist-' + id).html(); + var song = jQuery('#postdata-song-' + id).html(); + var link = jQuery('#postdata-link-' + id).html(); + var enc_link = jQuery('#postdata-extlink-' + id).html(); + + var nUrl = oUrl + 'id/' + the_id; + jQuery('#dedicate_this_song_button').attr("href", nUrl); + + // Social networks + nUrl = 'https://www.facebook.com/sharer.php?u=' + enc_link; + jQuery('#fsbbtn a').attr("href", nUrl); + nUrl = 'http://twitter.com/intent/tweet?source=sharethiscom&url=' + enc_link; + jQuery('#twtbtn a').attr("href", nUrl); + nUrl = 'https://plusone.google.com/_/+1/confirm?url=' + enc_link; + jQuery('#gpsbtn a').attr("href", nUrl); + nUrl = 'javascript:void(window.open("http://www.myspace.com/Modules/PostTo/Pages/?u=' + enc_link + '"+encodeURIComponent(document.location.toString()),"ptm","height=450,width=550").focus())'; + jQuery('#mysbtn a').attr("href", nUrl); + + + jQuery('#dedication-data-panel').hide('fast'); + jQuery('#dedication-data-panel').slideUp( + 'fast', + function() { + jQuery('#dedication-data-panel').html(from_to); + jQuery('#dedicationTitle-data-panel').html(from_to); + } + ); + jQuery('#dedication-data-panel').slideDown(); + + jQuery('#dedicationFooter_container').slideUp( + 'fast', + function() { + jQuery('#dedicationArtits').html(artist); + jQuery('#dedicationSong').html(song); + } + ); + jQuery('#dedicationFooter_container').slideDown( + 'fast', + function() {} + ); + jQuery('#dedicationTitle').html(new_title); + shrinkTitle(); + jQuery('#dedicationTitle a').jTypeWriter(); + + jQuery('#dedicationComments_container').slideUp( + 'fast', + //function() { jQuery('#dedicationComments_container').html(comments); } + function() { + jQuery('#dedicationComments_container').load( + link + ' #comments', '', function(data) { + init_comments(); + jQuery('#dedicationComments_container').on('submit', + '#commentform', + function() { + prepare_new_comment_home(); + return false; + } + ) + } + ); + } + ); + jQuery('#dedicationComments_container').slideDown(); + + if(jQuery('#postdata-mark-read-' + id).length > 0) { + jQuery('#postdata-mark-read-' + id + ' .mar_mark_as_read').click(); + jQuery('#postdata-mark-read-' + id).remove(); + } + } +} + +function shrinkTitle() +{ + var textH1 = document.getElementById("dedicationTitle"); + var textDiv = document.getElementById("dedicationTitle_container"); + + textH1.style.fontSize = 42+"px"; + while(textH1.offsetWidth > textDiv.offsetWidth) + { + size = parseInt(textH1.style.fontSize.replace("px","")); + size -= 1; + textH1.style.fontSize = size+"px"; + } + textH1.style.fontSize -= 10+"px"; +} + +jQuery(window).ready(function() { + + if (jQuery('#slider-wrapper').length > 0 ) { + jQuery('#content-wrapper .post-loop .post-thumbnail a').click(function(e) { + e.preventDefault(); + var oUrl = jQuery(this).attr('href'); + jQuery('#playlist li [id^=postdata-link-]').each(function(indice, valor){ + var nUrl = jQuery(this).html(); + if (nUrl == oUrl) { + jQuery('#componentWrapper').videoGallery.loadMedia(indice); + return false; + } + }); + return false; + }); + } +}); + +jQuery(document).ready(function(){ + jQuery('#sidebar .sidebarposts .top_10 .posts').hide(); + jQuery('#sidebar .sidebarposts .top_10 h3').click(function() { + jQuery('#sidebar .sidebarposts .top_10 .posts').toggle('slow', function() {}); + }); +}); + +jQuery(document).ready(function(){ + jQuery('#my-friends-big-avatars div.see_more').hide(); + jQuery('#my-friends-big-avatars span.see_more').click(function() { + jQuery('#my-friends-big-avatars span.see_more').hide(); + jQuery('#my-friends-big-avatars div.see_more').toggle('fast', function() {}); + }); +}); diff --git a/wp-content/themes/score/lib/scripts/asong2u.min.js b/wp-content/themes/score/lib/scripts/asong2u.min.js new file mode 100644 index 0000000..e78b4a7 --- /dev/null +++ b/wp-content/themes/score/lib/scripts/asong2u.min.js @@ -0,0 +1 @@ +function calc_video_height(){if(jQuery("#the_slider").hasClass("fullscreen_div")){jQuery("#componentWrapper").css("height","100%").css("height","-=115px")}else{if(jQuery("#componentWrapper").css("height")!="500px"){jQuery("#componentWrapper").css("height","500px")}}}function updateInfo(){var a=jQuery.fn.videoGallery.getMediaID();if(aIndex!=a&&a>=0){aIndex=a;if(oUrl==""){oUrl=jQuery("#dedicate_this_song_button").attr("href")}var b=jQuery("#postdata-id-"+a).text();var c=jQuery("#postdata-title-"+a).html();var d=jQuery("#postdata-from-to-"+a).html();var e=jQuery("#postdata-artist-"+a).html();var f=jQuery("#postdata-song-"+a).html();var g=jQuery("#postdata-link-"+a).html();var h=jQuery("#postdata-extlink-"+a).html();var i=oUrl+"id/"+b;jQuery("#dedicate_this_song_button").attr("href",i);i="https://www.facebook.com/sharer.php?u="+h;jQuery("#fsbbtn a").attr("href",i);i="http://twitter.com/intent/tweet?source=sharethiscom&url="+h;jQuery("#twtbtn a").attr("href",i);i="https://plusone.google.com/_/+1/confirm?url="+h;jQuery("#gpsbtn a").attr("href",i);i='javascript:void(window.open("http://www.myspace.com/Modules/PostTo/Pages/?u='+h+'"+encodeURIComponent(document.location.toString()),"ptm","height=450,width=550").focus())';jQuery("#mysbtn a").attr("href",i);jQuery("#dedication-data-panel").hide("fast");jQuery("#dedication-data-panel").slideUp("fast",function(){jQuery("#dedication-data-panel").html(d);jQuery("#dedicationTitle-data-panel").html(d)});jQuery("#dedication-data-panel").slideDown();jQuery("#dedicationFooter_container").slideUp("fast",function(){jQuery("#dedicationArtits").html(e);jQuery("#dedicationSong").html(f)});jQuery("#dedicationFooter_container").slideDown("fast",function(){});jQuery("#dedicationTitle").html(c);shrinkTitle();jQuery("#dedicationTitle a").jTypeWriter();jQuery("#dedicationComments_container").slideUp("fast",function(){jQuery("#dedicationComments_container").load(g+" #comments","",function(a){init_comments();jQuery("#dedicationComments_container").on("submit","#commentform",function(){prepare_new_comment_home();return false})})});jQuery("#dedicationComments_container").slideDown();if(jQuery("#postdata-mark-read-"+a).length>0){jQuery("#postdata-mark-read-"+a+" .mar_mark_as_read").click();jQuery("#postdata-mark-read-"+a).remove()}}}function shrinkTitle(){var a=document.getElementById("dedicationTitle");var b=document.getElementById("dedicationTitle_container");a.style.fontSize=42+"px";while(a.offsetWidth>b.offsetWidth){size=parseInt(a.style.fontSize.replace("px",""));size-=1;a.style.fontSize=size+"px"}a.style.fontSize-=10+"px"}jQuery(document).ready(function(){calc_video_height();jQuery(".controls_fullscreen").css("cursor","pointer");_fullscreen=jQuery(".controls_fullscreen").children("img");_srcimg=_fullscreen.attr("src");_fullscreen.hover(function(){_fullscreen.attr("src",_srcimg.replace("fullscreen.png","fullscreen_on.png"))},function(){_fullscreen.attr("src",_srcimg.replace("fullscreen_on.png","fullscreen.png"))});_fullscreen.bind("click",function(){if(jQuery("#the_slider").hasClass("fullscreen_div")){jQuery("#the_slider").removeClass("fullscreen_div");jQuery(".mediaWrapper").css("width","");jQuery(".youtubeHolder").css("width","");jQuery(".vimeoHolder").css("width","");_fullscreen.parent().appendTo(jQuery("#dedicationFooter_container .columns.two.last"))}else{jQuery("#the_slider").addClass("fullscreen_div");_fullscreen.attr("src",_srcimg.replace("fullscreen.png","fullscreen_exit.png"));_fullscreen.parent().appendTo(jQuery("#componentWrapper"))}calc_video_height()});jQuery(window).resize(function(){calc_video_height()})});jQuery(document).ready(function(){jQuery(".home-page .wp-pagenavi a").live("click",function(a){a.preventDefault();link=jQuery(this).attr("href");jQuery(".home-page .wp-pagenavi").remove();jQuery.get(link,function(a){var b=jQuery(a).find(".contentInner").children();jQuery.each(b,function(){jQuery("#content-wrapper #content .contentInner").append(jQuery(this))})})});jQuery(".dedication-profile .home_column_my_dedications a.read-more").live("click",function(a){a.preventDefault();link=jQuery(this).attr("href");jQuery(".dedication-profile .home_column_my_dedications a.read-more").remove();jQuery.get(link,function(a){var b=jQuery(a).find("#content").children();jQuery.each(b,function(){if(jQuery(this).hasClass("post-loop")){jQuery(this).removeClass();jQuery(this).addClass("home-my-dedications post-loop")}jQuery(".dedication-profile .home_column_my_dedications").append(jQuery(this))})})});jQuery(".dedication-profile .home_column_dedicated_2_me a.read-more").live("click",function(a){a.preventDefault();link=jQuery(this).attr("href");jQuery(".dedication-profile .home_column_dedicated_2_me a.read-more").remove();jQuery.get(link,function(a){var b=jQuery(a).find("#content").children();jQuery.each(b,function(){if(jQuery(this).hasClass("post-loop")){jQuery(this).removeClass();jQuery(this).addClass("home-dedicated-2-me post-loop")}jQuery(".dedication-profile .home_column_dedicated_2_me").append(jQuery(this))})})})});var aIndex=-1;var oUrl="";jQuery(window).ready(function(){if(jQuery("#slider-wrapper").length>0){jQuery("#content-wrapper .post-loop .post-thumbnail a").click(function(a){a.preventDefault();var b=jQuery(this).attr("href");jQuery("#playlist li [id^=postdata-link-]").each(function(a,c){var d=jQuery(this).html();if(d==b){jQuery("#componentWrapper").videoGallery.loadMedia(a);return false}});return false})}});jQuery(document).ready(function(){jQuery("#sidebar .sidebarposts .top_10 .posts").hide();jQuery("#sidebar .sidebarposts .top_10 h3").click(function(){jQuery("#sidebar .sidebarposts .top_10 .posts").toggle("slow",function(){})})});jQuery(document).ready(function(){jQuery("#my-friends-big-avatars div.see_more").hide();jQuery("#my-friends-big-avatars span.see_more").click(function(){jQuery("#my-friends-big-avatars span.see_more").hide();jQuery("#my-friends-big-avatars div.see_more").toggle("fast",function(){})})}) \ No newline at end of file diff --git a/wp-content/themes/score/lib/scripts/comment-home.js b/wp-content/themes/score/lib/scripts/comment-home.js new file mode 100644 index 0000000..2ff570b --- /dev/null +++ b/wp-content/themes/score/lib/scripts/comment-home.js @@ -0,0 +1,195 @@ +var pager = null; +var cPager = null; +var prev = null; +var next = null; +var moreFront = null; +var moreEnd = null; +var commentlist = null; +var respond = null; +var message = null; +var list = null; +var totalCom = null; +var textarea = null; +var comments_per_page = '2'; + +var comPerPage = comments_per_page; + + +var currentPage=0, number, numPerPage, totalPage, reply; + +function getTotal(comlist){ + list = comlist.children(); + totalCom = list.length; + totalPage = Math.ceil(totalCom/comPerPage); +} + +function pagination(){ + getTotal(commentlist); + numPerPage = parseInt(comments_per_page, 10); + if (totalPage < numPerPage) numPerPage = totalPage; + moreFront.add(moreEnd).empty(); + + pager.empty().insertAfter(commentlist); + + if (comPerPage < totalCom) { + for (var i = 0; i < totalPage; i++) { + jQuery('').text(i+1).bind('click',{ newPage:i }, function(event){ + currentPage = event.data['newPage']; + number.eq(currentPage).addClass('currentPager').siblings().removeClass('currentPager'); + rePagCom(); + rePager(); + }).appendTo(pager); + } + //select a set of page-numbers for later uses + number = pager.find('span.page-number'); + + //if there are more page-numbers front + jQuery('').appendTo(moreFront).text('1').click(function(){number.eq(0).trigger('click');}); + + moreFront.append(' ... ').prependTo(pager); + + prev.prependTo(pager).click(function(){ + if ( currentPage > 0 ) number.eq(currentPage).prev().trigger('click'); + }); + + moreEnd.append(' ... ').appendTo(pager); + + jQuery('').appendTo(moreEnd).text(totalPage + '').click(function(){number.eq(totalPage-1).trigger('click');}); + + next.appendTo(pager).click(function(){ + if ( currentPage < totalPage - 1 ) number.eq(currentPage).next().trigger('click'); + }); + + rePager(); + rePagCom(); + } +}//end of pagination function + +/* + *repage all comments + */ +function rePagCom(){ + list.hide().slice(currentPage * comPerPage, (currentPage+1) * comPerPage).fadeIn(); +} + +/* + *show and hide page-numbers + */ +function rePager(){ + number.eq(currentPage).addClass('currentPager'); + if(currentPage<(numPerPage+1)/2){ + number.hide().slice(0,numPerPage).show(); + } + else if(currentPage+1>totalPage-(numPerPage+1)/2){ + number.hide().slice(totalPage-numPerPage,totalPage+1).show(); + } + else{ + number.hide().slice(currentPage-(numPerPage-1)/2 ,currentPage+(numPerPage-1)/2+1).show(); + } + if(currentPage==0) prev.removeClass('yjl-prev').addClass('gray'); + else prev.addClass('yjl-prev').removeClass('gray'); + + if(currentPage==totalPage-1) next.removeClass('yjl-next').addClass('gray'); + else next.addClass('yjl-next').removeClass('gray'); + + if(currentPage + (numPerPage - 1) / 2 < totalPage - 1 && numPerPage != totalPage) + moreEnd.show(); + else + moreEnd.hide(); + if(currentPage - (numPerPage - 1) / 2 > 0 && numPerPage != totalPage) + moreFront.show(); + else + moreFront.hide(); + + //cPager.insertAfter(commentlist).empty().append(pager.children().clone(true)); +} + +function init_comments() { + message = jQuery('.yjl-mes'); + if (!message) { + message=jQuery('').appendTo("#commentform"); + } + respond=jQuery('#respond'); + textarea=respond.find('#comment').attr('rows','4'); + commentlist=jQuery('.commentlist'); + + pager = jQuery('
'); + cPager = jQuery(''); + prev = jQuery(''+ 'Prev' + ''); + next = jQuery(''+ 'Next' + ''); + moreFront = jQuery(''); + moreEnd = jQuery(''); + list = commentlist.children(); + totalCom = list.length; + comPerPage = parseInt(comments_per_page, 10); + + pagination(); +} + +function prepare_new_comment_home() { + + //track a reply comment + jQuery('.comment-reply-link').live('click',function(){ + reply=true; + }); + + var cancel=jQuery('#cancel-comment-reply-link').click(function(){ + reply=false; + }); + + jQuery.ajax({ + beforeSend:function(xhr){ + xhr.setRequestHeader("If-Modified-Since","0"); + message.empty().append('')[1].split('
')[0]); + } + else if(xhr.status=='timeout'){ + message.empty().append('Error:Server time out,try again!'); + } + else{ + message.empty().append('Please slow down,you are posting to fast!'); + } + }, + success:function(data){ + message.empty().append('Thank you for your comment!'); + newComList=jQuery(data).find('.commentlist'); + if ( totalCom > 0 ) { + if (reply) cancel.trigger('click'); + else { + getTotal(newComList); + currentPage = totalPage-1; + } + commentlist.prev().replaceWith(newComList.prev()); + commentlist.replaceWith(newComList); + } else { + newComList.prev().andSelf().insertBefore(respond); + } + commentlist = newComList; + pagination(); + textarea.val(''); + } + }); + + textarea.autoResize({ + // On resize: + onResize : function() { + jQuery(this).css({opacity:0.8}); + }, + // After resize: + animateCallback : function() { + jQuery(this).css({opacity:1}); + }, + // Quite slow animation: + animateDuration : 300, + // More extra space: + extraSpace : 20 + }); + +} diff --git a/wp-content/themes/score/lib/scripts/comment-home.min.js b/wp-content/themes/score/lib/scripts/comment-home.min.js new file mode 100644 index 0000000..a274dbe --- /dev/null +++ b/wp-content/themes/score/lib/scripts/comment-home.min.js @@ -0,0 +1 @@ +function getTotal(a){list=a.children();totalCom=list.length;totalPage=Math.ceil(totalCom/comPerPage)}function pagination(){getTotal(commentlist);numPerPage=parseInt(comments_per_page,10);if(totalPage")[1].split("
")[0])}else if(a.status=="timeout"){message.empty().append("Error:Server time out,try again!")}else{message.empty().append("Please slow down,you are posting to fast!")}},success:function(b){message.empty().append("Thank you for your comment!");newComList=jQuery(b).find(".commentlist");if(totalCom>0){if(reply)a.trigger("click");else{getTotal(newComList);currentPage=totalPage-1}commentlist.prev().replaceWith(newComList.prev());commentlist.replaceWith(newComList)}else{newComList.prev().andSelf().insertBefore(respond)}commentlist=newComList;pagination();textarea.val("")}});textarea.autoResize({onResize:function(){jQuery(this).css({opacity:.8})},animateCallback:function(){jQuery(this).css({opacity:1})},animateDuration:300,extraSpace:20})}var pager=null;var cPager=null;var prev=null;var next=null;var moreFront=null;var moreEnd=null;var commentlist=null;var respond=null;var message=null;var list=null;var totalCom=null;var textarea=null;var comments_per_page="2";var comPerPage=comments_per_page;var currentPage=0,number,numPerPage,totalPage,reply \ No newline at end of file diff --git a/wp-content/themes/score/lib/scripts/comment-home.php b/wp-content/themes/score/lib/scripts/comment-home.php deleted file mode 100644 index 8818bd3..0000000 --- a/wp-content/themes/score/lib/scripts/comment-home.php +++ /dev/null @@ -1,199 +0,0 @@ - diff --git a/wp-content/themes/score/lib/scripts/custom.php b/wp-content/themes/score/lib/scripts/custom.php index 41e68b1..d1afa2e 100644 --- a/wp-content/themes/score/lib/scripts/custom.php +++ b/wp-content/themes/score/lib/scripts/custom.php @@ -1,221 +1,6 @@ \ No newline at end of file diff --git a/wp-content/themes/score/lib/scripts/jquery.jtypewriter.min.js b/wp-content/themes/score/lib/scripts/jquery.jtypewriter.min.js new file mode 100644 index 0000000..44c5abb --- /dev/null +++ b/wp-content/themes/score/lib/scripts/jquery.jtypewriter.min.js @@ -0,0 +1 @@ +(function(a){a.fn.jTypeWriter=function(b){function u(){c=k/t;d=0;e=f=0;g=!m?setInterval(v,c):setInterval(w,c)}function v(){d++;for(i=0;i