From 3d3fcd7334dc9123005d7d736b1a243113d67902 Mon Sep 17 00:00:00 2001 From: Mario Date: Fri, 2 Aug 2024 08:06:15 +0000 Subject: fa2bi: some sed woodoo on templates and manual fixes in js and php files --- Zotlabs/Widget/Activity_filter.php | 12 +++---- include/conversation.php | 2 +- view/js/acl.js | 12 +++---- view/js/main.js | 12 +++---- view/js/mod_help.js | 4 +-- view/theme/redbasic/css/style.css | 4 +++ view/tpl/abook_edit.tpl | 58 +++++++++++++++--------------- view/tpl/acl_selector.tpl | 12 +++---- view/tpl/activity_filter_widget.tpl | 4 +-- view/tpl/admin_accounts.tpl | 12 +++---- view/tpl/admin_channels.tpl | 6 ++-- view/tpl/admin_plugins.tpl | 8 ++--- view/tpl/admin_plugins_details.tpl | 2 +- view/tpl/admin_profiles.tpl | 4 +-- view/tpl/admin_queue.tpl | 2 +- view/tpl/attach_edit.tpl | 6 ++-- view/tpl/blocklist.tpl | 8 ++--- view/tpl/cal_event.tpl | 2 +- view/tpl/cdav_addressbook.tpl | 52 +++++++++++++-------------- view/tpl/cdav_widget_addressbook.tpl | 12 +++---- view/tpl/cdav_widget_calendar.tpl | 2 +- view/tpl/channel.tpl | 10 +++--- view/tpl/channel_activities.tpl | 2 +- view/tpl/channel_activities_photos.tpl | 2 +- view/tpl/channels.tpl | 2 +- view/tpl/chat.tpl | 40 ++++++++++----------- view/tpl/chatroom_new.tpl | 2 +- view/tpl/chatrooms.tpl | 4 +-- view/tpl/cloud_actionspanel.tpl | 4 +-- view/tpl/cloud_directory.tpl | 28 +++++++-------- view/tpl/cloud_header.tpl | 8 ++--- view/tpl/comment_item.tpl | 18 +++++----- view/tpl/common_pills.tpl | 8 ++--- view/tpl/common_tabs.tpl | 2 +- view/tpl/connection_template.tpl | 6 ++-- view/tpl/connections.tpl | 10 +++--- view/tpl/connstatus.tpl | 2 +- view/tpl/contact_edit.tpl | 14 ++++---- view/tpl/contact_edit_header.tpl | 2 +- view/tpl/contact_edit_tools.tpl | 2 +- view/tpl/cover_photo.tpl | 4 +-- view/tpl/defperms.tpl | 2 +- view/tpl/directory_header.tpl | 2 +- view/tpl/direntry.tpl | 4 +-- view/tpl/dreport.tpl | 2 +- view/tpl/edpost_head.tpl | 2 +- view/tpl/event.tpl | 6 ++-- view/tpl/event_form.tpl | 38 ++++++++++---------- view/tpl/event_item_header.tpl | 2 +- view/tpl/events-js.tpl | 12 +++---- view/tpl/events_cal-js.tpl | 10 +++--- view/tpl/events_tools_side.tpl | 4 +-- view/tpl/field_acheckbox.tpl | 8 ++--- view/tpl/follow.tpl | 2 +- view/tpl/generic_addon_settings.tpl | 2 +- view/tpl/group_edit.tpl | 4 +-- view/tpl/group_side.tpl | 6 ++-- view/tpl/help.tpl | 2 +- view/tpl/install.tpl | 2 +- view/tpl/install_checks.tpl | 8 ++--- view/tpl/install_db.tpl | 2 +- view/tpl/install_settings.tpl | 2 +- view/tpl/invite.tpl | 2 +- view/tpl/item_attach.tpl | 2 +- view/tpl/item_categories.tpl | 2 +- view/tpl/item_filer.tpl | 2 +- view/tpl/jot-header.tpl | 12 +++---- view/tpl/jot.tpl | 64 +++++++++++++++++----------------- view/tpl/layoutlist.tpl | 10 +++--- view/tpl/like_noshare.tpl | 4 +-- view/tpl/locmanage.tpl | 6 ++-- view/tpl/menuedit.tpl | 4 +-- view/tpl/menulist.tpl | 10 +++--- view/tpl/mitemedit.tpl | 4 +-- view/tpl/mitemlist.tpl | 8 ++--- view/tpl/navbar_tucson.tpl | 32 ++++++++--------- view/tpl/oauth.tpl | 4 +-- view/tpl/oauth2.tpl | 4 +-- view/tpl/oauth2testvehicle.tpl | 2 +- view/tpl/page_display.tpl | 2 +- view/tpl/page_display_empty.tpl | 2 +- view/tpl/pdledit_gui_item.tpl | 2 +- view/tpl/peoplefind.tpl | 2 +- view/tpl/photo_album.tpl | 6 ++-- view/tpl/photo_drop.tpl | 2 +- view/tpl/photo_view.tpl | 24 ++++++------- view/tpl/photos_recent.tpl | 2 +- view/tpl/photos_upload.tpl | 4 +-- view/tpl/pinned_item.tpl | 42 +++++++++++----------- view/tpl/posted_date_widget.tpl | 6 ++-- view/tpl/profile_advanced.tpl | 12 +++---- view/tpl/profile_edit.tpl | 34 +++++++++--------- view/tpl/profile_listing_header.tpl | 2 +- view/tpl/profile_photo.tpl | 4 +-- view/tpl/profile_vcard.tpl | 14 ++++---- view/tpl/profile_vcard_short.tpl | 4 +-- view/tpl/regate_post.tpl | 2 +- view/tpl/saved_searches.tpl | 2 +- view/tpl/searchbox.tpl | 4 +-- view/tpl/settings.tpl | 2 +- view/tpl/settings_account.tpl | 2 +- view/tpl/settings_privacy.tpl | 2 +- view/tpl/sharedwithme.tpl | 6 ++-- view/tpl/show_thing.tpl | 4 +-- view/tpl/suggest_friends.tpl | 4 +-- view/tpl/thing_edit.tpl | 2 +- view/tpl/thing_input.tpl | 2 +- view/tpl/totp.tpl | 2 +- view/tpl/uexport.tpl | 12 +++---- view/tpl/usermenu.tpl | 2 +- view/tpl/webpage_export_list.tpl | 2 +- view/tpl/webpage_import.tpl | 2 +- view/tpl/webpagelist.tpl | 10 +++--- view/tpl/website_portation_tools.tpl | 4 +-- view/tpl/xchan_vcard.tpl | 2 +- 115 files changed, 468 insertions(+), 464 deletions(-) diff --git a/Zotlabs/Widget/Activity_filter.php b/Zotlabs/Widget/Activity_filter.php index a8a00bda6..6884963d4 100644 --- a/Zotlabs/Widget/Activity_filter.php +++ b/Zotlabs/Widget/Activity_filter.php @@ -42,7 +42,7 @@ class Activity_filter { $tabs[] = [ 'label' => t('Direct Messages'), - 'icon' => 'envelope-o', + 'icon' => 'envelope', 'url' => z_root() . '/' . $cmd . '/?f=&dm=1', 'sel' => $dm_active, 'title' => t('Show direct (private) messages') @@ -51,7 +51,7 @@ class Activity_filter { if(feature_enabled(local_channel(),'events_tab')) { $tabs[] = [ 'label' => t('Events'), - 'icon' => 'calendar', + 'icon' => 'calendar-date', 'url' => z_root() . '/' . $cmd . '/?verb=%2EEvent', 'sel' => $events_active, 'title' => t('Show posts that include events') @@ -93,7 +93,7 @@ class Activity_filter { $tabs[] = [ 'id' => 'privacy_groups', 'label' => t('Privacy Groups'), - 'icon' => 'users', + 'icon' => 'person', 'url' => '#', 'sel' => (($filter_active == 'group') ? true : false), 'title' => t('Show my privacy groups'), @@ -128,7 +128,7 @@ class Activity_filter { $tabs[] = [ 'id' => 'forums', 'label' => t('Forums'), - 'icon' => 'comments-o', + 'icon' => 'chat-quote', 'url' => '#', 'sel' => (($filter_active == 'forums') ? true : false), 'title' => t('Show forums'), @@ -161,7 +161,7 @@ class Activity_filter { $tabs[] = [ 'label' => t('Personal Posts'), - 'icon' => 'user-circle', + 'icon' => 'person-circle', 'url' => z_root() . '/' . $cmd . '/?f=&conv=1', 'sel' => $conv_active, 'title' => t('Show posts that mention or involve me') @@ -233,7 +233,7 @@ class Activity_filter { if($filter_active) { $reset = [ 'label' => '', - 'icon' => 'remove', + 'icon' => 'x-lg', 'url'=> z_root() . '/' . $cmd, 'sel'=> '', 'title' => t('Remove active filter') diff --git a/include/conversation.php b/include/conversation.php index 2d45009a5..e4b39d5b1 100644 --- a/include/conversation.php +++ b/include/conversation.php @@ -999,7 +999,7 @@ function builtin_activity_puller($item, &$conv_responses) { $name = (($item['author']['xchan_name']) ? $item['author']['xchan_name'] : t('Unknown')); - $moderate = ((intval($item['item_blocked']) === ITEM_MODERATED) ? '' : ''); + $moderate = ((intval($item['item_blocked']) === ITEM_MODERATED) ? '' : ''); $url = (($item['author_xchan'] && $item['author']['xchan_photo_s']) ? '' diff --git a/view/js/acl.js b/view/js/acl.js index ee6cb062f..a96c39090 100644 --- a/view/js/acl.js +++ b/view/js/acl.js @@ -300,7 +300,7 @@ ACL.prototype.update_view = function(value) { that.update_select('public'); /* jot acl */ - $('#jot-perms-icon, #dialog-perms-icon, #' + that.form_id[0].id + ' .jot-perms-icon').removeClass('fa-lock').addClass('fa-unlock'); + $('#jot-perms-icon, #dialog-perms-icon, #' + that.form_id[0].id + ' .jot-perms-icon').removeClass('bi-lock').addClass('bi-unlock'); $('#jot-perms-icon').removeClass('jot-lock-warn'); $('#dbtn-jotnets').show(); $('.profile-jot-net input').attr('disabled', false); @@ -314,7 +314,7 @@ ACL.prototype.update_view = function(value) { that.update_select(that.selected_id); /* jot acl */ - $('#jot-perms-icon, #dialog-perms-icon, #' + that.form_id[0].id + ' .jot-perms-icon').removeClass('fa-unlock').addClass('fa-lock'); + $('#jot-perms-icon, #dialog-perms-icon, #' + that.form_id[0].id + ' .jot-perms-icon').removeClass('bi-unlock').addClass('bi-lock'); $('#dbtn-jotnets').hide(); $('.profile-jot-net input').attr('disabled', 'disabled'); } @@ -326,7 +326,7 @@ ACL.prototype.update_view = function(value) { that.update_select('onlyme'); /* jot acl */ - $('#jot-perms-icon, #dialog-perms-icon, #' + that.form_id[0].id + ' .jot-perms-icon').removeClass('fa-unlock').addClass('fa-lock'); + $('#jot-perms-icon, #dialog-perms-icon, #' + that.form_id[0].id + ' .jot-perms-icon').removeClass('bi-unlock').addClass('bi-lock'); $('#dbtn-jotnets').hide(); $('.profile-jot-net input').attr('disabled', 'disabled'); } @@ -349,7 +349,7 @@ ACL.prototype.update_view = function(value) { } /* jot acl */ - $('#jot-perms-icon, #dialog-perms-icon, #' + that.form_id[0].id + ' .jot-perms-icon').removeClass('fa-unlock').addClass('fa-lock'); + $('#jot-perms-icon, #dialog-perms-icon, #' + that.form_id[0].id + ' .jot-perms-icon').removeClass('bi-unlock').addClass('bi-lock'); $('#dbtn-jotnets').hide(); $('.profile-jot-net input').attr('disabled', 'disabled'); } @@ -366,12 +366,12 @@ ACL.prototype.update_view = function(value) { /* jot acl */ if(that.allow_gid.length === 0 && that.allow_cid.length === 0 && that.deny_gid.length === 0 && that.deny_cid.length === 0 && value === 'custom') { - $('#jot-perms-icon, #dialog-perms-icon, #' + that.form_id[0].id + ' .jot-perms-icon').removeClass('fa-lock').addClass('fa-unlock'); + $('#jot-perms-icon, #dialog-perms-icon, #' + that.form_id[0].id + ' .jot-perms-icon').removeClass('bi-lock').addClass('bi-unlock'); $('#dbtn-jotnets').show(); $('.profile-jot-net input').attr('disabled', false); } else { - $('#jot-perms-icon, #dialog-perms-icon, #' + that.form_id[0].id + ' .jot-perms-icon').removeClass('fa-unlock').addClass('fa-lock'); + $('#jot-perms-icon, #dialog-perms-icon, #' + that.form_id[0].id + ' .jot-perms-icon').removeClass('bi-unlock').addClass('bi-lock'); $('#dbtn-jotnets').hide(); $('.profile-jot-net input').attr('disabled', 'disabled'); } diff --git a/view/js/main.js b/view/js/main.js index aa6b72dda..ee07e2733 100644 --- a/view/js/main.js +++ b/view/js/main.js @@ -114,7 +114,7 @@ $(document).ready(function() { } if ( typeof(window.tao.zin) == 'undefined' ) { tao.zin = { syslc: '', syslcs: {}, htm: '', me: '', debug: '' }; - tao.zin.axim = '
'; + tao.zin.axim = ''; $('.navbar-app[href*="/lang"]').attr({"aria-expand": "true", "id": "zintog"}) .removeAttr('href').addClass('zinlcx zinlcxp dropdown dropdown-toggle').css('cursor','pointer'); $('.nav-link[href*="/lang"]').addClass('zinlcxmi zinlcx').removeAttr('href').css('cursor','pointer'); @@ -129,9 +129,9 @@ $(document).ready(function() { tao.zin.re = JSON.parse(re); tao.zin.syslc = tao.zin.re.lc; tao.zin.syslcs = tao.zin.re.lcs; - tao.zin.htm = '