Skip to content

Commit

Permalink
feat: remove case tag filter
Browse files Browse the repository at this point in the history
  • Loading branch information
xuliwenwenwen committed Apr 1, 2024
1 parent 39785b4 commit 6176472
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 17 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,11 @@
margin: auto;

@include media-min($medium) {
grid-template-columns: 1fr 1fr 1fr;
grid-template-columns: 1fr 1fr;
}

@include media-min($large) {
max-width: 780px;
max-width: 500px;
}
}

Expand Down
2 changes: 1 addition & 1 deletion pingcap-jp/inc/PingCAP/Components/Cards/CardCaseStudy.php
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ public function __construct(array $params)

$this->title = Arrays::get_value_as_string($params, 'title', fn () => get_the_title($this->post_id));
$this->permalink = Arrays::get_value_as_string($params, 'permalink', fn () => get_the_permalink($this->post_id));
$this->button_text = Arrays::get_value_as_string($params, 'button_text', __('View Case Study', Constants\TextDomains::DEFAULT));
$this->button_text = Arrays::get_value_as_string($params, 'button_text', __('ユースケースを読む', Constants\TextDomains::DEFAULT));
$this->customer_name = Arrays::get_value_as_string($params, 'customer_name', $customer_term->name ?? '');
$this->customer_logo = $params['customer_logo'] ?? ($customer_term ? Taxonomies\Customer::getLogoImageACFObject($customer_term->term_id) : null);
$this->is_featured = Arrays::get_value_as_bool($params, 'is_featured', false);
Expand Down
14 changes: 0 additions & 14 deletions pingcap-jp/inc/PingCAP/Components/PostsList/PostsListCaseStudy.php
Original file line number Diff line number Diff line change
Expand Up @@ -115,12 +115,6 @@ public function render(): void
$tax_params
);

$cur_tag = CPT\CaseStudy::getTagQueryParamValue();
$tag_options = Taxonomy::get_taxonomy_filter_options(
Constants\Taxonomies::BLOG_TAG,
$tax_params
);

$cur_search = CPT\CaseStudy::getSearchQueryParamValue();

if ($featured_ids) {
Expand Down Expand Up @@ -161,14 +155,6 @@ public function render(): void
}
?>
</select>
<select class="banner-case-study-archive__filter-control" name="filter_tag" id="filter_tag" aria-label="<?php esc_attr_e('Tag', Constants\TextDomains::DEFAULT); ?>">
<option value=""><?php esc_html_e('Filter by Tag', Constants\TextDomains::DEFAULT); ?></option>
<?php
foreach ($tag_options as $option) {
echo $option->render($cur_tag); // phpcs:ignore
}
?>
</select>
<?php
Component::render(Components\UI\InputWithIcon::class, [
'is_form' => true,
Expand Down

0 comments on commit 6176472

Please sign in to comment.