Commit graph

89 commits

Author SHA1 Message Date
81d567447b
feat(article): add display of article keywords
Introduced functionality to display article keywords on single article pages by retrieving metadata and rendering it alongside the abstract. This enriches article content with relevant keyword information, enhancing SEO and user navigation.
2024-09-17 15:54:00 +02:00
a5bcb0342b
fix: remove duplicate author display logic
Removed redundant fallback to `the_author()` when displaying article authors. The authors are already sourced from post meta, ensuring accurate and consistent author data presentation. Streamlined code for better readability and maintainability.
2024-09-17 15:51:56 +02:00
9e7dc2c85c
fix(navwalker): correct file path in require statement
The incorrect file path to the navwalker class was causing issues during theme setup. Adjusted the path to correctly reference 'classes/navwalker.php'. This aligns the file path with the directory structure, ensuring smooth functionality of the theme.
2024-09-17 15:47:54 +02:00
e7a4f5923b
feat: add keywords field to articles
Introduced a new field to allow the addition of keywords to articles. Updated the meta box functions to include a UI for managing keywords in the article editor. Enhanced the save functionality to handle the new keywords field, ensuring data is stored securely.

This change enables better content categorization and searchability by allowing authors to specify relevant keywords.
2024-09-17 15:44:30 +02:00
744f31477d
docs: update README with website link
Added a hyperlink to the Duck Behavior Journal website in the README for better accessibility and user convenience. This improvement helps users navigate directly to the website from the documentation.
2024-09-03 21:05:09 +02:00
3b51684b3a
refactor: reorganize class files for better structure
Moved class files into a dedicated 'classes' directory to improve project organization. Updated file paths in functions.php to reflect these changes. This helps maintain a cleaner directory structure and separates core files from auxiliary classes.
2024-08-23 20:13:45 +02:00
a09cd80a50
fix(footer): remove default links from social media icons
Removed default '#' links for social media icons in the footer to ensure that each icon only appears if a valid URL is provided. This change avoids rendering misleading placeholders and enhances user experience by preventing non-functional links.
2024-08-23 19:18:24 +02:00
c3914f083d
fix: add clear property to floated elements
Added the clear property to both .alignright and .alignleft classes to prevent content wrapping issues. This change ensures that elements following these classes start on a new line, maintaining the intended layout and improving readability.
2024-08-18 22:02:46 +02:00
c0665e0444
feat: enhance blockquote styling
Added customized styles for blockquotes, including padding, background color, and a border to improve readability and visual prominence. This enhances the user experience by making blockquotes more distinctive and aesthetically pleasing.
2024-08-17 16:56:40 +02:00
7a88715a69
feat: enhance theme styling and update version to 1.1
Revamped the overall styling of body text, headers, images, forms,
buttons, and cards to improve readability and modernize the UI
aesthetics. Added new classes for card components, updated the footer
styling, and introduced hover states for interactive elements.
Incremented theme version to 1.1 to reflect these changes.
2024-08-17 13:20:25 +02:00
0a31885c8a
fix: prevent empty author names from displaying as 'Unknown'
Enhanced lead author display logic to ensure that an empty string
is not shown as the author's name. Addresses instances where an
empty array element could bypass previous checks, leading to
inaccurate 'Unknown' labels.
2024-08-08 21:32:15 +02:00
e9857658fc
feat(admin): add lead author columns to articles and letters
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.
2024-08-08 21:22:55 +02:00
5522a4599e
fix(pdf-download): avoid empty abstract in PDF output
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.
2024-08-07 16:12:18 +02:00
4de71503e8
fix(lightbox): improve compatibility and responsiveness
Updated lightbox initialization to use jQuery namespace for better compatibility. Tweaked CSS to use viewport units for enhanced responsiveness. These changes aim to prevent potential conflicts and adapt lightbox content better to different screen sizes.
2024-08-06 20:26:13 +02:00
60b731c1c6
feat: add lightbox functionality for image viewing
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.
2024-08-06 20:16:54 +02:00
fd6fbf2827
fix: remove margin-bottom on h5 inside a tags
Adjusted the margin-bottom of h5 elements nested within a tags to zero.
This prevents unexpected spacing issues with elements following these
headers, ensuring better layout consistency and alignment.
2024-08-06 19:58:31 +02:00
1128527e5d
fix(styles): ensure MathJax display inline-block
Added a rule to set '.MJXc-display' elements to 'inline-block' to address layout issues where MathJax content was disrupting page flow. This change ensures better alignment and presentation of MathJax elements.
2024-08-03 20:36:34 +02:00
97935f9401
fix(query): ensure accurate post type exclusion logic
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.
2024-08-03 20:04:41 +02:00
bee50a461d
fix(customizer): clarify label for disabling posts option
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.
2024-08-03 19:56:52 +02:00
3c3c337ad7
feat: add option to disable posts in admin interface
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.
2024-08-03 19:56:12 +02:00
1c631f5a47
refactor: rename unregister_post_type function
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.
2024-08-03 19:46:24 +02:00
acdff85d5a
feat: add customizer option to disable post type
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.
2024-08-03 19:42:41 +02:00
c738ed6f89
refactor: extract publication status formatting
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.
2024-08-03 17:12:13 +02:00
594a694178
feat(taxonomy): add color picker to term edit and creation
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.
2024-08-03 17:03:29 +02:00
9f6fdeb85e
feat(pdf-generation): add custom MathJax CSS to PDF content
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.
2024-08-03 16:49:51 +02:00
e641e332d1
feat: add MathJax styles to enhance mathematical rendering
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.
2024-08-03 16:23:00 +02:00
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