echo tpl_function_json_encode(array('data' => $this->_vars['settings']), $this); echo '; var view_settings = '; echo tpl_function_json_encode(array('data' => $this->_vars['view_settings']), $this); echo '; var map_id = \''; echo $this->_vars['map_id']; echo '\'; var map_reg_key = \''; echo $this->_vars['map_reg_key']; echo '\'; var rand = \''; echo $this->_vars['rand']; echo '\'; var markers = '; echo tpl_function_json_encode(array('data' => $this->_vars['markers']), $this); echo '; var map_properties = { map_container: map_id, map_key: map_reg_key, default_zoom: settings.zoom, width: view_settings.width, height: view_settings.height, lat: settings.lat, lon: settings.lon }; if(settings.view_type) map_properties.default_map_type = settings.view_type; if(settings.media && settings.media.icon) map_properties.icon = settings.media.icon.thumbs.small; if(!view_settings.disable_smart_zoom && settings.use_smart_zoom == true) map_properties.use_smart_zoom = true; if(settings.use_searchbox == true) map_properties.use_searchbox = true; if(view_settings.zoom_listener) map_properties.zoom_listener = ';
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); ?> <script type='text/javascript'><?php echo ' $(function(){ loadScripts( "'; echo tpl_function_js(array('file' => 'uploader.js', 'return' => 'path'), $this); echo '", function(){ var allowed_mimes = '; echo tpl_function_json_encode(array('data' => $this->_vars['media_config']['allowed_mimes']), $this); echo '; mu = new uploader({ siteUrl: site_url, uploadUrl: \'media/save_image\', zoneId: \'dndfiles\', fileId: \'multiUpload\', formId: \'item_form\', sendType: \'file\', sendId: \'btn_upload\', messageId: \'attach-input-error\', warningId: \'attach-input-warning\', maxFileSize: \''; echo $this->_vars['media_config']['max_size']; echo '\', mimeType: allowed_mimes,
/* V2.10 Template Lite 4 January 2007 (c) 2005-2007 Mark Dickenson. All rights reserved. Released LGPL. 2015-08-31 19:49:54 Pacific Daylight Time */ ?> <?php $this->_tag_stack[] = array('tpl_block_strip', array()); tpl_block_strip(array(), null, $this); ob_start(); ?> <div class="hlBox" id="<?php echo $this->_vars['hlb_id']; ?> _box" data-multiselect="<?php echo $this->_vars['hlb_multiselect']; ?> " data-defaults=<?php echo tpl_function_json_encode(array('data' => $this->_vars['hlb_selected']), $this); ?> data-input="<?php echo $this->_vars['hlb_input']; ?> "> <div class="data"> <div id="<?php echo $this->_vars['hlb_id']; ?> _inputs"></div> <ul> <?php if (is_array($this->_vars['hlb_value']) and count((array) $this->_vars['hlb_value'])) { foreach ((array) $this->_vars['hlb_value'] as $this->_vars['key'] => $this->_vars['item']) { ?>
'; var site_error_position = 'center'; var use_pjax = parseInt('<?php echo $this->_vars['use_pjax']; ?> '); var pjax_container = '#pjaxcontainer'; </script> <?php echo tpl_function_helper(array('func_name' => 'js', 'helper_name' => 'theme', 'func_param' => $this->_vars['load_type']), $this); } ?> <script> var messages = <?php echo tpl_function_json_encode(array('data' => $this->_vars['_PREDEFINED']), $this); ?> ; var alerts; var notifications; <?php echo ' new pginfo({messages: messages}); $(function(){ alerts = new Alerts(); notifications = new Notifications(); }); '; ?> </script>
echo ', allText: \''; echo $this->_vars['multiselect_helper_data']['all_text']; echo '\', allValue: \''; echo $this->_vars['multiselect_helper_data']['all_value']; echo '\', limits: '; echo tpl_function_json_encode(array('data' => $this->_vars['multiselect_helper_data']['limits']), $this); echo ', rand: \''; echo $this->_vars['multiselect_helper_data']['rand']; echo '\', selectedField: \''; echo $this->_vars['multiselect_helper_data']['active_field']; echo '\', selectedItems: '; echo tpl_function_json_encode(array('data' => $this->_vars['multiselect_helper_data']['selected']), $this); echo ', siteUrl: \''; echo $this->_vars['site_url']; echo '\', alertCantSaveEmpty: \''; echo l('multiselect_please_select', 'start', '', 'text', array()); echo '\' }); }); '; ?> </script> </div>
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); echo ' }); }); '; ?> </script> <?php } elseif ($this->_vars['field_type'] == 'range') { ?> <div class="row"> <div class="h"><?php echo l('field_text_min_val', 'field_editor', '', 'text', array()); ?> : </div> <div class="v"><input type="text" name="settings_data[min_val]" value="<?php
<div class="r"> <div class="f"><?php echo l('field_attach', 'mailbox', '', 'text', array()); ?> </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: \'';
<?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>';
</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); ?> <script><?php echo ' var wall; $(function(){ var wall_params = '; echo tpl_function_json_encode(array('data' => $this->_vars['wall_params']), $this); echo ' || {}; wall_params.id = \'wall\'; wall_params.onInit = function(){$(\'#wall_post\').fadeIn(600);}; loadScripts( "'; echo tpl_function_js(array('module' => 'wall_events', 'file' => 'wall.js', 'return' => 'path'), $this); echo '", function(){ wall = new Wall().init(wall_params).loadEvents(); }, \'wall\', {async: false} ); $(\'#wall_permissions_link\').click(function(){
<?php echo tpl_function_selectbox(array('input' => 'language', 'id' => 'lang_select_' . $this->_vars['dynamic_block_lang_select_data']['rand'], 'value' => $this->_vars['dynamic_block_lang_select_data']['languages'], 'selected' => $this->_vars['dynamic_block_lang_select_data']['lang_id'], 'class' => 'cute'), $this); ?> </div> </div> <script type="text/javascript"><?php echo ' $(function(){ loadScripts( "'; echo tpl_function_js(array('module' => 'start', 'file' => 'selectbox.js', 'return' => 'path'), $this); echo '", function(){ var data = '; echo tpl_function_json_encode(array('data' => $this->_vars['dynamic_block_lang_select_data']), $this); echo '; lang_select'; echo $this->_vars['dynamic_block_lang_select_data']['rand']; echo ' = new selectBox({ elementsIDs: [\'lang_select_\'+data.rand], force: true, dropdownClass: \'dropdown cute\', dropdownAutosize: true, dropdownRight: data.params.right_align ? true : false }); $(\'#lang_select_wrapper_\'+data.rand).off(\'change\', \'input[name="language"]\').on(\'change\', \'input[name="language"]\', function(){ location.href = site_url+\'users/change_language/\'+$(this).val(); }); }, \'lang_select';
loadScripts( ["'; echo tpl_function_js(array('file' => 'jquery.imgareaselect/jquery.imgareaselect.js', 'return' => 'path'), $this); echo '", "'; echo tpl_function_js(array('file' => 'uploader.js', 'return' => 'path'), $this); echo '", "'; echo tpl_function_js(array('file' => 'canvas-to-blob.min.js', 'return' => 'path'), $this); echo '", "'; echo tpl_function_js(array('file' => 'webcamera.js', 'return' => 'path'), $this); echo '"], function(){ var upload_config = '; echo tpl_function_json_encode(array('data' => $this->_vars['avatar_data']['upload_config']), $this); echo '; json_encode_data = '; echo tpl_function_json_encode(array('data' => $this->_vars['avatar_data']['selections']), $this); echo '; user_avatar_selections = json_encode_data; avatar_width = json_encode_data.grand.width; avatar_height = json_encode_data.grand.height; user_avatar.uninit_imageareaselect(); for(var i in user_avatar_selections) if(user_avatar_selections.hasOwnProperty(i)){ user_avatar.add_selection(i, 0, 0, parseInt(user_avatar_selections[i].width), parseInt(user_avatar_selections[i].height)); } '; if ($this->_vars['avatar_data']['have_avatar']) { ?> user_avatar.init_imageareaselect(); <?php }