Opis
DX Out of Date allows you to display a notification box on your posts
when a given amount of time has passed. Quite handy when writing tutorials
or any content that might get outdated due to external factors – now you
could automatically notify your readers after a given period.
You can configure the expiration time of your posts in the admin panel. Valid time units are days, months and years.
Currently the plugin options are:
- Period – “amount” of “duration” units (1 to 40)
- Duration frame (days, months, years)
- Message – the message format for the notification box
- Enable by default – a checkbox for enabling the message on all posts by default
- Enable post status in Dashboard – a checkbox for adding an extra column in the Dashboard for the outdated status of posts
- Post types to affect – allows you to choose which post types for display the message for
- Position of the message – choose whether the message should be displayed at the top or at the bottom of a post’s content
- Background color – Choose a background color for the message
- Text color – Choose a text color for the message
- Custom CSS – Add custom CSS rules to the message box
Snimke zaslona
Instalacija
- Upload the
dx-out-of-date
folder in the/wp-content/plugins/
directory - Activate the
DX Out of Date
plugin through the ‘Plugins’ menu in WordPress - Go to Settings -> DX Out of Date
- Configure your time period and customization settings
- Save the form and you’re good to go!
Other ways to display the “Out of Date” box snippet:
- Use the
[out_of_date]
shortcode - Call the DX_Out_Of_Date::outdated_box_generator() function right before rendering the post
ČPP
-
How to configure the duration/period settings?
-
These are the options that define what an “outdated” post means. For instance, selecting
months
inDuration frame
and6
inPeriod
means that every post older than 6 months would be qualified as “outdated”. -
Can I limit the message to show only on certain posts/post types?
-
From the Out of Date Settings page, you can choose which post types will have the outdated message (Default is Posts only).
In the Post Edit page you have a checkbox, which toggles the message for that specific post. The Default state of that checkbox can be changed
from the Plugin Settings page via the “Enable the message by default on all outdated posts” checkbox. -
Can I customize the Outdated Message?
-
You can customize the content of the message from the “Message” field in the Out of Date Settings page. On top of that, you can
change the Background and Text colors to your liking. -
Why would I need this plugin?
-
If you write tutorials or articles related to products/services in a given state,
updating them could affect the validity of your resources. A good example is one of
the resources that led to building the plugin – Brandon’s blog,
with his custom approach for marking tutorials as outdated.
Recenzije
Nema recenzija za ovaj dodatak.
Suradnici i Programeri
“DX Out of Date” je softver otvorenog koda. Sljedeće osobe su doprinijele ovom dodatku.
SuradniciPrevedite “DX Out of Date” na svoj jezik.
Zainteresirani ste za razvoj?
Pregledajte kôd, pogledajte SVN spremišteili se pretplatite na dnevnik razvoja od RSS.
Dnevnik promjena
2.1.
- Tested with WordPress 6.6
- Update Requires version to 5.0
- Update Requires PHP version to 7.4
2.0
- Applied WPCS to all files
- Removed unused CSS files
- Optimized CSS delivery
- Replaced deprecated functions
- Added doc comments to all functions
- Updated screenshots
- Updated readme.md file
- Code speed optimizations
- Removed notification from archive views
- Fixed wrong translation domains
- Fixed typos
- Made the default options make more sense
- Improved the way we check if a post is expired
- Added a “Settings” link for the plugin in the Plugins page
- Added support for Block-based themes (e.g. Twenty Twenty Two)
- Improved the “Enable Message by Default” functionality
- Added an option to choose which post types to display the notification for
1.0.1
- Fixed notice when banner is not visible
1.0
- Added new section – Enable the display of the status in post
- Refactor section – Choose a skin for your template
- Added new section – Choose the position of the message
0.3
- First stable plugin version
- Admin settings
- Single view display
- Skins
- Time options