| Server IP : 85.158.181.41 / Your IP : 216.73.217.12 Web Server : Apache System : Linux cloud9-vm129 6.1.178+1-ph #ph SMP PREEMPT_DYNAMIC Wed Jul 29 09:00:54 UTC 2026 x86_64 User : moncbefd ( 1024) PHP Version : 7.3.33 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /home/moncbefd/www.moneta.at/system/classes/shop_offline/ |
Upload File : |
<?php
/* --------------------------------------------------------------
ShopOfflineEditLayerContentView.inc.php 2016-09-08
Gambio GmbH
http://www.gambio.de
Copyright (c) 2016 Gambio GmbH
Released under the GNU General Public License (Version 2)
[http://www.gnu.org/licenses/gpl-2.0.html]
--------------------------------------------------------------
*/
require_once(DIR_FS_CATALOG . 'gm/inc/gm_get_language.inc.php');
class ShopOfflineEditLayerContentView extends LightboxContentView
{
public function __construct()
{
parent::__construct();
$this->set_template_dir(DIR_FS_CATALOG . 'admin/html/content/shop_offline/');
$this->set_content_template('shop_topbar_edit_layer.html');
}
public function prepare_data()
{
$data_src = $this->v_parameters['src'];
$this->set_content_data('data_src', $data_src);
$data_id = $this->v_parameters['id'];
$this->set_content_data('data_id', $data_id);
// Hide configuration to make topbar permanent on Honeygrid based templates
if(gm_get_env_info('TEMPLATE_VERSION') >= 3)
{
$this->set_content_data('hide_topbar_mode', true);
}
else
{
$this->set_content_data('hide_topbar_mode', false);
}
// set languages array
$languagesArray = gm_get_language();
$this->content_array['languages_array'] = $languagesArray;
// Set lightbox buttons
$this->set_lightbox_button('right', 'ok', array('ok', 'green'));
$this->set_lightbox_button('right', 'close', array('close', 'lightbox_close'));
// Set preferred editor type.
$user_configuration_service = StaticGXCoreLoader::getService('UserConfiguration');
$user_id = new IdType(0);
$layer_editor_identifier = 'editor-shop-online-offline-' . ((int)$data_id !== 0 ? $data_id : '{id}') . '-' . $data_src . '_msg';
$this->set_content_data('layer_editor_identifier', $layer_editor_identifier);
$layer_editor_type = $this->v_parameters['editorType'] ?: $user_configuration_service->getUserConfiguration($user_id, $layer_editor_identifier);
if(empty($layer_editor_type))
{
$layer_editor_type = 'ckeditor';
}
$this->set_content_data('layer_editor_type', $layer_editor_type);
}
}