function content_55e61f9b88e479_88067551($_smarty_tpl) { if (!is_callable('smarty_modifier_formatfilesize')) { include '/var/www/html/market/app/functions/smarty_plugins/modifier.formatfilesize.php'; } fn_preload_lang_vars(array('general', 'name', 'position', 'file', 'usergroups')); if ($_smarty_tpl->tpl_vars['attachment']->value['attachment_id']) { ?> <?php $_smarty_tpl->tpl_vars["id"] = new Smarty_variable($_smarty_tpl->tpl_vars['attachment']->value['attachment_id'], null, 0); ?> <?php } else { ?> <?php $_smarty_tpl->tpl_vars["id"] = new Smarty_variable("0", null, 0); } ?> <form action="<?php echo htmlspecialchars(fn_url(''), ENT_QUOTES, 'UTF-8'); ?> " method="post" class="form-horizontal form-edit <?php echo htmlspecialchars($_smarty_tpl->tpl_vars['hide_inputs']->value, ENT_QUOTES, 'UTF-8'); ?> " name="attachments_form_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8'); ?> " enctype="multipart/form-data"> <input type="hidden" name="fake" value="1" /> <input type="hidden" name="selected_section" value="attachments" /> <input type="hidden" name="object_id" value="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['object_id']->value, ENT_QUOTES, 'UTF-8'); ?> " /> <input type="hidden" name="object_type" value="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['object_type']->value, ENT_QUOTES, 'UTF-8'); ?> " /> <input type="hidden" name="attachment_id" value="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8'); ?> " /> <input type="hidden" name="redirect_url" value="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['config']->value['current_url'], ENT_QUOTES, 'UTF-8'); ?> " /> <div class="tabs cm-j-tabs clear"> <ul class="nav nav-tabs"> <li id="tab_details_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8'); ?> " class="cm-js active"><a><?php echo $_smarty_tpl->__("general"); ?> </a></li> </ul> </div> <div class="cm-tabs-content"> <div id="content_tab_details_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8'); ?> "> <div class="control-group"> <label for="elm_description_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8'); ?> " class="control-label cm-required"><?php echo $_smarty_tpl->__("name"); ?> </label> <div class="controls"> <input type="text" name="attachment_data[description]" id="elm_description_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8'); ?> " size="60" class="input-medium" value="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['attachment']->value['description'], ENT_QUOTES, 'UTF-8'); ?> " /> </div> </div> <div class="control-group"> <label class="control-label" for="elm_position_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8'); ?> "><?php echo $_smarty_tpl->__("position"); ?> </label> <div class="controls"> <input type="text" name="attachment_data[position]" id="elm_position_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8'); ?> " size="3" class="input-micro" value="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['attachment']->value['position'], ENT_QUOTES, 'UTF-8'); ?> " /> </div> </div> <div class="control-group"> <label for="type_<?php echo htmlspecialchars(md5("attachment_files[" . (string) $_smarty_tpl->tpl_vars['id']->value . "]"), ENT_QUOTES, 'UTF-8'); ?> " class="control-label <?php if (!$_smarty_tpl->tpl_vars['attachment']->value) { ?> cm-required<?php } ?> "><?php echo $_smarty_tpl->__("file"); ?> </label> <div class="controls"> <?php if ($_smarty_tpl->tpl_vars['attachment']->value['filename']) { ?> <div class="text-type-value"> <a href="<?php echo htmlspecialchars(fn_url("attachments.getfile?attachment_id=" . (string) $_smarty_tpl->tpl_vars['attachment']->value['attachment_id'] . "&object_type=" . (string) $_smarty_tpl->tpl_vars['object_type']->value . "&object_id=" . (string) $_smarty_tpl->tpl_vars['object_id']->value), ENT_QUOTES, 'UTF-8'); ?> "><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['attachment']->value['filename'], ENT_QUOTES, 'UTF-8'); ?> </a> (<?php echo smarty_modifier_formatfilesize($_smarty_tpl->tpl_vars['attachment']->value['filesize']); ?> ) </div> <?php } ?> <?php echo $_smarty_tpl->getSubTemplate("common/fileuploader.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('var_name' => "attachment_files[" . (string) $_smarty_tpl->tpl_vars['id']->value . "]"), 0); ?> </div> </div> <div class="control-group"> <label class="control-label"><?php echo $_smarty_tpl->__("usergroups"); ?> </label> <div class="controls"> <?php echo $_smarty_tpl->getSubTemplate("common/select_usergroups.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('id' => "elm_usergroup_" . (string) $_smarty_tpl->tpl_vars['id']->value, 'name' => "attachment_data[usergroup_ids]", 'usergroups' => fn_get_usergroups(array("type" => "C", "status" => array("A", "H"))), 'usergroup_ids' => $_smarty_tpl->tpl_vars['attachment']->value['usergroup_ids'], 'input_extra' => '', 'list_mode' => false), 0); ?> </div> </div> </div> </div> <div class="buttons-container"> <?php if ($_smarty_tpl->tpl_vars['id']->value) { ?> <?php $_smarty_tpl->tpl_vars["hide_first_button"] = new Smarty_variable($_smarty_tpl->tpl_vars['hide_inputs']->value, null, 0); ?> <?php } ?> <?php echo $_smarty_tpl->getSubTemplate("buttons/save_cancel.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('but_name' => "dispatch[attachments.update]", 'cancel_action' => "close", 'hide_first_button' => $_smarty_tpl->tpl_vars['hide_first_button']->value, 'save' => $_smarty_tpl->tpl_vars['id']->value), 0); ?> </div> </form> <?php }
function content_55e6204edb88e9_99321176($_smarty_tpl) { if (!is_callable('smarty_function_script')) { include '/var/www/html/market/app/functions/smarty_plugins/function.script.php'; } if (!is_callable('smarty_modifier_replace')) { include '/var/www/html/market/app/lib/vendor/smarty/smarty/libs/plugins/modifier.replace.php'; } if (!is_callable('smarty_modifier_date_format')) { include '/var/www/html/market/app/functions/smarty_plugins/modifier.date_format.php'; } if (!is_callable('smarty_modifier_formatfilesize')) { include '/var/www/html/market/app/functions/smarty_plugins/modifier.formatfilesize.php'; } if (!is_callable('smarty_block_inline_script')) { include '/var/www/html/market/app/functions/smarty_plugins/block.inline_script.php'; } if (!is_callable('smarty_block_hook')) { include '/var/www/html/market/app/functions/smarty_plugins/block.hook.php'; } fn_preload_lang_vars(array('new_version', 'release_date', 'filesize', 'install', 'package_contents', 'download', 'loading', 'refresh_packages_list', 'settings', 'installed_upgrades', 'upload_upgrade_package', 'upload_upgrade_package', 'upgrade_center')); echo smarty_function_script(array('src' => "js/tygh/tabs.js"), $_smarty_tpl); ?> <?php $_smarty_tpl->_capture_stack[0][] = array("mainbox", null, null); ob_start(); ?> <div class="upgrade-center"> <?php $_smarty_tpl->tpl_vars['packages'] = new Smarty_Variable(); $_smarty_tpl->tpl_vars['packages']->_loop = false; $_smarty_tpl->tpl_vars['type'] = new Smarty_Variable(); $_from = $_smarty_tpl->tpl_vars['upgrade_packages']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } foreach ($_from as $_smarty_tpl->tpl_vars['packages']->key => $_smarty_tpl->tpl_vars['packages']->value) { $_smarty_tpl->tpl_vars['packages']->_loop = true; $_smarty_tpl->tpl_vars['type']->value = $_smarty_tpl->tpl_vars['packages']->key; ?> <?php $_smarty_tpl->tpl_vars['package'] = new Smarty_Variable(); $_smarty_tpl->tpl_vars['package']->_loop = false; $_smarty_tpl->tpl_vars['_id'] = new Smarty_Variable(); $_from = $_smarty_tpl->tpl_vars['packages']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } foreach ($_from as $_smarty_tpl->tpl_vars['package']->key => $_smarty_tpl->tpl_vars['package']->value) { $_smarty_tpl->tpl_vars['package']->_loop = true; $_smarty_tpl->tpl_vars['_id']->value = $_smarty_tpl->tpl_vars['package']->key; ?> <?php $_smarty_tpl->tpl_vars['id'] = new Smarty_variable(smarty_modifier_replace($_smarty_tpl->tpl_vars['_id']->value, ".", "_"), null, 0); ?> <form name="upgrade_form_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['type']->value, ENT_QUOTES, 'UTF-8'); ?> _<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8'); ?> " method="post" action="<?php echo htmlspecialchars(fn_url(), ENT_QUOTES, 'UTF-8'); ?> " class="form-horizontal form-edit cm-disable-check-changes"> <input type="hidden" name="type" value="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['type']->value, ENT_QUOTES, 'UTF-8'); ?> "> <input type="hidden" name="id" value="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['_id']->value, ENT_QUOTES, 'UTF-8'); ?> "> <input type="hidden" name="result_ids" value="install_notices_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8'); ?> ,install_button_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8'); ?> "> <div class="upgrade-center_item"> <div class="upgrade-center_icon"> <?php if ($_smarty_tpl->tpl_vars['type']->value == "core" || $_smarty_tpl->tpl_vars['type']->value == "hotfix") { ?> <i class="glyph-physics1"></i> <?php } else { ?> <i class="glyph-addon"></i> <?php } ?> </div> <div class="upgrade-center_content"> <h4 class="upgrade-center_title"><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['package']->value['name'], ENT_QUOTES, 'UTF-8'); ?> </h4> <ul class="upgrade-center_info"> <li> <strong><?php echo $_smarty_tpl->__("new_version"); ?> :</strong> <?php echo htmlspecialchars($_smarty_tpl->tpl_vars['package']->value['to_version'], ENT_QUOTES, 'UTF-8'); ?> </li> <li> <strong><?php echo $_smarty_tpl->__("release_date"); ?> :</strong> <?php echo htmlspecialchars(smarty_modifier_date_format($_smarty_tpl->tpl_vars['package']->value['timestamp']), ENT_QUOTES, 'UTF-8'); ?> </li> <li> <strong><?php echo $_smarty_tpl->__("filesize"); ?> :</strong> <?php echo smarty_modifier_formatfilesize($_smarty_tpl->tpl_vars['package']->value['size']); ?> </li> </ul> <p class="upgrade-center_desc"> <?php echo smarty_modifier_replace($_smarty_tpl->tpl_vars['package']->value['description'], "\n", "<br>"); ?> </p> <?php if ($_smarty_tpl->tpl_vars['package']->value['ready_to_install']) { ?> <?php echo $_smarty_tpl->getSubTemplate("views/upgrade_center/components/install_button.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('id' => $_smarty_tpl->tpl_vars['id']->value, 'caption' => __("install")), 0); ?> <a class="upgrade-center_pkg cm-dialog-opener cm-ajax" href="<?php echo htmlspecialchars(fn_url("upgrade_center.package_content?package_id=" . (string) $_smarty_tpl->tpl_vars['_id']->value), ENT_QUOTES, 'UTF-8'); ?> " data-ca-target-id="package_content_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['id']->value, ENT_QUOTES, 'UTF-8'); ?> " data-ca-dialog-title="<?php echo htmlspecialchars(htmlspecialchars($_smarty_tpl->tpl_vars['package']->value['name'], ENT_QUOTES, 'UTF-8', true), ENT_QUOTES, 'UTF-8'); ?> "><?php echo $_smarty_tpl->__("package_contents"); ?> </a> <?php } else { ?> <div class="upgrade-center_install"> <input name="dispatch[upgrade_center.download]" type="submit" class="btn cm-loading-btn" value="<?php echo $_smarty_tpl->__("download"); ?> " data-ca-loading-text="<?php echo $_smarty_tpl->__("loading"); ?> "> </div> <?php } ?> <?php echo $_smarty_tpl->getSubTemplate("views/upgrade_center/components/notices.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('id' => $_smarty_tpl->tpl_vars['id']->value, 'type' => $_smarty_tpl->tpl_vars['type']->value), 0); ?> </div> </div> </form> <?php } ?> <?php } if (!$_smarty_tpl->tpl_vars['packages']->_loop) { ?> <p class="no-items"><?php echo $_smarty_tpl->__('text_no_upgrades_available'); ?> </p> <?php } ?> </div> <?php $_smarty_tpl->smarty->_tag_stack[] = array('inline_script', array()); $_block_repeat = true; echo smarty_block_inline_script(array(), null, $_smarty_tpl, $_block_repeat); while ($_block_repeat) { ob_start(); echo '<script'; ?> type="text/javascript"> (function(_, $){ $('.cm-loading-btn').on('click', function() { var self = $(this); setTimeout(function() { self.prop('value', self.data('caLoadingText')); $('.cm-loading-btn').attr('disabled', true); }, 50); return true; }); })(Tygh, Tygh.$); <?php echo '</script'; ?> ><?php $_block_content = ob_get_clean(); $_block_repeat = false; echo smarty_block_inline_script(array(), $_block_content, $_smarty_tpl, $_block_repeat); } array_pop($_smarty_tpl->smarty->_tag_stack); ?> <?php list($_capture_buffer, $_capture_assign, $_capture_append) = array_pop($_smarty_tpl->_capture_stack[0]); if (!empty($_capture_buffer)) { if (isset($_capture_assign)) { $_smarty_tpl->assign($_capture_assign, ob_get_contents()); } if (isset($_capture_append)) { $_smarty_tpl->append($_capture_append, ob_get_contents()); } Smarty::$_smarty_vars['capture'][$_capture_buffer] = ob_get_clean(); } else { $_smarty_tpl->capture_error(); } ?> <?php $_smarty_tpl->_capture_stack[0][] = array("buttons", null, null); ob_start(); ?> <?php $_smarty_tpl->_capture_stack[0][] = array("tools_list", null, null); ob_start(); ?> <li><?php smarty_template_function_btn($_smarty_tpl, array('type' => "list", 'text' => __("refresh_packages_list"), 'href' => "upgrade_center.refresh")); ?> </li> <li><?php smarty_template_function_btn($_smarty_tpl, array('type' => "list", 'text' => __("settings"), 'href' => "settings.manage§ion_id=Upgrade_center")); ?> </li> <?php list($_capture_buffer, $_capture_assign, $_capture_append) = array_pop($_smarty_tpl->_capture_stack[0]); if (!empty($_capture_buffer)) { if (isset($_capture_assign)) { $_smarty_tpl->assign($_capture_assign, ob_get_contents()); } if (isset($_capture_append)) { $_smarty_tpl->append($_capture_append, ob_get_contents()); } Smarty::$_smarty_vars['capture'][$_capture_buffer] = ob_get_clean(); } else { $_smarty_tpl->capture_error(); } ?> <?php smarty_template_function_dropdown($_smarty_tpl, array('content' => Smarty::$_smarty_vars['capture']['tools_list'])); ?> <?php echo Smarty::$_smarty_vars['capture']['install_btn']; ?> <?php if ($_smarty_tpl->tpl_vars['installed_upgrades']->value['has_upgrades']) { ?> <?php echo $_smarty_tpl->getSubTemplate("buttons/button.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('but_href' => "upgrade_center.installed_upgrades", 'but_text' => __("installed_upgrades"), 'but_role' => "link"), 0); ?> <?php } list($_capture_buffer, $_capture_assign, $_capture_append) = array_pop($_smarty_tpl->_capture_stack[0]); if (!empty($_capture_buffer)) { if (isset($_capture_assign)) { $_smarty_tpl->assign($_capture_assign, ob_get_contents()); } if (isset($_capture_append)) { $_smarty_tpl->append($_capture_append, ob_get_contents()); } Smarty::$_smarty_vars['capture'][$_capture_buffer] = ob_get_clean(); } else { $_smarty_tpl->capture_error(); } ?> <?php $_smarty_tpl->_capture_stack[0][] = array("upload_upgrade_package", null, null); ob_start(); ?> <?php echo $_smarty_tpl->getSubTemplate("views/upgrade_center/components/upload_upgrade_package.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array(), 0); ?> <?php list($_capture_buffer, $_capture_assign, $_capture_append) = array_pop($_smarty_tpl->_capture_stack[0]); if (!empty($_capture_buffer)) { if (isset($_capture_assign)) { $_smarty_tpl->assign($_capture_assign, ob_get_contents()); } if (isset($_capture_append)) { $_smarty_tpl->append($_capture_append, ob_get_contents()); } Smarty::$_smarty_vars['capture'][$_capture_buffer] = ob_get_clean(); } else { $_smarty_tpl->capture_error(); } ?> <?php $_smarty_tpl->_capture_stack[0][] = array("adv_buttons", null, null); ob_start(); ?> <?php $_smarty_tpl->smarty->_tag_stack[] = array('hook', array('name' => "upgrade_center:adv_buttons")); $_block_repeat = true; echo smarty_block_hook(array('name' => "upgrade_center:adv_buttons"), null, $_smarty_tpl, $_block_repeat); while ($_block_repeat) { ob_start(); ?> <?php echo $_smarty_tpl->getSubTemplate("common/popupbox.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('id' => "upload_upgrade_package_container", 'text' => __("upload_upgrade_package"), 'title' => __("upload_upgrade_package"), 'content' => Smarty::$_smarty_vars['capture']['upload_upgrade_package'], 'act' => "general", 'link_class' => "cm-dialog-auto-size", 'icon' => "icon-plus", 'link_text' => ''), 0); ?> <?php $_block_content = ob_get_clean(); $_block_repeat = false; echo smarty_block_hook(array('name' => "upgrade_center:adv_buttons"), $_block_content, $_smarty_tpl, $_block_repeat); } array_pop($_smarty_tpl->smarty->_tag_stack); ?> <?php list($_capture_buffer, $_capture_assign, $_capture_append) = array_pop($_smarty_tpl->_capture_stack[0]); if (!empty($_capture_buffer)) { if (isset($_capture_assign)) { $_smarty_tpl->assign($_capture_assign, ob_get_contents()); } if (isset($_capture_append)) { $_smarty_tpl->append($_capture_append, ob_get_contents()); } Smarty::$_smarty_vars['capture'][$_capture_buffer] = ob_get_clean(); } else { $_smarty_tpl->capture_error(); } ?> <?php echo $_smarty_tpl->getSubTemplate("common/mainbox.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('title' => __("upgrade_center"), 'content' => Smarty::$_smarty_vars['capture']['mainbox'], 'buttons' => Smarty::$_smarty_vars['capture']['buttons'], 'adv_buttons' => Smarty::$_smarty_vars['capture']['adv_buttons'], 'sidebar' => Smarty::$_smarty_vars['capture']['sidebar']), 0); ?> <?php }
function content_55ccec9fb65154_71122520($_smarty_tpl) { if (!is_callable('smarty_modifier_formatfilesize')) { include '/home/coriolan/public_html/lead/app/functions/smarty_plugins/modifier.formatfilesize.php'; } if (!is_callable('smarty_function_set_id')) { include '/home/coriolan/public_html/lead/app/functions/smarty_plugins/function.set_id.php'; } fn_preload_lang_vars(array('download', 'download')); if ($_smarty_tpl->tpl_vars['runtime']->value['customization_mode']['design'] == "Y" && @constant('AREA') == "C") { $_smarty_tpl->_capture_stack[0][] = array("template_content", null, null); ob_start(); ?> <?php if ($_smarty_tpl->tpl_vars['attachments_data']->value) { ?> <div class="attachments" id="content_attachments"> <?php $_smarty_tpl->tpl_vars["file"] = new Smarty_Variable(); $_smarty_tpl->tpl_vars["file"]->_loop = false; $_from = $_smarty_tpl->tpl_vars['attachments_data']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } foreach ($_from as $_smarty_tpl->tpl_vars["file"]->key => $_smarty_tpl->tpl_vars["file"]->value) { $_smarty_tpl->tpl_vars["file"]->_loop = true; ?> <p class="attachment__item"> <?php echo htmlspecialchars($_smarty_tpl->tpl_vars['file']->value['description'], ENT_QUOTES, 'UTF-8'); ?> (<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['file']->value['filename'], ENT_QUOTES, 'UTF-8'); ?> , <?php echo smarty_modifier_formatfilesize($_smarty_tpl->tpl_vars['file']->value['filesize']); ?> ) [<a class="attachment__a cm-no-ajax" href="<?php echo htmlspecialchars(fn_url("attachments.getfile?attachment_id=" . (string) $_smarty_tpl->tpl_vars['file']->value['attachment_id']), ENT_QUOTES, 'UTF-8'); ?> "><?php echo $_smarty_tpl->__("download"); ?> </a>] </p> <?php } ?> </div> <?php } list($_capture_buffer, $_capture_assign, $_capture_append) = array_pop($_smarty_tpl->_capture_stack[0]); if (!empty($_capture_buffer)) { if (isset($_capture_assign)) { $_smarty_tpl->assign($_capture_assign, ob_get_contents()); } if (isset($_capture_append)) { $_smarty_tpl->append($_capture_append, ob_get_contents()); } Smarty::$_smarty_vars['capture'][$_capture_buffer] = ob_get_clean(); } else { $_smarty_tpl->capture_error(); } if (trim(Smarty::$_smarty_vars['capture']['template_content'])) { if ($_smarty_tpl->tpl_vars['auth']->value['area'] == "A") { ?> <span class="cm-template-box template-box" data-ca-te-template="addons/attachments/blocks/product_tabs/attachments.tpl" id="<?php echo smarty_function_set_id(array('name' => "addons/attachments/blocks/product_tabs/attachments.tpl"), $_smarty_tpl); ?> "><div class="cm-template-icon icon-edit ty-icon-edit hidden"></div><?php echo Smarty::$_smarty_vars['capture']['template_content']; ?> <!--[/tpl_id]--></span><?php } else { echo Smarty::$_smarty_vars['capture']['template_content']; } } } else { ?> <?php if ($_smarty_tpl->tpl_vars['attachments_data']->value) { ?> <div class="attachments" id="content_attachments"> <?php $_smarty_tpl->tpl_vars["file"] = new Smarty_Variable(); $_smarty_tpl->tpl_vars["file"]->_loop = false; $_from = $_smarty_tpl->tpl_vars['attachments_data']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } foreach ($_from as $_smarty_tpl->tpl_vars["file"]->key => $_smarty_tpl->tpl_vars["file"]->value) { $_smarty_tpl->tpl_vars["file"]->_loop = true; ?> <p class="attachment__item"> <?php echo htmlspecialchars($_smarty_tpl->tpl_vars['file']->value['description'], ENT_QUOTES, 'UTF-8'); ?> (<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['file']->value['filename'], ENT_QUOTES, 'UTF-8'); ?> , <?php echo smarty_modifier_formatfilesize($_smarty_tpl->tpl_vars['file']->value['filesize']); ?> ) [<a class="attachment__a cm-no-ajax" href="<?php echo htmlspecialchars(fn_url("attachments.getfile?attachment_id=" . (string) $_smarty_tpl->tpl_vars['file']->value['attachment_id']), ENT_QUOTES, 'UTF-8'); ?> "><?php echo $_smarty_tpl->__("download"); ?> </a>] </p> <?php } ?> </div> <?php } } }
function content_55ccec9fb3c4a2_14178081($_smarty_tpl) { if (!is_callable('smarty_modifier_formatfilesize')) { include '/home/coriolan/public_html/lead/app/functions/smarty_plugins/modifier.formatfilesize.php'; } if (!is_callable('smarty_function_set_id')) { include '/home/coriolan/public_html/lead/app/functions/smarty_plugins/function.set_id.php'; } fn_preload_lang_vars(array('filename', 'filesize', 'licence_agreement', 'readme', 'filename', 'filesize', 'licence_agreement', 'readme')); if ($_smarty_tpl->tpl_vars['runtime']->value['customization_mode']['design'] == "Y" && @constant('AREA') == "C") { $_smarty_tpl->_capture_stack[0][] = array("template_content", null, null); ob_start(); if ($_smarty_tpl->tpl_vars['files']->value) { ?> <table class="ty-table"> <tr> <th><?php echo $_smarty_tpl->__("filename"); ?> </th> <th><?php echo $_smarty_tpl->__("filesize"); ?> </th> </tr> <?php $_smarty_tpl->tpl_vars["file"] = new Smarty_Variable(); $_smarty_tpl->tpl_vars["file"]->_loop = false; $_from = $_smarty_tpl->tpl_vars['files']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } foreach ($_from as $_smarty_tpl->tpl_vars["file"]->key => $_smarty_tpl->tpl_vars["file"]->value) { $_smarty_tpl->tpl_vars["file"]->_loop = true; ?> <tr> <td style="width: 80%"> <a class="cm-no-ajax" href="<?php echo htmlspecialchars(fn_url("orders.get_file?file_id=" . (string) $_smarty_tpl->tpl_vars['file']->value['file_id'] . "&preview=Y"), ENT_QUOTES, 'UTF-8'); ?> "><strong><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['file']->value['file_name'], ENT_QUOTES, 'UTF-8'); ?> </strong></a> <?php if ($_smarty_tpl->tpl_vars['file']->value['readme'] || $_smarty_tpl->tpl_vars['file']->value['license']) { ?> <ul> <?php if ($_smarty_tpl->tpl_vars['file']->value['license']) { ?> <li><a onclick="Tygh.$('#license_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['file']->value['file_id'], ENT_QUOTES, 'UTF-8'); ?> ').toggle(); return false;"><?php echo $_smarty_tpl->__("licence_agreement"); ?> </a></li> <div class="hidden" id="license_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['file']->value['file_id'], ENT_QUOTES, 'UTF-8'); ?> "><?php echo $_smarty_tpl->tpl_vars['file']->value['license']; ?> </div> <?php } ?> <?php if ($_smarty_tpl->tpl_vars['file']->value['readme']) { ?> <li><a onclick="Tygh.$('#readme_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['file']->value['file_id'], ENT_QUOTES, 'UTF-8'); ?> ').toggle(); return false;"><?php echo $_smarty_tpl->__("readme"); ?> </a></li> <div class="hidden" id="readme_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['file']->value['file_id'], ENT_QUOTES, 'UTF-8'); ?> "><?php echo $_smarty_tpl->tpl_vars['file']->value['readme']; ?> </div> <?php } ?> </ul> <?php } ?> </td> <td class="ty-valign-top"> <strong><?php echo smarty_modifier_formatfilesize($_smarty_tpl->tpl_vars['file']->value['file_size']); ?> </strong> </td> <?php } ?> </table> <?php } list($_capture_buffer, $_capture_assign, $_capture_append) = array_pop($_smarty_tpl->_capture_stack[0]); if (!empty($_capture_buffer)) { if (isset($_capture_assign)) { $_smarty_tpl->assign($_capture_assign, ob_get_contents()); } if (isset($_capture_append)) { $_smarty_tpl->append($_capture_append, ob_get_contents()); } Smarty::$_smarty_vars['capture'][$_capture_buffer] = ob_get_clean(); } else { $_smarty_tpl->capture_error(); } if (trim(Smarty::$_smarty_vars['capture']['template_content'])) { if ($_smarty_tpl->tpl_vars['auth']->value['area'] == "A") { ?> <span class="cm-template-box template-box" data-ca-te-template="views/products/components/product_files.tpl" id="<?php echo smarty_function_set_id(array('name' => "views/products/components/product_files.tpl"), $_smarty_tpl); ?> "><div class="cm-template-icon icon-edit ty-icon-edit hidden"></div><?php echo Smarty::$_smarty_vars['capture']['template_content']; ?> <!--[/tpl_id]--></span><?php } else { echo Smarty::$_smarty_vars['capture']['template_content']; } } } else { if ($_smarty_tpl->tpl_vars['files']->value) { ?> <table class="ty-table"> <tr> <th><?php echo $_smarty_tpl->__("filename"); ?> </th> <th><?php echo $_smarty_tpl->__("filesize"); ?> </th> </tr> <?php $_smarty_tpl->tpl_vars["file"] = new Smarty_Variable(); $_smarty_tpl->tpl_vars["file"]->_loop = false; $_from = $_smarty_tpl->tpl_vars['files']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); } foreach ($_from as $_smarty_tpl->tpl_vars["file"]->key => $_smarty_tpl->tpl_vars["file"]->value) { $_smarty_tpl->tpl_vars["file"]->_loop = true; ?> <tr> <td style="width: 80%"> <a class="cm-no-ajax" href="<?php echo htmlspecialchars(fn_url("orders.get_file?file_id=" . (string) $_smarty_tpl->tpl_vars['file']->value['file_id'] . "&preview=Y"), ENT_QUOTES, 'UTF-8'); ?> "><strong><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['file']->value['file_name'], ENT_QUOTES, 'UTF-8'); ?> </strong></a> <?php if ($_smarty_tpl->tpl_vars['file']->value['readme'] || $_smarty_tpl->tpl_vars['file']->value['license']) { ?> <ul> <?php if ($_smarty_tpl->tpl_vars['file']->value['license']) { ?> <li><a onclick="Tygh.$('#license_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['file']->value['file_id'], ENT_QUOTES, 'UTF-8'); ?> ').toggle(); return false;"><?php echo $_smarty_tpl->__("licence_agreement"); ?> </a></li> <div class="hidden" id="license_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['file']->value['file_id'], ENT_QUOTES, 'UTF-8'); ?> "><?php echo $_smarty_tpl->tpl_vars['file']->value['license']; ?> </div> <?php } ?> <?php if ($_smarty_tpl->tpl_vars['file']->value['readme']) { ?> <li><a onclick="Tygh.$('#readme_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['file']->value['file_id'], ENT_QUOTES, 'UTF-8'); ?> ').toggle(); return false;"><?php echo $_smarty_tpl->__("readme"); ?> </a></li> <div class="hidden" id="readme_<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['file']->value['file_id'], ENT_QUOTES, 'UTF-8'); ?> "><?php echo $_smarty_tpl->tpl_vars['file']->value['readme']; ?> </div> <?php } ?> </ul> <?php } ?> </td> <td class="ty-valign-top"> <strong><?php echo smarty_modifier_formatfilesize($_smarty_tpl->tpl_vars['file']->value['file_size']); ?> </strong> </td> <?php } ?> </table> <?php } } }