Stash 2.3.4 (beta) or later
/layouts/
standard.html
/partials/
listing.html
| {exp:low_events:calendar | |
| events_field="cf_events_date_time" | |
| date="{freebie_4}" | |
| } | |
| <table class="calendar" cellspacing="0" cellpadding="0"> | |
| <thead> | |
| <tr id="month_pager"> | |
| <th colspan="1" class="previous"><a href="{structure:page:uri} | |
| on/{prev_month_url}" title="{prev_month format='%F %Y'}">←</a></th> | |
| <th colspan="5" class="month_title"><a href="{structure:page:uri} |
Stash 2.3.4 (beta) or later
/layouts/
standard.html
/partials/
listing.html
| <?php | |
| /* From https://www.usps.com/send/official-abbreviations.htm */ | |
| $us_state_abbrevs_names = array( | |
| 'AL'=>'ALABAMA', | |
| 'AK'=>'ALASKA', | |
| 'AS'=>'AMERICAN SAMOA', | |
| 'AZ'=>'ARIZONA', | |
| 'AR'=>'ARKANSAS', |
| #!/bin/sh | |
| for file in "$@"; do | |
| outfile="${file%%.pdf}.jpg" | |
| echo "Thumbnailing $file to $outfile" | |
| convert -resize 300 "$file[0]" "$outfile" | |
| done |
| <?php | |
| /** | |
| * Change the brightness of the passed in color | |
| * | |
| * $diff should be negative to go darker, positive to go lighter and | |
| * is subtracted from the decimal (0-255) value of the color | |
| * | |
| * @param string $hex color to be modified | |
| * @param string $diff amount to change the color |
| $("form :input").each(function(index, elem) { | |
| var eId = $(elem).attr("id"); | |
| var label = null; | |
| if (eId && (label = $(elem).parents("form").find("label[for="+eId+"]")).length == 1) { | |
| $(elem).attr("placeholder", $(label).html()); | |
| $(label).remove(); | |
| } | |
| }); |
| <?xml version="1.0" encoding="UTF-8"?> | |
| <rss version="2.0" | |
| xmlns:content="http://purl.org/rss/1.0/modules/content/" | |
| xmlns:dsq="http://www.disqus.com/" | |
| xmlns:dc="http://purl.org/dc/elements/1.1/" | |
| xmlns:wp="http://wordpress.org/export/1.0/" | |
| > | |
| <channel> | |
| <item> | |
| <!-- title of article --> |
| <?php | |
| // Dynamic paths for cross-server compatibility | |
| $protocol = (isset($_SERVER["HTTPS"]) && $_SERVER["HTTPS"] == "on") ? "https://" : "http://"; | |
| $base_url = $protocol . $_SERVER['HTTP_HOST']; | |
| $base_path = $_SERVER['DOCUMENT_ROOT']; | |
| $system_folder = "system"; | |
| $images_folder = "images"; | |
| $images_path = $base_path . "/" . $images_folder; |