X-Git-Url: https://jasonwoof.com/gitweb/?p=wfpl-cms.git;a=blobdiff_plain;f=admin_pages.html;h=cc23bfc9535fc28fb557499deea589545c4c2de2;hp=9bd863a5dd1cba44908bd9a3168ac269540f4450;hb=HEAD;hpb=36753e2ffb06df7098fbe0e8f1760870f75741e5 diff --git a/admin_pages.html b/admin_pages.html index 9bd863a..cc23bfc 100644 --- a/admin_pages.html +++ b/admin_pages.html @@ -2,340 +2,464 @@ - <!--~$title show {~-->~$host~ Admin: <!--~listings once_if {~-->Pages Listing<!--~}~--><!--~form {~--><!--~id {~-->Add a new page<!--~}~--><!--~id unset {~-->Edit page "~title html~"<!--~}~--><!--~}~--><!--~}~--> - - - - + + - + editor.addCommand('wfpl_images', new CKEDITOR.dialogCommand('wfpl_images_dialog')); + editor.ui.addButton('wfpl_images', { + label: 'Insert Image', + command: 'wfpl_images', + toolbar: 'insert' + }); + CKEDITOR.dialog.add('wfpl_images_dialog', function (api) { + var i, im, selected, thumbs; + selected = 'selected '; + thumbs = '
' + for (i in window.cke_wfpl_images.images) { + im = window.cke_wfpl_images.images[i]; + thumbs += '
'+ enc_html(im.name.length > 0 ? im.name : im.caption) + '
'; + selected = ''; + } + thumbs += '
' + return { + title: 'Insert Image', + minWidth: 700, + minHeight: 350, + contents: [ + { + expand: true, + padding: 0, + elements: [ + { + type: 'html', + html: '
' + + '

Step 1: Choose an image to insert:

' + + thumbs + + '

If you\'d like to insert an image not shown above, you can upload it here. Sorry, it won\'t appear here until you reload this editor page (hit Save below, then "edit this page" again.)

' + + '
' + } + ] + } + ], + buttons: [ + { + type: 'button', + label: 'Insert on Left', + className: 'cke_dialog_ui_button_ok', + onClick: function() { + cke_wfpl_images_insert_click(plugin_id, 'left'); + } + }, + { + type: 'button', + label: 'Insert Centered', + className: 'cke_dialog_ui_button_ok', + onClick: function() { + cke_wfpl_images_insert_click(plugin_id, 'centered'); + } + }, + { + type: 'button', + label: 'Insert on Right', + className: 'cke_dialog_ui_button_ok', + onClick: function() { + cke_wfpl_images_insert_click(plugin_id, 'right'); + } + }, + { + type: 'button', + label: 'Insert BIG', + className: 'cke_dialog_ui_button_ok', + onClick: function() { + cke_wfpl_images_insert_click(plugin_id, 'full'); + } + }, + CKEDITOR.dialog.cancelButton + ] + }; + }); + } + }); + function make_wysiwyg(name, bodyid_postfix) { + CKEDITOR.replace(name, { + 'contentsCss': 'css.css?m=~css.css mtime~', + 'allowedContent': true, + bodyId: '~$basename~' + '_wysiwyg_' + (bodyid_postfix ? bodyid_postfix : name), + 'stylesSet': [ + { name: 'Paragraph', element: 'p'}, + { name: 'Page Headline', element: 'h1'}, + { name: 'Section Headline', element: 'h2'}, + { name: 'Subsection Headline', element: 'h3'}, + { name: 'Tagline (under headline)', element: 'h4', attributes: { class: 'tagline'}}, + { name: 'Quote', element: 'p', attributes: { class: 'quote'}}, + { name: 'Quote Author', element: 'p', attributes: { class: 'attrib'}}, + { name: 'div (generic box)', element: 'div'} + ], + 'uiColor': '#ccccff', + 'removePlugins': 'forms,templates,smiley,pagebreak,save,newpage,preview,print', + 'extraPlugins': 'wfpl_images', + 'height': '300px', + 'toolbar': [ + ['Source'], + ['Cut', 'Copy', 'Paste', 'PasteText', 'PasteFromWord', '-', 'SpellChecker', 'Scayt'], + ['Undo', 'Redo', '-', 'Find', 'Replace', '-', 'SelectAll', 'RemoveFormat'], + '/', + ['Bold', 'Italic', 'Underline', 'Strike', 'Subscript', 'Superscript'], + ['NumberedList', 'BulletedList', '-', 'Outdent', 'Indent', 'Blockquote'], + ['JustifyLeft', 'JustifyCenter', 'JustifyRight', 'JustifyBlock'], + ['Link', 'Unlink', 'Anchor'], + ['wfpl_images', 'Table', 'HorizontalRule', 'SpecialChar', 'PageBreak'], + '/', + ['Styles', 'Font', 'FontSize'], + ['TextColor', 'BGColor'], + ['Maximize', 'ShowBlocks'] + ] + }); + } + window.admin_pages_cur_layout = null + function admin_pages_layout(layout) { + if (layout === undefined) { + layout = document.getElementById('layout').value + } + if (typeof layout === 'string') { + layout = parseInt(layout); + } + if (layout === window.admin_pages_cur_layout) { + return; + } + // hide/show sidebar editor + if (layout === 0) { + document.getElementById('sidebar_editor').style.display = 'none' + } else { + document.getElementById('sidebar_editor').style.display = 'block' + } + // remove existing ckeditors + if (window.admin_pages_cur_layout !== null) { + for (name in CKEDITOR.instances) { + CKEDITOR.instances[name].destroy(); + } + } + // create ckeditors + if (layout === 0) { + make_wysiwyg('content', 'content_full_main'); + } else if (layout === 1) { + make_wysiwyg('content', 'content_with_sidebar_main'); + make_wysiwyg('sidebar_content', 'content_with_sidebar_sidebar_plain'); + } else { + make_wysiwyg('content', 'content_with_sidebar_main'); + make_wysiwyg('sidebar_content', 'content_with_sidebar_sidebar_bordered'); + } + + window.admin_pages_cur_layout = layout + } + + - -

Add a new pageEdit page "~title html~"

+ +

~$host~ Admin Control Panel

+ +

Add a new pageEdit page "~title html~"

+ + +

View archived versions of this page

+ + +
+ +
Title
+
(This appears at the top of the page, in the window title-bar (by the close button) and as the headline/link of search engine results.)
+
+ +
Filename
+
(Careful: if you change this, be sure to update all links to this pagePlease use only a-z, 0-9 and _ (underscore) in your filename. Please, no capitals, punctuation or spaces.)
+
+ +
Show in site-wide navigation links (optional)
+
+ +
Navigation Link Text
+
(If you'd like this page to appear in the navigation with a shorter title.)
+
-
+
Page Template/Layout
+
-
Title
-
(This appears at the top of the page, in the window title-bar (by the close button) and as the headline/link of search engine results.)
-
+
Page Contents
+
+ +
+
-
Filename
-
(Careful: if you change this, be sure to update all links to this pagePlease use only a-z, 0-9 and _ (underscore) in your filename. Please, no capitals, punctuation or spaces.)
-
+ -
Show in navigation links
-
(On the left of every page.)
-
+ -
Navigation Link Text
-
(If you'd like this page to appear in the navigation with a shorter title.)
-
+ -
Description
-
(Hidden description of this page, primarily for search engines.)
-
+
 
+
-
Keywords
-
(Hidden words (up to 30) with commas between them for search engines)
-
+
-
 
-
+
 
+
Cancel
+ - + +

~$host~ Admin Control Panel

-
 
-
Cancel
- +

Manage Pages

- - -

[Add a new page]

+ + + + + + + + + + + + + + + + -
(new) +
+
(home page) +
+ + +
+
~title html~(untitled) +
+
+
+
- - - - - - - - +
TitleFilename 
~title html~(untitled)~filename html~(offline)[delete this page]
+ + +

~$host~ Admin Control Panel

- - - -

No pages in database.

- +

Edit history for page "~title html~"

-

[Add a new page]

- + +

There are no archived versions of this page.

+ + + + + + + + + + + + + + + + + + +
titlesaved atby
~title html~(untitled)~timestamp~~who html~ + + +
+ + +
+ + + +
+ +
+ +