Skip to content

Commit

Permalink
feat: use content tags in import fields
Browse files Browse the repository at this point in the history
  • Loading branch information
HardeepAsrani committed Dec 5, 2024
1 parent bd3134b commit 4d0c4b8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions includes/admin/feedzy-rss-feeds-import.php
Original file line number Diff line number Diff line change
Expand Up @@ -367,10 +367,10 @@ public function feedzy_import_feed_options() {
$import_translation_lang = get_post_meta( $post->ID, 'import_auto_translation_lang', true );
// default values so that post is not created empty.
if ( empty( $import_title ) ) {
$import_title = '[#item_title]';
$import_title = '[[{"value":"%5B%7B%22id%22%3A%22%22%2C%22tag%22%3A%22item_title%22%2C%22data%22%3A%7B%7D%7D%5D"}]]';
}
if ( empty( $import_content ) ) {
$import_content = '[#item_content]';
$import_content = '[[{"value":"%5B%7B%22id%22%3A%22%22%2C%22tag%22%3A%22item_content%22%2C%22data%22%3A%7B%7D%7D%5D"}]]';
}

$import_link_author_admin = get_post_meta( $post->ID, 'import_link_author_admin', true );
Expand Down
2 changes: 1 addition & 1 deletion includes/views/import-metabox-edit.php
Original file line number Diff line number Diff line change
Expand Up @@ -436,7 +436,7 @@ class="dashicons dashicons-arrow-down-alt2"></span>
</div>
<div class="fz-input-group-right fz-title-action-tags">
<div class="dropdown">
<button type="button" class="btn btn-outline-primary btn-add-fields dropdown-toggle" aria-haspopup="true" aria-expanded="false">
<button type="button" class="btn btn-outline-primary btn-add-fields dropdown-toggle" aria-haspopup="true" aria-expanded="false">
<?php esc_html_e( 'Insert Tag', 'feedzy-rss-feeds' ); ?> <span class="dashicons dashicons-plus-alt2"></span>
</button>
<div class="dropdown-menu dropdown-menu-right">
Expand Down

0 comments on commit 4d0c4b8

Please sign in to comment.