Introduced custom columns in the admin list view for both articles and letters to display the lead author. This enhancement improves clarity by directly showing the lead author and removes the default author column. The new columns are populated based on post metadata.
Added conditional check to ensure the abstract is only included in the PDF if it exists. This prevents empty or malformed sections when post excerpts are not provided, improving the readability and quality of the generated PDF documents.
Introduced a new lightbox feature to enhance the image viewing experience. Added a new JavaScript file to handle lightbox interactions, including opening and closing actions. Updated the footer to include the lightbox HTML structure and enhanced the CSS to style the lightbox overlay and content. Registered the new script in WordPress functions.
Addresses improved user engagement by providing a more immersive image viewing experience.
Updated logic to properly exclude posts from main queries based on theme settings. This change ensures that only posts are excluded when the 'disable_posts' setting is enabled, preventing unintended behavior for other post types.
Updated the label for the customizer setting to 'Disable Post content type' for increased clarity and maintained code consistency. Also removed an unnecessary whitespace line in the toolbar function.
Introduced new functionality to allow disabling of posts via the theme customizer. This includes removing posts from the admin menu, toolbar, and excluding them from queries when the setting is enabled. Also added a redirect to the custom post type creation page to improve user experience.
Renamed unregister_post_type to process_unregister_post_type
to enhance readability and clarity regarding its purpose. This
change ensures that the function's name better reflects its
role in handling the unregistration process of the post type
based on customizer settings.
No change in functionality was introduced. Resolves ambiguity
for future maintenance.
Introduced a new customizer setting to disable posts. This includes:
- New customizer settings and controls for enabling or disabling posts.
- Functions to unregister the post type and remove it from the admin menu when disabled.
- Post exclusion from front-end queries when disabled.
Provides flexibility for sites that may not need the post functionality.
Moved code for fetching and displaying publication status terms into a reusable function `display_publication_status_terms`. This simplifies template files by reducing redundancy and enhances maintainability. The new function also supports displaying terms with associated colors.
Integrated a color picker for the publication status taxonomy terms.
- Added color fields to both term edit and add new term screens.
- Enqueued color picker script and styles.
- Implemented saving mechanism for color data.
This enhances user experience by allowing custom colors assignment to taxonomy terms.
Integrates MathJax CSS directly into the PDF content to ensure consistent mathematical styling and formatting. This addresses visual discrepancies in PDF documents that include mathematical expressions.
Included MathJax CSS to the theme's enqueued styles to improve the display of mathematical content. This ensures better formatting and readability of mathematical expressions throughout the theme.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
- 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.
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.
- 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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
Switched the default hero image from 'assets/hero.jpg' to 'assets/img/hero.png' to reflect the new file organization and ensure the correct image is displayed. This change prevents broken images on the front end and improves user experience.
Enabled pagination in the article archive template to improve navigation and user experience. Updated functions to include pagination support in the theme setup. This change will help users browse through multiple pages of articles more conveniently.
Introduced a hierarchical 'publication status' taxonomy for the 'article' post type, providing a structured way to categorize publication states. Updated front-end views to display the publication status of articles both in listings and on the single article page.
This enhancement improves the classification and visibility of articles based on their publication status, aiding in better content organization and user navigation.
Enhanced article previews with excerpts and cleaned up date rendering. Implemented option to remove authors in meta box for better user control. Improves overall usability and experience.
Added a custom post type 'article' including templates for index, archive, and single views. Enhanced article metadata handling with a custom meta box for authors. Updated homepage to feature articles instead of generic posts. This provides a more specialized structure and better organization for journal content.
- Set up a new WordPress theme with custom logo, header image, and menus
- Implement the WP Bootstrap Navwalker for improved navigation
- Add Bootstrap and jQuery for styling and functionality
- Customize hero section via the Customizer API
- Include footer with customizable text and social media links
- Integrate featured articles and page templates
- Enhance styles with a dedicated CSS file
References: #123, #124
This addition provides a modern, responsive design tailored to the Duck Behavior Journal, enhancing user engagement and site navigation.