@@ 567-601 (lines=35) @@ | ||
564 | } |
|
565 | ||
566 | /** Show search bar for PRs */ |
|
567 | public static function show_search_prs() { |
|
568 | $manifest = Utils::get_beta_manifest(); |
|
569 | if ( empty( $manifest->pr ) ) { |
|
570 | return; |
|
571 | } |
|
572 | ?> |
|
573 | <div class="dops-navigation"> |
|
574 | <div class="dops-section-nav has-pinned-items"> |
|
575 | <div class="dops-section-nav__panel"> |
|
576 | <div class="is-pinned is-open dops-search" role="search"> |
|
577 | <div aria-controls="search-component" aria-label="<?php esc_attr_e( 'Open Search', 'jetpack-beta' ); ?>" tabindex="-1"> |
|
578 | <svg class="gridicon gridicons-search dops-search-open__icon" height="24" |
|
579 | viewbox="0 0 24 24" width="24"> |
|
580 | <g> |
|
581 | <path d="M21 19l-5.154-5.154C16.574 12.742 17 11.42 17 10c0-3.866-3.134-7-7-7s-7 3.134-7 7 3.134 7 7 7c1.42 0 2.742-.426 3.846-1.154L19 21l2-2zM5 10c0-2.757 2.243-5 5-5s5 2.243 5 5-2.243 5-5 5-5-2.243-5-5z"></path> |
|
582 | </g> |
|
583 | </svg> |
|
584 | </div> |
|
585 | <input aria-hidden="false" class="dops-search__input" id="search-component-prs" |
|
586 | placeholder="<?php esc_attr_e( 'Search for a Jetpack Feature Branch', 'jetpack-beta' ); ?>" role="search" type="search" value=""> |
|
587 | <span aria-controls="search-component" id="search-component-prs-close" aria-label="<?php esc_attr_e( 'Close Search', 'jetpack-beta' ); ?>" |
|
588 | tabindex="0"> |
|
589 | <svg class="gridicon gridicons-cross dops-search-close__icon" height="24" |
|
590 | viewbox="0 0 24 24" width="24"> |
|
591 | <g> |
|
592 | <path d="M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12 19 6.41z"></path> |
|
593 | </g> |
|
594 | </svg> |
|
595 | </span> |
|
596 | </div> |
|
597 | </div> |
|
598 | </div> |
|
599 | </div> |
|
600 | <?php |
|
601 | } |
|
602 | ||
603 | /** Show search bar for tags */ |
|
604 | public static function show_search_org_tags() { |
|
@@ 604-638 (lines=35) @@ | ||
601 | } |
|
602 | ||
603 | /** Show search bar for tags */ |
|
604 | public static function show_search_org_tags() { |
|
605 | $org_data = Utils::get_org_data(); |
|
606 | if ( empty( $org_data->versions ) ) { |
|
607 | return; |
|
608 | } |
|
609 | ?> |
|
610 | <div class="dops-navigation"> |
|
611 | <div class="dops-section-nav has-pinned-items"> |
|
612 | <div class="dops-section-nav__panel"> |
|
613 | <div class="is-pinned is-open dops-search" role="search"> |
|
614 | <div aria-controls="search-component" aria-label="<?php esc_attr_e( 'Open Search', 'jetpack-beta' ); ?>" tabindex="-1"> |
|
615 | <svg class="gridicon gridicons-search dops-search-open__icon" height="24" |
|
616 | viewbox="0 0 24 24" width="24"> |
|
617 | <g> |
|
618 | <path d="M21 19l-5.154-5.154C16.574 12.742 17 11.42 17 10c0-3.866-3.134-7-7-7s-7 3.134-7 7 3.134 7 7 7c1.42 0 2.742-.426 3.846-1.154L19 21l2-2zM5 10c0-2.757 2.243-5 5-5s5 2.243 5 5-2.243 5-5 5-5-2.243-5-5z"></path> |
|
619 | </g> |
|
620 | </svg> |
|
621 | </div> |
|
622 | <input aria-hidden="false" class="dops-search__input" id="search-component-tags" |
|
623 | placeholder="<?php esc_attr_e( 'Search for a Jetpack tag', 'jetpack-beta' ); ?>" role="search" type="search" value=""> |
|
624 | <span aria-controls="search-component" id="search-component-tags-close" aria-label="<?php esc_attr_e( 'Close Search', 'jetpack-beta' ); ?>" |
|
625 | tabindex="0"> |
|
626 | <svg class="gridicon gridicons-cross dops-search-close__icon" height="24" |
|
627 | viewbox="0 0 24 24" width="24"> |
|
628 | <g> |
|
629 | <path d="M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12 19 6.41z"></path> |
|
630 | </g> |
|
631 | </svg> |
|
632 | </span> |
|
633 | </div> |
|
634 | </div> |
|
635 | </div> |
|
636 | </div> |
|
637 | <?php |
|
638 | } |
|
639 | ||
640 | /** Display autoupdate toggle */ |
|
641 | public static function show_toggle_autoupdates() { |