Ejemplo n.º 1
0
function my_login_logo()
{
    if (get_settings_option('logoid', 'general_option') != null) {
        $logoid = get_settings_option('logoid', 'general_option');
        ?>
			<style type="text/css">
				body.login {height:100%;}
				body.login div#login {padding:5% 0 0;}
				body.login div#login h1 {}
				body.login div#login h1 a {background-image: url(<?php 
        echo wp_get_attachment_image_src($logoid, 'full')[0];
        ?>
); padding-bottom: 30px; margin:0 auto; width: auto; height:<?php 
        echo wp_get_attachment_image_src($logoid, 'full')[2];
        ?>
px; background-size: 200px; overflow: visible;}
				body.login div#login form#loginform {border:1px solid #F67921; margin:0;-webkit-box-shadow: 0 0 10px 1px rgba(0,0,0,0.5); box-shadow: 0 0 10px 1px rgba(0,0,0,0.5); color:#fff;}
				body.login div#login form#loginform p {}
				body.login div#login form#loginform p label {}
				body.login div#login form#loginform input {}
				body.login div#login form#loginform input#user_login {}
				body.login div#login form#loginform input#user_pass {}
				body.login div#login form#loginform p.forgetmenot {}
				body.login div#login form#loginform p.forgetmenot input#rememberme {}
				body.login div#login form#loginform p.submit {}
				body.login div#login form#loginform p.submit input#wp-submit {color:#ffffff !important;}
				body.login div#login p#nav {}
				body.login div#login p#nav a {}
				body.login div#login p#backtoblog {}
				body.login div#login p#backtoblog a {}				
			</style>
		<?php 
    }
}
Ejemplo n.º 2
0
	<h1 class="entry-title"><?php 
                the_author();
                ?>
</h1>
<?php 
            } else {
                if (is_category()) {
                    ?>
	<h1 class="entry-title"><?php 
                    echo single_cat_title('', false);
                    ?>
</h1>
<?php 
                } else {
                    $alttitle = get_post_meta($post->ID, 'title_field', true);
                    $hotelname = get_settings_option('hotelname', 'general_option');
                    $address = get_post_meta($post->ID, 'address_field', true);
                    if ($alttitle != '' || $alttitle != null) {
                        ?>
		<h1 class="entry-title <?php 
                        echo $address != null || $address != '' ? "no-margin" : null;
                        ?>
"><?php 
                        echo $alttitle;
                        ?>
</h1>
	<?php 
                    } else {
                        ?>
		<h1 class="entry-title <?php 
                        echo $address != null || $address != '' ? "no-margin" : null;
Ejemplo n.º 3
0
    ?>
/images/banner.jpg" title="<?php 
    echo get_settings_option('hotelname', 'general_option') . ' in ' . get_settings_option('hotellocation', 'general_option');
    ?>
" alt="<?php 
    echo get_settings_option('hotelname', 'general_option') . ' in ' . get_settings_option('hotellocation', 'general_option');
    ?>
" />
				</div>
			</li>
			<li>
				<div class="slider-image-container">
					<img src="<?php 
    echo get_template_directory_uri();
    ?>
/images/banner.jpg" title="<?php 
    echo get_settings_option('hotelname', 'general_option') . ' in ' . get_settings_option('hotellocation', 'general_option');
    ?>
" alt="<?php 
    echo get_settings_option('hotelname', 'general_option') . ' in ' . get_settings_option('hotellocation', 'general_option');
    ?>
" />
				</div>
			</li>
		<?php 
}
?>
	</ul>
</div>

	
Ejemplo n.º 4
0
<?php

$displayctabutton = true;
if (get_settings_option('removectabuttonincontent', 'style_option')) {
    $displayctabutton = false;
}
if (get_settings_option('ctaiscalendarcorpsite', 'style_option')) {
    $displayctabutton = false;
}
if (get_settings_option('themestyle', 'style_option') === 'style4' && is_front_page()) {
    $displayctabutton = false;
}
if ($displayctabutton) {
    ?>
<a class="ctalink button" href="http://reservations.directwithhotels.com/reservation/selectDates/<?php 
    echo get_settings_option('hotelid', 'general_option');
    ?>
/campaign/">Check availability and prices</a>
<?php 
}
Ejemplo n.º 5
0
					<div id="copyright-container">		
						<?php 
get_template_part('template', 'footer-address');
?>
						<?php 
get_template_part('template', 'copyright');
?>
					
					</div>
				</div>
			</div>
		</footer>
	</div><!-- #main-footer-container -->
</div><!-- #wrapper -->
<?php 
if (get_settings_option('bpgisenable', 'style_option')) {
    ?>
	
<div id="bpgmodal-container" class="hide">
	<?php 
    get_template_part('template', 'bpgcontent');
    ?>
</div>
<?php 
}
?>
	
<?php 
wp_footer();
get_template_part('template', 'script');
?>
Ejemplo n.º 6
0
" class="foursquare-icon"></a></li>
		<?php 
}
?>
		
		<?php 
if (get_settings_option('youtube', 'general_option') != null) {
    ?>
		<li><a target="_blank" href="<?php 
    echo get_settings_option('youtube', 'general_option');
    ?>
" class="youtube-icon"></a></li>
		<?php 
}
?>

		<?php 
if (get_settings_option('linkedin', 'general_option') != null) {
    ?>
		<li><a target="_blank" href="<?php 
    echo get_settings_option('linkedin', 'general_option');
    ?>
" class="linkedin-icon"></a></li>
		<?php 
}
?>


	</ul>
</nav>
Ejemplo n.º 7
0
	var _gaq = _gaq || [];
	_gaq.push(['_setAccount', '<?php 
echo get_settings_option('gacode', 'general_option');
?>
']);
	_gaq.push(['_setDomainName', '<?php 
echo get_settings_option('hoteldomain', 'general_option');
?>
']);
	_gaq.push(['_setAllowLinker', true]);
	_gaq.push(['_trackPageview']);
	<?php 
if (get_settings_option('gacode2', 'general_option') != '' || get_settings_option('gacode2', 'general_option') != null) {
    ?>
	_gaq.push(['b._setAccount', '<?php 
    echo get_settings_option('gacode2', 'general_option');
    ?>
'], ['b._trackPageview']);
	<?php 
}
?>
	(function() {
		var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;	
		ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
		var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
	})();
	</script>
	<?php 
wp_head();
?>
</head>
Ejemplo n.º 8
0
    public function widget($args, $instance)
    {
        $title = $instance['title'];
        $ctalabel = $instance['ctalabel'];
        $isbpg = $instance['isbpg'];
        $iscalendar = $instance['iscalendar'];
        $iscorpsite = $instance['iscorpsite'];
        ?>

		<div id="cta-container">
			<?php 
        if (is_active_sidebar('cta-container-top-widget-container')) {
            dynamic_sidebar('cta-container-top-widget-container');
        }
        ?>
			<div class="content">
				<div class="cta">				
				<?php 
        if ($iscalendar) {
            ?>

					<form id="booking" class="courier" method="POST" action="http://reservations.directwithhotels.com/reservation/processDates/<?php 
            echo get_settings_option('hotelid', 'general_option');
            ?>
/">
						
						<?php 
            if (!$title != '' || $title != null) {
                ?>
						<div class="control-wrapper cta-title-container">
							<?php 
                if ($isbpg) {
                    ?>
							<h3>
								<a class="colorbox-inline bpglinksmall" href="#bpgmodal"><span class="bpgcheck"></span><?php 
                    echo $title;
                    ?>
</a>
								<a class="bpgtip"><div id="bpgtipcontent"><span><?php 
                    echo get_settings_option('hotelname', 'general_option');
                    ?>
 promises its customers that by booking directly, you are getting the best deal online. If you have a confirmed direct online booking with <?php 
                    echo get_settings_option('hotelname', 'general_option');
                    ?>
 and find a cheaper price for the same offer within 24 hours on another website, we will match that price.</span></div></a>
							</h3>					
							<?php 
                } else {
                    ?>
								<h3><?php 
                    echo $title;
                    ?>
</h3>
							<?php 
                }
                ?>
						</div>
						<?php 
            }
            ?>

						<?php 
            if ($iscorpsite) {
                ?>
						<div class="control-wrapper cta-calendar-container">
							<div class="calendar-select">
								<select id="select-hotel" class="text_reserve">
									<option value="select"><?php 
                echo 'Choose a Property';
                ?>
</option>
									<?php 
                $hotelnames = explode("\n", get_settings_option('hotelnames', 'general_option'));
                $hotelids = explode("\n", get_settings_option('hotelids', 'general_option'));
                foreach ($hotelnames as $key => $hotelname) {
                    echo '<option value="' . trim($hotelids[$key], "\r") . '">' . trim($hotelname, "\r") . '</option>';
                }
                ?>
								</select>
							</div>
						</div>
						<?php 
            }
            ?>

						<div class="control-wrapper cta-calendar-container">
							<span class="calendar-label">Check In:</span>
							<div class="calendar-input">
								<input gtbfieldid="5" class="text_reserve inputDate" id="inputDate" name="arrival" value="" type="text" readonly>
								<input class="text_reserve" id="arrival_date" name="arrival_date" value="" type="hidden">
							</div>
						</div>

						<div class="control-wrapper cta-calendar-container">
							<span class="calendar-label">Check Out:</span>
							<div class="calendar-input">
								<input gtbfieldid="6" class="text_reserve inputDate2" id="inputDate" name="departure" value="" type="text" readonly>
								<input class="text_reserve" id="departure_date" name="departure_date" value="" type="hidden">
							</div>
						</div>

						<div class="control-wrapper cta-button-container">
							<input class="button ctabutton" type="submit" value="<?php 
            echo $ctalabel;
            ?>
">
						</div>

						<?php 
            if (!$iscorpsite) {
                ?>
						<div class="control-wrapper cta-moc-container">
							<p><a class="ctamodify" href="http://reservations.directwithhotels.com/reservation/modifyCancelPage/<?php 
                echo get_settings_option('hotelid', 'general_option');
                ?>
">Modify or Cancel</a> your reservation</p>
						</div>
						<?php 
            }
            ?>

					</form>

				<?php 
        } else {
            ?>

					<?php 
            if ($title != '' || $title != null) {
                ?>
					<div class="control-wrapper cta-title-container">
						<?php 
                if ($isbpg) {
                    ?>
							<h3>
								<a class="colorbox-inline bpglinksmall" href="#bpgmodal"><span class="bpgcheck"></span><?php 
                    echo $title;
                    ?>
</a>
								<a class="bpgtip"><div id="bpgtipcontent"><span><?php 
                    echo get_settings_option('hotelname', 'general_option');
                    ?>
 promises its customers that by booking directly, you are getting the best deal online. If you have a confirmed direct online booking with <?php 
                    echo get_settings_option('hotelname', 'general_option');
                    ?>
 and find a cheaper price for the same offer within 24 hours on another website, we will match that price.</span></div></a>
							</h3>
						<?php 
                } else {
                    ?>
							<h3><?php 
                    echo $title;
                    ?>
</h3>
						<?php 
                }
                ?>
					</div>
					<?php 
            }
            ?>
					
					<div class="control-wrapper cta-button-container">
						<a class="button ctabutton" href="http://reservations.directwithhotels.com/reservation/selectDates/<?php 
            echo get_settings_option('hotelid', 'general_option');
            ?>
"><?php 
            echo $ctalabel;
            ?>
</a>
					</div>
					
					<?php 
            if (!$iscorpsite) {
                ?>
					<div class="control-wrapper cta-moc-container">
						<p><a class="ctamodify" href="http://reservations.directwithhotels.com/reservation/modifyCancelPage/<?php 
                echo get_settings_option('hotelid', 'general_option');
                ?>
">Modify or Cancel</a> your reservation</p>
					</div>
					<?php 
            }
            ?>

				<?php 
        }
        ?>

				</div>
			</div>
			<?php 
        if (is_active_sidebar('cta-container-bottom-widget-container')) {
            dynamic_sidebar('cta-container-bottom-widget-container');
        }
        ?>
	
		</div> 

		<?php 
        if ($isbpg) {
            ?>
		<div id="bpgmodal-container" class="hide">
			<div id="bpgmodal">
				<div class="content">
					<h2 class="align-center">Best Price Guarantee Terms &amp; Conditions</h2>
					<div class="bpgmodal-content">
						<?php 
            echo get_bpg_content(get_settings_option('termsandcondition', 'general_option'));
            ?>
					</div>
					<div class="align-center"><a class="button ctalink" href="http://reservations.directwithhotels.com/reservation/selectDates/<?php 
            echo get_settings_option('hotelid', 'general_option');
            ?>
/campaign/">Check availability and prices</a></div>
				</div>
			</div>	
		</div>
		<?php 
        }
        ?>

	<?php 
        /*end of cta*/
    }
Ejemplo n.º 9
0
		if(cta[i].className === 'ctalink' || cta[i].className === 'button ctalink') {
			cta[i].onclick = function(){
				_gaq.push(['_trackEvent', 'organic-clickers', 'go-to-select-dates', 'text-link',, false]); _gaq.push(['_link', 'http://reservations.directwithhotels.com/reservation/selectDates/<?php 
echo get_settings_option('hotelid', 'general_option');
?>
/campaign/']); return true;				
			};
		}
		else if(cta[i].className === 'button ctabutton') {
			cta[i].onclick = function(){
				_gaq.push(['_trackEvent', 'organic-clickers', 'go-to-select-dates', 'cta-button',, false]); _gaq.push(['_link', 'http://reservations.directwithhotels.com/reservation/selectDates/<?php 
echo get_settings_option('hotelid', 'general_option');
?>
/campaign/']); return true;
			};	
		}
		else if(cta[i].className === 'ctamodify') { 
			cta[i].onclick = function() {
				_gaq.push(['_trackEvent', 'organic-clickers', 'modify-cancel', 'text-link',, false]); _gaq.push(['_link', 'http://reservations.directwithhotels.com/reservation/modifyCancelPage/<?php 
echo get_settings_option('hotelid', 'general_option');
?>
/campaign/']); return true;
			};				
		}
	}
	
	/*customscript*/
	<?php 
echo get_settings_option('customscript', 'general_option');
?>
	</script>
Ejemplo n.º 10
0
function basetheme_add_style()
{
    if (!is_admin()) {
        $themestyle = get_value(get_settings_option('themestyle', 'style_option'), 'default');
        wp_enqueue_style('base-style', get_stylesheet_uri(), false, '2.1.0');
        wp_enqueue_style('theme-style', get_template_directory_uri() . '/css/themestyle-' . $themestyle . '.css', false, '2.1.24');
        wp_enqueue_style('default-style', get_template_directory_uri() . '/css/default.css', false, '1.1.6');
    } else {
        wp_enqueue_style('base-admin-style', get_template_directory_uri() . '/css/base-admin.css');
    }
}
Ejemplo n.º 11
0
function general_options_do_page()
{
    ?>
	<div class="wrap">
		<?php 
    screen_icon();
    ?>
		<h2>General Information</h2>
		<form method="post" action="options.php">
			<?php 
    settings_fields('general_option_settings');
    $options = get_option('general_option');
    $iscorpsite = get_value(get_settings_option('ctaiscalendarcorpsite', 'style_option'), 0);
    $hotelnames = get_value($options['hotelnames'], null);
    $hotelids = get_value($options['hotelids'], null);
    $hotelname = get_value($options['hotelname'], 'Hotel Name');
    $hotellocation = get_value($options['hotellocation'], 'City, Country');
    $hotelid = get_value($options['hotelid'], '000000');
    $hoteldomain = get_mapped_domain();
    $gacode = get_value($options['gacode'], '');
    $gacode2 = get_value($options['gacode2'], '');
    $nofollow = get_value($options['nofollow'], 0);
    $logoid = get_value($options['logoid'], null);
    $logo = wp_get_attachment_image_src($logoid, 'full');
    $faviconid = get_value($options['faviconid'], null);
    $favicon = wp_get_attachment_image_src($faviconid, 'full');
    $country = get_value($options['country'], null);
    $street1 = get_value($options['street1'], null);
    $street2 = get_value($options['street2'], null);
    $zippostal = get_value($options['zippostal'], null);
    $citytown = get_value($options['citytown'], null);
    $stateprovinceregion = get_value($options['stateprovinceregion'], null);
    $countrycode = get_value($options['countrycode'], null);
    $areacode = get_value($options['areacode'], null);
    $tel = get_value($options['tel'], null);
    $countrycode1 = get_value($options['countrycode1'], null);
    $areacode1 = get_value($options['areacode1'], null);
    $tel1 = get_value($options['tel1'], null);
    $countrycode2 = get_value($options['countrycode2'], null);
    $areacode2 = get_value($options['areacode2'], null);
    $tel2 = get_value($options['tel2'], null);
    $emailaddress = get_value($options['emailaddress'], null);
    $longtitude = get_value($options['longtitude'], null);
    $latitude = get_value($options['latitude'], null);
    $locationiframe = get_value($options['locationiframe'], null);
    $zoom = get_value($options['zoom'], 16);
    $facebook = get_value($options['facebook'], null);
    $twitter = get_value($options['twitter'], null);
    $googleplus = get_value($options['googleplus'], null);
    $tripadvisor = get_value($options['tripadvisor'], null);
    $instagram = get_value($options['instagram'], null);
    $tumblr = get_value($options['tumblr'], null);
    $pinterest = get_value($options['pinterest'], null);
    $foursquare = get_value($options['foursquare'], null);
    $youtube = get_value($options['youtube'], null);
    $linkedin = get_value($options['linkedin'], null);
    $termsandcondition = get_bpg_content($options['termsandcondition']);
    $customscript = get_value($options['customscript'], null);
    $googleverification = get_value($options['googleverification'], null);
    ?>
			<ul class="tab-menu">
				<li><a href="#generalcontent" class="active">General Settings</a></li>
				<li><a href="#seocontent">Seo Settings</a></li>
				<li><a href="#termsandconditioncontent">Terms and Condition</a></li>
				<li><a href="#customscriptcontent">Custom Script</a></li>				
			</ul>
			
			<div id="generalcontent" class="tab-container show">
				<h3>General Settings</h3>
				<table class="form-table">
					<tr valign="top"><th scope="row">Hotel Logo</th>
						<td>
							<table id="logo" class="simple-table">
								<tr>
									<td>
										<div id="logo-preview" class="custom-image-container">
											<img class="logo-image-preview" src="<?php 
    echo $imgsrc = $logoid == null ? get_template_directory_uri() . '/images/logo.png' : $logo[0];
    ?>
" />
										</div>
									</td>
									<td>
										<div class="uploader">
											<input type="hidden" class="image-id" name="general_option[logoid]" value="<?php 
    echo $logoid;
    ?>
"/>
											<a href="#logo" class="button button-upload">Upload Image</a>
											<a href="#logo" class="link button-remove">Remove Image</a>
										</div>
									</td>
								</tr>
							</table>
						</td>
					</tr>
					<tr valign="top"><th scope="row">Hotel Favicon</th>
						<td>
							<table id="favicon" class="simple-table">
								<tr>
									<td>
										<div id="faviocn-preview" class="custom-image-container" style="width:16px; height:16px;">
											<img class="favicon-image-preview" src="<?php 
    echo $imgsrc = $faviconid == null ? get_template_directory_uri() . '/images/favicon.ico' : $favicon[0];
    ?>
" />
										</div>
									</td>
									<td>
										<div class="uploader">
											<input type="hidden" class="image-id" name="general_option[faviconid]" value="<?php 
    echo $faviconid;
    ?>
"/>
											<a href="#favicon" class="button button-upload">Upload Image</a>
											<a href="#favicon" class="link button-remove">Remove Image</a>
										</div>
									</td>
								</tr>
							</table>
						</td>
					</tr>
					<?php 
    if ($iscorpsite) {
        ?>
					<tr valign="top"><th scope="row">Hotels</th>
						<td>
							<table>
								<tr>
									<td>
										<p>Hotel Name</p>
										<textarea rows="5" name="general_option[hotelnames]"><?php 
        echo $hotelnames;
        ?>
</textarea>
									</td>
									<td>
										<p>Hotel ID</p>
										<textarea rows="5" name="general_option[hotelids]"><?php 
        echo $hotelids;
        ?>
</textarea>
									</td>
								</tr>
							</table>							
						</td>
					</tr>					
					<tr valign="top"><th scope="row">Hotel Corpsite Name</th>
						<td><input type="text" name="general_option[hotelname]" value="<?php 
        echo $hotelname;
        ?>
" /></td>
					</tr>
					<tr valign="top"><th scope="row">Hotel Corpsite Location</th>
						<td><input type="text" name="general_option[hotellocation]" value="<?php 
        echo $hotellocation;
        ?>
" /></td>
					</tr>					
					<?php 
    } else {
        ?>
					<tr valign="top"><th scope="row">Hotel Name</th>
						<td><input type="text" name="general_option[hotelname]" value="<?php 
        echo $hotelname;
        ?>
" /></td>
					</tr>
					<tr valign="top"><th scope="row">Hotel Location</th>
						<td><input type="text" name="general_option[hotellocation]" value="<?php 
        echo $hotellocation;
        ?>
" /></td>
					</tr>
					<tr valign="top"><th scope="row">Hotel ID</th>
						<td><input type="text" name="general_option[hotelid]" value="<?php 
        echo $hotelid;
        ?>
" /></td>
					</tr>
					<?php 
    }
    ?>
					<tr valign="top"><th scope="row">Hotel Domain</th>
						<td>
							<input type="text" name="general_option[hoteldomain]" value="<?php 
    echo $hoteldomain;
    ?>
" />
							<?php 
    if (strcmp($hoteldomain, $options['hoteldomain']) !== 0) {
        ?>
							<p style="font-size:0.8em; border:1px solid red;">Please Save General Settings to Update Hoteldomain In Database</p>
							<?php 
    }
    ?>
						</td>
					</tr>
				</table>
			</div>
			
			<div id="seocontent" class="tab-container">
				<h3>SEO Settings</h3>
				<table class="form-table">
					<tr valign="top"><th scope="row">Google Analytic Code</th>
						<td> 
							<input placeholder="UA-XXXXX-1" type="text" name="general_option[gacode]" value="<?php 
    echo trim($gacode);
    ?>
" /><br>
							<input placeholder="UA-XXXXX-2" type="text" name="general_option[gacode2]" value="<?php 
    echo trim($gacode2);
    ?>
" />
						</td>
					</tr>
					<tr valign="top"><th scope="row">Google Publisher</th>
						<td><input type="text" name="general_option[gpublisher]" value="<?php 
    echo $gpublisher;
    ?>
" /></td>
					</tr>
					<tr valign="top"><th scope="row">No Index, No Follow</th>
						<td>
							<input type="checkbox" class="checkbox" name="general_option[nofollow]" value="<?php 
    echo $nofollow;
    ?>
" <?php 
    echo $result = $nofollow ? 'checked="checked"' : null;
    ?>
 />
						</td>
					</tr>
					<tr valign="top"><th scope="row">Google Verification Code</th>
						<td><input type="text" name="general_option[googleverification]" value="<?php 
    echo esc_html($googleverification);
    ?>
" /></td>
					</tr>					
				</table>
				<h3>Address</h3>
				<table class="form-table">
					<tr valign="top"><th scope="row">Country</th>
						<td><input type="text" name="general_option[country]" value="<?php 
    echo $country;
    ?>
" /></td>
					</tr>		
					<tr valign="top"><th scope="row">Street Address 1</th>
						<td><input type="text" name="general_option[street1]" value="<?php 
    echo $street1;
    ?>
" /></td>
					</tr>		
					<tr valign="top"><th scope="row">Street Address 2</th>
						<td><input type="text" name="general_option[street2]" value="<?php 
    echo $street2;
    ?>
" /></td>
					</tr>		
					<tr valign="top"><th scope="row">Zip/Postal Code</th>
						<td><input type="text" name="general_option[zippostal]" value="<?php 
    echo $zippostal;
    ?>
" /></td>
					</tr>		
					<tr valign="top"><th scope="row">City/Town</th>
						<td><input type="text" name="general_option[citytown]" value="<?php 
    echo $citytown;
    ?>
" /></td>
					</tr>		
					<tr valign="top"><th scope="row">State/Province/Region</th>
						<td><input type="text" name="general_option[stateprovinceregion]" value="<?php 
    echo $stateprovinceregion;
    ?>
" /></td>
					</tr>		
				</table>
				<h3>Contact</h3>
				<table class="form-table">
					<tr><th scope="row"></th>
						<td>Country Code</td>
						<td>Area Code</td>
						<td>Telephone Number</td>
					</tr>
					<tr valign="top"><th scope="row">Phone Number 1</th>
						<td><input placeholder="Country Code" type="text" name="general_option[countrycode]" value="<?php 
    echo $countrycode;
    ?>
" /></td>
						<td><input placeholder="Area Code" type="text" name="general_option[areacode]" value="<?php 
    echo $areacode;
    ?>
" /></td>
						<td><input placeholder="Telephone Number" type="text" name="general_option[tel]" value="<?php 
    echo $tel;
    ?>
" /></td>
					</tr>		
					<tr valign="top"><th scope="row">Phone Number 2</th>
						<td><input placeholder="Country Code" type="text" name="general_option[countrycode1]" value="<?php 
    echo $countrycode1;
    ?>
" /></td>
						<td><input placeholder="Area Code" type="text" name="general_option[areacode1]" value="<?php 
    echo $areacode1;
    ?>
" /></td>
						<td><input placeholder="Telephone Number" type="text" name="general_option[tel1]" value="<?php 
    echo $tel1;
    ?>
" /></td>
					</tr>		
					<tr valign="top"><th scope="row">Phone Number 3</th>
						<td><input placeholder="Country Code" type="text" name="general_option[countrycode2]" value="<?php 
    echo $countrycode2;
    ?>
" /></td>
						<td><input placeholder="Area Code" type="text" name="general_option[areacode2]" value="<?php 
    echo $areacode2;
    ?>
" /></td>
						<td><input placeholder="Telephone Number" type="text" name="general_option[tel2]" value="<?php 
    echo $tel2;
    ?>
" /></td>
					</tr>		
				</table>
				<table class="form-table">
					<tr valign="top"><th scope="row">Email Address</th>
						<td><input type="email" name="general_option[emailaddress]" value="<?php 
    echo $emailaddress;
    ?>
" /></td>
					</tr>		
				</table>			
				<h3>Map</h3>
				<table class="form-table">
					<tr valign="top"><th scope="row">Latitude</th>
						<td><input type="text" name="general_option[latitude]" value="<?php 
    echo $latitude;
    ?>
" /></td>
					</tr>
					<tr valign="top"><th scope="row">Longtitude</th>
						<td><input type="text" name="general_option[longtitude]" value="<?php 
    echo $longtitude;
    ?>
" /></td>
					</tr>		
					<tr valign="top"><th scope="row">Zoom</th>
						<td><input type="text" name="general_option[zoom]" value="<?php 
    echo $zoom;
    ?>
" /></td>
					</tr>
					<tr valign="top"><th scope="row">Iframe</th>
						<td><input type="text" name="general_option[locationiframe]" value="<?php 
    echo esc_html($locationiframe);
    ?>
" /></td>
					</tr>
				</table>
				<h3>Social Media</h3>
				<table class="form-table">
					<tr valign="top"><th scope="row">Facebook</th>
						<td><input type="text" name="general_option[facebook]" value="<?php 
    echo $facebook;
    ?>
" /></td>
					</tr>		
					<tr valign="top"><th scope="row">Twitter</th>
						<td><input type="text" name="general_option[twitter]" value="<?php 
    echo $twitter;
    ?>
" /></td>
					</tr>		
					<tr valign="top"><th scope="row">Google+</th>
						<td><input type="text" name="general_option[googleplus]" value="<?php 
    echo $googleplus;
    ?>
" /></td>
					</tr>		
					<tr valign="top"><th scope="row">Trip Advisor</th>
						<td><input type="text" name="general_option[tripadvisor]" value="<?php 
    echo $tripadvisor;
    ?>
" /></td>
					</tr>		
					<tr valign="top"><th scope="row">Instagram</th>
						<td><input type="text" name="general_option[instagram]" value="<?php 
    echo $instagram;
    ?>
" /></td>
					</tr>
					<tr valign="top"><th scope="row">pinterest</th>
						<td><input type="text" name="general_option[pinterest]" value="<?php 
    echo $pinterest;
    ?>
" /></td>
					</tr>
					<tr valign="top"><th scope="row">tumblr</th>
						<td><input type="text" name="general_option[tumblr]" value="<?php 
    echo $tumblr;
    ?>
" /></td>
					</tr>
					<tr valign="top"><th scope="row">foursquare</th>
						<td><input type="text" name="general_option[foursquare]" value="<?php 
    echo $foursquare;
    ?>
" /></td>
					</tr>
					<tr valign="top"><th scope="row">youtube</th>
						<td><input type="text" name="general_option[youtube]" value="<?php 
    echo $youtube;
    ?>
" /></td>
					</tr>
					<tr valign="top"><th scope="row">linkedin</th>
						<td><input type="text" name="general_option[linkedin]" value="<?php 
    echo $linkedin;
    ?>
" /></td>
					</tr>
				</table>
			</div>
			
			<div id="termsandconditioncontent" class="tab-container">
				<h3>Terms and Condition</h3>
				<table class="form-table" height="350">
					<tr valign="top">
						<td>
							<?php 
    $settings = array('media_buttons' => false, 'wpautop' => false, 'textarea_rows' => get_option('default_post_edit_rows', 10));
    wp_editor(get_bpg_content($termsandcondition), 'general_option[termsandcondition]', $settings);
    ?>
						</td>
					</tr>
				</table>				
			</div>
			
			<div id="customscriptcontent" class="tab-container">
				<h3>Custom Script</h3>
				<table class="form-table">
					<tr valign="top">
						<td><textarea style="min-height:350px; width:100%;" name="general_option[customscript]" class="textarea-editor"><?php 
    echo $customscript;
    ?>
</textarea></td>
					</tr>
				</table>				
			</div>
			
		    <?php 
    submit_button();
    ?>
		</form>
	</div>
	<?php 
}
Ejemplo n.º 12
0
function get_gallery_accordion_shortcode($atts)
{
    $imageids = explode(',', $atts['ids']);
    $accordioncontainername = $atts['name'] != null ? '-' . $atts['name'] : 'accordion-container';
    $ctabuttonlink = get_value($atts['ctabuttonlink'], 'Check availability and price');
    $class = get_value($atts['class'], 'button ctapackage');
    $ctabutton = get_value($atts['ctabutton'], false);
    $imageiscolorbox = get_value($atts['iscolorbox'], true);
    $isfirst = 'active';
    $output = '<div id="' . $accordioncontainername . '">';
    $output .= '<ul class="list-accordion">';
    foreach ($imageids as $key => $imageid) {
        $attachment = get_post($imageid);
        $customlink = get_value(get_post_meta($imageid, '_rt-image-link', true), 'http://reservations.directwithhotels.com/reservation/selectDates/' . get_settings_option('hotelid', 'general_option') . '/campaign/');
        $titletext = get_value(get_post_meta($imageid, '_rt-image-title-text', true), $attachment->post_title);
        $alttext = get_value(get_post_meta($imageid, '_rt-image-alt-text', true), $attachment->post_title);
        $iscolorbox = $imageiscolorbox ? 'colorbox' : 'accordion-link';
        $imagelink = $imageiscolorbox ? wp_get_attachment_image_src($imageid, 'full')[0] : $customlink;
        $output .= '<li class="accordion-item">';
        $output .= '	<div class="accordion-caption"><a href="#accordion-content-' . $key . '" class="' . $isfirst . '">' . $attachment->post_title . '</a></div>';
        $output .= '	<div id="accordion-content-' . $key . '" class="accordion-content">';
        $output .= '		<div class="row-fluid">';
        $output .= '			<div class="span3">';
        $output .= '				<div class="image-container">';
        $output .= '					<a class="' . $iscolorbox . '" href="' . $imagelink . '"><img src="' . wp_get_attachment_image_src($imageid, 'medium')[0] . '" alt="' . $alttext . '" title="' . $titletext . '"/></a>';
        $output .= '				</div>';
        $output .= '			</div>';
        $output .= '			<div class="span9">';
        $output .= '				<p class="sub-title">' . $attachment->post_title . '</p>';
        $output .= '				<p>' . $attachment->post_content . '</p>';
        if ($ctabutton) {
            $output .= '				<a href="' . $customlink . '" class="' . $class . '">' . $ctabuttonlink . '</a>';
        }
        $output .= '			</div>';
        $output .= '		</div>';
        $output .= '	</div>';
        $output .= '</li>';
        $isfirst = null;
    }
    $output .= '</ul>';
    return $output;
}