Merge branch 'tiket-productTemplate' into develop
This commit is contained in:
commit
1611b7d87b
@ -63,6 +63,8 @@ class AdminImport extends AdminTab
|
||||
'name' => array('AdminImport', 'createMultiLangField'),
|
||||
'description' => array('AdminImport', 'createMultiLangField'),
|
||||
'description_short' => array('AdminImport', 'createMultiLangField'),
|
||||
'description_more' => array('AdminImport', 'createMultiLangField'),
|
||||
'videos' => array('AdminImport', 'createMultiLangField'),
|
||||
'meta_title' => array('AdminImport', 'createMultiLangField'),
|
||||
'meta_keywords' => array('AdminImport', 'createMultiLangField'),
|
||||
'meta_description' => array('AdminImport', 'createMultiLangField'),
|
||||
|
@ -3275,27 +3275,7 @@ class AdminProducts extends AdminTab
|
||||
</tr>';
|
||||
echo '</td></tr></table>
|
||||
</div>';
|
||||
echo '</td></tr>
|
||||
<tr><td colspan="2" style="padding-bottom:5px;"><hr style="width:100%;" /></td></tr>
|
||||
<tr>
|
||||
<td class="col-left">'.$this->l('Videos :').'</td>
|
||||
<td style="padding-bottom:5px;" class="translatable">';
|
||||
foreach ($this->_languages as $language)
|
||||
echo ' <div class="lang_'.$language['id_lang'].'" style="display: '.($language['id_lang'] == $this->_defaultFormLanguage ? 'block' : 'none').';float: left;">
|
||||
<textarea class="rte" cols="100" rows="10" id="videos_'.$language['id_lang'].'" name="videos_'.$language['id_lang'].'">'.htmlentities(stripslashes($this->getFieldValue($obj, 'videos', $language['id_lang'])), ENT_COMPAT, 'UTF-8').'</textarea>
|
||||
</div>';
|
||||
echo ' </td>
|
||||
</tr>';
|
||||
|
||||
echo '</td></tr>
|
||||
<tr><td colspan="2" style="padding-bottom:5px;"><hr style="width:100%;" /></td></tr>
|
||||
<tr>
|
||||
<td class="col-left">'.$this->l('More description:').'<br /><br /></td>
|
||||
<td style="padding-bottom:5px;" class="translatable">';
|
||||
foreach ($this->_languages as $language)
|
||||
echo ' <div class="lang_'.$language['id_lang'].'" style="display: '.($language['id_lang'] == $this->_defaultFormLanguage ? 'block' : 'none').';float: left;">
|
||||
<textarea class="rte" cols="100" rows="10" id="description_more_'.$language['id_lang'].'" name="description_more_'.$language['id_lang'].'">'.htmlentities(stripslashes($this->getFieldValue($obj, 'description_more', $language['id_lang'])), ENT_COMPAT, 'UTF-8').'</textarea>
|
||||
</div>';
|
||||
echo ' </td>
|
||||
</tr>
|
||||
<tr>
|
||||
@ -3316,6 +3296,27 @@ class AdminProducts extends AdminTab
|
||||
echo ' <div class="lang_'.$language['id_lang'].'" style="display: '.($language['id_lang'] == $this->_defaultFormLanguage ? 'block' : 'none').';float: left;">
|
||||
<textarea class="rte" cols="100" rows="20" id="description_'.$language['id_lang'].'" name="description_'.$language['id_lang'].'">'.htmlentities(stripslashes($this->getFieldValue($obj, 'description', $language['id_lang'])), ENT_COMPAT, 'UTF-8').'</textarea>
|
||||
</div>';
|
||||
echo ' </td>
|
||||
</tr>
|
||||
<tr><td colspan="2" style="padding-bottom:5px;"><hr style="width:100%;" /></td></tr>
|
||||
<tr>
|
||||
<td class="col-left">'.$this->l('More description:').'<br /><br /></td>
|
||||
<td style="padding-bottom:5px;" class="translatable">';
|
||||
foreach ($this->_languages as $language)
|
||||
echo ' <div class="lang_'.$language['id_lang'].'" style="display: '.($language['id_lang'] == $this->_defaultFormLanguage ? 'block' : 'none').';float: left;">
|
||||
<textarea class="other_textarea" cols="100" rows="3" id="description_more_'.$language['id_lang'].'" name="description_more_'.$language['id_lang'].'">'.htmlentities(stripslashes($this->getFieldValue($obj, 'description_more', $language['id_lang'])), ENT_COMPAT, 'UTF-8').'</textarea>
|
||||
</div>';
|
||||
echo ' </td>
|
||||
</tr>
|
||||
<tr><td colspan="2" style="padding-bottom:5px;"><hr style="width:100%;" /></td></tr>
|
||||
<tr>
|
||||
<td class="col-left">'.$this->l('Videos :').'</td>
|
||||
<td style="padding-bottom:5px;" class="translatable">';
|
||||
foreach ($this->_languages as $language)
|
||||
echo ' <div class="lang_'.$language['id_lang'].'" style="display: '.($language['id_lang'] == $this->_defaultFormLanguage ? 'block' : 'none').';float: left;">
|
||||
<textarea class=" other_textarea" cols="100" rows="5" id="videos_'.$language['id_lang'].'" name="videos_'.$language['id_lang'].'">'.htmlentities(stripslashes($this->getFieldValue($obj, 'videos', $language['id_lang'])), ENT_COMPAT, 'UTF-8').'</textarea>
|
||||
</div>';
|
||||
|
||||
echo ' </td>
|
||||
</tr>';
|
||||
echo '
|
||||
@ -3423,6 +3424,38 @@ class AdminProducts extends AdminTab
|
||||
<script type="text/javascript">
|
||||
toggleVirtualProduct(getE(\'is_virtual_good\'));
|
||||
unitPriceWithTax(\'unit\');
|
||||
|
||||
// other_textarea different config
|
||||
$(function() {
|
||||
tinymce.init({
|
||||
mode : "specific_textareas",
|
||||
theme : "advanced",
|
||||
skin:"cirkuit",
|
||||
editor_selector : "other_textarea",
|
||||
editor_deselector : "noEditor",
|
||||
plugins : "safari,pagebreak,style,table,advimage,advlink,inlinepopups,media,contextmenu,paste,fullscreen,xhtmlxtras,preview",
|
||||
// Theme options
|
||||
theme_advanced_buttons1 : "newdocument,|,bold,italic,underline,strikethrough,|,justifyleft,justifycenter,justifyright,justifyfull,styleselect,formatselect,fontselect,fontsizeselect",
|
||||
theme_advanced_buttons2 : "cut,copy,paste,pastetext,pasteword,|,search,replace,|,bullist,numlist,|,outdent,indent,blockquote,|,undo,redo,|,link,unlink,anchor,image,cleanup,help,code,,|,forecolor,backcolor",
|
||||
theme_advanced_buttons3 : "tablecontrols,|,hr,removeformat,visualaid,|,sub,sup,|,charmap,media,|,ltr,rtl,|,fullscreen",
|
||||
theme_advanced_buttons4 : "styleprops,|,cite,abbr,acronym,del,ins,attribs,pagebreak",
|
||||
theme_advanced_toolbar_location : "top",
|
||||
theme_advanced_toolbar_align : "left",
|
||||
theme_advanced_statusbar_location : "bottom",
|
||||
theme_advanced_resizing : false,
|
||||
content_css : pathCSS+"global.css",
|
||||
document_base_url : ad,
|
||||
width: "600",
|
||||
height: "300",
|
||||
font_size_style_values : "8pt, 10pt, 12pt, 14pt, 18pt, 24pt, 36pt",
|
||||
elements : "nourlconvert,ajaxfilemanager",
|
||||
file_browser_callback : "ajaxfilemanager",
|
||||
entity_encoding: "raw",
|
||||
convert_urls : false,
|
||||
language : iso,
|
||||
extended_valid_elements: "iframe[src,width,height,frameborder,marginwidth,marginheight],script[type,src]"
|
||||
});
|
||||
});
|
||||
</script>';
|
||||
$categoryBox = Tools::getValue('categoryBox', array());
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user