Skip to content

Expression Engine plugin that returns a class based on the given date and current date (Late, soon, on-time).

Notifications You must be signed in to change notification settings

michaelespinosa/Relative-Due-Date-Plugin

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 

Repository files navigation

Relative Due Date Plugin

There's not much to document here. It just returns a class based on the given date and current date (Late - date has past, soon - within 5 days, on-time - more than 5 days).

Requirements:

Expression Engine 1.7

Plugin Tag:

	{exp:rel_ddate due_date="{custom_entry_date format="%d %F %Y"}"}

Use:

	<ul>
		<li class="{exp:rel_ddate due_date="{custom_entry_date format="%d %F %Y"}"}">
			Sample to-do
		</ul>
	</ul>

Output:

	<ul>
		<li class="soon">
			Sample to-do
		</ul>
	</ul>

About

Expression Engine plugin that returns a class based on the given date and current date (Late, soon, on-time).

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages