-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathuh-registration-php.php
More file actions
92 lines (67 loc) · 3.99 KB
/
uh-registration-php.php
File metadata and controls
92 lines (67 loc) · 3.99 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
<?php
// Exit if accessed directly
if ( !defined('ABSPATH')) exit;
/**
* Full Content Template
*
* Template Name: UH Planyo PHP
* @file uh-registration-php.php
* @package SaltandPepper
* @author Emil Uzelac
* @copyright 2003 - 2011 ThemeID
* @license license.txt
* @version Release: 1.0
* @filesource wp-content/themes/saltandpepper/uh-registration-php.php
*/
get_header(); ?>
<?php if (have_posts()) : ?>
<?php while (have_posts()) : the_post(); ?>
<?php get_template_part( 'loop-header' ); ?>
<?php responsive_entry_before(); ?>
<div id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
<?php responsive_entry_top(); ?>
<?php get_template_part( 'post-meta-page' ); ?>
<div class="post-entry">
<div id="content-full" class="grid col-940">
<?php
global $planyo_site_id, $planyo_files_location, $planyo_language,
$planyo_always_use_ajax, $planyo_sort_fields, $planyo_resource_id,
$planyo_js_library_used, $planyo_include_js_library,
$planyo_default_mode, $planyo_extra_search_fields, $planyo_resource_ordering, $planyo_attribs;
$planyo_site_id = '9813'; // ID of your planyo site. It can be a number or 'demo' to see demonstration of the plugin
$planyo_files_location_real = 'planyo-files'; // relative or absolute directory (this is real path, not HTTP path) where the planyo files are kept
$planyo_files_location = '/planyo-files'; // relative or absolute directory (HTTP path) where the planyo files are kept (usually '/planyo-files')
$planyo_language='AUTO'; // you can optionally change the language here, e.g. 'FR' or 'ES' or pass the languge in the 'lang' parameter. 'AUTO' means the language is detected automatically
$planyo_always_use_ajax = true; // set to true to use AJAX to display resource list and resource details views; default value (false) makes the output content SEO-friendly
$planyo_sort_fields=''; // comma-separated sort fields -- a single field will hide the sort dropdown box
$planyo_resource_ordering='name'; // optional sort criterium for resource list
$planyo_extra_search_fields=''; // comma-separated extra fields in the search box, e.g. 'Number of persons'. You first need to define them in settings/custom resource properties
$planyo_default_mode='empty'; // one of: 'resource_list' (displays list of resources with photos, descriptions etc.), 'search' (displays the search box), 'empty' (will not display anything by default but will require you to either pass the resource ID as parameter in the URL (resource_id) or add an external search box or calendar preview), 'upcoming_availability' (displays a quick list of all upcoming availability)
$planyo_resource_id = null; // optional: ID of the resource being reserved (set only if always the same)
$planyo_include_js_library=true; // set this to true if jQuery (required) should be included by this plugin, or false if your website already includes jQuery
$planyo_attribs=''; // optionally you can insert the attribute string here
require_once($planyo_files_location_real.'/planyo-plugin-impl.php');
echo "<div id='planyo_plugin_code' class='planyo'>";
planyo_setup();
echo "</div>";
?>
<br />
<?php the_content(__('Read more ›', 'responsive')); ?>
<?php wp_link_pages(array('before' => '<div class="pagination">' . __('Pages:', 'responsive'), 'after' => '</div>')); ?>
</div><!-- end of .post-entry -->
<?php get_template_part( 'post-data' ); ?>
<?php responsive_entry_bottom(); ?>
</div><!-- end of #post-<?php the_ID(); ?> -->
<?php responsive_entry_after(); ?>
<?php responsive_comments_before(); ?>
<?php comments_template( '', true ); ?>
<?php responsive_comments_after(); ?>
<?php
endwhile;
get_template_part( 'loop-nav' );
else :
get_template_part( 'loop-no-posts' );
endif;
?>
</div><!-- end of #content-full -->
<?php get_footer(); ?>