Esempio n. 1
0
echo esc_attr($rule_type);
?>
][][custom][duration][hours]"
			   data-field="custom-duration-hours"
			   value="{{custom.duration.hours}}"
			/>
		<?php 
_ex('hours', 'custom recurrence duration', 'the-events-calendar');
?>

		<input type="number"
			   min="0"
			   max="59"
			   step="1"
			   tabindex="<?php 
tribe_events_tab_index();
?>
"
			   name="recurrence[<?php 
echo esc_attr($rule_type);
?>
][][custom][duration][minutes]"
			   data-field="custom-duration-minutes"
			   value="{{custom.duration.minutes}}"
			/>
		<?php 
_ex('minutes', 'custom recurrence duration', 'the-events-calendar');
?>
	</span>
</div>
Esempio n. 2
0
    public function setup_overwrite_geoloc($post)
    {
        if ($post->post_type != Tribe__Events__Main::VENUE_POST_TYPE) {
            return;
        }
        $overwrite_coords = (bool) get_post_meta($post->ID, self::OVERWRITE, true);
        $_lat = get_post_meta($post->ID, self::LAT, true);
        $_lng = get_post_meta($post->ID, self::LNG, true);
        ?>
		<tr id="overwrite_coordinates">
			<td class='tribe-table-field-label'><?php 
        esc_attr_e('Use latitude + longitude', 'tribe-events-calendar');
        ?>
:</td>
			<td>
				<input tabindex="<?php 
        tribe_events_tab_index();
        ?>
" type="checkbox" id="VenueOverwriteCoords" name="venue[OverwriteCoords]" value="true" <?php 
        checked($overwrite_coords);
        ?>
 />

				<input class=" " disabled title='<?php 
        esc_attr_e('Latitude', 'tribe-events-calendar');
        ?>
' placeholder='<?php 
        esc_attr_e('Latitude', 'tribe-events-calendar');
        ?>
' tabindex="<?php 
        tribe_events_tab_index();
        ?>
" type="text" id="VenueLatitude" name="venue[Lat]" value="<?php 
        echo esc_attr(is_numeric($_lat) ? (double) $_lat : '');
        ?>
" />
				<input class=" " disabled title='<?php 
        esc_attr_e('Longitude', 'tribe-events-calendar');
        ?>
' placeholder='<?php 
        esc_attr_e('Longitude', 'tribe-events-calendar');
        ?>
' tabindex="<?php 
        tribe_events_tab_index();
        ?>
" type="text" id="VenueLongitude" name="venue[Lng]" value="<?php 
        echo esc_attr(is_numeric($_lng) ? (double) $_lng : '');
        ?>
" />
			</td>
		</tr>
		<?php 
    }