<?php

require_once 'C:\\xampp\\htdocs\\iot.calit2.uci.edu\\system\\libraries\\template_lite\\plugins\\function.js.php';
$this->register_function("js", "tpl_function_js");
require_once 'C:\\xampp\\htdocs\\iot.calit2.uci.edu\\system\\libraries\\template_lite\\plugins\\function.json_encode.php';
$this->register_function("json_encode", "tpl_function_json_encode");
/* V2.10 Template Lite 4 January 2007  (c) 2005-2007 Mark Dickenson. All rights reserved. Released LGPL. 2015-08-25 02:00:53 Pacific Daylight Time */
?>

<script><?php 
echo '
	$(function(){
		var data = ';
echo tpl_function_json_encode(array('data' => $this->_vars['likes_helper_data']), $this);
echo ';
		loadScripts(
			\'';
echo tpl_function_js(array('module' => "likes", 'file' => 'likes.js', 'return' => 'path'), $this);
echo '\',
			function(){
				likes = new Likes({
					siteUrl: site_url,
					likeTitle: data.like_title,
					canLike: data.can_like
				});
			},
			\'\',
			{async: true}
		);
	});
</script>';
					thumbJpeg: false,
					thumbBg: \'transparent\',
					fileListInZone: true,
					filebarHeight: 200,
					jqueryFormPluginUrl: "';
echo tpl_function_js(array('file' => 'jquery.form.min.js', 'return' => 'path'), $this);
echo '"
			   });
			},
			[\'mu\'],
			{async: false}
		);
		
		loadScripts(
			"';
echo tpl_function_js(array('file' => 'albums.js', 'module' => 'media', 'return' => 'path'), $this);
echo '",
			function(){
				albums_obj = new albums({
					siteUrl: site_url, 
					contentDiv: \'#album_content\',
					createAlbumButton: \'#create_album_button_aform\', 
					createAlbumContainer: \'#create_album_container_aform\', 
					saveAlbumButton: \'#save_album_aform\', 
					albumNameInput: \'#album_name_aform\', 
					create_album_success_request: function(resp){
						if (resp.status){
							$(\'#album_content #albums_select\').html(resp.data.albums_select);
							$(\'#album_content #albums_select select\').val(resp.data.album_id).prop(\'selected\',\'selected\')
							$(\'#album_content #albums_select select\').addClass(\'wp100\').addClass(\'box-sizing\');
							$(\'#item_form #albums_select_block\').removeClass(\'hide\');
?>

		</div>
	</div>
</div>

<?php 
if ($this->_vars['data']['approved'] && $this->_vars['data']['confirm'] && !$this->_vars['data']['activity'] && $this->_vars['data']['available_activation']['status']) {
    ?>
	<div class="bg-highlight_bg mtb10 p10">
		<script type='text/javascript'><?php 
    echo '
			$(function(){
				loadScripts(
					"';
    echo tpl_function_js(array('file' => 'available_view.js', 'return' => 'path'), $this);
    echo '", 
					function(){
						activate_available_view = new available_view({
							siteUrl: \'';
    echo $this->_vars['site_url'];
    echo '\',
							checkAvailableAjaxUrl: \'users/ajax_available_user_activate_in_search/\',
							buyAbilityAjaxUrl: \'users/ajax_activate_user_activate_in_search/\',
							buyAbilityFormId: \'ability_form\',
							buyAbilitySubmitId: \'ability_form_submit\',
							success_request: function(message) {error_object.show_error_block(message, \'success\'); locationHref(\'';
    echo tpl_function_seolink(array('module' => 'users', 'method' => 'profile'), $this);
    echo '\')},
							fail_request: function(message) {error_object.show_error_block(message, \'error\');}
						});
?>

<?php 
if (!$this->_vars['geomap_js_loaded'] && !$this->_vars['only_load_content']) {
    ?>
	<link href="<?php 
    echo $this->_vars['site_root'];
    ?>
application/modules/geomap/views/default/css/bingmapsv7.css" rel="stylesheet" type="text/css" />
	<script><?php 
    echo '
		$(function() {
			loadScripts(
				[
					"';
    echo tpl_function_js(array('file' => 'bingmapsv7.js', 'module' => 'geomap', 'return' => 'path'), $this);
    echo '",
					"http://ecn.dev.virtualearth.net/mapcontrol/mapcontrol.ashx?v=7.0&onScriptLoad=map_loader"
				],
				function(){},
				\'';
    echo $this->_vars['map_id'];
    echo '\',
				{crossDomain: true, cache: false}
			);
		});
	</script>';
    ?>

<?php 
} else {
<script type="text/javascript"><?php 
echo '
	$(function(){
		loadScripts(
			[
				"';
echo tpl_function_js(array('module' => 'start', 'file' => 'search.js', 'return' => 'path'), $this);
echo '",
				"';
echo tpl_function_js(array('module' => 'start', 'file' => 'selectbox.js', 'return' => 'path'), $this);
echo '",
				"';
echo tpl_function_js(array('module' => 'start', 'file' => 'checkbox.js', 'return' => 'path'), $this);
echo '",
				"';
echo tpl_function_js(array('module' => 'start', 'file' => 'hlbox.js', 'return' => 'path'), $this);
echo '"
			],
			function(){
				';
echo $this->_vars['form_settings']['object'];
echo $this->_vars['form_settings']['type'];
echo ' = new search({
					siteUrl: \'';
echo $this->_vars['site_url'];
echo '\',
					currentForm: \'';
echo $this->_vars['form_settings']['object'];
echo '\',
					currentFormType: \'';
echo $this->_vars['form_settings']['type'];
    }
    ?>
;
<?php 
} else {
    ?>
	var all_loaded = 0;
<?php 
}
echo '
$(function(){
	loadScripts(
		["';
echo tpl_function_js(array('module' => 'like_me', 'file' => 'like_me.js', 'return' => 'path'), $this);
echo '", "';
echo tpl_function_js(array('module' => 'like_me', 'file' => 'match_me.js', 'return' => 'path'), $this);
echo '"],
		function(){
			var action_id = \'';
echo $this->_vars['action'];
echo '\';
			like_me = new LikeMe({
				siteUrl: site_url,
				action_id: action_id,
			});
			match_me = new MatchMe({
				siteUrl: site_url,
				all_loaded: all_loaded,
				show_more_lang: "';
echo l('button_show_more', 'like_me', '', 'text', array());
echo '",
require_once 'C:\\xampp\\htdocs\\iot.calit2.uci.edu\\system\\libraries\\template_lite\\plugins\\compiler.l.php';
$this->register_compiler("l", "tpl_compiler_l");
require_once 'C:\\xampp\\htdocs\\iot.calit2.uci.edu\\system\\libraries\\template_lite\\plugins\\function.js.php';
$this->register_function("js", "tpl_function_js");
/* V2.10 Template Lite 4 January 2007  (c) 2005-2007 Mark Dickenson. All rights reserved. Released LGPL. 2015-08-25 02:13:32 Pacific Daylight Time */
?>

<?php 
$_templatelite_tpl_vars = $this->_vars;
echo $this->_fetch_compile_include($this->general_path . $this->get_current_theme_gid('', '') . "header.tpl", array('load_type' => 'ui'));
$this->_vars = $_templatelite_tpl_vars;
unset($_templatelite_tpl_vars);
?>

<?php 
echo tpl_function_js(array('module' => 'dynamic_blocks', 'file' => 'dynamic_blocks_layout'), $this);
?>

<div class="actions">
	<ul>
		<li><div class="l"><a href="#" id="update_layout"><?php 
echo l('link_save_block_sorting', 'dynamic_blocks', '', 'text', array());
?>
</a></div></li>
	</ul>
	&nbsp;
</div>

<div class="menu-level3">
	<ul>
		<li><a href="<?php 
		<td colspan="4" class="center">
			<?php 
    echo l('no_items', 'memberships', '', 'text', array());
    ?>
		</td>
	</tr>
	<?php 
}
?>
</table>
<?php 
$_templatelite_tpl_vars = $this->_vars;
echo $this->_fetch_compile_include($this->general_path . $this->get_current_theme_gid('', '') . "pagination.tpl", array('load_type' => false));
$this->_vars = $_templatelite_tpl_vars;
unset($_templatelite_tpl_vars);
echo tpl_function_js(array('file' => 'memberships-admin.js', 'module' => 'memberships'), $this);
?>
<script><?php 
echo '
	$(function(){
		new membershipsAdmin({
			siteUrl: \'';
echo $this->_vars['site_url'];
echo '\',
			msgConfirmDeletion: \'';
echo l('confirm_delete_membership', 'memberships', '', 'text', array());
echo '\'
		});
	});
';
?>
require_once 'C:\\xampp\\htdocs\\iot.calit2.uci.edu\\system\\libraries\\template_lite\\plugins\\compiler.l.php';
$this->register_compiler("l", "tpl_compiler_l");
require_once 'C:\\xampp\\htdocs\\iot.calit2.uci.edu\\system\\libraries\\template_lite\\plugins\\function.counter.php';
$this->register_function("counter", "tpl_function_counter");
require_once 'C:\\xampp\\htdocs\\iot.calit2.uci.edu\\system\\libraries\\template_lite\\plugins\\function.js.php';
$this->register_function("js", "tpl_function_js");
/* V2.10 Template Lite 4 January 2007  (c) 2005-2007 Mark Dickenson. All rights reserved. Released LGPL. 2015-09-26 11:13:24 Pacific Daylight Time */
?>

<?php 
$_templatelite_tpl_vars = $this->_vars;
echo $this->_fetch_compile_include($this->general_path . $this->get_current_theme_gid('', '') . "header.tpl", array('load_type' => 'ui'));
$this->_vars = $_templatelite_tpl_vars;
unset($_templatelite_tpl_vars);
echo tpl_function_js(array('file' => 'date.js'), $this);
echo tpl_function_js(array('module' => 'start', 'file' => 'date_formats.js'), $this);
$_templatelite_tpl_vars = $this->_vars;
echo $this->_fetch_compile_include($this->module_path . "start" . $this->module_templates . $this->get_current_theme_gid('', '"start"') . "numerics_menu.tpl", array('load_type' => false));
$this->_vars = $_templatelite_tpl_vars;
unset($_templatelite_tpl_vars);
?>

<form id="date_format" method="post" action="" name="save_form" enctype="multipart/form-data">
	<input type="hidden" id="format_id" name="format_id" value="<?php 
echo $this->_vars['format']['gid'];
?>
" />
	<div class="edit-form n150">
		<div class="row header"><?php 
echo $this->_vars['settings_name'];
?>
</div>
<div class="clr"></div>
<?php 
$this->_block_content = ob_get_contents();
ob_end_clean();
$this->_block_content = tpl_block_strip($this->_tag_stack[count($this->_tag_stack) - 1][1], $this->_block_content, $this);
echo $this->_block_content;
array_pop($this->_tag_stack);
if ($this->_vars['data']['user_logo']) {
    ?>
	<script type='text/javascript'><?php 
    echo '
		$(function(){
			loadScripts(
				["';
    echo tpl_function_js(array('file' => 'users-avatar.js', 'module' => 'users', 'return' => 'path'), $this);
    echo '"],
				function(){
					user_avatar = new avatar({
						site_url: site_url,
						id_user: '******'user_id'];
    echo '
					});
				},
				[\'user_avatar\'],
				{async: true}
			);
		});
	</script>';
    ?>
		<?php 
}
?>
	</table>
		
	<?php 
echo tpl_function_pagination(array('data' => $this->_vars['page_data'], 'type' => 'full'), $this);
?>


<script type='text/javascript'><?php 
echo '
	$(function(){
		loadScripts(
			"';
echo tpl_function_js(array('file' => 'easyTooltip.min.js', 'return' => 'path'), $this);
echo '", 
			function(){
				$("td.view-banner > a").each(function(){
					var id = $(this).attr(\'id\')+\'_content\';
					$(this).easyTooltip({useElement: id});
				});
			}
		);
	});
</script>';
?>


<div class="clr"></div>
echo l('multiselect_select_all', 'start', '', 'text', array());
?>
</a>
				<div class="btn">
					<div class="l">
						<input class="btn_apply" type="button" name="btn_save" value="<?php 
echo l('btn_apply', 'start', '', 'text', array());
?>
">
					</div>
				</div>
			</div>
		</footer>
	</div>
	<?php 
echo tpl_function_js(array('module' => 'start', 'file' => 'multiselect.js'), $this);
?>
	<script type='text/javascript'>
		<?php 
echo '
		$(function () {
			';
if (isset($this->_vars['multiselect_helper_data']['var_js_name'])) {
    ?>
var <?php 
    echo $this->_vars['multiselect_helper_data']['var_js_name'];
    ?>
 = <?php 
}
echo 'new options({
				fields: ';
<div id="menu_items">
	<ul name="form_root" id="form_root" class="sortable"></ul>
</div>

<a class="cancel" href="<?php 
echo $this->_vars['site_url'];
?>
admin/field_editor/forms/<?php 
echo $this->_vars['data']['editor_type_gid'];
?>
"><?php 
echo l('btn_cancel', 'start', '', 'text', array());
?>
</a>
<?php 
echo tpl_function_js(array('module' => 'field_editor', 'file' => 'admin-form-fields.js'), $this);
?>
<script type='text/javascript'>
var field_data = <?php 
if ($this->_vars['data']['field_data_json']) {
    echo $this->_vars['data']['field_data_json'];
} else {
    ?>
[]<?php 
}
?>
;
var field_names = <?php 
if ($this->_vars['data']['field_names_json']) {
    echo $this->_vars['data']['field_names_json'];
} else {
</div>
				<div class="v">
					<input type="file" name="attach" class="attach" id="attach" multiple="true" size="40">
					<button id="btn_attach"><?php 
    echo l('btn_upload', 'start', '', 'text', array());
    ?>
</button>
					<script><?php 
    echo '
						$(function(){
							var allowed_mimes = ';
    echo tpl_function_json_encode(array('data' => $this->_vars['attach_settings']['allowed_mimes']), $this);
    echo ';
							loadScripts(
								"';
    echo tpl_function_js(array('file' => 'uploader.js', 'return' => 'path'), $this);
    echo '", 
								function(){
									au = new uploader({
										siteUrl: site_url,
										zoneId: \'attachbox\',
										fileId: \'attach\',
										formId: \'write_form\',
										sendType: \'file\',
										sendId: \'btn_attach\',
										messageId: \'attach-input-error\',
										maxFileSize: \'';
    echo $this->_vars['attach_settings']['max_size'];
    echo '\',
										mimeType: allowed_mimes,
										cbOnSend: function(noFile){
	</table>
	<?php 
if ($this->_vars['data']['available']) {
    ?>
	<div class="btn"><div class="l"><input type="submit" name="save_install_langs" value="Next"></div></div>
	<?php 
} else {
    ?>
	<div class="btn gray"><div class="l"><input type="button" name="save_install_langs" value="Next" disabled="disabled"></div></div>
	<?php 
}
?>
</form>
<div class="clr"></div>
<?php 
echo tpl_function_js(array('module' => 'install', 'file' => 'product_install.js'), $this);
?>
<script type="text/javascript">
	var productInstall = new productInstall();
	<?php 
echo '
		$(function(){
			productInstall.langs_init();
		});
	';
?>

</script>
<?php 
$_templatelite_tpl_vars = $this->_vars;
echo $this->_fetch_compile_include($this->general_path . $this->get_current_theme_gid('', '') . "footer.tpl", array('load_type' => false));
			<div class="v">
				<div id="hidden_block"></div>
				<a href="#" id="add_option_link"><?php 
    echo l('link_add_new_option', 'field_editor', '', 'text', array());
    ?>
</a>
				<div class="select-options" id="select_options_block">
				<?php 
    echo $this->_vars['options_block'];
    ?>

				</div>
			</div>
		</div>
		<?php 
    echo tpl_function_js(array('module' => 'field_editor', 'file' => 'admin-field-editor-select.js'), $this);
    ?>
		<script type='text/javascript'><?php 
    echo '
			var sOptions;
			$(function(){
				sOptions =  new fieldEditorSelect({
					siteUrl: \'';
    echo $this->_vars['site_url'];
    echo '\',
					fieldID: \'';
    echo $this->_vars['data']['id'];
    echo '\',
					defaultMultiple: true,
					defaultValues: ';
    echo tpl_function_json_encode(array('data' => $this->_vars['data']['settings_data_array']['default_value']), $this);
<?php

require_once 'C:\\xampp\\htdocs\\iot.calit2.uci.edu\\system\\libraries\\template_lite\\plugins\\compiler.l.php';
$this->register_compiler("l", "tpl_compiler_l");
require_once 'C:\\xampp\\htdocs\\iot.calit2.uci.edu\\system\\libraries\\template_lite\\plugins\\function.js.php';
$this->register_function("js", "tpl_function_js");
/* V2.10 Template Lite 4 January 2007  (c) 2005-2007 Mark Dickenson. All rights reserved. Released LGPL. 2016-01-07 00:09:49 Pacific Standard Time */
?>

<?php 
$_templatelite_tpl_vars = $this->_vars;
echo $this->_fetch_compile_include($this->general_path . $this->get_current_theme_gid('', '') . "header.tpl", array('load_type' => 'ui'));
$this->_vars = $_templatelite_tpl_vars;
unset($_templatelite_tpl_vars);
echo tpl_function_js(array('file' => 'easyTooltip.min.js'), $this);
?>

<form method="post" action="<?php 
echo $this->_vars['data']['action'];
?>
" name="save_form" enctype="multipart/form-data">
	<div class="edit-form n150">
		<div class="row header"><?php 
echo l('admin_header_application_change', 'social_networking', '', 'text', array());
?>
</div>
		<div class="row zebra">
			<div class="h"><?php 
echo l('field_app_key', 'social_networking', '', 'text', array());
?>
: </div>
    ob_end_clean();
    $this->_block_content = tpl_block_capture($this->_tag_stack[count($this->_tag_stack) - 1][1], $this->_block_content, $this);
    echo $this->_block_content;
    array_pop($this->_tag_stack);
}
?>
<div class="mod-cookie-policy noPrint" id="cookie_policy_block">
	<div class="content">
		<ins id="cookie_policy_close" class="fright icon-remove icon-2x"></ins>
		<?php 
echo l('text_cookie_policy', 'cookie_policy', '', 'text', array('link' => $this->_vars['cookie_policy_link']));
?>
	</div>
</div>
<?php 
echo tpl_function_js(array('module' => cookie_policy, 'file' => 'cookie_policy.js'), $this);
echo '<script>
	$(function(){
		new cookiePolicy({
			siteUrl: \'';
echo $this->_vars['site_root'];
echo '\',
			domain: \'';
echo $this->_vars['cookie_site_server'];
echo '\',
			path: \'';
echo $this->_vars['cookie_site_server'];
echo '\',
		});
	});
</script>';
echo tpl_function_start_search_form(array('type' => 'full', 'show_data' => '1', 'object' => 'perfect_match'), $this);
?>
</div>
<div class="content-block">
	<div id="main_users_results">
		<?php 
echo $this->_vars['block'];
?>

	</div>

	<script type="text/javascript"><?php 
echo '
		$(function(){
			loadScripts("';
echo tpl_function_js(array('module' => 'users', 'file' => 'users-list.js', 'return' => 'path'), $this);
echo '",
				function(){
					users_list = new usersList({
						siteUrl: \'';
echo $this->_vars['site_url'];
echo '\',
						viewUrl: \'';
echo tpl_function_seolink(array('module' => 'users', 'method' => 'perfect_match'), $this);
echo '\',
						viewAjaxUrl: \'ajax_perfect_match\',
						listBlockId: \'main_users_results\',
						tIds: [\'pages_block_1\', \'pages_block_2\', \'sorter_block\']
					});
				},
				\'users_list\'
<?php

require_once 'C:\\xampp\\htdocs\\iot.calit2.uci.edu\\system\\libraries\\template_lite\\plugins\\compiler.l.php';
$this->register_compiler("l", "tpl_compiler_l");
require_once 'C:\\xampp\\htdocs\\iot.calit2.uci.edu\\system\\libraries\\template_lite\\plugins\\function.js.php';
$this->register_function("js", "tpl_function_js");
/* V2.10 Template Lite 4 January 2007  (c) 2005-2007 Mark Dickenson. All rights reserved. Released LGPL. 2015-08-30 19:19:37 Pacific Daylight Time */
?>

<?php 
$_templatelite_tpl_vars = $this->_vars;
echo $this->_fetch_compile_include($this->general_path . $this->get_current_theme_gid('', '') . "header.tpl", array('load_type' => 'editable|ui'));
$this->_vars = $_templatelite_tpl_vars;
unset($_templatelite_tpl_vars);
echo tpl_function_js(array('file' => 'admin-multilevel-sorter.js'), $this);
?>
<div class="actions">
	<ul>
		<li><div class="l"><a href="<?php 
echo $this->_vars['site_url'];
?>
admin/properties/property_items/<?php 
echo $this->_vars['current_lang_id'];
?>
/<?php 
echo $this->_vars['current_gid'];
?>
"><?php 
echo l('link_add_ds_item', 'properties', '', 'text', array());
?>
</a></div></li>
} else {
    ?>
<tr><td colspan="7" class="center"><?php 
    echo l('no_users', 'users', '', 'text', array());
    ?>
</td></tr>
<?php 
}
?>
</table>
<?php 
$_templatelite_tpl_vars = $this->_vars;
echo $this->_fetch_compile_include($this->general_path . $this->get_current_theme_gid('', '') . "pagination.tpl", array('load_type' => false));
$this->_vars = $_templatelite_tpl_vars;
unset($_templatelite_tpl_vars);
echo tpl_function_js(array('file' => 'jquery-ui.custom.min.js'), $this);
?>
<link href='<?php 
echo $this->_vars['site_root'];
echo $this->_vars['js_folder'];
?>
jquery-ui/jquery-ui.custom.css' rel='stylesheet' type='text/css' media='screen' />
<script type="text/javascript">

var reload_link = "<?php 
echo $this->_vars['site_url'];
?>
admin/users/index/";
var filter = '<?php 
echo $this->_vars['filter'];
?>
$this->register_function("js", "tpl_function_js");
/* V2.10 Template Lite 4 January 2007  (c) 2005-2007 Mark Dickenson. All rights reserved. Released LGPL. 2015-08-31 00:12:38 Pacific Daylight Time */
?>

<?php 
$_templatelite_tpl_vars = $this->_vars;
echo $this->_fetch_compile_include($this->general_path . $this->get_current_theme_gid('', '') . "header.tpl", array('load_type' => 'ui'));
$this->_vars = $_templatelite_tpl_vars;
unset($_templatelite_tpl_vars);
?>
<link type="text/css" rel="stylesheet" href="<?php 
echo $this->_vars['site_root'];
?>
application/modules/uploads/js/colorpicker/colorpicker.css"/>
<?php 
echo tpl_function_js(array('module' => 'uploads', 'file' => 'colorpicker.min.js'), $this);
?>

<form method="post" action="<?php 
echo $this->_vars['data']['action'];
?>
" name="save_form" enctype="multipart/form-data">
	<div class="edit-form n150">
		<div class="row header"><?php 
if ($this->_vars['data']['id']) {
    echo l('admin_header_thumb_change', 'uploads', '', 'text', array());
} else {
    echo l('admin_header_thumb_add', 'uploads', '', 'text', array());
}
?>
</div>
} else {
    ?>
true<?php 
}
?>
;
			</script>

			<?php 
echo tpl_function_js(array('file' => 'colorsets/jscolor/jscolor.js'), $this);
?>
			<?php 
echo tpl_function_js(array('file' => 'colorsets/color_colorblind.js'), $this);
?>
			<?php 
echo tpl_function_js(array('file' => 'colorsets/color_scheme.js'), $this);
?>

			<link type="text/css" rel="stylesheet" href="<?php 
echo $this->_vars['site_root'];
echo $this->_vars['js_folder'];
?>
colorsets/color_scheme.css" />

			<div class="row striped">
				<div id="color_enter">
					<b><?php 
echo l('select_color_header', 'themes', '', 'text', array());
?>
:</b><br><br>
					<div id="image">
require_once 'C:\\xampp\\htdocs\\iot.calit2.uci.edu\\system\\libraries\\template_lite\\plugins\\compiler.l.php';
$this->register_compiler("l", "tpl_compiler_l");
require_once 'C:\\xampp\\htdocs\\iot.calit2.uci.edu\\system\\libraries\\template_lite\\plugins\\function.js.php';
$this->register_function("js", "tpl_function_js");
require_once 'C:\\xampp\\htdocs\\iot.calit2.uci.edu\\system\\libraries\\template_lite\\plugins\\function.helper.php';
$this->register_function("helper", "tpl_function_helper");
/* V2.10 Template Lite 4 January 2007  (c) 2005-2007 Mark Dickenson. All rights reserved. Released LGPL. 2015-08-31 17:35:10 Pacific Daylight Time */
?>

<?php 
$_templatelite_tpl_vars = $this->_vars;
echo $this->_fetch_compile_include($this->general_path . $this->get_current_theme_gid('', '') . "header.tpl", array('load_type' => false));
$this->_vars = $_templatelite_tpl_vars;
unset($_templatelite_tpl_vars);
echo tpl_function_helper(array('func_name' => 'get_admin_level1_menu', 'helper_name' => 'menu', 'func_param' => 'admin_countries_menu'), $this);
echo tpl_function_js(array('module' => 'countries', 'file' => 'admin-location-sorter.js'), $this);
?>
<script><?php 
echo '
	var sorter;
	$(function(){
		sorter = new sortLocations({
			siteUrl: \'';
echo $this->_vars['site_url'];
echo '\', 
			urlSaveSort: \'admin/countries/ajax_save_city_sorter/';
echo $this->_vars['country']['code'];
echo '/';
echo $this->_vars['region']['id'];
echo '\'
		});
					checkAvailableAjaxUrl: \'mailbox/ajax_available_access_mailbox/\',
					buyAbilityAjaxUrl: \'mailbox/ajax_activate_send_message/\',
					buyAbilityFormId: \'ability_form\',
					buyAbilitySubmitId: \'ability_form_submit\',
					success_request: function(message){mb.write_message(';
echo $this->_vars['user_id'];
echo ', \'short\');},
					fail_request: function(message){error_object.show_error_block(message, \'error\');},
				});
			},
			[\'access_message_available_view\'],
			{async: false}
		);
		loadScripts(
			"';
echo tpl_function_js(array('file' => 'mailbox.js', 'module' => 'mailbox', 'return' => 'path'), $this);
echo '", 
			function(){
				mb = new mailbox({
					siteUrl: site_url,
					contactId: \'\',
					accessAvailableView: access_available_view,
					loadContent: true,
					writeMessageButton: \'#btn_write_message_';
echo $this->_vars['message_button_rand'];
echo '\'
				});
			},
			[\'mb\'],
			{async: false}
		);	
<script><?php 
echo '
	var geomap_js_loaded = \'';
echo $this->_vars['geomap_js_loaded'];
echo '\';
	var only_load_content = \'';
echo $this->_vars['only_load_content'];
echo '\';
	
	if(!geomap_js_loaded && !only_load_content) {
		$(function() {	
			loadScripts(
				[
					"';
echo tpl_function_js(array('file' => 'googlemapsv3.js', 'module' => 'geomap', 'return' => 'path'), $this);
echo '", 
					"https://maps.google.com/maps/api/js?v=3.8&libraries=places&sensor=true&key=';
echo $this->_vars['map_reg_key'];
echo '&callback=map_loader"
				],
				function(){},
				\'';
echo $this->_vars['map_id'];
echo '\',
				{crossDomain: true}
			);
		});
		
	} else {
		$(function(){setTimeout(map_loader, 100);});
			<?php 
echo tpl_function_block(array('name' => 'visitors', 'module' => 'users', 'template' => 'header'), $this);
?>
			<?php 
echo tpl_function_block(array('name' => 'new_kisses', 'module' => 'kisses', 'template' => 'header'), $this);
?>
			<li class="no-notifications hide-always"><?php 
echo l('no_notifications', 'users', '', 'text', array());
?>
</li>
		</menu>
	</div>
</menu>
<script type='text/javascript'><?php 
echo '
	$(function(){
		loadScripts(
			["';
echo tpl_function_js(array('file' => 'top-menu.js', 'module' => 'users', 'return' => 'path'), $this);
echo '"],
			function(){
				new topMenu({
					siteUrl: site_url
				});
			}
		);
	});
</script>';
?>

echo l('btn_save', 'start', '', 'button', array());
?>
">
		</div>
	</div>
	<a class="cancel" href="<?php 
echo $this->_vars['site_url'];
?>
admin/start/menu/system-items"><?php 
echo l('btn_cancel', 'start', '', 'text', array());
?>
</a>
</form>
<div class="clr"></div>
<?php 
echo tpl_function_js(array('module' => 'users', 'file' => 'users-settings.js'), $this);
?>
<script><?php 
echo '
	$(function () {
		new usersSettings();
		$(\'div.row:odd\').addClass(\'zebra\');
	});
';
?>
</script>
<?php 
$_templatelite_tpl_vars = $this->_vars;
echo $this->_fetch_compile_include($this->general_path . $this->get_current_theme_gid('', '') . "footer.tpl", array('load_type' => false));
$this->_vars = $_templatelite_tpl_vars;
unset($_templatelite_tpl_vars);
 link-r-margin"
   title="<?php 
echo l('kiss', 'kisses', '', 'button', array());
?>
"
   href="javascript:void(0);">
	<i class='icon-smile icon-big edge hover'></i>
</a>

<script><?php 
echo '
	$(function(){
		
		loadScripts(
			"';
echo tpl_function_js(array('file' => 'kisses.js', 'module' => 'kisses', 'return' => 'path'), $this);
echo '",
			function(){
				kisses = new Kisses({
					siteUrl: site_url,
					use_form: true,
					btnForm: \'';
?>
btn-kisses-<?php 
echo $this->_vars['kisses_button_rand'];
echo '\',
					urlGetForm: \'';
?>
kisses/ajax_get_kisses/<?php 
echo $this->_vars['user_id'];
echo '\',
?>

<?php 
if (!$this->_vars['geomap_js_loaded'] && !$this->_vars['only_load_content']) {
    ?>
	<link href="<?php 
    echo $this->_vars['site_root'];
    ?>
application/modules/geomap/views/default/css/yandexv2.css" rel="stylesheet" type="text/css" />
	<script><?php 
    echo '
		$(function() {
			loadScripts(
				[
					"';
    echo tpl_function_js(array('file' => 'yandexmapsv2.js', 'module' => 'geomap', 'return' => 'path'), $this);
    echo '", 
					"http://api-maps.yandex.ru/2.0/?load=package.full&mode=debug&lang=ru-RU"
				],
				function(){
					ymaps.ready(map_loader);
				},
				\'';
    echo $this->_vars['map_id'];
    echo '\',
				{crossDomain: true}
			);
		});
	</script>';
    ?>