Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 0 additions & 9 deletions add_attachment_btn_plugin/src/Extension/AddAttachment.php
Original file line number Diff line number Diff line change
Expand Up @@ -169,17 +169,8 @@ public function onDisplay($name)
return;
}

// Add the regular css file
HTMLHelper::stylesheet('media/com_attachments/css/attachments_list.css');
HTMLHelper::stylesheet('media/com_attachments/css/attachments_list_dark.css');
HTMLHelper::stylesheet('media/com_attachments/css/add_attachment_button.css');

// Handle RTL styling (if necessary)
$lang = $this->app->getLanguage();
if ($lang->isRTL()) {
HTMLHelper::stylesheet('media/com_attachments/css/attachments_list_rtl.css');
HTMLHelper::stylesheet('media/com_attachments/css/add_attachment_button_rtl.css');
}

// Load the language file from the frontend
$lang->load('com_attachments', JPATH_ADMINISTRATOR . '/components/com_attachments');
Expand Down
20 changes: 0 additions & 20 deletions attachments_component/media/css/add_attachment_button.css

This file was deleted.

10 changes: 0 additions & 10 deletions attachments_component/media/css/add_attachment_button_rtl.css

This file was deleted.

This file was deleted.

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -108,21 +108,12 @@ public function onDisplay($name, $id)
return false;
}

// Add the regular css file
HTMLHelper::stylesheet('media/com_attachments/css/attachments_list.css');
HTMLHelper::stylesheet('media/com_attachments/css/attachments_list_dark.css');
HTMLHelper::stylesheet('media/com_attachments/css/add_attachment_button.css');

// Get ready for language things
$lang = $this->app->getLanguage();
if (!$lang->load('plg_editors-xtd_insert_attachments_id_token', dirname(__FILE__))) {
// If the desired translation is not available, at least load the English
$lang->load('plg_editors-xtd_insert_attachments_id_token', JPATH_ADMINISTRATOR, 'en-GB');
}
if ($lang->isRTL()) {
HTMLHelper::stylesheet('media/com_attachments/css/attachments_list_rtl.css');
HTMLHelper::stylesheet('media/com_attachments/css/add_attachment_button_rtl.css');
}

// Load the language file from the frontend
$lang->load('com_attachments', JPATH_ADMINISTRATOR . '/components/com_attachments');
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -145,17 +145,6 @@ function insertAttachmentsToken(editorName) {

$doc->addScriptDeclaration($js);

// Add the regular css file
HTMLHelper::stylesheet('media/com_attachments/css/attachments_list.css');
HTMLHelper::stylesheet('media/com_attachments/css/attachments_list_dark.css');
HTMLHelper::stylesheet('media/com_attachments/css/insert_attachments_token_button.css');

// Handle RTL styling (if necessary)
if ($lang->isRTL()) {
HTMLHelper::stylesheet('media/com_attachments/css/attachments_list_rtl.css');
HTMLHelper::stylesheet('media/com_attachments/css/insert_attachments_token_button_rtl.css');
}

$button = new CMSObject();
$button->modal = false;
$button->class = 'btn';
Expand Down