Changeset 6273
- Timestamp:
- 12/14/2017 11:30:48 PM (7 years ago)
- Location:
- sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-showcase
- Files:
-
- 1 added
- 1 deleted
- 13 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-showcase/archive.php
r2377 r6273 10 10 11 11 <?php get_sidebar( 'left' ); ?> 12 <div class="col- 7">12 <div class="col-5"> 13 13 <?php breadcrumb(); ?> 14 14 -
sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-showcase/functions.php
r2381 r6273 223 223 function wpsc_scripts() { 224 224 wp_enqueue_script( 'jquery' ); // explicit enqueue 225 wp_enqueue_script( 'jquery-cycle', get_template_directory_uri() . '/js/jquery.cycle .min.js', array( 'jquery' ) );226 wp_enqueue_script( 'wpsc-scripts', get_template_directory_uri() . '/js/scripts.js', array( 'jquery', 'jquery-cycle' ) );225 wp_enqueue_script( 'jquery-cycle', get_template_directory_uri() . '/js/jquery.cycle2.min.js', array( 'jquery' ) ); 226 wp_enqueue_script( 'wpsc-scripts', get_template_directory_uri() . '/js/scripts.js', array( 'jquery', 'jquery-cycle' ), 'aaa' ); 227 227 } 228 228 add_action('wp_enqueue_scripts', 'wpsc_scripts'); -
sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-showcase/header.php
r2378 r6273 4 4 $prefix = is_ssl() ? 'https://' : 'http://s.'; 5 5 wp_enqueue_style( 'blog-wp4', $prefix.'wordpress.org/style/blog-wp4.css', array(), 4 ); 6 wp_enqueue_style( 'showcase', $prefix.'wordpress.org/wp-content/themes/pub/wporg-showcase/style.css', array(), 14);6 wp_enqueue_style( 'showcase', $prefix.'wordpress.org/wp-content/themes/pub/wporg-showcase/style.css', array(), '14aaaf' ); 7 7 require WPORGPATH . 'header.php'; 8 8 ?> 9 9 <div id="headline"> 10 10 <div class="wrapper"> 11 <a id="wpsc-mobile-menu-button" class="" href="#" onclick="toggle_wpsc_mobile_menu();"></a> 11 12 <h2><?php _e( 'Showcase', 'wporg-showcase' ); ?></h2> 12 13 </div> -
sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-showcase/index.php
r2377 r6273 3 3 <div class="wrapper archives"> 4 4 <?php get_sidebar( 'left' ); ?> 5 <div class="col- 7">5 <div class="col-5"> 6 6 <?php 7 7 breadcrumb(); -
sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-showcase/js/scripts.js
r1474 r6273 1 jQuery(document).ready(function($) { 2 $(".wpsc-hero-slide-container").cycle({ 3 fx: 'scrollHorz', 4 pager: '.wpsc-slide-nav', 5 timeout: 8000 6 }); 7 }); 1 ( function ( $ ) { 2 $( 'document' ).ready( function () { 3 toggle_wpsc_mobile_menu = function () { 4 if ( !$( '.leftsidebar' ).hasClass( 'wpscMobileMenuSlideIn' ) ) { 5 $( '.leftsidebar' ).animate( { 6 left: "+=209" 7 } ); 8 $( '.leftsidebar' ).addClass( 'wpscMobileMenuSlideIn' ); 9 } else { 10 $( '.leftsidebar' ).animate( { 11 left: "-=209" 12 } ); 13 $( '.leftsidebar' ).removeClass( 'wpscMobileMenuSlideIn' ); 14 } 15 }; 16 17 if ( $( '#pagebody' ).hasClass( 'post' ) ) { 18 $( '.currentSiteRating' ).css( 'display', 'block' ); 19 } 20 } ); 21 } )( jQuery ); -
sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-showcase/page-home.php
r2377 r6273 11 11 12 12 <div class="wpsc-hero group"> 13 <div class="wpsc-hero-slide-container no-js ">13 <div class="wpsc-hero-slide-container no-js cycle-slideshow" data-cycle-pager=".wpsc-slide-pager" data-cycle-fx="scrollHorz" data-cycle-auto-height="container" data-cycle-timeout="8000" data-cycle-slides="> div"> 14 14 15 15 <?php while ( have_posts() ) : the_post(); ?> … … 17 17 <div class="wpsc-hero-slide"> 18 18 <div class="wpsc-hero-slide-content"> 19 <div class="wpsc-hero-slide-content-left"> 19 20 <a href="<?php the_permalink(); ?>" class="wpsc-hero-slide-img"> 20 21 <?php site_screenshot_tag( 457 ); ?> 21 22 </a> 23 </div> 24 <div class="wpsc-hero-slide-content-right"> 25 <div class="wpsc-hero-slide-content-right-wrapper"> 22 26 <h3><a href="<?php the_permalink(); ?>" title="<?php the_title_attribute(); ?>"><?php the_title(); ?></a></h3> 23 27 … … 37 41 <?php _e( 'Learn More →', 'wporg-showcase' ); ?> 38 42 </a> 43 </div> 44 </div> 39 45 </div><!-- .wpsc-hero-slide-content --> 40 46 </div><!-- .wpsc-hero-slide --> … … 43 49 44 50 </div> 45 <div class="wpsc-slide-nav">< /div>51 <div class="wpsc-slide-nav"><div class="wpsc-slide-pager"></div></div> 46 52 </div> <!-- .wpsc-hero --> 47 53 … … 53 59 54 60 <div class="col-7 main-content"> 55 61 <div class="maincontentwrapper"> 56 62 <?php query_posts( array( 'cat' => 4, 'posts_per_page' => 3, 'tag' => 'business', 'orderby' => 'rand' ) ); ?> 57 63 <?php if ( have_posts() ) : ?> … … 102 108 103 109 </div> 110 </div> 104 111 </div> 105 112 </div> -
sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-showcase/page-submit.php
r2379 r6273 20 20 21 21 <div id="pagebody"> 22 22 <div class="wrapper"> 23 23 <?php get_template_part( 'sidebar', 'left' ); ?> 24 <div class="col-7">24 <div class="col-5"> 25 25 26 26 <?php if ( $_POST && ! $error ) : ?> -
sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-showcase/page-tags.php
r1474 r6273 10 10 <div class="wrapper"> 11 11 <?php get_sidebar( 'left' ); ?> 12 <div class="col- 7">12 <div class="col-5"> 13 13 <?php breadcrumb(); ?> 14 14 <div class="heatmap"> -
sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-showcase/page.php
r2377 r6273 4 4 <div class="wrapper"> 5 5 <?php get_sidebar( 'left' ); ?> 6 <div class="col- 7">6 <div class="col-5"> 7 7 8 8 <?php if ( have_posts() ) : ?> -
sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-showcase/sidebar-left.php
r2377 r6273 1 <div class="col-2 secondary ">1 <div class="col-2 secondary leftsidebar"> 2 2 <a href="<?php echo home_url( '/submit-a-wordpress-site/' ); ?>" class="wpsc-submit-site"><?php _e( 'Submit a Site →', 'wporg-showcase' ); ?></a> 3 3 -
sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-showcase/sidebar-right.php
r2376 r6273 1 <div class="col-3"> 1 <div class="col-3 rightsidebar"> 2 <div class="rightsidebarwrapper"> 3 <div class="currentSiteRating"> 4 <p class="button"><a href="http://<?php get_site_domain( false ); ?>"><?php _e( 'Visit Site', 'wporg-showcase' ); ?></a></p> 5 6 <h4><?php _e( 'Rating', 'wporg-showcase' ); ?></h4> 7 <?php the_ratings(); ?> 8 <p class='rating-descrip'><?php _e( 'Rate this site based on their implementation and use of WordPress.', 'wporg-showcase' ); ?></p> 9 10 <?php wp_flavors(); ?> 11 <br /> 12 <?php tags_with_count( 'list', '<h4>' . __( 'Tags', 'wporg-showcase' ) . '</h4><ul>', '', '</ul>' ); ?> 13 </div> 14 2 15 <h4><?php _e( 'Top Rated', 'wporg-showcase' ); ?></h4> 3 16 <table class="top-rated"> … … 10 23 </table> 11 24 </div> 25 </div> -
sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-showcase/single.php
r2377 r6273 55 55 <?php comments_template(); ?> 56 56 </div><!-- .col-5 --> 57 <div class="col-13">58 <p class="button"><a href="http://<?php get_site_domain( false ); ?>"><?php _e( 'Visit Site', 'wporg-showcase' ); ?></a></p>59 60 <h4><?php _e( 'Rating', 'wporg-showcase' ); ?></h4>61 <?php the_ratings(); ?>62 <p class='rating-descrip'><?php _e( 'Rate this site based on their implementation and use of WordPress.', 'wporg-showcase' ); ?></p>63 64 <?php wp_flavors(); ?>65 <br />66 <?php tags_with_count( 'list', '<h4>' . __( 'Tags', 'wporg-showcase' ) . '</h4><ul>', '', '</ul>' ); ?>67 </div>68 57 69 58 <?php get_sidebar( 'right' ) ?> -
sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-showcase/style.css
r2371 r6273 1 /* 1 /* 2 2 Theme Name: WordPress.org Showcase Theme 3 3 */ … … 12 12 margin-left: auto; 13 13 margin-right: auto; 14 } 15 16 .col-5 { 17 width: calc( 100% - 390px ); 14 18 } 15 19 … … 22 26 color: #fff; 23 27 -moz-border-radius: 3px; 24 -khtml-border-radius: 3px; 28 -khtml-border-radius: 3px; 25 29 -webkit-border-radius: 3px; 26 30 border-radius: 3px; … … 29 33 } 30 34 35 .col-2 p.button, .col-3 p.button { 36 display: block; 37 text-align: center; 38 line-height: 1.4em; 39 padding: 0; 40 background: #d54e21; 41 color: #fff; 42 -moz-border-radius: 3px; 43 -khtml-border-radius: 3px; 44 -webkit-border-radius: 3px; 45 border-radius: 3px; 46 border: none; 47 text-shadow: none; 48 } 49 31 50 .col-2 p.button { 32 51 width: 110px; … … 42 61 display: block; 43 62 padding: 8px 10px; 63 text-shadow: rgba(0,0,0,0.5) 0 1px 0; 64 } 65 66 .col-2 p.button a, .col-3 p.button a { 67 font-size: 13px; 68 color: #fff; 69 display: block; 70 padding: 14px 10px; 44 71 text-shadow: rgba(0,0,0,0.5) 0 1px 0; 45 72 } … … 57 84 border: 1px solid #ccc; 58 85 -moz-border-radius: 3px; 59 -khtml-border-radius: 3px; 86 -khtml-border-radius: 3px; 60 87 -webkit-border-radius: 3px; 61 88 border-radius: 3px; … … 167 194 background: #F5F5F5; 168 195 -moz-border-radius: 3px; 169 -khtml-border-radius: 3px; 196 -khtml-border-radius: 3px; 170 197 -webkit-border-radius: 3px; 171 198 border-radius: 3px; … … 259 286 padding: 3px; 260 287 border: 1px solid #ccc; 288 width: 100%; 289 height: auto; 261 290 } 262 291 … … 264 293 float: left; 265 294 margin: 38px 0 0 0; 295 width: 160px; 296 } 297 298 .col-3 { 299 float: right; 300 margin: 0 14px 0 0; 266 301 width: 160px; 267 302 } … … 306 341 } 307 342 308 #wordpress-org #wp_page_numbers ul, 309 #wordpress-org #wp_page_numbers li, 343 #wordpress-org #wp_page_numbers ul, 344 #wordpress-org #wp_page_numbers li, 310 345 #wordpress-org #wp_page_numbers a { 311 346 padding: 0; … … 373 408 } 374 409 375 .archives .col-7, .home .col-7 { 410 .archives .col-7, .home .col-7 { 376 411 margin-bottom: 20px; 377 412 } … … 408 443 background: #373737; 409 444 color: #fff; 410 445 411 446 position: relative; 412 447 413 448 padding: 21px 0 0 0; 414 449 margin: 0 0 42px 0; 415 450 416 451 min-height: 365px; 417 452 } … … 422 457 423 458 .wpsc-hero-slide-container { 424 margin: auto ;459 margin: auto auto 20px auto; 425 460 position: relative; 426 427 width: 970px; 461 462 max-width: 970px; 463 width: 100%; 428 464 height: 310px; 429 465 overflow: hidden; … … 433 469 background: #373737; 434 470 clear: both; 435 471 436 472 margin: auto; 437 width: 970px; 438 473 max-width: 970px; 474 width: 100%; 475 min-height:310px; 476 439 477 font-size: 14px; 440 478 441 479 text-shadow: 0px 1px 0px rgba(0,0,0,0.75) 442 480 } … … 444 482 .wpsc-hero-slide-img { 445 483 display: block; 446 overflow: hidden;447 484 position: relative; 448 449 height: 285px; 450 451 float: left; 452 margin: 0 32px 25px 0; 453 485 486 background: #fff; 454 487 border: 5px #fff solid; 455 488 border-radius: 3px; 456 489 -webkit-border-radius: 3px; 457 490 458 491 box-shadow: 0px 2px 5px 0px rgba(0,0,0,0.4); 459 492 -webkit-box-shadow: 0px 2px 5px 0px rgba(0,0,0,0.4); 493 494 min-height: 341px; 495 max-height: 341px; 496 overflow: hidden; 497 } 498 499 .wpsc-hero-slide-img img { 500 height: auto; 501 width: 100%; 460 502 } 461 503 462 504 .wpsc-hero-slide-content { 463 505 padding: 0 20px; 506 } 507 508 .wpsc-hero-slide-content-left { 509 float: left; 510 position: relative; 511 width: 50%; 512 } 513 514 .wpsc-hero-slide-content-right { 515 float: left; 516 position: relative; 517 width: 50%; 518 } 519 520 .wpsc-hero-slide-content-right-wrapper { 521 display: block; 522 padding-left: 20px; 464 523 } 465 524 … … 467 526 background: #f7f7f7; 468 527 border-bottom: 1px #c6c6c6 solid; 469 470 position: absolute;528 529 position: relative; 471 530 bottom: 0; 472 531 z-index: 99; 473 532 474 533 width: 100%; 475 476 padding: 18px 0 1 5px 0;477 534 535 padding: 18px 0 10px 0; 536 478 537 text-align: center; 479 538 } 480 539 481 .wpsc-slide-nav a{540 .wpsc-slide-nav .wpsc-slide-pager span { 482 541 display: inline-block; 483 542 text-indent: -1000%; 484 543 485 544 background: #dcdcdc; 486 545 border: 1px #bcbcbc solid; 487 546 488 547 margin: 0 6px; 489 548 490 549 width: 11px; 491 550 height: 11px; 492 551 493 552 border-radius: 50%; 494 553 } 495 554 496 .wpsc-slide-nav a:hover {555 .wpsc-slide-nav .wpsc-slide-pager span:hover { 497 556 background: #bababa; 498 557 } 499 558 500 .wpsc-slide-nav . activeSlide {559 .wpsc-slide-nav .wpsc-slide-pager span.cycle-pager-active { 501 560 background: #acacac; 502 561 border-color: #5f5f5f; 503 562 } 504 563 564 .wpsc-slide-pager span:hover { 565 cursor: pointer; 566 } 567 505 568 .wpsc-hero-slide p { 506 569 line-height: 1.7; 507 570 } 508 571 509 .wpsc-hero-slide h3 {510 margin: 0 0 5px 0;511 }512 513 572 .wpsc-hero-slide h3 a { 514 573 display: block; 515 574 516 color: #fff; 575 color: #fff; 517 576 font-weight: bold; 518 577 font-size: 24px; 519 520 padding: 20px 0 0 0;521 578 } 522 579 … … 531 588 font-family: "Arial Unicode MS", Arial, sans-serif; 532 589 line-height: 0.7; 533 590 534 591 display: inline-block; 535 592 margin: 1px 0 -1px 3px; … … 554 611 background: #6c6c6c; 555 612 color: #fff; 556 613 557 614 text-shadow: 0 -1px 0 rgba(0,0,0,1); 558 615 -webkit-text-shadow: 0 -1px 0 rgba(0,0,0,1); … … 562 619 background: #eee; 563 620 color: #d54e21; 564 621 565 622 text-shadow: none; 566 623 -webkit-text-shadow: none; … … 569 626 /* Sidebar */ 570 627 571 .home .secondary { 628 .leftsidebar { 629 z-index: 200; 630 } 631 632 .secondary { 633 display: block; 634 float: left; 635 position: relative; 572 636 width: 150px; 573 637 } … … 577 641 font-size: 13px; 578 642 line-height: 1.2; 579 643 580 644 padding: 0 0 10px 0; 581 645 582 646 margin: 47px 0 11px 0; 583 647 } … … 591 655 font-weight: bold; 592 656 line-height: 1.4; 593 657 594 658 padding: 0 0 8px 0; 595 659 596 660 border-bottom: 1px #dedede solid; 597 661 } … … 599 663 .secondary #s { 600 664 width: 78px; 601 665 602 666 border-radius: 2px; 603 667 -webkit-border-radius: 2px; … … 607 671 display: block; 608 672 float: right; 609 673 610 674 background: #e6e6e6; 611 675 612 676 font-size: 11px; 613 677 font-weight: bold; 614 678 line-height: 1; 615 679 616 680 text-shadow: 0 1px 0 #fff; 617 681 -webkit-text-shadow: 0 1px 0 #fff; 618 682 619 683 padding: 4px 7px 3px 7px; 620 684 621 685 border-radius: 23px; 622 686 -webkit-border-radius: 23px; … … 672 736 font-weight: bold; 673 737 line-height: 1; 674 738 675 739 margin: 0 5px 5px 0; 676 740 padding: 3px 5px; 677 741 678 742 border-radius: 2px; 679 743 -webkit-border-radius: 2px; 680 744 681 745 text-shadow: 0 1px 0 #fff; 682 746 -webkit-text-shadow: 0 1px 0 #fff; 683 747 } 684 748 685 .wpsc-tags li a:hover { 749 .wpsc-tags li a:hover { 686 750 text-shadow: none; 687 751 -webkit-text-shadow: none; … … 689 753 690 754 .home .main-content { 691 margin: 0 -25px 0 0;692 width: 750px;693 694 float: right;755 margin: 0; 756 width: calc( 100% - 180px); 757 758 float: left; 695 759 } 696 760 697 761 .home .main-content h3 { 698 762 font-weight: bold; 699 margin: 0 0 29px 0;763 margin: 0 0 29px 14px; 700 764 } 701 765 … … 711 775 712 776 list-style: none; 713 777 714 778 min-height: 310px; 715 width: 215px; 716 717 margin: 0 33px 40px 0; 718 padding: 0 0 10px 0; 779 width: 29%; 780 781 padding: 10px; 782 } 783 784 .wpsc-recent>li:first-child a { 785 display: inline-block; 786 max-height: 161px; 787 overflow: hidden; 719 788 } 720 789 … … 722 791 border-radius: 3px; 723 792 -webkit-border-radius: 3px; 724 793 725 794 box-shadow: 0px 1px 4px 0px rgba(0,0,0,0.35); 726 795 -webkit-box-shadow: 0px 1px 4px 0px rgba(0,0,0,0.35); … … 751 820 position: absolute; 752 821 bottom: 0; 753 height:auto; 822 height:auto; 754 823 border-top: 1px #EFEFEF solid; 755 824 padding: 5px 0 0 0; 756 825 text-align: right; 826 width: 80%; 827 margin-left: 5%; 757 828 } 758 829 759 830 /* Ratings */ 760 831 761 #pagebody .post-ratings img, 762 #pagebody .post-ratings-loading img, 832 #pagebody .post-ratings img, 833 #pagebody .post-ratings-loading img, 763 834 #pagebody .post-ratings-image img { 764 835 padding: 5px 2px 0 0; /* was margin */ … … 774 845 font-weight: bold; 775 846 margin: 20px 25px 100px 25px; 776 777 } 847 848 } 849 850 #wpsc-mobile-menu-button:before { 851 border: none; 852 box-sizing: border-box; 853 -moz-box-sizing: border-box; 854 color: #888; 855 content: '\f228'; 856 display: none; 857 float: left; 858 font: normal 30px/1 'Dashicons'; 859 height: 32px; 860 margin-right: -10px; 861 margin-top: 15px; 862 outline: none; 863 padding: 3px; 864 text-decoration: none; 865 vertical-align: middle; 866 width: 39px; 867 -webkit-font-smoothing: antialiased; 868 } 869 870 .archive a img.alignleft { 871 margin: 5px 20px 0 0; 872 } 873 874 .currentSiteRating { 875 display: none; 876 } 877 878 /* Large devices */ 879 @media ( max-width: 992px ) { 880 881 } 882 883 /* Medium devices */ 884 @media ( max-width: 768px ) { 885 .home .main-content { 886 padding: 0; 887 width: 100%; 888 } 889 890 .home .main-content h3 { 891 margin-top: 1.5em; 892 } 893 894 .wpsc-hero.group { 895 display: none !important; 896 } 897 898 .wpsc-business > li, 899 .wpsc-recadded > li { 900 width: 44% !important;; 901 } 902 903 .wpsc-business > li:last-child, 904 .wpsc-recadded > li:last-child { 905 display: none !important; 906 } 907 908 .leftsidebar { 909 background: #fff; 910 border: 1px #DFDFDF solid; 911 height: 100%; 912 margin-left: -210px; 913 margin-top: -1px; 914 min-height: 100vh; 915 padding: 20px; 916 } 917 918 #wpsc-mobile-menu-button:before { 919 display: inline-block; 920 } 921 922 .col-5 { 923 width: calc( 100% - 220px ); 924 } 925 926 .single .leftsidebar, 927 .archive .leftsidebar, 928 .page .leftsidebar, 929 .blog .leftsidebar { 930 margin-top: -41px; 931 } 932 933 .page-template-page-home .leftsidebar { 934 margin-top: -1px !important; 935 } 936 937 .page .storycontent { 938 padding-right: 0; 939 } 940 } 941 942 /* Small devices */ 943 @media ( max-width: 576px ) { 944 .wpsc-business > li, 945 .wpsc-recadded > li { 946 width: 100% !important; 947 } 948 949 .home .wpsc-recent > li { 950 text-align: center; 951 width: 44%; 952 } 953 954 .rightsidebar { 955 display: inline-block; 956 margin: 50px 0 0 0; 957 width: 100%; 958 clear: none; 959 float: none; 960 } 961 962 .rightsidebarwrapper { 963 padding: 0 14px 0 14px; 964 } 965 966 .col-5 { 967 width: 100%; 968 margin: 0; 969 padding: 0 14px 0 14px; 970 display: table-cell; 971 float: none; 972 } 973 974 .archive a img.alignleft { 975 width: 100%; 976 padding: 0; 977 margin: 0 0 14px 0; 978 } 979 980 .archive .story-excerpt { 981 margin: 0 0 14px 0; 982 } 983 } 984 985 /* Smaller devices */ 986 @media ( max-width: 340px ) { 987 .home .wpsc-recent > li { 988 width: 95%; 989 } 990 } 991
Note: See TracChangeset
for help on using the changeset viewer.