From 7aa3d9f87309620b54dc9ff5f726dc22d1e6ea0c Mon Sep 17 00:00:00 2001 From: maTh <1645099+math-GH@users.noreply.github.com> Date: Mon, 1 Jul 2024 01:13:54 +0200 Subject: New: Sharing articles from the article title line (#6395) * enable option * Update entry_header.phtml * frss.css * fix print sharing * Light refactoring * fix --------- Co-authored-by: Alexandre Alapetite --- app/views/configure/display.phtml | 4 ++- app/views/helpers/index/normal/entry_bottom.phtml | 34 +------------------- app/views/helpers/index/normal/entry_header.phtml | 13 ++++++++ .../helpers/index/normal/entry_share_menu.phtml | 37 ++++++++++++++++++++++ 4 files changed, 54 insertions(+), 34 deletions(-) create mode 100644 app/views/helpers/index/normal/entry_share_menu.phtml (limited to 'app/views') diff --git a/app/views/configure/display.phtml b/app/views/configure/display.phtml index ce140c439..9584f37ea 100644 --- a/app/views/configure/display.phtml +++ b/app/views/configure/display.phtml @@ -212,7 +212,9 @@ data-leave-validation="topline_favorite ?>" /> - + topline_sharing ? ' checked="checked"' : '' ?> + data-leave-validation="topline_sharing ?>" /> topline_summary ? 'checked="checked"' : '' ?> data-leave-validation="topline_summary ?>" /> diff --git a/app/views/helpers/index/normal/entry_bottom.phtml b/app/views/helpers/index/normal/entry_bottom.phtml index 21bd1d355..f8cf0eda3 100644 --- a/app/views/helpers/index/normal/entry_bottom.phtml +++ b/app/views/helpers/index/normal/entry_bottom.phtml @@ -76,39 +76,7 @@ - - + renderHelper('index/normal/entry_share_menu'); ?> diff --git a/app/views/helpers/index/normal/entry_header.phtml b/app/views/helpers/index/normal/entry_header.phtml index e4befb346..bcd4a7c98 100644 --- a/app/views/helpers/index/normal/entry_header.phtml +++ b/app/views/helpers/index/normal/entry_header.phtml @@ -3,6 +3,7 @@ /** @var FreshRSS_View $this */ $topline_read = FreshRSS_Context::userConf()->topline_read; $topline_favorite = FreshRSS_Context::userConf()->topline_favorite; + $topline_sharing = FreshRSS_Context::userConf()->topline_sharing; $topline_website = FreshRSS_Context::userConf()->topline_website; $topline_thumbnail = FreshRSS_Context::userConf()->topline_thumbnail; $topline_summary = FreshRSS_Context::userConf()->topline_summary; @@ -72,6 +73,18 @@ endif; ?>   + +
  • + +
  • + diff --git a/app/views/helpers/index/normal/entry_share_menu.phtml b/app/views/helpers/index/normal/entry_share_menu.phtml new file mode 100644 index 000000000..62d1f5244 --- /dev/null +++ b/app/views/helpers/index/normal/entry_share_menu.phtml @@ -0,0 +1,37 @@ + + -- cgit v1.2.3