@@ 554-588 (lines=35) @@ | ||
551 | } |
|
552 | ||
553 | /** Show search bar for PRs */ |
|
554 | public static function show_search_prs() { |
|
555 | $manifest = Jetpack_Beta::get_beta_manifest(); |
|
556 | if ( empty( $manifest->pr ) ) { |
|
557 | return; |
|
558 | } |
|
559 | ?> |
|
560 | <div class="dops-navigation"> |
|
561 | <div class="dops-section-nav has-pinned-items"> |
|
562 | <div class="dops-section-nav__panel"> |
|
563 | <div class="is-pinned is-open dops-search" role="search"> |
|
564 | <div aria-controls="search-component" aria-label="<?php esc_attr_e( 'Open Search', 'jetpack-beta' ); ?>" tabindex="-1"> |
|
565 | <svg class="gridicon gridicons-search dops-search-open__icon" height="24" |
|
566 | viewbox="0 0 24 24" width="24"> |
|
567 | <g> |
|
568 | <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> |
|
569 | </g> |
|
570 | </svg> |
|
571 | </div> |
|
572 | <input aria-hidden="false" class="dops-search__input" id="search-component-prs" |
|
573 | placeholder="<?php esc_attr_e( 'Search for a Jetpack Feature Branch', 'jetpack-beta' ); ?>" role="search" type="search" value=""> |
|
574 | <span aria-controls="search-component" id="search-component-prs-close" aria-label="<?php esc_attr_e( 'Close Search', 'jetpack-beta' ); ?>" |
|
575 | tabindex="0"> |
|
576 | <svg class="gridicon gridicons-cross dops-search-close__icon" height="24" |
|
577 | viewbox="0 0 24 24" width="24"> |
|
578 | <g> |
|
579 | <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> |
|
580 | </g> |
|
581 | </svg> |
|
582 | </span> |
|
583 | </div> |
|
584 | </div> |
|
585 | </div> |
|
586 | </div> |
|
587 | <?php |
|
588 | } |
|
589 | ||
590 | /** Show search bar for tags */ |
|
591 | public static function show_search_org_tags() { |
|
@@ 591-625 (lines=35) @@ | ||
588 | } |
|
589 | ||
590 | /** Show search bar for tags */ |
|
591 | public static function show_search_org_tags() { |
|
592 | $org_data = Jetpack_Beta::get_org_data(); |
|
593 | if ( empty( $org_data->versions ) ) { |
|
594 | return; |
|
595 | } |
|
596 | ?> |
|
597 | <div class="dops-navigation"> |
|
598 | <div class="dops-section-nav has-pinned-items"> |
|
599 | <div class="dops-section-nav__panel"> |
|
600 | <div class="is-pinned is-open dops-search" role="search"> |
|
601 | <div aria-controls="search-component" aria-label="<?php esc_attr_e( 'Open Search', 'jetpack-beta' ); ?>" tabindex="-1"> |
|
602 | <svg class="gridicon gridicons-search dops-search-open__icon" height="24" |
|
603 | viewbox="0 0 24 24" width="24"> |
|
604 | <g> |
|
605 | <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> |
|
606 | </g> |
|
607 | </svg> |
|
608 | </div> |
|
609 | <input aria-hidden="false" class="dops-search__input" id="search-component-tags" |
|
610 | placeholder="<?php esc_attr_e( 'Search for a Jetpack tag', 'jetpack-beta' ); ?>" role="search" type="search" value=""> |
|
611 | <span aria-controls="search-component" id="search-component-tags-close" aria-label="<?php esc_attr_e( 'Close Search', 'jetpack-beta' ); ?>" |
|
612 | tabindex="0"> |
|
613 | <svg class="gridicon gridicons-cross dops-search-close__icon" height="24" |
|
614 | viewbox="0 0 24 24" width="24"> |
|
615 | <g> |
|
616 | <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> |
|
617 | </g> |
|
618 | </svg> |
|
619 | </span> |
|
620 | </div> |
|
621 | </div> |
|
622 | </div> |
|
623 | </div> |
|
624 | <?php |
|
625 | } |
|
626 | ||
627 | /** Display autoupdate toggle */ |
|
628 | public static function show_toggle_autoupdates() { |