1) Нужно в файле: engine/classes/js/jquery.xf.upload.js
найти
$(".n0upload .n0uploadList span.close").live("click"
заменить на
$(".n0upload .n0uploadList").on("click", "span.close"
2) Нужно в файле: engine/ajax/xfields.upload.php
найти
yes
заменить на
1
3) Нужно в файле: engine/inc/xfields.upload.php
найти
$ajax.= '<script language="javascript" type="text/javascript">var dle_xfuplinpvw=\'' . (function_exists('echo
добавить ниже
$ajax.= "
<script type=\"text/javascript\" src=\"{$config['http_home_url']}engine/classes/highslide/highslide.js\"></script>
<script type=\"text/javascript\">
<!--
hs.graphicsDir = '{$config['http_home_url']}engine/classes/highslide/graphics/';
hs.outlineType = 'rounded-white';
hs.numberOfImagesToPreload = 0;
hs.showCredits = false;
hs.lang = { loadingText : '',playTitle : '',pauseTitle: '',previousTitle : '',nextTitle : '',moveTitle : '',closeTitle : '',fullExpandTitle : '',restoreTitle : '',focusTitle : '',loadingTitle : '' };
hs.align = 'center';
hs.transitions = ['expand', 'crossfade'];
hs.addSlideshow({
interval: 4000,
repeat: false,
useControls: true,
fixedControls: 'fit',
overlayOptions: {
opacity: .75,
position: 'bottom center',
hideOnMouseOut: true
}
});
//-->
</script>";
4) Нужно в файле: engine/inc/xfields.upload.php
найти
$output .= "<tr id=\"{$holderid}\" {$uid}>
<td class=addnews>{$value[1]}:</td>
<td class=xfields colspan=\"2\">{$n0xf_output}</td>
</tr>";
заменить на
$output.= "<div id=\"{$holderid}\" class=\"form-group\" {$uid}>
<label class=\"control-label col-lg-2\">{$value[1]}:[if-optional]<div class=\"note large\"><i class=\"icon-warning-sign\"></i> {$lang['xf_not_notig']}</div>[/if-optional][not-optional]<div class=\"note large\"><i class=\"icon-warning-sign\"></i> {$lang['xf_notig']}</div>[/not-optional]</label>
<div class=\"col-lg-10\"><div class=\"editor-panel\">{$panel}{$n0xf_output}</div></div></div>";