Skip to content

Commit

Permalink
refactor: remove display icon (#1256)
Browse files Browse the repository at this point in the history
  • Loading branch information
NiclasNorin authored Jan 16, 2025
1 parent 28f640a commit f6c610b
Showing 1 changed file with 0 additions and 30 deletions.
30 changes: 0 additions & 30 deletions library/Customizer/Sections/Module/Posts.php
Original file line number Diff line number Diff line change
Expand Up @@ -78,35 +78,5 @@ public function __construct(string $sectionID)
]
],
]);

KirkiField::addField([
'type' => 'switch',
'settings' => 'mod_posts_display_post_icon',
'label' => esc_html__('Display term icon', 'municipio'),
'description' => esc_html__('Display an icon on the post if the post has a term with an icon set', 'municipio'),
'section' => $sectionID,
'default' => 'off',
'priority' => 10,
'choices' => [
'on' => __('On', 'municipio'),
'off' => __('Off', 'municipio'),
],
'output' => [
[
'type' => 'component_data',
'dataKey' => 'displayIcon',
'context' => [
['context' => 'module.posts.segment', 'operator' => '=='],
['context' => 'module.posts.block', 'operator' => '=='],
['context' => 'module.posts.collection__item', 'operator' => '=='],
['context' => 'module.manual-input.card', 'operator' => '=='],
['context' => 'module.manual-input.collection__item', 'operator' => '=='],
['context' => 'module.manual-input.block', 'operator' => '=='],
['context' => 'module.manual-input.segment', 'operator' => '=='],
['context' => 'module.posts.index', 'operator' => '==']
],
],
],
]);
}
}

0 comments on commit f6c610b

Please sign in to comment.