Commit graph

63 commits

Author SHA1 Message Date
8ad34a21d7
feat: add MathJax CSS for math rendering
Added a new MathJax CSS file to support enhanced math rendering in the frontend. The stylesheet includes specific styles and @font-face definitions to ensure consistent and proper display of mathematical expressions across various browsers.

Addresses visual rendering issues and improves compatibility with math content.
2024-08-03 16:22:04 +02:00
8574de341a
fix(pdf-download): remove preprocess_mathjax_content call
Removed the preprocess_mathjax_content function call before writing HTML content to the PDF. This resolves issues with content formatting and ensures that the PDF output matches the original post content more closely.
2024-08-03 15:37:52 +02:00
600aeba81e
fix(pdf-generation): apply content filters before conversion
Ensured content filters are applied before preprocessing for MathJax to maintain consistency with WordPress content hooks. This change enhances the fidelity of the PDF content by incorporating all WordPress content transformations.
2024-08-03 15:37:35 +02:00
9bf5f81c84
fix(pdf): preprocess MathJax in post content before PDF generation
Integrates MathJax content preprocessing into the PDF generation function to ensure that mathematical expressions are accurately rendered in the generated PDFs. This resolves issues where mathematical notations in posts were not displayed correctly in the PDFs.
2024-08-03 15:23:50 +02:00
02796a28d8
fix(mathjax): correct regex to match LaTeX expressions
Updated the regular expression pattern to accurately match
LaTeX expressions delimited by $$ instead of single $ symbols.
This resolves incorrect parsing of MathJax content wrapped with
double dollar signs, improving the rendering accuracy in HTML.
2024-08-03 15:14:43 +02:00
93a8489fcf
feat: integrate MathJax support for LaTeX rendering
Added a customizer setting for the URL of a MathJax-node server. Implemented functions to render LaTeX expressions using the specified MathJax server, handling errors gracefully. Also included processing to convert LaTeX in HTML content before displaying it on the site.
2024-08-03 14:34:53 +02:00
3f6f3fbbb5
feat: add initial project screenshot
Added screenshot file to showcase the UI. This will help in visually documenting the current state of the project and facilitate easier understanding for new developers and stakeholders.
2024-08-03 13:45:17 +02:00
6f3351c7c4
fix(nav-accessibility): add aria and role attributes
Enhanced dropdown accessibility by adding `aria-labelledby` to the dropdown menu and `role="button"` to toggler links. This conforms to ARIA standards and Bootstrap 5, ensuring better support for assistive technologies.
2024-08-03 13:21:47 +02:00
72b54fa59e
chore: upgrade Bootstrap to v5.3.3
Upgraded Bootstrap from v4.5.2 to v5.3.3 to leverage the latest features and improvements, including updated utility classes, new variable names, and enhanced component behaviors. This update also adds support for enhanced dark mode theming.

Note: Review any custom CSS as there may be breaking changes due to this version upgrade.
2024-08-03 13:14:21 +02:00
aa7420cae6
feat(README): update to include PDF generation and access control
Updated the README to include details on the new feature for automatic PDF generation for articles using `tecnickcom/tcpdf`. Also added information on access control for articles, highlighting the distinction between open access and subscription-only content. These updates provide clarity on new functionalities and help users understand content accessibility.
2024-08-03 13:08:16 +02:00
640879a2b9
feat: customize articles per page for article archives
Added a function to set the number of articles displayed per page to 9 for the 'article' post type archive page. This enhances the user experience by providing a consistent number of posts per page when viewing article archives.

Also refactored code for better readability and added missing newlines.
2024-08-03 13:03:50 +02:00
9ece16c681
feat: improve pagination styling and functionality
Updated pagination implementation in `archive-article.php` and `archive-letter.php` to use global `$wp_query` for accurate page counts and improved navigation. Enhanced user experience by adding more pagination options such as `prev_next`, `show_all`, and customizable text for previous and next links.

Added new styles to `style.css` to center pagination, improve link aesthetics, and highlight the current page.

This enhancement provides a more user-friendly interface and consistent appearance across archive pages.
2024-08-03 12:59:01 +02:00
7ab01eec96
style(navwalker): remove unnecessary blank lines
Cleaned up unnecessary blank lines in the Bootstrap Navwalker class. This enhances code readability and maintains consistent coding style throughout the file. No functional changes were made.
2024-08-03 07:49:25 +02:00
d8fbff525d
fix(nav): handle missing walker property in args
Improves robustness by checking if the walker property exists in args before accessing it. This prevents potential undefined property errors when args is missing the walker attribute. Ensures better compatibility with different menu configurations and avoids runtime issues.
2024-08-03 07:49:06 +02:00
f2a32cf134
style(layout): widen content columns in article and letter pages
Increased the column width from col-lg-8 to col-lg-10 in both article and letter templates to improve readability and make better use of screen real estate on larger devices. This change enhances the visual presentation of content without compromising layout integrity.
2024-08-02 23:13:53 +02:00
5201a8a7d6
feat: enhance image and caption styling in CSS
Added styling for images and captions to improve visual aesthetics and consistency. Images now have a maximum width of 100%, a border, padding, and a subtle box shadow. Captions are centered, italicized, and have appropriate margin and padding, enhancing readability and appearance.
2024-08-02 23:08:05 +02:00
e2530b5da7
feat: bypass real MIME type check for uploads
Added a function to disable the real MIME type check via the 'wp_check_filetype_and_ext' filter. This adjustment helps to allow files that pass the extension check but not the MIME type check, addressing issues with certain file uploads failing due to MIME type inconsistencies.
2024-08-02 22:50:26 +02:00
2b03226a50
feat: allow Python file uploads
Extended the MIME types to permit Python (.py) file uploads.
This enhances flexibility for users needing to upload scripts
via the media library. No other functionalities were altered.
2024-08-02 22:45:55 +02:00
9885d43548
feat: add alignment utility classes for flexible layout
Introduced .alignright, .alignleft, and .aligncenter utility classes
to enable flexible alignment of elements. These classes assist with
consistent layout styling by allowing elements to float left or right
with appropriate margins or align centrally.

Addresses layout requirements for dynamic content placement.
2024-08-02 22:41:56 +02:00
934db5dcc4
feat(pdf): improve PDF title rendering and margins
Adjusted PDF title rendering to use HTML for better styling.
Set top margin to 50 units for improved layout consistency.

This improves the visual presentation of PDF titles, adhering more closely to typographical standards.
2024-08-02 22:18:58 +02:00
77949dd0c1
feat: customize PDF download header/footer
Introduced a new PaperPDF class extending TCPDF to add custom headers and footers, including the site's logo and name in the header and page numbers in the footer. Updated the PDF creation process in functions.php to utilize this new class, enhancing the branding of downloaded PDFs.
2024-08-02 22:05:49 +02:00
4dbf366b1c
feat: enhance PDF styling for abstract and content sections
- Replaced abstract section header with inline bold text to improve readability
- Removed redundant section header code for both abstract and content
- Added color change to distinguish abstract text

This improves the user experience by providing more visually appealing PDF documents.
2024-08-02 22:03:20 +02:00
32cbcedc52
fix: ensure autoloader is available for TCPDF check
Added a condition to require the composer autoload file if the autoloader is available before checking for the TCPDF class. This change ensures that the TCPDF library is properly loaded, preventing potential errors caused by missing dependencies.
2024-08-02 21:56:10 +02:00
d901010399
feat: add PDF generation and download feature
- Introduced dependency management with Composer for easier package handling.
- Added TCPDF library to generate PDFs of articles.
- Implemented PDF download functionality via a custom endpoint.
- Included admin notices to ensure Composer dependencies are installed.
- Updated single article view with a download button for PDFs.
2024-08-02 21:48:07 +02:00
72ef4d8c0c
fix: update DOI URL to use freedoi.org
Replaces the dynamic origin-based DOI URL with a standardized URL using freedoi.org. This ensures consistent and accurate DOI links, improving user experience and reliability.
2024-06-22 20:09:20 +02:00
b60e6c8c33
fix: conditionally render social media links in footer
Updated the footer to conditionally display social media icons based on theme settings. This prevents empty links from appearing when no URL is set, improving UX and avoiding potential navigation issues.
2024-06-22 10:59:53 +02:00
142e96e22a
feat: enhance login screen customization
Added functions to customize the login screen with a custom logo, a custom URL for the logo, and a title attribute. This provides a branded and cohesive user experience on the login page. Reformatted existing functions to improve readability and consistency.
2024-06-22 09:53:44 +02:00
1ce2fc1332
fix: update attachment URL handling for better security
Changed the logic for generating attachment URLs to use a sanitized URL via `esc_url` and a custom `/download/` path. This improves security by avoiding direct links to attachments and provides a more controlled download path. This change ensures URLs are correctly sanitized to prevent potential security vulnerabilities.
2024-06-22 09:50:04 +02:00
8211a7957c
feat: add custom file download endpoint
Implemented a custom download endpoint with user authentication checks and file serving functionality. Ensures only logged-in users can download files. Improves security and user experience by redirecting unauthenticated users to the login page before accessing files.
2024-06-22 09:46:51 +02:00
5c8cb16515
fix(style): add muted text class for note to subscribers
Improves readability by applying the `text-muted` class to the note about subscriber-only content. This change ensures the note does not overshadow other important content.
2024-06-22 09:26:09 +02:00
7e94c6758b
feat(meta-boxes): add file attachment and open access options
Added two new meta boxes for articles: 'File Attachment' and 'Open Access'. The 'File Attachment' box allows users to upload and manage article attachments, while the 'Open Access' box indicates if an article is open access.

Updated the single article template to display the abstract, attachment links, and access restrictions based on user login status or open access flag.

This enhances content management and access control for articles.
2024-06-22 09:18:59 +02:00
802cee2067
feat: disable comments site-wide in admin and frontend
Introduced multiple functions to comprehensively disable comments across the site. This includes removing support for comments and trackbacks from all post types, preventing new comments and pings from being open, hiding existing comments from view, and eliminating comment-related admin menu items, dashboard widgets, and admin bar options. This change aims to streamline the user experience by fully deactivating comments functionalities where they are not needed.
2024-06-21 21:29:12 +02:00
08a84c225d
docs: update README with new features and installation guide
Added details about displaying the latest articles on the homepage,
author fields, and call-to-action buttons. Included a new installation
guide and license information. Enhances user understanding and ease of
theme setup.
2024-06-20 21:44:49 +02:00
a1fa110001
feat(archive-letter): improve UI and readability
Refactored layout of letters archive to use Bootstrap list group for a cleaner and more responsive design. Simplified author display to show 'et al.' when multiple authors are present, enhancing readability. Added margin top for consistent spacing.

Implements better UX for browsing letters.
2024-06-20 21:02:27 +02:00
3cb11088a5
feat(template): Display author/date in muted text style
Wrapped author name and date in a <p> tag with a muted text class
to enhance readability and visual hierarchy on the 'single-letter'
template. Additionally, added missing newline after 'register_post_type'
call in functions.php for better code formatting.

Addresses visual consistency and readability issues.
2024-06-20 20:59:45 +02:00
fb8e7870bc
feat: add custom post type for letters to the editor
Updated README to mention the new custom post type for letters to the editor. Adjusted function naming in `functions.php` to reflect the new feature. This enhancement allows users to manage and display editorial letters more effectively.
2024-06-20 20:54:23 +02:00
5adf97494d
feat: add Letters to the Editor post type
Introduced a new custom post type "Letters to the Editor" with corresponding archive and single templates. Enhanced post type functionality includes support for featured images, authors, excerpts, and comments. Added pagination and a meta box for article authors to improve user interaction and content management.
2024-06-20 20:53:04 +02:00
1d2734bf00
fix(routing): accommodate longer DOI prefixes in URLs
Modified the DOI rewrite rule to accept prefixes with more than four digits. This change ensures compatibility with a wider range of DOIs, preventing potential 404 errors and improving the robustness of URL parsing.
2024-06-20 15:55:36 +02:00
85ce309dc2
docs: update DOI info in README.md
Made the DOI prefix configurable in the Customizer for flexibility. Added a DOI resolver link example for clarity on how DOIs forward to respective articles.
2024-06-20 15:52:07 +02:00
ce8a5d25e4
feat: Add DOI customization support and docs
Introduce DOI prefix customization via the WordPress Customizer,
allowing users to set and modify the DOI prefix dynamically. Updated
DOI generation to use the customizable prefix. Also, added README.md
file documenting the theme's features and custom post types.
2024-06-20 15:48:14 +02:00
1feacfbb39
feat: add 'View All Articles' button to homepage
Included a new button beneath the article previews on the homepage, allowing users to easily access the full archive of articles. This enhances navigation and improves user experience by providing a clear call-to-action for discovering more content.
2024-06-20 15:30:57 +02:00
988c775d27
feat: add dashed underline for DOI links
Introduced new styling for DOI links with a dashed underline to differentiate them visually from regular hyperlinks. This enhances user experience by clearly indicating actionable elements specific to DOIs.
2024-06-20 15:26:25 +02:00
3bd51e66ed
feat: add DOI copy-to-clipboard functionality
Introduced a new JavaScript file to handle the DOI copy-to-clipboard feature. Updated the 'single-article.php' template to include a clickable DOI link that copies the DOI to the clipboard and displays a confirmation message. Enhances user convenience by simplifying the process of copying DOIs.
2024-06-20 15:24:22 +02:00
ac0a7eb942
feat: add search functionality to article archive
Split the article archive filters into two columns. The left column now contains the publication status filter, while the right column introduces a new search bar for querying articles. This improves user experience by allowing more precise and convenient filtering of articles. No visual changes are made to the existing filter functionality.
2024-06-20 15:05:39 +02:00
d87996372e
fix(header): remove duplicate title tag
Removed the redundant title tag from the header to prevent duplication and potential SEO issues. The title is already dynamically handled elsewhere in the theme. Reducing clutter and improving maintainability.
2024-06-20 15:03:35 +02:00
bc77ba4aba
feat: enhance title rendering with wp_title function
Updated the header to use wp_title for more flexible and SEO-friendly title formatting. This change improves the handling of page titles by generating titles dynamically based on the context, providing better SEO and user experience.
2024-06-20 15:02:13 +02:00
98a3faf4ed
fix(article): add status label in article metadata
Included a "Status:" label in the article metadata section to clearly indicate the publication status. This improves readability and user experience by explicitly naming the metadata field. No functional changes to the data retrieval process.
2024-06-20 14:54:40 +02:00
4310ea6fb8
feat: make article titles and thumbnails clickable
Enhanced user navigation by wrapping article titles and thumbnails within anchor tags linked to the respective articles' permalink in archive-article.php and index.php. Updated styles for article titles to improve the visual appeal.
2024-06-20 14:52:37 +02:00
b3246b8549
feat(meta): consolidate save logic for article meta boxes
Merged saving logic for article authors and DOI into a single function
to streamline and reduce redundant code. This ensures that both
meta fields are consistently handled during post save operations.
2024-06-20 14:47:10 +02:00
33f4d65bed
feat: add DOI functionality to articles
Introduced DOI meta box with a generator button in the article editor to assign and display DOIs for articles. Added functionality to save DOI values and correspondingly set up rewrite rules and redirections based on DOI queries. Display DOI on the article single view page for enhanced article identification and accessibility.
2024-06-20 14:44:20 +02:00