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