Commit 3341e72a authored by Patrick's avatar Patrick

use of cms 3.0.3, ckeditor using bootstrap 3, many new features.

Signed-off-by: 's avatarPatrick <pcolmant@gmail.com>
parent 5291b26f
This diff is collapsed.
......@@ -6,24 +6,44 @@ html {
}
body {
/* Margin bottom by footer height */
margin-bottom: 50px;
margin-bottom: 60px;
}
#footer {
.footer {
position: absolute;
bottom: 0;
width: 100%;
/* Set the fixed height of the footer here */
height: 50px;
height: 60px;
background-color: #f5f5f5;
}
/* Move down content because we have a fixed navbar that is 50px tall */
body {
padding-top: 60px;
padding-bottom: 20px;
/* Custom page CSS
-------------------------------------------------- */
.offer-description {
position: relative;
height: 200px;
margin-top: 20px;
overflow: auto;
}
body > .container {
padding: 60px 15px 0;
}
.container .text-muted {
margin: 20px 0;
}
.footer > .container {
padding-right: 15px;
padding-left: 15px;
}
code {
font-size: 80%;
}
/* automaticaly display menu on mouse over */
ul.nav li.dropdown:hover > ul.dropdown-menu {
display: block;
}
\ No newline at end of file
}
/**
* @license Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved.
* For licensing, see LICENSE.html or http://ckeditor.com/license
*/
CKEDITOR.editorConfig = function( config ) {
// Define changes to default configuration here. For example:
// config.language = 'fr';
// config.uiColor = '#AADC6E';
};
// IMPORTANT PCO : Allow epmty span tag needed for bootstrap glyficons
CKEDITOR.dtd.$removeEmpty.span = 0;
/*
Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or http://ckeditor.com/license
*/
.cke_tpl_list
{
border: #dcdcdc 2px solid;
background-color: #ffffff;
overflow-y: auto;
overflow-x: hidden;
width: 100%;
height: 220px;
}
.cke_tpl_item
{
margin: 5px;
padding: 7px;
border: #eeeeee 1px solid;
*width: 88%;
}
.cke_tpl_preview
{
border-collapse: separate;
text-indent:0;
width: 100%;
}
.cke_tpl_preview td
{
padding: 2px;
vertical-align: middle;
}
.cke_tpl_preview .cke_tpl_preview_img
{
width: 100px;
}
.cke_tpl_preview span
{
white-space: normal;
}
.cke_tpl_title
{
font-weight: bold;
}
.cke_tpl_list a:hover .cke_tpl_item,
.cke_tpl_list a:focus .cke_tpl_item,
.cke_tpl_list a:active .cke_tpl_item
{
border: #ff9933 1px solid;
background-color: #fffacd;
}
.cke_tpl_list a:hover *,
.cke_tpl_list a:focus *,
.cke_tpl_list a:active *
{
cursor: pointer;
}
/* IE6 contextual selectors childs won't get :hover transition until,
the hover style of the link itself contains certain CSS declarations.*/
.cke_browser_ie6 .cke_tpl_list a:active,
.cke_browser_ie6 .cke_tpl_list a:hover,
.cke_browser_ie6 .cke_tpl_list a:focus
{
background-position: 0 0;
}
.cke_hc .cke_tpl_list a:hover .cke_tpl_item,
.cke_hc .cke_tpl_list a:focus .cke_tpl_item,
.cke_hc .cke_tpl_list a:active .cke_tpl_item
{
border-width: 3px;
}
.cke_tpl_empty, .cke_tpl_loading
{
text-align: center;
padding: 5px;
}
/**
* @license Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved.
* For licensing, see LICENSE.md or http://ckeditor.com/license
*/
( function() {
var doc = CKEDITOR.document;
CKEDITOR.dialog.add( 'templates', function( editor ) {
// Constructs the HTML view of the specified templates data.
function renderTemplatesList( container, templatesDefinitions ) {
// clear loading wait text.
container.setHtml( '' );
for ( var i = 0, totalDefs = templatesDefinitions.length; i < totalDefs; i++ ) {
var definition = CKEDITOR.getTemplates( templatesDefinitions[ i ] ),
imagesPath = definition.imagesPath,
templates = definition.templates,
count = templates.length;
for ( var j = 0; j < count; j++ ) {
var template = templates[ j ],
item = createTemplateItem( template, imagesPath );
item.setAttribute( 'aria-posinset', j + 1 );
item.setAttribute( 'aria-setsize', count );
container.append( item );
}
}
}
function createTemplateItem( template, imagesPath ) {
var item = CKEDITOR.dom.element.createFromHtml( '<a href="javascript:void(0)" tabIndex="-1" role="option" >' +
'<div class="cke_tpl_item"></div>' +
'</a>' );
// Build the inner HTML of our new item DIV.
var html = '<table style="width:350px;" class="cke_tpl_preview" role="presentation"><tr>';
if ( template.image && imagesPath )
html += '<td class="cke_tpl_preview_img"><img src="' + CKEDITOR.getUrl( imagesPath + template.image ) + '"' + ( CKEDITOR.env.ie6Compat ? ' onload="this.width=this.width"' : '' ) + ' alt="" title=""></td>';
html += '<td style="white-space:normal;"><span class="cke_tpl_title">' + template.title + '</span><br/>';
if ( template.description )
html += '<span>' + template.description + '</span>';
html += '</td></tr></table>';
item.getFirst().setHtml( html );
item.on( 'click', function() {
insertTemplate( template.html );
} );
return item;
}
// Insert the specified template content into editor.
// @param {Number} index
function insertTemplate( html ) {
var dialog = CKEDITOR.dialog.getCurrent(),
isReplace = dialog.getValueOf( 'selectTpl', 'chkInsertOpt' );
if ( isReplace ) {
editor.fire( 'saveSnapshot' );
// Everything should happen after the document is loaded (#4073).
editor.setData( html, function() {
dialog.hide();
// Place the cursor at the first editable place.
var range = editor.createRange();
range.moveToElementEditStart( editor.editable() );
range.select();
setTimeout( function() {
editor.fire( 'saveSnapshot' );
}, 0 );
} );
} else {
editor.insertHtml( html );
dialog.hide();
}
}
function keyNavigation( evt ) {
var target = evt.data.getTarget(),
onList = listContainer.equals( target );
// Keyboard navigation for template list.
if ( onList || listContainer.contains( target ) ) {
var keystroke = evt.data.getKeystroke(),
items = listContainer.getElementsByTag( 'a' ),
focusItem;
if ( items ) {
// Focus not yet onto list items?
if ( onList )
focusItem = items.getItem( 0 );
else {
switch ( keystroke ) {
case 40: // ARROW-DOWN
focusItem = target.getNext();
break;
case 38: // ARROW-UP
focusItem = target.getPrevious();
break;
case 13: // ENTER
case 32: // SPACE
target.fire( 'click' );
}
}
if ( focusItem ) {
focusItem.focus();
evt.data.preventDefault();
}
}
}
}
// Load skin at first.
var plugin = CKEDITOR.plugins.get( 'templates' );
CKEDITOR.document.appendStyleSheet( CKEDITOR.getUrl( plugin.path + 'dialogs/templates.css' ) );
var listContainer;
var templateListLabelId = 'cke_tpl_list_label_' + CKEDITOR.tools.getNextNumber(),
lang = editor.lang.templates,
config = editor.config;
return {
title: editor.lang.templates.title,
minWidth: CKEDITOR.env.ie ? 440 : 400,
minHeight: 340,
contents: [
{
id: 'selectTpl',
label: lang.title,
elements: [
{
type: 'vbox',
padding: 5,
children: [
{
id: 'selectTplText',
type: 'html',
html: '<span>' +
lang.selectPromptMsg +
'</span>'
},
{
id: 'templatesList',
type: 'html',
focus: true,
html: '<div class="cke_tpl_list" tabIndex="-1" role="listbox" aria-labelledby="' + templateListLabelId + '">' +
'<div class="cke_tpl_loading"><span></span></div>' +
'</div>' +
'<span class="cke_voice_label" id="' + templateListLabelId + '">' + lang.options + '</span>'
},
{
id: 'chkInsertOpt',
type: 'checkbox',
label: lang.insertOption,
'default': config.templates_replaceContent
}
]
}
]
}
],
buttons: [ CKEDITOR.dialog.cancelButton ],
onShow: function() {
var templatesListField = this.getContentElement( 'selectTpl', 'templatesList' );
listContainer = templatesListField.getElement();
CKEDITOR.loadTemplates( config.templates_files, function() {
var templates = ( config.templates || 'default' ).split( ',' );
if ( templates.length ) {
renderTemplatesList( listContainer, templates );
templatesListField.focus();
} else {
listContainer.setHtml( '<div class="cke_tpl_empty">' +
'<span>' + lang.emptyListMsg + '</span>' +
'</div>' );
}
} );
this._.element.on( 'keydown', keyNavigation );
},
onHide: function() {
this._.element.removeListener( 'keydown', keyNavigation );
}
};
} );
} )();
/*
Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'templates', 'af', {
button: 'Sjablone',
emptyListMsg: '(Geen sjablone gedefineer nie)',
insertOption: 'Vervang huidige inhoud',
options: 'Sjabloon opsies',
selectPromptMsg: 'Kies die sjabloon om te gebruik in die redigeerder (huidige inhoud gaan verlore):',
title: 'Inhoud Sjablone'
} );
/*
Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'templates', 'ar', {
button: 'القوالب',
emptyListMsg: '(لم يتم تعريف أي قالب)',
insertOption: 'استبدال المحتوى',
options: 'خصائص القوالب',
selectPromptMsg: 'اختر القالب الذي تود وضعه في المحرر',
title: 'قوالب المحتوى'
} );
/*
Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'templates', 'bg', {
button: 'Шаблони',
emptyListMsg: '(Няма дефинирани шаблони)',
insertOption: 'Препокрива актуалното съдържание',
options: 'Опции за шаблона',
selectPromptMsg: 'Изберете шаблон <br>(текущото съдържание на редактора ще бъде загубено):',
title: 'Шаблони'
} );
/*
Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'templates', 'bn', {
button: 'টেমপ্লেট',
emptyListMsg: '(কোন টেমপ্লেট ডিফাইন করা নেই)',
insertOption: 'Replace actual contents', // MISSING
options: 'Template Options', // MISSING
selectPromptMsg: 'অনুগ্রহ করে এডিটরে ওপেন করার জন্য টেমপ্লেট বাছাই করুন<br>(আসল কনটেন্ট হারিয়ে যাবে):',
title: 'কনটেন্ট টেমপ্লেট'
} );
/*
Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'templates', 'bs', {
button: 'Templates', // MISSING
emptyListMsg: '(No templates defined)', // MISSING
insertOption: 'Replace actual contents', // MISSING
options: 'Template Options', // MISSING
selectPromptMsg: 'Please select the template to open in the editor', // MISSING
title: 'Content Templates' // MISSING
} );
/*
Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'templates', 'ca', {
button: 'Plantilles',
emptyListMsg: '(No hi ha plantilles definides)',
insertOption: 'Reemplaça el contingut actual',
options: 'Opcions de plantilla',
selectPromptMsg: 'Seleccioneu una plantilla per usar a l\'editor<br>(per defecte s\'elimina el contingut actual):',
title: 'Plantilles de contingut'
} );
/*
Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'templates', 'cs', {
button: 'Šablony',
emptyListMsg: '(Není definována žádná šablona)',
insertOption: 'Nahradit aktuální obsah',
options: 'Nastavení šablon',
selectPromptMsg: 'Prosím zvolte šablonu pro otevření v editoru<br>(aktuální obsah editoru bude ztracen):',
title: 'Šablony obsahu'
} );
/*
Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'templates', 'cy', {
button: 'Templedi',
emptyListMsg: '(Dim templedi wedi\'u diffinio)',
insertOption: 'Amnewid y cynnwys go iawn',
options: 'Opsiynau Templedi',
selectPromptMsg: 'Dewiswch dempled i\'w agor yn y golygydd',
title: 'Templedi Cynnwys'
} );
/*
Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'templates', 'da', {
button: 'Skabeloner',
emptyListMsg: '(Der er ikke defineret nogen skabelon)',
insertOption: 'Erstat det faktiske indhold',
options: 'Skabelon muligheder',
selectPromptMsg: 'Vælg den skabelon, som skal åbnes i editoren (nuværende indhold vil blive overskrevet):',
title: 'Indholdsskabeloner'
} );
/*
Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'templates', 'de', {
button: 'Vorlagen',
emptyListMsg: '(keine Vorlagen definiert)',
insertOption: 'Aktuellen Inhalt ersetzen',
options: 'Vorlagen Optionen',
selectPromptMsg: 'Klicken Sie auf eine Vorlage, um sie im Editor zu öffnen (der aktuelle Inhalt wird dabei gelöscht!):',
title: 'Vorlagen'
} );
/*
Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'templates', 'el', {
button: 'Πρότυπα',
emptyListMsg: '(Δεν έχουν καθοριστεί πρότυπα)',
insertOption: 'Αντικατάσταση υπάρχοντων περιεχομένων',
options: 'Επιλογές Προτύπου',
selectPromptMsg: 'Παρακαλώ επιλέξτε πρότυπο για εισαγωγή στο πρόγραμμα',
title: 'Πρότυπα Περιεχομένου'
} );
/*
Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'templates', 'en-au', {
button: 'Templates',
emptyListMsg: '(No templates defined)',
insertOption: 'Replace actual contents',
options: 'Template Options', // MISSING
selectPromptMsg: 'Please select the template to open in the editor',
title: 'Content Templates'
} );
/*
Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'templates', 'en-ca', {
button: 'Templates',
emptyListMsg: '(No templates defined)',
insertOption: 'Replace actual contents',
options: 'Template Options', // MISSING
selectPromptMsg: 'Please select the template to open in the editor',
title: 'Content Templates'
} );
/*
Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'templates', 'en-gb', {
button: 'Templates',
emptyListMsg: '(No templates defined)',
insertOption: 'Replace actual contents',
options: 'Template Options',
selectPromptMsg: 'Please select the template to open in the editor',
title: 'Content Templates'
} );
/*
Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'templates', 'en', {
button: 'Templates',
emptyListMsg: '(No templates defined)',
insertOption: 'Replace actual contents',
options: 'Template Options',
selectPromptMsg: 'Please select the template to open in the editor',
title: 'Content Templates'
} );
/*
Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'templates', 'eo', {
button: 'Ŝablonoj',
emptyListMsg: '(Neniu ŝablono difinita)',
insertOption: 'Anstataŭigi la nunan enhavon',
options: 'Opcioj pri ŝablonoj',
selectPromptMsg: 'Bonvolu selekti la ŝablonon por malfermi ĝin en la redaktilo',
title: 'Enhavo de ŝablonoj'
} );
/*
Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'templates', 'es', {
button: 'Plantillas',
emptyListMsg: '(No hay plantillas definidas)',
insertOption: 'Reemplazar el contenido actual',
options: 'Opciones de plantillas',
selectPromptMsg: 'Por favor selecciona la plantilla a abrir en el editor<br>(el contenido actual se perderá):',
title: 'Contenido de Plantillas'
} );
/*
Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'templates', 'et', {
button: 'Mall',
emptyListMsg: '(Ühtegi malli ei ole defineeritud)',
insertOption: 'Praegune sisu asendatakse',
options: 'Malli valikud',
selectPromptMsg: 'Palun vali mall, mis avada redaktoris<br />(praegune sisu läheb kaotsi):',
title: 'Sisumallid'
} );
/*
Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'templates', 'eu', {
button: 'Txantiloiak',
emptyListMsg: '(Ez dago definitutako txantiloirik)',
insertOption: 'Ordeztu oraingo edukiak',
options: 'Txantiloi Aukerak',
selectPromptMsg: 'Mesedez txantiloia aukeratu editorean kargatzeko<br>(orain dauden edukiak galduko dira):',
title: 'Eduki Txantiloiak'
} );
/*
Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'templates', 'fa', {
button: 'الگوها',
emptyListMsg: '(الگوئی تعریف نشده است)',
insertOption: 'محتویات کنونی جایگزین شوند',
options: 'گزینههای الگو',
selectPromptMsg: 'لطفا الگوی موردنظر را برای بازکردن در ویرایشگر برگزینید<br>(محتویات کنونی از دست خواهند رفت):',
title: 'الگوهای محتویات'
} );
/*
Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'templates', 'fi', {
button: 'Pohjat',
emptyListMsg: '(Ei määriteltyjä pohjia)',
insertOption: 'Korvaa koko sisältö',
options: 'Sisältöpohjan ominaisuudet',
selectPromptMsg: 'Valitse editoriin avattava pohja',
title: 'Sisältöpohjat'
} );