Skip to content

Commit

Permalink
added general archvie title option
Browse files Browse the repository at this point in the history
  • Loading branch information
eclipsesrl committed Sep 24, 2019
1 parent b5ddae8 commit cdc96a9
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 5 deletions.
5 changes: 4 additions & 1 deletion README.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ Donate link: https://www.udesly.com/
Tags: webflow to wordpress, editor, page builder, layout design, udesly, webflow
Requires at least: 5.0
Tested up to: 5.2.3
Stable tag: 2.0.0.27
Stable tag: 2.0.0.28
License: GPLv3 or later
License URI: https://www.udesly.com/terms-conditions-of-use/#udesly-wordpress-plugin
Requires PHP: 5.6.0
Expand Down Expand Up @@ -80,6 +80,9 @@ That's all!

Absolutely! You can use the Udesly Adapter to create more than one website.
== Changelog ==
= 2.0.0.28 =
* Added general archive title option

= 2.0.0.27 =
* fixed frontend editor with videos

Expand Down
2 changes: 1 addition & 1 deletion includes/Blog/Blog.php
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ public function filter_title($title)
}
} elseif (is_post_type_archive()) {
/* translators: Post type archive title. 1: Post type name */
$title = sprintf(__('Archives: %s'), post_type_archive_title('', false));
$title = sprintf($this->settings['general_archive_title'], post_type_archive_title('', false));
} elseif (is_tax()) {
$tax = get_taxonomy(get_queried_object()->taxonomy);
/* translators: Taxonomy term archive title. 1: Taxonomy singular name, 2: Current taxonomy term */
Expand Down
11 changes: 10 additions & 1 deletion includes/Dashboard/Views/Settings.php
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,14 @@ private static function blog_tab()
<?php _e('Archive Title', UDESLY_TEXT_DOMAIN); ?>
</Help>
</Material-Input>
<Material-Input name="blog.general_archive_title" required minlength="3" type="text">
<Help>
<template v-slot:help>
<?php _e("Customise the title you will see on general archive title.", UDESLY_TEXT_DOMAIN); ?>
</template>
<?php _e('General Archive Title', UDESLY_TEXT_DOMAIN); ?>
</Help>
</Material-Input>
<template v-slot:header>
<h3><?php _e("Archive Description", UDESLY_TEXT_DOMAIN); ?></h3>
<p> <?php _e("Customize your blog archive description", UDESLY_TEXT_DOMAIN); ?></p>
Expand Down Expand Up @@ -517,7 +525,8 @@ public static function get_blog_settings()
"tag_title" => "Tag: %s",
"excerpt_length" => 20,
"excerpt_more" => "...",
"show_categories" => "all"
"show_categories" => "all",
"general_archive_title" => "Archives: %s"
));
}

Expand Down
4 changes: 2 additions & 2 deletions udesly-adapter-plugin.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
* Plugin Name: Udesly Adapter
* Plugin URI: https://www.udesly.com
* Description: This is a support plugin for Udesly (Webflow to WordPress converter) that allows you to enable additional features for your theme.
* Version: 2.0.0.27
* Version: 2.0.0.28
* Author: Udesly
* Author URI: https://www.udesly.com
* License: GPL-2.0+
Expand All @@ -29,7 +29,7 @@
// Constants
defined('UDESLY_ADAPTER_PLUGIN_DIRECTORY_PATH') ?: define('UDESLY_ADAPTER_PLUGIN_DIRECTORY_PATH', plugin_dir_path(__FILE__));
defined('UDESLY_ADAPTER_PLUGIN_DIRECTORY_URL') ?: define('UDESLY_ADAPTER_PLUGIN_DIRECTORY_URL', plugin_dir_url(__FILE__));
defined('UDESLY_ADAPTER_VERSION') ?: define('UDESLY_ADAPTER_VERSION', "2.0.0.27");
defined('UDESLY_ADAPTER_VERSION') ?: define('UDESLY_ADAPTER_VERSION', "2.0.0.28");
defined('UDESLY_TEXT_DOMAIN') ?: define('UDESLY_TEXT_DOMAIN', "udesly-adapter-plugin");

defined('UDESLY_ADAPTER_PLUGIN_MISC_PATH') ?: define('UDESLY_ADAPTER_PLUGIN_MISC_PATH', plugin_dir_path(__FILE__) . 'includes/misc/');
Expand Down

0 comments on commit cdc96a9

Please sign in to comment.