- C-a == Ctrl-a
- M-a == Alt-a
:q close
:w write/saves
:wa[!] write/save all windows [force]
:wq write/save and close
<?php if (tribe_get_start_date() !== tribe_get_end_date() ) { ?> | |
<dt class="event-label event-label-start"><?php _e('Starts:', 'tribe-events-calendar') ?></dt> | |
<dd class="event-meta event-meta-start"><meta itemprop="startDate" content="<?php echo tribe_get_start_date( null, false, 'Y-m-d' ); ?>"/><?php echo tribe_get_start_date( null, false, 'F j, Y' ); ?></dd> | |
<dt class="event-label event-label-from"><?php _e('From:', 'tribe-events-calendar') ?></dt> | |
<dd class="event-meta event-meta-from"><meta itemprop="fromTime" content="<?php echo tribe_get_start_date( null, false, 'g:ia' ); ?>"/><?php echo tribe_get_start_date( null, false, 'g:ia' ); ?> to <?php echo tribe_get_end_date( null, false, 'g:ia'); ?></dd> | |
<?php } else { ?> | |
<dt class="event-label event-label-date"><?php _e('Date:', 'tribe-events-calendar') ?></dt> | |
<dd class="event-meta event-meta-date"><meta itemprop="startDate" content="<?php echo tribe_get_start_date( null, false, 'Y-m-d' ); ?>"/><?php echo tribe_get_start_date(); ?></d |
@media only screen and (min-width: 320px) { | |
/* Small screen, non-retina */ | |
} | |
@media | |
only screen and (-webkit-min-device-pixel-ratio: 2) and (min-width: 320px), | |
only screen and ( min--moz-device-pixel-ratio: 2) and (min-width: 320px), | |
only screen and ( -o-min-device-pixel-ratio: 2/1) and (min-width: 320px), |
<form action="." method="post"> | |
<noscript>You must <a href="http://www.enable-javascript.com" target="_blank">enable JavaScript</a> in your web browser in order to pay via Stripe.</noscript> | |
<input | |
type="submit" | |
value="Pay with Card" | |
data-key="PUBLISHABLE STRIPE KEY" | |
data-amount="500" | |
data-currency="cad" | |
data-name="Example Company Inc" |
title: Fieldset Kitchen Sink | |
fields: | |
status: | |
type: status | |
_template: | |
type: templates |
This is a hack on Statamic's Suggest fieldtype to allow options to be passed in via a separate file. This way global variables can populate the options.
Paste the code from ft.suggest.hack.php
into cp/fieldtypes/suggest/ft.suggest.php
after the "Hardcoded list of options" section.
In your fieldset, do something like this:
brand:
display: Brand
_gaq.push(['_trackEvent', 'Donate error', 'field validation error', 'email']); |