diff --git a/include/admin/tpl/category.inc.tpl b/include/admin/tpl/category.inc.tpl new file mode 100644 index 00000000..bf464caa --- /dev/null +++ b/include/admin/tpl/category.inc.tpl @@ -0,0 +1,161 @@ +{* HTML5: Yes *} +{* jQuery: No *} + +{if $post_save} + {if $new} + {$CONST.CATEGORY_SAVED} + {/if} + {if $edit} + {if isset($editPermission) && $editPermission == false} + {$CONST.PERM_DENIED} + {else} + {if $subcat}{$subcat}{else} + {$CONST.CATEGORY_SAVED} + {/if} + {/if} + {/if} +{/if} +{if $doDelete} + {if $deleteSuccess} + {if $remainingCat}{$CONST.CATEGORY_DELETED_ARTICLES_MOVED|sprintf:$remainingCat:$cid}{else}{$cid|string_format:"{$CONST.CATEGORY_DELETED}"}{/if} + {else} + {$CONST.INVALID_CATEGORY} + {/if} +{/if} +{if $delete} + {if $deletePermission == true} +

{$categoryName|escape:"html"}

+ +
+ {$formToken} + +
+ + +
+ + +
+ {/if} +{/if} + +{if (! $post_save) && ($edit || $new)} + {if $edit} +

{$category_name|escape:"html"|string_format:"{$CONST.EDIT_THIS_CAT}"}

+ {/if} +
+ {$formToken} +
+ + +
+ +
+ + +
+ +
+ + {* TODO: this should probably become/fallback to input[type=file] *} + + + +
+ +
+
{$CONST.PREVIEW}
+ +
+ +
+ + +
+ +
+ + +
+ +
+ + +
+ +
+ {$CONST.CATEGORY_HIDE_SUB} +

{$CONST.CATEGORY_HIDE_SUB_DESC}

+
+
+ + +
+ +
+ + +
+
+
+ +
+ +{/if} +{if $view} +

{$CONST.CATEGORY_INDEX}:

+ {if is_array($viewCats)} + + {else} + {$CONST.NO_CATEGORIES} + {/if} + {$CONST.CREATE_NEW_CAT} +{/if} diff --git a/include/admin/tpl/comments.inc.tpl b/include/admin/tpl/comments.inc.tpl new file mode 100644 index 00000000..cd59f990 --- /dev/null +++ b/include/admin/tpl/comments.inc.tpl @@ -0,0 +1,218 @@ +{* HTML5: Yes *} +{* jQuery: No *} + +{if !empty($errormsg)} + {$errormsg} +{/if} +{* Smarty 3 has a new auto literal option which is enabled by default. + When the { is followed by a space it's not interpreted as smarty delimiter but literal. *} + + +

{$CONST.COMMENTS}

+ +
+ {$formtoken} + + + +
+ {$CONST.FILTERS} ({$CONST.FIND_COMMENTS}) + +
+
+ + +
+ +
+ + +
+ +
+ + +
+ +
+ + +
+ +
+ + +
+ +
+ + +
+ +
+ + +
+ +
+ + +
+ +
+ + +
+
+
+ + + {serendipity_hookPlugin hookAll=true hook="backend_comments_top" addData=$sql} +
+{if !is_array($sql)} + {$CONST.NO_COMMENTS} + + {* TODO: l18n *} + Return to default comment list +{else} +
+ {$formtoken} + + + + {if is_array($comments)} + + {/if} +
+ + + +
+ {* TODO: Clone pagination using JS *} +
+{/if} diff --git a/include/admin/tpl/configuration.inc.tpl b/include/admin/tpl/configuration.inc.tpl new file mode 100644 index 00000000..79f42fcc --- /dev/null +++ b/include/admin/tpl/configuration.inc.tpl @@ -0,0 +1,25 @@ +{* HTML5: Yes *} +{* jQuery: NN *} + +{if $installAction == 'check'} + {if $diagnosticError} +

{$CONST.DIAGNOSTIC_ERROR}

+ {foreach $res as $r} + {$r} + {/foreach} + {else} + {if $htaccessRewrite} +

{$CONST.ATTEMPT_WRITE_FILE|sprintf:"{$serendipityPath}htaccess"}

+ {if is_array($res)} + {foreach $res as $r} + {$r} + {/foreach} + {else} + {$CONST.DONE} + {/if} + {/if} + {$CONST.WRITTEN_N_SAVED} + {/if} +{else} + {$config} +{/if} \ No newline at end of file diff --git a/include/admin/tpl/entries.inc.tpl b/include/admin/tpl/entries.inc.tpl new file mode 100644 index 00000000..9a530ffc --- /dev/null +++ b/include/admin/tpl/entries.inc.tpl @@ -0,0 +1,205 @@ +{* HTML5: Yes *} +{* jQuery: No *} + +{if $drawList} +
+ + + + +
+ {$CONST.FILTERS} ({$CONST.FIND_ENTRIES}) + +
+
+ + + + +
+ +
+ + +
+ +
+ + +
+
+
+ +
+ {$CONST.SORT_ORDER} + +
+
+ + +
+ +
+ + +
+ +
+ + +
+
+
+ + +
+ {if $is_entries} + {if $offSet > 0}||$count > $perPage} + + {/if} + + + +
+ {$formtoken} + + + + + + {/if} + {* TODO: Clone pagination using JS *} +
+ + +
+
+ +
+ + + + +
+ {$CONST.EDIT_ENTRY} # + +
+ + +
+
+ +
+{/if} +{* BUG: This seems to be triggered if only one entry is present and said entry should be deleted? Ian: Is it gone now? *} +{if ( ( (!$switched_output && empty($entries)) || (!$drawList && empty($entries)) ) && ( $get.adminAction != 'new' && $get.adminAction != 'edit' ) && !$is_iframepreview )} + {$CONST.NO_ENTRIES_TO_PRINT} +{/if} + +{if $switched_output} + {if ($get.adminAction && $dateval)} + {$CONST.DATE_INVALID} + {/if} + {if ($get.adminAction && $use_legacy)} + {if $is_draft} + {$CONST.IFRAME_SAVE_DRAFT} + {/if} + {if $is_iframe} + {$CONST.IFRAME_SAVE} + {/if} + {if $is_iframepreview} + {$CONST.IFRAME_PREVIEW} + {/if} + {/if} + {if ($is_doDelete || $is_doMultiDelete )} + {foreach $del_entry AS $delent} + {$delent} + {/foreach} + {/if} + {if ( $is_delete || $is_multidelete )} + {foreach $rip_entry AS $ripent} + {$ripent} + {/foreach} + + {/if} +{/if} diff --git a/include/admin/tpl/entries_overview.inc.tpl b/include/admin/tpl/entries_overview.inc.tpl new file mode 100644 index 00000000..834b3f05 --- /dev/null +++ b/include/admin/tpl/entries_overview.inc.tpl @@ -0,0 +1,4 @@ +{* HTML5: Yes *} +{* jQuery: NN *} + +

{$CONST.WELCOME_BACK} {$smarty.session.serendipityUser|escape}

\ No newline at end of file diff --git a/include/admin/tpl/export.inc.tpl b/include/admin/tpl/export.inc.tpl new file mode 100644 index 00000000..49188714 --- /dev/null +++ b/include/admin/tpl/export.inc.tpl @@ -0,0 +1,4 @@ +{* HTML5: Yes *} +{* jQuery: NN *} + +{$CONST.EXPORT_FEED} diff --git a/include/admin/tpl/groups.inc.tpl b/include/admin/tpl/groups.inc.tpl new file mode 100644 index 00000000..a2736b40 --- /dev/null +++ b/include/admin/tpl/groups.inc.tpl @@ -0,0 +1,127 @@ +{* HTML5: Yes *} +{* jQuery: NN *} + +{if $delete_yes} + {$CONST.DELETED_GROUP|sprintf:"{$group_id|escape:"html"}":"{$group.name|escape:"html"}"} +{/if} +{if $save_new} + {$CONST.CREATED_GROUP|sprintf:"{$group_id|escape:"html"}":"{$group.name|escape:"html"}"} +{/if} +{if $save_edit} + {$CONST.MODIFIED_GROUP|sprintf:"{$name|escape:"html"}"} +{/if} + +{if !$delete} +

{$CONST.GROUP}

+ + + {if $start} +
+ +
+ {/if} +{/if} + +{if $edit || $new} +
+ {$formToken} + {if $edit} +

{$CONST.EDIT}

+ + + {else} +

{$CONST.CREATE}

+ {/if} +
+ + {* BUG: Doesn't correctly pull the group name *} + +
+ +
+ + +
+ {foreach $perms as $perm} + {* TODO: major rewrite *} + {if {{$perm@key}|truncate:"2":""} == 'f_'}{continue}{/if} + {if !isset($section)} + {$section=$perm@key} + {/if} + {if $section != {$perm@key} && {{$perm@key}|truncate:"{$section|count_characters}":""} == $section} + {$indent="  "} + {else} + {if $section != {$perm@key}} + {$indent="
"} + {$section="{$perm@key}"} + {/if} + {/if} + {if !$perm.permission} +
+ {$indent} {$perm.permission_name|escape:"html"} + {(isset($from.{$perm@key}) && $from.{$perm@key} == "true") ? $CONST.YES : $CONST.NO} +
+ {else} +
+ {$indent} + +
+ {/if} + {/foreach} + {if $enablePluginACL} +
+ + +
+ +
+ + +
+ {else} + {$CONST.PERMISSION_FORBIDDEN_ENABLE_DESC} + {/if} + {if $edit} + {$CONST.WORD_OR} + {else} + + {/if} +
+{else} + {if $delete} +
+ {$formToken} + + +

{$CONST.DELETE_GROUP|sprintf:"{$group_id}":"{$group.name|escape:"html"}"}

+ +
+ + +
+
+ {/if} +{/if} diff --git a/include/admin/tpl/images.inc.tpl b/include/admin/tpl/images.inc.tpl new file mode 100644 index 00000000..d3b998c5 --- /dev/null +++ b/include/admin/tpl/images.inc.tpl @@ -0,0 +1,300 @@ +{* HTML5: Yes *} +{* jQuery: No *} +{if $case_imgedit} + {$CONST.PREFERENCE_USE_JS_WARNING} +{/if} +{if $case_sync} + {if !$perm_adminImagesSync} + {$CONST.PERM_DENIED} + {else} + {$CONST.WARNING_THIS_BLAHBLAH|replace:'\\n':'
'}
+ +
+
+ {$CONST.SYNC_OPTION_LEGEND} + +
+
+ + +
+ +
+ + +
+ +
+ + +
+
+
+ +
+ + {$CONST.ABORT_NOW} +
+
+ {/if} +{/if} +{if $case_doSync} + {if !$perm_adminImagesSync} + {$CONST.PERM_DENIED} + {else} +

{$CONST.SYNCING}

+ + {$print_SYNC_DONE} + +

{$CONST.RESIZING}

+ + {$print_RESIZE_DONE} + {/if} +{/if} +{if $case_delete} + {$CONST.ABOUT_TO_DELETE_FILE|sprintf:"$file"} + +
+
+ {$CONST.DUMP_IT} + {$CONST.ABORT_NOW} +
+
+{/if} +{if $switched_output} +
+ {if ( $is_delete || $is_multidelete )} + {$CONST.ABOUT_TO_DELETE_FILES} + {foreach $rip_image AS $ripimg} + {$ripimg} + {/foreach} + + {/if} +
+{/if} +{if $case_rename} + {if $go_back} + + {else} + + + {/if} +{/if} + +{* TODO: obsolete? *} +{if $case_properties} + {** serendipity_showPropertyForm($new_media) **} +{/if} +{* END TODO *} + +{if $case_add} + {if $smarty.post.adminSubAction == 'properties'} + + + {else} + {$showML_add} + {/if} +{/if} +{if $case_directoryDoDelete} + {if $print_DIRECTORY_WRITE_ERROR}{$print_DIRECTORY_WRITE_ERROR}{/if} + {if $ob_serendipity_killPath}{$ob_serendipity_killPath}{/if} + {if $print_ERROR_NO_DIRECTORY}{$print_ERROR_NO_DIRECTORY}{/if} +{/if} +{if $case_directoryEdit} + {if !empty($smarty.post.save)} + {if $ob_serendipity_moveMediaDirectory}{$ob_serendipity_moveMediaDirectory}{/if} + {$print_CONST.SETTINGS_SAVED_AT} + {/if} +

{$CONST.MANAGE_DIRECTORIES}

+ +
+ {$formtoken} + + +
+ + +
+ +
+ + +
+ +
+ + +
+ +
+ +
+ + +
+{/if} +{if $case_directoryDelete} +

{$CONST.DELETE_DIRECTORY}

+ +

{$CONST.DELETE_DIRECTORY_DESC}

+ +
+ {$formtoken} +
+ + +
+ + {* I think this is redudant:

{$CONST.CONFIRM_DELETE_DIRECTORY|sprintf:$dir|escape:'html'}

*} + + +
+{/if} +{if $case_directoryDoCreate} + {if $print_DIRECTORY_CREATED}{$print_DIRECTORY_CREATED}{/if} + {if $print_DIRECTORY_WRITE_ERROR}{$print_DIRECTORY_WRITE_ERROR}{/if} +{/if} +{if $case_directoryCreate} +

{$CONST.CREATE_DIRECTORY}

+ +

{$CONST.CREATE_DIRECTORY_DESC}

+ +
+ {$formtoken} + +
+ + +
+ +
+ + +
+ {serendipity_hookPlugin hookAll=true hook="backend_directory_createoptions" addData=$folders} + +
+{/if} +{if $case_directorySelect} +

{$CONST.MANAGE_DIRECTORIES}

+ +

{$CONST.DIRECTORIES_AVAILABLE}

+ +

{$CONST.BASE_DIRECTORY}

+ + + {$CONST.CREATE_NEW_DIRECTORY} +{/if} + +{* TODO: obsolete? *} +{if $case_addSelect} + {** smarty display 'admin/media_upload.tpl' **} +{/if} +{* END TODO *} + +{if $case_rotateCW} + {if $rotate_img_done} + + + {/if} +{/if} +{if $case_rotateCCW} + {if $rotate_img_done} + + + {/if} +{/if} +{if $case_scale} + {if $print_SCALING_IMAGE}{$print_SCALING_IMAGE}{/if} + {if $print_serendipity_scaleImg}{$print_serendipity_scaleImg}{/if} + {$CONST.DONE} + + +{/if} +{if $case_scaleSelect} + + + {if $print_RESIZE_BLAHBLAH}{$print_RESIZE_BLAHBLAH}{/if} + {if $print_ORIGINAL_SIZE}{$print_ORIGINAL_SIZE}{/if} +

{$CONST.HERE_YOU_CAN_ENTER_BLAHBLAH}

+ +
+ {$formtoken} + + + + +
+ {$CONST.NEWSIZE} + +
+ {* i18n *} + +
+ +
+ {* i18n *} + +
+
+ +
+ + +
+ + +
+ +{/if} +{if $case_default} + {if $showML_def}{$showML_def}{/if} +{/if} diff --git a/include/admin/tpl/import.inc.tpl b/include/admin/tpl/import.inc.tpl new file mode 100644 index 00000000..90201919 --- /dev/null +++ b/include/admin/tpl/import.inc.tpl @@ -0,0 +1,55 @@ +{* HTML5: Yes *} +{* jQuery: NN *} + +{if $importForm} + {if $die} + FAILURE: Unable to require import module, possible syntax error? + {else} + {if $validateData} + {$CONST.IMPORT_STARTING} + {if $result != true} + {$CONST.IMPORT_FAILED}: {$result} + {else} + {$CONST.IMPORT_DONE} + {/if} + {else} +

{$CONST.IMPORT_PLEASE_ENTER}

+ +
+ {$formToken} +
+ {foreach $fields as $field} +
{$field.text}
+
{$field.guessedInput}
+ {/foreach} +
+ {if $notes} + {$CONST.IMPORT_NOTES}: {$notes} + {/if} + +
+ {/if} + {/if} +{else} +

{$CONST.IMPORT_WELCOME}

+ +

{$CONST.IMPORT_WHAT_CAN}

+ +

{$CONST.IMPORT_SELECT}:

+ +
+ + {$formToken} + +
+ + +
+ + +
+{/if} diff --git a/include/admin/tpl/installer.inc.tpl b/include/admin/tpl/installer.inc.tpl new file mode 100644 index 00000000..d8cd38aa --- /dev/null +++ b/include/admin/tpl/installer.inc.tpl @@ -0,0 +1,264 @@ +{* HTML5: Yes *} +{* jQuery: NN *} + +{if $is_errors && is_array($errors)} + {foreach $errors AS $error} + {$error} + {/foreach} +{/if} +{if $getstepint0} +

{$CONST.WELCOME_TO_INSTALLATION}

+ +

{$CONST.FIRST_WE_TAKE_A_LOOK}

+ +

{$print_ERRORS_ARE_DISPLAYED_IN}

+ +

{$CONST.PRE_INSTALLATION_REPORT|sprintf:$s9yversion}

+ +
+

{$CONST.INTEGRITY}

+ + + + + + + + {* NOTE: These are probably poorly labelled, needs to be checked *} + {* i18n *} + {* i18n *} + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
{$CONST.PHP_INSTALLATION}
KeyValue
{$CONST.OPERATING_SYSTEM}{$php_uname}
{$CONST.WEBSERVER_SAPI}{$php_sapi_name}
PHP version >= 5.2.6{$installerResultDiagnose_VERSION}
Database extensions{$installerResultDiagnose_DBTYPE}
Session extension{$installerResultDiagnose_SESSION}
PCRE extension{$installerResultDiagnose_PCRE}
GDlib extension{$installerResultDiagnose_GD}
OpenSSL extension{$installerResultDiagnose_OPENSSL}
mbstring extension{$installerResultDiagnose_MBSTR}
iconv extension{$installerResultDiagnose_ICONV}
zlib extension{$installerResultDiagnose_ZLIB}
Imagemagick binary {$installerResultDiagnose_IM}
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
{$CONST.PHPINI_CONFIGURATION}
 {$CONST.RECOMMENDED}{$CONST.ACTUAL}
safe_modeOFF{$installerResultDiagnose_SSM}
register_globalsOFF{$installerResultDiagnose_SRG}
magic_quotes_gpcOFF{$installerResultDiagnose_SMQG}
magic_quotes_runtimeOFF{$installerResultDiagnose_SMQR}
session.use_trans_sidOFF{$installerResultDiagnose_SSUTS}
allow_url_fopenON{$installerResultDiagnose_SAUF}
file_uploadsON{$installerResultDiagnose_SFU}
post_max_size10M{$installerResultDiagnose_SPMS}
upload_max_filesize10M{$installerResultDiagnose_SUMF}
memory_limit{($CONST.PHP_INT_SIZE == 4) ? '8M' : '16M'}{$installerResultDiagnose_SML}
+ +

{$CONST.PERMISSIONS}

+ +
{$basedir}
+ + + +
{$basedir} {$CONST.PATH_SMARTY_COMPILE}
+ + + +
{$basedir}archives/
+ + + +
{$basedir}plugins/
+ + + {if $is_dir_uploads} +
{$basedir}uploads/
+ + + {/if} + {if $is_imb_executable} +
Execute Imagemagick binary
+ + + {/if} + {if $showWritableNote} + {$CONST.PROBLEM_PERMISSIONS_HOWTO|sprintf:'chmod 1777'} + {/if} + {if $errorCount > 0} + {$CONST.PROBLEM_DIAGNOSTIC} + + {$CONST.RECHECK_INSTALLATION} + {else} + {$CONST.SELECT_INSTALLATION_TYPE}: + +
{$CONST.SIMPLE_INSTALLATION} - {$CONST.EXPERT_INSTALLATION}
+ {/if} +
+{elseif $s9yGETstep == '2a'} +
+ + + {if $ob_serendipity_printConfigTemplate}{$ob_serendipity_printConfigTemplate}{/if} + +
+{elseif $s9yGETstep == '2b'} +
+ + + {if $ob_serendipity_printConfigTemplate}{$ob_serendipity_printConfigTemplate}{/if} + +
+{elseif $getstepint3} +

{$CONST.CHECK_DATABASE_EXISTS}

+ {if is_array($authors_query)} + {$CONST.THEY_DO}, {$CONST.WONT_INSTALL_DB_AGAIN} + {else} + {$CONST.THEY_DONT} + +
    +
  1. {$CONST.CREATE_DATABASE}{if $install_DB} {$CONST.DONE}{/if}
  2. +
  3. {$CONST.CREATING_PRIMARY_AUTHOR|sprintf:"{$smarty.post.user|escape}"}{if $add_authors} {$CONST.DONE}{/if}
  4. +
  5. {$CONST.SETTING_DEFAULT_TEMPLATE}{if $set_template_vars} {$CONST.DONE}{/if}
  6. +
  7. {$CONST.INSTALLING_DEFAULT_PLUGINS}{if $register_default_plugins} {$CONST.DONE}{/if}
  8. +
+ {/if} +

{$CONST.ATTEMPT_WRITE_FILE|sprintf:'.htaccess'}

+ {if $errors_sif === true} + {$CONST.DONE} + {else} +

{$CONST.FAILED}

+ + + {/if} + {if $s9y_installed} + {$CONST.SERENDIPITY_INSTALLED} + +

{$CONST.THANK_YOU_FOR_CHOOSING}

+ + {$CONST.VISIT_BLOG_HERE} + {else} + {$CONST.ERROR_DETECTED_IN_INSTALL} + {/if} +{/if} diff --git a/include/admin/tpl/out_stack_loop.tpl b/include/admin/tpl/out_stack_loop.tpl new file mode 100644 index 00000000..3eb582b6 --- /dev/null +++ b/include/admin/tpl/out_stack_loop.tpl @@ -0,0 +1,180 @@ +{* HTML5: Yes *} +{* jQuery: No *} + +{* serendipity_plugins_admin.inc.php::serendipity_plugin_config() - the OUT_STACK loop *} + {if $ctype == 'seperator'} + {* This could just as well be replaced by a CSS-only solution … *} +
+ {* … then again, hr has new meaning in HTML5. *} + {/if} + {if $ctype == 'select'} +
+ + {* Make sure id creation actually produces unique identifiers *} + +
+ {/if} + {if $ctype == 'radio'} +
+
+ {$cname} + {if $cdesc != ''}

{$cdesc}

{/if} +
+ {foreach $radio_button AS $r} +
+ + + {assign var="r" value="counter[0]"} +
+ {/foreach} +
+
+
+ {/if} + {if $ctype == 'string'} +
+ + {* TODO: Make sure id creation actually produces unique identifiers *} + +
+ {/if} + {if (($ctype == 'html') || ($ctype == 'text'))} +
+ + + +
+ {/if} + {if $ctype == 'content'} +
+ {$cbag_default} +
+ {/if} + {if $ctype == 'custom'} +
+ + {$cbag_custom} +
+ {/if} + {if $ctype == 'hidden'} +
+ +
+ {/if} + {if $ctype == 'media'} +
+ {if !$mediajs_output} + + + {/if} + + +
 
+ {* This should be input[type=file] … *} + + + {$CONST.MEDIA_LIBRARY} + {* … not touching it in order to not break it for now. *} +
+ {/if} + {if $ctype == 'sequence'} +
+ {if !$sequencejs_output} + + {/if} +
+ {$cname} + {if $cdesc != ''} +

{$cdesc}

+ {/if} + + + + +
    + {foreach $order_id as $orid} +
  1. +
    + {if $checkable} + + {/if} + {$items[{$orid['id']}]['display']} + {if isset($items[{$orid['id']}]['img'])} + + {/if} + +
  2. + {/foreach} +
+ {if (!is_array($items) || empty($order_id))} + {$none} + {/if} +
+{* Smarty 3 has a new auto literal option which is enabled by default. + When the { is followed by a space it's not interpreted as smarty delimiter but literal. *} + +
+ {/if} diff --git a/include/admin/tpl/overview.inc.tpl b/include/admin/tpl/overview.inc.tpl new file mode 100644 index 00000000..49a88eab --- /dev/null +++ b/include/admin/tpl/overview.inc.tpl @@ -0,0 +1,16 @@ +{* HTML5: Yes *} +{* jQuery: NN*} + +

{$output.welcome}

+{$output.more} +{if $output.show_links} + +{/if} diff --git a/include/admin/tpl/personal.inc.tpl b/include/admin/tpl/personal.inc.tpl new file mode 100644 index 00000000..b3691d4b --- /dev/null +++ b/include/admin/tpl/personal.inc.tpl @@ -0,0 +1,19 @@ +{* HTML5: Yes *} +{* jQuery: NN *} + +{if $adminAction == 'save'} + {if $not_authorized} + {$CONST.CREATE_NOT_AUTHORIZED_USERLEVEL} + {elseif $empty_username} + {$CONST.USERCONF_CHECK_USERNAME_ERROR} + {elseif $password_check_fail} + {$CONST.USERCONF_CHECK_PASSWORD_ERROR} + {else} + {$CONST.MODIFIED_USER|sprintf:"{$realname|escape:"html"}"} ?> + {/if} +{/if} +
+ {$formToken} + {$config} + +
diff --git a/include/admin/tpl/plugins.inc.tpl b/include/admin/tpl/plugins.inc.tpl new file mode 100644 index 00000000..3e92c476 --- /dev/null +++ b/include/admin/tpl/plugins.inc.tpl @@ -0,0 +1,149 @@ +{* HTML5: Yes *} +{* jQuery: NN *} + +{if $plugin_to_conf} + {if is_array($save_errors)} +
+

{$CONST.ERROR}:

+ + +
+ {elseif $saveconf} + {$CONST.DONE}: {$CONST.SETTINGS_SAVED_AT|sprintf:"$timestamp"} + {/if} +
+ {$formToken} +
+

{$name} ({$class})

+ +

{$CONST.DESCRIPTION}: {$desc}

+ {if !empty($license)} +

{$CONST.MEDIA_PROPERTY_COPYRIGHT}: {$license}

+ {/if} + {if ! empty($documentation) || $changelog || $documentation_local} + + {/if} +
+ {$config} +
+{elseif $adminAction == 'addnew'} +

{if $type == 'event'}{$CONST.EVENT_PLUGINS}{else}{$CONST.SIDEBAR_PLUGINS}{/if} {$CONST.PLUGIN_AVAILABLE_COUNT|sprintf:"count({$pluginstack})"}

+ {foreach $errorstack as $e_idx => $e_name} + {$CONST.ERROR}: {$e_name} + {/foreach} +
+ {$formToken} + + + + +
+ + +
+ + +
+ {foreach $pluggroups AS $pluggroup => $groupstack} + {if empty($pluggroup)} + {if !empty($only_group)}{continue}{/if} + {elseif !empty($only_group) && $pluggroup != $only_group}{continue}{else} +

{foreach $groupnames as $available_group => $available_name}{if $pluggroup == $available_group}{$available_name}{/if}{/foreach}

+ {/if} + + {/foreach} +{else} + {if $save} + {$CONST.DONE}:{$CONST.SETTINGS_SAVED_AT|sprintf:"$timestamp"} + {/if} +

{$CONST.BELOW_IS_A_LIST_OF_INSTALLED_PLUGINS}

+ {if $eyecandy} + + + {$CONST.PREFERENCE_USE_JS_WARNING} + {/if} +
+

{$CONST.SIDEBAR_PLUGINS}

+ + {$CONST.CLICK_HERE_TO_INSTALL_PLUGIN|sprintf:"{$CONST.SIDEBAR_PLUGIN}"} + + {$backend_plugins_sidebar_header} + {$sidebar_plugins} +
+ +
+

{$CONST.EVENT_PLUGINS}

+ + {$CONST.CLICK_HERE_TO_INSTALL_PLUGIN|sprintf:"{$CONST.EVENT_PLUGIN}"} + + {$backend_plugins_event_header} + {$event_plugins} +
+ {if $memsnaps} +
+

Memory Usage

+ +
{$memSnaps|print_r}
+
+ {/if} +{/if} diff --git a/include/admin/tpl/serendipity_plugin_config.fnc.tpl b/include/admin/tpl/serendipity_plugin_config.fnc.tpl new file mode 100644 index 00000000..a49863e1 --- /dev/null +++ b/include/admin/tpl/serendipity_plugin_config.fnc.tpl @@ -0,0 +1,66 @@ +{* HTML5: Yes *} +{* jQuery: No *} + +{* serendipity_plugins_admin.inc.php::serendipity_plugin_config() *} + +{if $allow_admin_scripts} + +{/if} +{if $showSubmit_head} +
+ +
+{/if} +{if $showTable} +
+{/if} +{if is_array($config_groups)} + {$CONST.TOGGLE_ALL} + {foreach $config_groups AS $config_header => $config_groupkeys} +

{$config_header}

+ +
+ {foreach $config_groupkeys AS $config_groupkey} + {$OUT_STACK[$config_groupkey]} + {/foreach} +
+ + {/foreach} + {* Is this really necessary? What for? *} + + {* If it is not, drop the inline style from CSS. *} +{/if} {* foreach config_groups end *} + +{foreach $OUT_STACK_REST as $out_stack_config_item} + {$out_stack_config_item} +{/foreach} + +{if $showTable} +
+{/if} +{* $serendipity_printConfigJS *}{* outsourced to templates/default/admin/admin_scripts.js - see passed vars on top *} +{if $showSubmit_foot} +
+ +
+{/if} +{if $showExample} +
{$plugin_example}
+{/if} +{if $spawnNuggets} + {serendipity_hookPlugin hook="backend_wysiwyg_nuggets" eventData=$ev hookAll=true} + {if ($ev['skip_nuggets'] === false)} + + {/if} +{/if} diff --git a/include/admin/tpl/show_ownership.fnc.tpl b/include/admin/tpl/show_ownership.fnc.tpl new file mode 100644 index 00000000..5bc1ac30 --- /dev/null +++ b/include/admin/tpl/show_ownership.fnc.tpl @@ -0,0 +1,23 @@ +{* HTML5: Yes *} +{* jQuery: NN *} + +{* functions_plugins_admin.inc.php::function ownership() *} + +{if $show_ownership} + {if $is_plugin_owner} + + {else} + {(empty($realname)) ? $CONST.ALL_AUTHORS : $realname} + {/if} +{/if} diff --git a/include/admin/tpl/show_plugins.fnc.tpl b/include/admin/tpl/show_plugins.fnc.tpl new file mode 100644 index 00000000..b69df665 --- /dev/null +++ b/include/admin/tpl/show_plugins.fnc.tpl @@ -0,0 +1,83 @@ +{* HTML5: Yes *} +{* jQuery: No *} + +{* functions_plugins_admin.inc.php::function_show_plugins() including output of functions_plugins_admin.inc.php::function ownership() *} + +{if !$eyecandy} +
+{elseif !$event_only} +{* Smarty 3 has a new auto literal option which is enabled by default. + When the { is followed by a space it's not interpreted as smarty delimiter but literal. *} + + + + + {else} + + + + {/if} + {$serendipity_setFormToken} +
+ {foreach $placement as $plugin_placement} +
+

{$plugin_placement['ptitle']}

+ +
    + {foreach $plugin_placement['plugin_data'] as $plugin_data} +
  1. +
    + Move{* i18n *} +
    + {if $plugin_data['is_plugin_editable']} +
    + + {* i18n *} +
    + {/if} + {if $plugin_data['can_configure']} + {$CONST.CONFIGURATION} + {/if} +
    + {if $plugin_data['can_configure']} + {$plugin_data['title']} + {else} + {$plugin_data['title']} + {/if} +
    + +
      +
    • {$plugin_data['desc']}
    • +
    • {$plugin_data['ownership']}
    • + {($eyecandy) ? '' : ''} +
    +
  2. + {/foreach} +
+
+ {/foreach} + {$CONST.PLUGIN_AVAILABLE_COUNT|sprintf:$total} +
+
+ + +
+
diff --git a/include/admin/tpl/templates.inc.tpl b/include/admin/tpl/templates.inc.tpl new file mode 100644 index 00000000..d7e2b69b --- /dev/null +++ b/include/admin/tpl/templates.inc.tpl @@ -0,0 +1,71 @@ +{* HTML5: Yes *} +{* jQuery: NN *} + +{if $adminAction == 'install'} + {$install_template|string_format:"{$CONST.TEMPLATE_SET}"} +{/if} +{if $deprecated} + {$CONST.WARNING_TEMPLATE_DEPRECATED} +{/if} +
+

{$CONST.STYLE_OPTIONS} ({$cur_template})

+{if $has_config} + {if $adminAction == 'configure'} + {$CONST.DONE}: {$save_time} + {/if} +
+ + + {$form_token} + {$configuration} +
+{else} +

{$CONST.STYLE_OPTIONS_NONE}

+{/if} +
+
+

{$CONST.SELECT_TEMPLATE}

+ + +
diff --git a/include/admin/tpl/upgrader.inc.tpl b/include/admin/tpl/upgrader.inc.tpl new file mode 100644 index 00000000..2f078e35 --- /dev/null +++ b/include/admin/tpl/upgrader.inc.tpl @@ -0,0 +1,116 @@ +{* HTML5: Yes *} +{* jQuery: NN *} + +{if ($get.action == 'ignore')} + {* TODO: don't know what to put here? *} +{elseif ($get.action == 'upgrade')} + {foreach $call_tasks AS $ctask} + {if $is_callable_task} + {$ctasks} + {/if} + {/foreach} + {if $errors} +

{$CONST.DIAGNOSTIC_ERROR}

+ +
+ {foreach $errors AS $implode_err} +

{$implode_err}

+ {/foreach} +
+ {/if} +{/if} + +{if (($showAbort && $get.action == 'ignore') || $get.action == 'upgrade')} + {if $get.action == 'ignore'} + {$CONST.SERENDIPITY_UPGRADER_YOU_HAVE_IGNORED} + {elseif $get.action == 'upgrade'} + {$CONST.SERENDIPITY_UPGRADER_NOW_UPGRADED|sprintf:$s9y_version} + {/if} + {if $return_here} + {$print_UPGRADER_RETURN_HERE} + {* could also be used as: {$CONST.SERENDIPITY_UPGRADER_RETURN_HERE|sprintf:"":''} *} + {/if} +{else} +

{$CONST.SERENDIPITY_UPGRADER_WELCOME}

+ +

{$CONST.SERENDIPITY_UPGRADER_PURPOSE|sprintf:$s9y_version_installed}

+ +

{$CONST.SERENDIPITY_UPGRADER_WHY|sprintf:$s9y_version}

+ +

{$CONST.FIRST_WE_TAKE_A_LOOK}

+ +
+ {$result_diagnose}. + + {if $checksums} +

{$CONST.INTEGRITY}

+ + + {/if} +

{$CONST.PERMISSIONS}

+ +
+
{$basedir}
+ {foreach $upgraderResultDiagnose2 AS $urd2} +
{$urd2}
+ {/foreach} +
{$basedir}{$CONST.PATH_SMARTY_COMPILE}
+ {foreach $upgraderResultDiagnose3 AS $urd3} +
{$urd3}
+ {/foreach} + {if $isdir_uploadpath} +
{$basedir}{$uploadHTTPPath}
+ {foreach $upgraderResultDiagnose4 AS $urd4} +
{$urd4}
+ {/foreach} + {/if} +
+ {if $showWritableNote} + {$CONST.PROBLEM_PERMISSIONS_HOWTO|sprintf:'chmod 1777'} + {/if} + {if ($errorCount > 0)} + {$CONST.PROBLEM_DIAGNOSTIC} + + {$CONST.RECHECK_INSTALLATION} + {/if} +
+ {if ($errorCount < 1)} + {if (sizeof($sqlfiles) > 0)} +

{$database_update_types}:

+ +

{$CONST.SERENDIPITY_UPGRADER_FOUND_SQL_FILES}:

+ {if is_array($sqlfiles) && !empty($sqlfiles)} + + {/if} + {/if} +

{$CONST.SERENDIPITY_UPGRADER_VERSION_SPECIFIC}:

+ {if is_array($tasks) && !empty($tasks)} +
+ {foreach $tasks as $task} +
{$task.version} - {$task.title}
+
{$task.desc|nl2br}
+ {/foreach} + + {/if} + {if ($taskCount == 0)} +

{$CONST.SERENDIPITY_UPGRADER_NO_VERSION_SPECIFIC}

+ {/if} + {if (($taskCount > 0) || (sizeof($sqlfiles) > 0))} +

{$CONST.SERENDIPITY_UPGRADER_PROCEED_QUESTION}

+ + {$CONST.SERENDIPITY_UPGRADER_PROCEED_DOIT}{if $showAbort} {$CONST.SERENDIPITY_UPGRADER_PROCEED_ABORT}{/if} + {else} +

{$CONST.SERENDIPITY_UPGRADER_NO_UPGRADES}

+ + {$CONST.SERENDIPITY_UPGRADER_CONSIDER_DONE} + {/if} + {/if} +{/if} diff --git a/include/admin/tpl/users.inc.tpl b/include/admin/tpl/users.inc.tpl new file mode 100644 index 00000000..53ede5ac --- /dev/null +++ b/include/admin/tpl/users.inc.tpl @@ -0,0 +1,91 @@ +{* HTML5: Yes *} +{* jQuery: NN *} + +{if $delete_yes} + {if $no_delete_permission} + {$CONST.CREATE_NOT_AUTHORIZED} + {else} + {if $no_delete_permission_userlevel} + {$CONST.CREATE_NOT_AUTHORIZED_USERLEVEL} + {else} + {if $delete_permission} + {$CONST.DELETED_USER|sprintf:"{$user|escape:"html"}":"{$realname|escape:"html"}"} + {else} + {$CONST.CREATE_NOT_AUTHORIZED_USERLEVEL} + {/if} + {/if} + {/if} +{/if} +{if $save_new} + {if $no_save_permission} + {$CONST.CREATE_NOT_AUTHORIZED} + {else} + {if $no_group_selected} + {$CONST.WARNING_NO_GROUPS_SELECTED} + {/if} + {$CONST.CREATED_USER|sprintf:"# {$user|escape:"html"}":"{$realname|escape:"html"}"} + {/if} +{/if} +{if $save_edit} + {if $no_edit_permission} + {$CONST.CREATE_NOT_AUTHORIZED} + {else} + {if $no_edit_permission_userlevel} + {$CONST.CREATE_NOT_AUTHORIZED_USERLEVEL} + {else} + {if $no_group_selected} + {$CONST.WARNING_NO_GROUPS_SELECTED} + {/if} + {$CONST.MODIFIED_USER|sprintf:"{$realname|escape:"html"}"} + {/if} + {/if} +{/if} +{if $delete == false} +

{$CONST.USER} ({$CONST.USER_LEVEL})

+ + + {if $new} +
+ +
+ {/if} +{/if} +{if $show_form} + + {$formToken} + {if $adminAction == 'edit'}{if $create_permission}{/if}{/if} +

{if $adminAction == 'edit'}{if $no_create_permission}{$CONST.CREATE_NOT_AUTHORIZED}: {$CONST.EDIT}{else}{if $create_permission}{$CONST.EDIT}{else}{$CONST.CREATE_NOT_AUTHORIZED}: {$CONST.EDIT}{/if}{/if}{else}{$CONST.CREATE}{/if}

+ {$config} + {if $adminAction == 'edit'} + + {else} + + {/if} + +{else} + {if $delete} +
+ {$formToken} + + +
+ {$CONST.DELETE_USER|sprintf:"{$userid}":"{$realname|escape:"html"}"} + + +
+
+ {/if} +{/if} diff --git a/templates/2k11/admin/category_selector.js b/templates/2k11/admin/category_selector.js new file mode 100644 index 00000000..96e39d0c --- /dev/null +++ b/templates/2k11/admin/category_selector.js @@ -0,0 +1,118 @@ +function toggle_extended(setCookie) { + var textarea = document.getElementById('serendipity[extended]'); + var button = document.getElementById('option_extended'); + var tools = document.getElementById('tools_extended'); + if ( textarea.style.display == 'none' ) { + textarea.style.display = ''; + tools.style.display = ''; + button.src = minus_img; + if (setCookie == true) { + document.cookie = 'serendipity[toggle_extended]=true;'; + } + } else { + textarea.style.display = 'none'; + tools.style.display = 'none'; + button.src = plus_img; + if (setCookie == true) { + document.cookie = 'serendipity[toggle_extended]=;'; + } + } +} + +function showItem(id) { + var selected = 0; + if (typeof(id) == 'undefined' || typeof(id) == 'object') { + id = 'categoryselector'; + } + + if (document.getElementById) { + el = document.getElementById(id); + if (selector_toggle[id] && selector_toggle[id] == 'off') { + selector_restore[id] = new Array(); + selector_toggle[id] = 'on'; + + /* Hack to make sure that when the single dropdown is shown, don't have multiple selections */ + last = 0; + + for (i=0; i < el.options.length; i++) { + if (el.options[i].selected == true) { + selected++; + last = i; + selector_restore[id][last] = 'on'; + } + + if (selected > 1) { + /* If there is more than one selected, we reset all those to false + This is because otherwise the label will say 'No Category', but the categories will still be selected */ + for (j=0; j < el.options.length; j++) { + /* Save selection in array to later restore them */ + if (el.options[j].selected == true) { + el.options[j].selected = false; + selector_restore[id][j] = 'on'; + last = j; + } else { + selector_restore[id][j] = false; + } + } + break; + } + } + + el.selectedIndex = null; + if (last > 0) { + el.selectedIndex = last; + } + + el.size = 1; + + /* Show a normal dropdown */ + if (el.multiple) { + el.multiple = false; + } + + document.getElementById('option_' + id).src = plus_img; + } else { + selector_store[id] = el.size; + if (selector_store[id] == 0) { + selector_store[id] = 5; + } + + last = 0; + if (el.selectedIndex > 0) { + if (!selector_restore[id]) { + selector_restore[id] = new Array(); + } + + for (j=0; j < el.options.length; j++) { + /* Save selection in array to later restore them */ + if (el.options[j].selected == true) { + selector_restore[id][j] = 'on'; + last = j; + } + } + } + el.selectedIndex = -1; + el.size = cat_count; + selector_toggle[id] = 'off'; + + /* Show multiple items */ + el.multiple = true; + + /* Restore previously selected items? */ + last = 0; + for (i = 0; i < el.options.length; i++) { + if (selector_restore && selector_restore[id] && selector_restore[id][i] && selector_restore[id][i] == 'on') { + val = el.options[i].value; + if (el.options[i].selected != true) { + el.options[i].selected = true; + last = i; + // [TODO] IE Bug: Don't ask me why, but this restoring only works in Internet Explorer if you put this: + // alert('it doesnt matter what, just the alert is important'); + } + } + } + + document.getElementById('option_' + id).src = minus_img; + } + } +} diff --git a/templates/2k11/admin/entries.tpl b/templates/2k11/admin/entries.tpl new file mode 100644 index 00000000..39a60ecb --- /dev/null +++ b/templates/2k11/admin/entries.tpl @@ -0,0 +1,135 @@ +{* HTML5: Yes *} +{* jQuery: No *} + +{if $entry_vars.errMsg} + {$entry_vars.errMsg} +{/if} +
+ {$entry_vars.hidden} +
+ + +
+{if $entry_vars.allowDateManipulation} +
+ + {* TODO: this should be input[type=datetime] *} + + + {$CONST.RESET_DATE} +
+{/if} +
+ {* BUG: doesn't work the way it used to (collapsed multiselect) *} + + +
+ +
+ {* i18n *} + +
+ +
+ + {if NOT $entry_vars.wysiwyg} +
+ {* This whole button bar should be replaced by something external, which maybe even + "reacts" to installed markup plugins. I.e. if a blog uses Markdown, the button for + italic should not insert an em element but the appropriate Markdown formatting. *} + +
+ {/if} + {serendipity_hookPlugin hook="backend_entry_toolbar_body" data=$entry_data.entry hookAll="true"} + +
+ +
+
+ +
+ +
+ +
+
+ +
+ + +
+ +
+ + {if NOT $entry_vars.wysiwyg} +
+ {if $entry_vars.wysiwyg_advanced} + {if $iso2br}{/if} + + + + + + + + {else} + {if $iso2br}{/if} + + + + + + + {/if} +
+ {/if} + {serendipity_hookPlugin hook="backend_entry_toolbar_extended" data=$entry_data.entry hookAll="true"} + +
+ +
+ {$CONST.ADVANCED_OPTIONS} + {$entry_vars.entry|@serendipity_refhookPlugin:'backend_display'} +
+
+ +{if $entry_vars.show_wysiwyg} + +{/if} +{if $entry_vars.wysiwyg} + {foreach from=$entry_vars.wysiwyg_blocks item="wysiwyg_block_item" key="wysiwyg_block_jsname"} + {$wysiwyg_block_item|emit_htmlarea_code:$wysiwyg_block_jsname} + {/foreach} + {$entry_vars.wysiwyg_blocks|@serendipity_refhookPlugin:'backend_wysiwyg_finish'} +{/if} + + diff --git a/templates/2k11/admin/img/accept.png b/templates/2k11/admin/img/accept.png new file mode 100644 index 00000000..5b0f6a61 Binary files /dev/null and b/templates/2k11/admin/img/accept.png differ diff --git a/templates/2k11/admin/img/admin_msg_error.png b/templates/2k11/admin/img/admin_msg_error.png new file mode 100644 index 00000000..82d3fc79 Binary files /dev/null and b/templates/2k11/admin/img/admin_msg_error.png differ diff --git a/templates/2k11/admin/img/admin_msg_note.png b/templates/2k11/admin/img/admin_msg_note.png new file mode 100644 index 00000000..eb37d9a0 Binary files /dev/null and b/templates/2k11/admin/img/admin_msg_note.png differ diff --git a/templates/2k11/admin/img/admin_msg_success.png b/templates/2k11/admin/img/admin_msg_success.png new file mode 100644 index 00000000..92918210 Binary files /dev/null and b/templates/2k11/admin/img/admin_msg_success.png differ diff --git a/templates/2k11/admin/img/background.jpg b/templates/2k11/admin/img/background.jpg new file mode 100644 index 00000000..7635ca98 Binary files /dev/null and b/templates/2k11/admin/img/background.jpg differ diff --git a/templates/2k11/admin/img/banner_background.png b/templates/2k11/admin/img/banner_background.png new file mode 100644 index 00000000..ae06c201 Binary files /dev/null and b/templates/2k11/admin/img/banner_background.png differ diff --git a/templates/2k11/admin/img/big_delete.png b/templates/2k11/admin/img/big_delete.png new file mode 100644 index 00000000..816e06ac Binary files /dev/null and b/templates/2k11/admin/img/big_delete.png differ diff --git a/templates/2k11/admin/img/big_rename.png b/templates/2k11/admin/img/big_rename.png new file mode 100644 index 00000000..41269754 Binary files /dev/null and b/templates/2k11/admin/img/big_rename.png differ diff --git a/templates/2k11/admin/img/big_resize.png b/templates/2k11/admin/img/big_resize.png new file mode 100644 index 00000000..7d8ff858 Binary files /dev/null and b/templates/2k11/admin/img/big_resize.png differ diff --git a/templates/2k11/admin/img/big_rotate_ccw.png b/templates/2k11/admin/img/big_rotate_ccw.png new file mode 100644 index 00000000..c381bada Binary files /dev/null and b/templates/2k11/admin/img/big_rotate_ccw.png differ diff --git a/templates/2k11/admin/img/big_rotate_cw.png b/templates/2k11/admin/img/big_rotate_cw.png new file mode 100644 index 00000000..61b04959 Binary files /dev/null and b/templates/2k11/admin/img/big_rotate_cw.png differ diff --git a/templates/2k11/admin/img/big_zoom.png b/templates/2k11/admin/img/big_zoom.png new file mode 100644 index 00000000..e845f6d5 Binary files /dev/null and b/templates/2k11/admin/img/big_zoom.png differ diff --git a/templates/2k11/admin/img/button_background.png b/templates/2k11/admin/img/button_background.png new file mode 100644 index 00000000..d48532b2 Binary files /dev/null and b/templates/2k11/admin/img/button_background.png differ diff --git a/templates/2k11/admin/img/clock.png b/templates/2k11/admin/img/clock.png new file mode 100644 index 00000000..7c622a09 Binary files /dev/null and b/templates/2k11/admin/img/clock.png differ diff --git a/templates/2k11/admin/img/clock_future.png b/templates/2k11/admin/img/clock_future.png new file mode 100644 index 00000000..2517b4f4 Binary files /dev/null and b/templates/2k11/admin/img/clock_future.png differ diff --git a/templates/2k11/admin/img/configure.png b/templates/2k11/admin/img/configure.png new file mode 100644 index 00000000..a4a3834a Binary files /dev/null and b/templates/2k11/admin/img/configure.png differ diff --git a/templates/2k11/admin/img/delete.png b/templates/2k11/admin/img/delete.png new file mode 100644 index 00000000..dfb80b2e Binary files /dev/null and b/templates/2k11/admin/img/delete.png differ diff --git a/templates/2k11/admin/img/downarrow.png b/templates/2k11/admin/img/downarrow.png new file mode 100644 index 00000000..a4f8e50f Binary files /dev/null and b/templates/2k11/admin/img/downarrow.png differ diff --git a/templates/2k11/admin/img/edit.png b/templates/2k11/admin/img/edit.png new file mode 100644 index 00000000..33de951c Binary files /dev/null and b/templates/2k11/admin/img/edit.png differ diff --git a/templates/2k11/admin/img/folder.png b/templates/2k11/admin/img/folder.png new file mode 100644 index 00000000..2d8e3ba2 Binary files /dev/null and b/templates/2k11/admin/img/folder.png differ diff --git a/templates/2k11/admin/img/grablet.gif b/templates/2k11/admin/img/grablet.gif new file mode 100644 index 00000000..0c42cd55 Binary files /dev/null and b/templates/2k11/admin/img/grablet.gif differ diff --git a/templates/2k11/admin/img/grablet_over.gif b/templates/2k11/admin/img/grablet_over.gif new file mode 100644 index 00000000..5b47a985 Binary files /dev/null and b/templates/2k11/admin/img/grablet_over.gif differ diff --git a/templates/2k11/admin/img/imgedit_area.gif b/templates/2k11/admin/img/imgedit_area.gif new file mode 100644 index 00000000..e6ba221a Binary files /dev/null and b/templates/2k11/admin/img/imgedit_area.gif differ diff --git a/templates/2k11/admin/img/imgedit_orientation.gif b/templates/2k11/admin/img/imgedit_orientation.gif new file mode 100644 index 00000000..0f9c032f Binary files /dev/null and b/templates/2k11/admin/img/imgedit_orientation.gif differ diff --git a/templates/2k11/admin/img/imgedit_slider.gif b/templates/2k11/admin/img/imgedit_slider.gif new file mode 100644 index 00000000..819f4b0a Binary files /dev/null and b/templates/2k11/admin/img/imgedit_slider.gif differ diff --git a/templates/2k11/admin/img/imgedit_varea.gif b/templates/2k11/admin/img/imgedit_varea.gif new file mode 100644 index 00000000..884c7c55 Binary files /dev/null and b/templates/2k11/admin/img/imgedit_varea.gif differ diff --git a/templates/2k11/admin/img/infobar_background.png b/templates/2k11/admin/img/infobar_background.png new file mode 100644 index 00000000..09c90775 Binary files /dev/null and b/templates/2k11/admin/img/infobar_background.png differ diff --git a/templates/2k11/admin/img/install.png b/templates/2k11/admin/img/install.png new file mode 100644 index 00000000..0fcda3b0 Binary files /dev/null and b/templates/2k11/admin/img/install.png differ diff --git a/templates/2k11/admin/img/install_now.png b/templates/2k11/admin/img/install_now.png new file mode 100644 index 00000000..4a450a7b Binary files /dev/null and b/templates/2k11/admin/img/install_now.png differ diff --git a/templates/2k11/admin/img/install_now_spartacus.png b/templates/2k11/admin/img/install_now_spartacus.png new file mode 100644 index 00000000..aded6231 Binary files /dev/null and b/templates/2k11/admin/img/install_now_spartacus.png differ diff --git a/templates/2k11/admin/img/install_template.png b/templates/2k11/admin/img/install_template.png new file mode 100644 index 00000000..ffbce223 Binary files /dev/null and b/templates/2k11/admin/img/install_template.png differ diff --git a/templates/2k11/admin/img/menu_background.png b/templates/2k11/admin/img/menu_background.png new file mode 100644 index 00000000..4c5497fc Binary files /dev/null and b/templates/2k11/admin/img/menu_background.png differ diff --git a/templates/2k11/admin/img/menuheader_background.png b/templates/2k11/admin/img/menuheader_background.png new file mode 100644 index 00000000..7f769618 Binary files /dev/null and b/templates/2k11/admin/img/menuheader_background.png differ diff --git a/templates/2k11/admin/img/menuitem.png b/templates/2k11/admin/img/menuitem.png new file mode 100644 index 00000000..2253ae85 Binary files /dev/null and b/templates/2k11/admin/img/menuitem.png differ diff --git a/templates/2k11/admin/img/mime_unknown.png b/templates/2k11/admin/img/mime_unknown.png new file mode 100644 index 00000000..35c93d2f Binary files /dev/null and b/templates/2k11/admin/img/mime_unknown.png differ diff --git a/templates/2k11/admin/img/next.png b/templates/2k11/admin/img/next.png new file mode 100644 index 00000000..24a89b54 Binary files /dev/null and b/templates/2k11/admin/img/next.png differ diff --git a/templates/2k11/admin/img/previous.png b/templates/2k11/admin/img/previous.png new file mode 100644 index 00000000..6992aa7e Binary files /dev/null and b/templates/2k11/admin/img/previous.png differ diff --git a/templates/2k11/admin/img/rotate.png b/templates/2k11/admin/img/rotate.png new file mode 100644 index 00000000..c381bada Binary files /dev/null and b/templates/2k11/admin/img/rotate.png differ diff --git a/templates/2k11/admin/img/thumbnail.png b/templates/2k11/admin/img/thumbnail.png new file mode 100644 index 00000000..91adff8d Binary files /dev/null and b/templates/2k11/admin/img/thumbnail.png differ diff --git a/templates/2k11/admin/img/unconfigure.png b/templates/2k11/admin/img/unconfigure.png new file mode 100644 index 00000000..80b718cd Binary files /dev/null and b/templates/2k11/admin/img/unconfigure.png differ diff --git a/templates/2k11/admin/img/uparrow.png b/templates/2k11/admin/img/uparrow.png new file mode 100644 index 00000000..dfad497a Binary files /dev/null and b/templates/2k11/admin/img/uparrow.png differ diff --git a/templates/2k11/admin/img/upgrade_now.png b/templates/2k11/admin/img/upgrade_now.png new file mode 100644 index 00000000..b622ed35 Binary files /dev/null and b/templates/2k11/admin/img/upgrade_now.png differ diff --git a/templates/2k11/admin/img/user_admin.png b/templates/2k11/admin/img/user_admin.png new file mode 100644 index 00000000..a6ed9b4b Binary files /dev/null and b/templates/2k11/admin/img/user_admin.png differ diff --git a/templates/2k11/admin/img/user_chief.png b/templates/2k11/admin/img/user_chief.png new file mode 100644 index 00000000..4aeaa1d3 Binary files /dev/null and b/templates/2k11/admin/img/user_chief.png differ diff --git a/templates/2k11/admin/img/user_editor.png b/templates/2k11/admin/img/user_editor.png new file mode 100644 index 00000000..8aa20047 Binary files /dev/null and b/templates/2k11/admin/img/user_editor.png differ diff --git a/templates/2k11/admin/img/zoom.png b/templates/2k11/admin/img/zoom.png new file mode 100644 index 00000000..6dd19315 Binary files /dev/null and b/templates/2k11/admin/img/zoom.png differ diff --git a/templates/2k11/admin/imgedit.css b/templates/2k11/admin/imgedit.css new file mode 100644 index 00000000..2c810631 --- /dev/null +++ b/templates/2k11/admin/imgedit.css @@ -0,0 +1,173 @@ +#zoomslider { + position: relative; + display: block; + width: 10px; /* If you change the width of this, also change the JavaScript variable "slider_width"!!! */ + height: 100px; + border: 1px solid yellow; + background-color: yellow; + color: black; + margin-left: auto; + margin-right: auto; + text-align: center; + margin-top: 5px; + margin-bottom: 5px; +} + +#zoombutton { + position: absolute; + display: inline; + background-color: red; + margin: 0px; + padding: 0px; + border: 0px; + cursor: move; + z-index: 4; + visibility: hidden; +} + +.smallcaps { + font-family: Verdana; + font-size: 7pt; + color: white; +} + +.nospace { + margin: 0px; + padding: 0px; +} + +.button { + border: 1px solid gray; + font-family: Verdana; + font-size: 7pt; + color: white; + background-color: #303030; + padding: 3px; +} + +.specialbutton { + border: 1px solid gray; + font-family: Verdana; + font-size: 8pt; + color: white; + background-color: red; + padding: 3px; + + margin: 5px; +} + +.small { + width: 25px; + margin-top: 5px; +} + +.center { + margin-left: auto; + margin-right: auto; + text-align: center; + vertical-align: middle; +} + +.center span { + position: relative; + top: -5px; +} + +#imgedit { + position: absolute; + left: 10px; + top: 25px; + margin: 15px; + padding: 5px; +} + +#outer { + display: block; + position: absolute; + z-index: 1; +} + +#backdrop { + display: block; + position: absolute; + z-index: 2; + filter:progid:DXImageTransform.Microsoft.Alpha(opacity=55); + -moz-opacity: 0.55; +} + +#overlay { + position: absolute; + display: block; + z-index: 3; + cursor: move; + overflow: hidden; +} + +#harea { + position: absolute; + display: block; + z-index: 4; +} + +#varea { + position: absolute; + display: block; + z-index: 4; +} + +#zoom { + display: block; + float: left; + height: 140px; + border: 1px solid red; + vertical-align: middle; + margin-left: auto; + margin-right: auto; + text-align: center; + position: absolute; +} + +#scaletext { + display: inline; +} + + +#cropimage { + overflow: hidden; + display: block; + position: absolute; + top: 1px; +} + +.info { + display: block; + position: relative; + border: 1px solid black; + color: black; + background-color: #A0A0A0; + margin: 20px; + padding: 10px; +} + +legend { + background-color: #A0A0A0; + font-family: Verdana; + font-size: 12pt; + font-weight: bold; + -moz-border-radius-topleft: 10px; + -moz-border-radius-topright: 10px; + border-left: 1px solid black; + border-right: 1px solid black; + padding: 3px; + color: white; +} + +.error { + color: red; +} + +code { + color: white; + font-size: 8pt; +} + diff --git a/templates/2k11/admin/index.tpl b/templates/2k11/admin/index.tpl new file mode 100644 index 00000000..b417c081 --- /dev/null +++ b/templates/2k11/admin/index.tpl @@ -0,0 +1,189 @@ +{* HTML5: Yes *} +{* jQuery: No *} + + + + + + + + + {if $admin_vars.title}{$admin_vars.title} | {/if}{$CONST.SERENDIPITY_ADMIN_SUITE} + + + + + +{if $admin_vars.admin_installed} + {serendipity_hookPlugin hook="backend_header" hookAll="true"} +{/if} + + +{if NOT $admin_vars.no_banner} +
+
+ {if $admin_vars.admin_installed} + + {if $admin_vars.is_logged_in} + + {/if} +
+
+{/if} +
+ {if NOT $admin_vars.is_logged_in} + {$admin_vars.out|@serendipity_refhookPlugin:'backend_login_page'} + {*
*} + {*

{$CONST.WELCOME_TO_ADMIN}

*} + {$admin_vars.out.header} + {if $admin_vars.post_action != '' AND NOT $admin_vars.is_logged_in} + {$CONST.WRONG_USERNAME_OR_PASSWORD} + {/if} +
+ +
+ {$CONST.PLEASE_ENTER_CREDENTIALS} + +
+ + +
+ +
+ + +
+ +
+ +
+ + +
+ {$admin_vars.out.table} +
+ {$CONST.BACK_TO_BLOG} + {$admin_vars.out.footer} + {*
*} + {else} +
+ {$admin_vars.main_content} +
+ {if NOT $admin_vars.no_sidebar} + + {/if} + {/if} +
+{if NOT $admin_vars.no_footer} + +{/if} + + + diff --git a/templates/2k11/admin/js/2k11.admin.js b/templates/2k11/admin/js/2k11.admin.js new file mode 100644 index 00000000..7f56155a --- /dev/null +++ b/templates/2k11/admin/js/2k11.admin.js @@ -0,0 +1 @@ +jQuery(document).ready(function($) { }); diff --git a/templates/2k11/admin/js/boxsizing.htc b/templates/2k11/admin/js/boxsizing.htc new file mode 100644 index 00000000..a3d8aad3 --- /dev/null +++ b/templates/2k11/admin/js/boxsizing.htc @@ -0,0 +1,501 @@ +/** +* box-sizing Polyfill +* +* A polyfill for box-sizing: border-box for IE6 & IE7. +* +* JScript +* +* This program is free software: you can redistribute it and/or modify +* it under the terms of the GNU Lesser General Public License as published +* by the Free Software Foundation, either version 3 of the License, or +* (at your option) any later version. +* +* This program is distributed in the hope that it will be useful, +* but WITHOUT ANY WARRANTY; without even the implied warranty of +* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +* GNU Lesser General Public License for more details. +* +* See +* +* @category JScript +* @package box-sizing-polyfill +* @author Christian Schepp Schaefer +* @copyright 2012 Christian Schepp Schaefer +* @license http://www.gnu.org/copyleft/lesser.html The GNU LESSER GENERAL PUBLIC LICENSE, Version 3.0 +* @link http://github.com/Schepp/box-sizing-polyfill +* +* PREFACE: +* +* This box-sizing polyfill is based on previous work done by Erik Arvidsson, +* which he published in 2002 on http://webfx.eae.net/dhtml/boxsizing/boxsizing.html. +* +* USAGE: +* +* Add the behavior/HTC after every `box-sizing: border-box;` that you assign: +* +* box-sizing: border-box; +* *behavior: url(/scripts/boxsizing.htc);` +* +* Prefix the `behavior` property with a star, like seen above, so it will only be seen by +* IE6 & IE7, not by IE8+ who already implement box-sizing. +* +* The URL to the HTC file must be relative to your HTML(!) document, not relative to your CSS. +* That's why I'd advise you to use absolute paths like in the example. +* +*/ + + + + + + \ No newline at end of file diff --git a/templates/2k11/admin/js/modernizr-2.6.2.min.js b/templates/2k11/admin/js/modernizr-2.6.2.min.js new file mode 100644 index 00000000..35e85378 --- /dev/null +++ b/templates/2k11/admin/js/modernizr-2.6.2.min.js @@ -0,0 +1,4 @@ +/* Modernizr 2.6.2 (Custom Build) | MIT & BSD + * Build: http://modernizr.com/download/#-fontface-backgroundsize-borderimage-borderradius-boxshadow-flexbox-flexbox_legacy-hsla-multiplebgs-opacity-rgba-textshadow-cssanimations-csscolumns-generatedcontent-cssgradients-cssreflections-csstransforms-csstransforms3d-csstransitions-applicationcache-canvas-canvastext-draganddrop-hashchange-history-audio-video-indexeddb-input-inputtypes-localstorage-postmessage-sessionstorage-websockets-websqldatabase-webworkers-geolocation-inlinesvg-smil-svg-svgclippaths-touch-webgl-printshiv-mq-cssclasses-teststyles-testprop-testallprops-hasevent-prefixes-domprefixes + */ +;window.Modernizr=function(a,b,c){function D(a){j.cssText=a}function E(a,b){return D(n.join(a+";")+(b||""))}function F(a,b){return typeof a===b}function G(a,b){return!!~(""+a).indexOf(b)}function H(a,b){for(var d in a){var e=a[d];if(!G(e,"-")&&j[e]!==c)return b=="pfx"?e:!0}return!1}function I(a,b,d){for(var e in a){var f=b[a[e]];if(f!==c)return d===!1?a[e]:F(f,"function")?f.bind(d||b):f}return!1}function J(a,b,c){var d=a.charAt(0).toUpperCase()+a.slice(1),e=(a+" "+p.join(d+" ")+d).split(" ");return F(b,"string")||F(b,"undefined")?H(e,b):(e=(a+" "+q.join(d+" ")+d).split(" "),I(e,b,c))}function K(){e.input=function(c){for(var d=0,e=c.length;d',a,""].join(""),l.id=h,(m?l:n).innerHTML+=f,n.appendChild(l),m||(n.style.background="",n.style.overflow="hidden",k=g.style.overflow,g.style.overflow="hidden",g.appendChild(n)),i=c(l,a),m?l.parentNode.removeChild(l):(n.parentNode.removeChild(n),g.style.overflow=k),!!i},z=function(b){var c=a.matchMedia||a.msMatchMedia;if(c)return c(b).matches;var d;return y("@media "+b+" { #"+h+" { position: absolute; } }",function(b){d=(a.getComputedStyle?getComputedStyle(b,null):b.currentStyle)["position"]=="absolute"}),d},A=function(){function d(d,e){e=e||b.createElement(a[d]||"div"),d="on"+d;var f=d in e;return f||(e.setAttribute||(e=b.createElement("div")),e.setAttribute&&e.removeAttribute&&(e.setAttribute(d,""),f=F(e[d],"function"),F(e[d],"undefined")||(e[d]=c),e.removeAttribute(d))),e=null,f}var a={select:"input",change:"input",submit:"form",reset:"form",error:"img",load:"img",abort:"img"};return d}(),B={}.hasOwnProperty,C;!F(B,"undefined")&&!F(B.call,"undefined")?C=function(a,b){return B.call(a,b)}:C=function(a,b){return b in a&&F(a.constructor.prototype[b],"undefined")},Function.prototype.bind||(Function.prototype.bind=function(b){var c=this;if(typeof c!="function")throw new TypeError;var d=w.call(arguments,1),e=function(){if(this instanceof e){var a=function(){};a.prototype=c.prototype;var f=new a,g=c.apply(f,d.concat(w.call(arguments)));return Object(g)===g?g:f}return c.apply(b,d.concat(w.call(arguments)))};return e}),s.flexbox=function(){return J("flexWrap")},s.canvas=function(){var a=b.createElement("canvas");return!!a.getContext&&!!a.getContext("2d")},s.canvastext=function(){return!!e.canvas&&!!F(b.createElement("canvas").getContext("2d").fillText,"function")},s.webgl=function(){return!!a.WebGLRenderingContext},s.touch=function(){var c;return"ontouchstart"in a||a.DocumentTouch&&b instanceof DocumentTouch?c=!0:y(["@media (",n.join("touch-enabled),("),h,")","{#modernizr{top:9px;position:absolute}}"].join(""),function(a){c=a.offsetTop===9}),c},s.geolocation=function(){return"geolocation"in navigator},s.postmessage=function(){return!!a.postMessage},s.websqldatabase=function(){return!!a.openDatabase},s.indexedDB=function(){return!!J("indexedDB",a)},s.hashchange=function(){return A("hashchange",a)&&(b.documentMode===c||b.documentMode>7)},s.history=function(){return!!a.history&&!!history.pushState},s.draganddrop=function(){var a=b.createElement("div");return"draggable"in a||"ondragstart"in a&&"ondrop"in a},s.websockets=function(){return"WebSocket"in a||"MozWebSocket"in a},s.rgba=function(){return D("background-color:rgba(150,255,150,.5)"),G(j.backgroundColor,"rgba")},s.hsla=function(){return D("background-color:hsla(120,40%,100%,.5)"),G(j.backgroundColor,"rgba")||G(j.backgroundColor,"hsla")},s.multiplebgs=function(){return D("background:url(https://),url(https://),red url(https://)"),/(url\s*\(.*?){3}/.test(j.background)},s.backgroundsize=function(){return J("backgroundSize")},s.borderimage=function(){return J("borderImage")},s.borderradius=function(){return J("borderRadius")},s.boxshadow=function(){return J("boxShadow")},s.textshadow=function(){return b.createElement("div").style.textShadow===""},s.opacity=function(){return E("opacity:.55"),/^0.55$/.test(j.opacity)},s.cssanimations=function(){return J("animationName")},s.csscolumns=function(){return J("columnCount")},s.cssgradients=function(){var a="background-image:",b="gradient(linear,left top,right bottom,from(#9f9),to(white));",c="linear-gradient(left top,#9f9, white);";return D((a+"-webkit- ".split(" ").join(b+a)+n.join(c+a)).slice(0,-a.length)),G(j.backgroundImage,"gradient")},s.cssreflections=function(){return J("boxReflect")},s.csstransforms=function(){return!!J("transform")},s.csstransforms3d=function(){var a=!!J("perspective");return a&&"webkitPerspective"in g.style&&y("@media (transform-3d),(-webkit-transform-3d){#modernizr{left:9px;position:absolute;height:3px;}}",function(b,c){a=b.offsetLeft===9&&b.offsetHeight===3}),a},s.csstransitions=function(){return J("transition")},s.fontface=function(){var a;return y('@font-face {font-family:"font";src:url("https://")}',function(c,d){var e=b.getElementById("smodernizr"),f=e.sheet||e.styleSheet,g=f?f.cssRules&&f.cssRules[0]?f.cssRules[0].cssText:f.cssText||"":"";a=/src/i.test(g)&&g.indexOf(d.split(" ")[0])===0}),a},s.generatedcontent=function(){var a;return y(["#",h,"{font:0/0 a}#",h,':after{content:"',l,'";visibility:hidden;font:3px/1 a}'].join(""),function(b){a=b.offsetHeight>=3}),a},s.video=function(){var a=b.createElement("video"),c=!1;try{if(c=!!a.canPlayType)c=new Boolean(c),c.ogg=a.canPlayType('video/ogg; codecs="theora"').replace(/^no$/,""),c.h264=a.canPlayType('video/mp4; codecs="avc1.42E01E"').replace(/^no$/,""),c.webm=a.canPlayType('video/webm; codecs="vp8, vorbis"').replace(/^no$/,"")}catch(d){}return c},s.audio=function(){var a=b.createElement("audio"),c=!1;try{if(c=!!a.canPlayType)c=new Boolean(c),c.ogg=a.canPlayType('audio/ogg; codecs="vorbis"').replace(/^no$/,""),c.mp3=a.canPlayType("audio/mpeg;").replace(/^no$/,""),c.wav=a.canPlayType('audio/wav; codecs="1"').replace(/^no$/,""),c.m4a=(a.canPlayType("audio/x-m4a;")||a.canPlayType("audio/aac;")).replace(/^no$/,"")}catch(d){}return c},s.localstorage=function(){try{return localStorage.setItem(h,h),localStorage.removeItem(h),!0}catch(a){return!1}},s.sessionstorage=function(){try{return sessionStorage.setItem(h,h),sessionStorage.removeItem(h),!0}catch(a){return!1}},s.webworkers=function(){return!!a.Worker},s.applicationcache=function(){return!!a.applicationCache},s.svg=function(){return!!b.createElementNS&&!!b.createElementNS(r.svg,"svg").createSVGRect},s.inlinesvg=function(){var a=b.createElement("div");return a.innerHTML="",(a.firstChild&&a.firstChild.namespaceURI)==r.svg},s.smil=function(){return!!b.createElementNS&&/SVGAnimate/.test(m.call(b.createElementNS(r.svg,"animate")))},s.svgclippaths=function(){return!!b.createElementNS&&/SVGClipPath/.test(m.call(b.createElementNS(r.svg,"clipPath")))};for(var L in s)C(s,L)&&(x=L.toLowerCase(),e[x]=s[L](),v.push((e[x]?"":"no-")+x));return e.input||K(),e.addTest=function(a,b){if(typeof a=="object")for(var d in a)C(a,d)&&e.addTest(d,a[d]);else{a=a.toLowerCase();if(e[a]!==c)return e;b=typeof b=="function"?b():b,typeof f!="undefined"&&f&&(g.className+=" "+(b?"":"no-")+a),e[a]=b}return e},D(""),i=k=null,e._version=d,e._prefixes=n,e._domPrefixes=q,e._cssomPrefixes=p,e.mq=z,e.hasEvent=A,e.testProp=function(a){return H([a])},e.testAllProps=J,e.testStyles=y,g.className=g.className.replace(/(^|\s)no-js(\s|$)/,"$1$2")+(f?" js "+v.join(" "):""),e}(this,this.document),function(a,b){function k(a,b){var c=a.createElement("p"),d=a.getElementsByTagName("head")[0]||a.documentElement;return c.innerHTML="x",d.insertBefore(c.lastChild,d.firstChild)}function l(){var a=r.elements;return typeof a=="string"?a.split(" "):a}function m(a){var b=i[a[g]];return b||(b={},h++,a[g]=h,i[h]=b),b}function n(a,c,f){c||(c=b);if(j)return c.createElement(a);f||(f=m(c));var g;return f.cache[a]?g=f.cache[a].cloneNode():e.test(a)?g=(f.cache[a]=f.createElem(a)).cloneNode():g=f.createElem(a),g.canHaveChildren&&!d.test(a)?f.frag.appendChild(g):g}function o(a,c){a||(a=b);if(j)return a.createDocumentFragment();c=c||m(a);var d=c.frag.cloneNode(),e=0,f=l(),g=f.length;for(;e+~])("+l().join("|")+")(?=[[\\s,>+~#.:]|$)","gi"),f="$1"+t+"\\:$2";while(d--)b=c[d]=c[d].split("}"),b[b.length-1]=b[b.length-1].replace(e,f),c[d]=b.join("}");return c.join("{")}function y(a){var b=a.length;while(b--)a[b].removeNode()}function z(a){function g(){clearTimeout(d._removeSheetTimer),b&&b.removeNode(!0),b=null}var b,c,d=m(a),e=a.namespaces,f=a.parentWindow;return!u||a.printShived?a:(typeof e[t]=="undefined"&&e.add(t),f.attachEvent("onbeforeprint",function(){g();var d,e,f,h=a.styleSheets,i=[],j=h.length,l=Array(j);while(j--)l[j]=h[j];while(f=l.pop())if(!f.disabled&&s.test(f.media)){try{d=f.imports,e=d.length}catch(m){e=0}for(j=0;j",f="hidden"in a,j=a.childNodes.length==1||function(){b.createElement("a");var a=b.createDocumentFragment();return typeof a.cloneNode=="undefined"||typeof a.createDocumentFragment=="undefined"||typeof a.createElement=="undefined"}()}catch(c){f=!0,j=!0}})();var r={elements:c.elements||"abbr article aside audio bdi canvas data datalist details figcaption figure footer header hgroup mark meter nav output progress section summary time video",shivCSS:c.shivCSS!==!1,supportsUnknownElements:j,shivMethods:c.shivMethods!==!1,type:"default",shivDocument:q,createElement:n,createDocumentFragment:o};a.html5=r,q(b);var s=/^$|\b(?:all|print)\b/,t="html5shiv",u=!j&&function(){var c=b.documentElement;return typeof b.namespaces!="undefined"&&typeof b.parentWindow!="undefined"&&typeof c.applyElement!="undefined"&&typeof c.removeNode!="undefined"&&typeof a.attachEvent!="undefined"}();r.type+=" print",r.shivPrint=z,z(b)}(this,document); \ No newline at end of file diff --git a/templates/2k11/admin/media_choose.tpl b/templates/2k11/admin/media_choose.tpl new file mode 100644 index 00000000..e1b2ca8f --- /dev/null +++ b/templates/2k11/admin/media_choose.tpl @@ -0,0 +1,383 @@ +{* HTML5: Yes *} +{* jQuery: No *} + + + + + {$CONST.SERENDIPITY_ADMIN_SUITE}: {$CONST.SELECT_FILE} + {if $media.css}{/if} + {if $media.css_tree}{/if} + {if $media.css_imgedit}{/if} +{if $media.is_imgedit} + + + +{/if} + + + + + +{if $media.frameset} + + + + + +{else} + + +
+{if $media.case == 'external'} + + {if $media.is_created OR $media.is_deleted} + + {/if} + {$media.external} + + {if $media.is_imgedit} + {$IMGEDIT} + {/if} + +{elseif $media.case == 'default'} + +

{$CONST.SELECT_FILE}

+ +

{$CONST.CLICK_FILE_TO_INSERT}

+ + {$media.external} + {$MEDIA_LIST} + +{elseif $media.case == 'choose'} + {if $perm_denied} + {$CONST.PERM_DENIED} + {else} + + {$media.external} + + + +
+ {if $media.file.is_image} + {serendipity_hookPlugin hook="frontend_image_selector" eventData=$media.file hookAll=true} +

{$CONST.YOU_CHOSE|@sprintf:$media.file.realname}

+ + + +
+ {serendipity_hookPlugin hookAll=true hook='frontend_image_selector_hiddenfields' eventData=$media.file} + + + + + + + + + + + {if $media.htmltarget} + + {/if} + {if $media.filename_only} + + {/if} + {if $media.file.fast_select} + + {else} +
+ {$CONST.IMAGE_SIZE} + +
+
+ + +
+ +
+ + +
+
+ {serendipity_hookPlugin hookAll=true hook='frontend_image_selector_imagesize' eventData=$media.file} +
+ {if NOT $media.filename_only} +
+ {$CONST.IMAGE_ALIGNMENT} + +
+
+ + {* i18n *} +
+ +
+ + {* i18n *} +
+ +
+ + {* i18n *} +
+
+ {serendipity_hookPlugin hookAll=true hook='frontend_image_selector_imagealign' eventData=$media.file} +
+ + + +
+ + + {serendipity_hookPlugin hookAll=true hook='frontend_image_selector_imagecomment' eventData=$media.file} +
+ +
+ + + {serendipity_hookPlugin hookAll=true hook='frontend_image_selector_alt' eventData=$media.file} +
+ +
+ + + {serendipity_hookPlugin hookAll=true hook='frontend_image_selector_title' eventData=$media.file} +
+ {/if} + {serendipity_hookPlugin hookAll=true hook='frontend_image_selector_more' eventData=$media.file} +
+ + + {serendipity_hookPlugin hookAll=true hook='frontend_image_selector_submit' eventData=$media.file} +
+ {/if} +
+ {else} + {if $media.filename_only} + + {else} + + {/if} + {/if} + {/if} +{elseif $media.case == 'tree'} +
+
+ +
+
+ + + + +{/if} +
+ + +{/if} diff --git a/templates/2k11/admin/media_imgedit.tpl b/templates/2k11/admin/media_imgedit.tpl new file mode 100644 index 00000000..f0f21c0d --- /dev/null +++ b/templates/2k11/admin/media_imgedit.tpl @@ -0,0 +1,57 @@ +{* HTML5: Yes *} +{* jQuery: No *} + +{* Erm, why isn't this localized at all? o_O *} +
+
+ + + + + + + +
+ + +
+ OR +
+
+ {* There might be better (HTML5/jQuery) widgets for this, but let's keep it for now. *} +
+ + + + + + + + + + + + + +
+ +
+ Backdrop + Overlay + [Crop area] + [Crop area] +
+
+
+ + + diff --git a/templates/2k11/admin/media_imgedit_done.tpl b/templates/2k11/admin/media_imgedit_done.tpl new file mode 100644 index 00000000..b3666406 --- /dev/null +++ b/templates/2k11/admin/media_imgedit_done.tpl @@ -0,0 +1,41 @@ +{* HTML5: Yes *} +{* jQuery: NN *} + +{* Erm, why isn't this localized at all? o_O *} +
+ {* Check if h3 is the proper level. *} +

Output Information

+ +

Your image was {$imgedit.real_img_width} x {$imgedit.real_img_height} pixels (Orientation: {$imgedit.area_orientation}).

+ +

Depending on your zoom of {$imgedit.zoombox_factor}x, it was {$imgedit.zoom_img_width} x {$imgedit.zoom_img_height} pixels.

+ +

It got scaled to {$imgedit.img_width} x {$imgedit.img_height} pixels.

+ +

Then a rectangle starting from ({$imgedit.slice_from_x}|{$imgedit.slice_from_y}) to ({$imgedit.slice_to_x}|{$imgedit.slice_to_y}) has been sliced from it.

+ {if $imgedit.image_cut} +

The image has been correctly cropped and only the part inside of the rectangle is going to be shown.

+ {/if} + {if $imgedit.image_no_cut} +

Because the source dimensions were smaller than the destination dimensions, the image does not fill up the complete space.

+ {/if} + {if $imgedit.image_error} + However, there were errors processing your image. + {/if} +
+ +
+

Image Result

+ +

Cropped Image:

+ +
+ Cropped image +
+

+ +
+

Play it again, Sam

+ +

That was great! So, please once more, with feeling!

+
diff --git a/templates/2k11/admin/media_items.tpl b/templates/2k11/admin/media_items.tpl new file mode 100644 index 00000000..cbda871c --- /dev/null +++ b/templates/2k11/admin/media_items.tpl @@ -0,0 +1,159 @@ +{* HTML5: Yes *} +{* jQuery: No *} + +{foreach from=$media.files item="file" name="mediafiles" key="mediakey"} + {if NOT $media.manage} +
+ {$file.preview} + {if $file.orderkey != ''} + {$file.orderkey|@escape} + {/if} +
+ {else} +
+
+

{$file.realname}{if $file.orderkey != ''}: {$file.orderkey|@escape}{/if}

+ {if $file.authorid != 0}{$file.authorname}{/if} +
+ +
+ {$file.preview} +
+ {if $file.is_editable} + + {/if} +
+
    + {if $file.hotlink} +
  • {$file.nice_hotlink}
  • + {else} + {if $file.is_image} +
  • {$CONST.ORIGINAL_SHORT}: {$file.dimensions_width}x{$file.dimensions_height}
  • +
  • {$CONST.THUMBNAIL_SHORT}: {$file.dim.0}x{$file.dim.1}
  • + {/if} +
  • {$file.nice_size} KB
  • + {if $file.realname != $file.diskname} +
  • {$file.diskname}
  • + {/if} + {/if} +
+
+
+ {/if} + + {if NOT $media.enclose} +
+
+

{$file.realname}

+ {$file.mime}{if $file.realname != $file.diskname}, {$file.diskname}{/if} +
+ +
+
    +
  • {if $file.authorid != 0}{$CONST.POSTED_BY} {$file.authorname} {/if}{$CONST.ON} {$file.date|@formatTime:DATE_FORMAT_SHORT}
  • + {if $file.hotlink} +
  • {$file.nice_hotlink}
  • + {elseif $file.is_image} +
  • {$CONST.ORIGINAL_SHORT}: {$file.dimensions_width}x{$file.dimensions_height}
  • +
  • {$CONST.THUMBNAIL_SHORT}: {$file.dim.0}x{$file.dim.1}
  • + {/if} +
  • {$file.nice_size} KB
  • +
+
+ + + +
+

{$CONST.MEDIA_PROP}

+ {foreach from=$file.base_property key="prop_fieldname" item="prop_content"} +
+ + {if $prop_content.type == 'textarea'} + + {elseif $prop_content.type == 'readonly'} + {$prop_content.val|@escape} + {elseif $prop_content.type == 'input'} + + {/if} +
+ {/foreach} + {if NOT $file.hotlink} +
+ + + +
+ {/if} + {if $file.is_image} + {$CONST.EDIT} + {/if} +
+ +
+

{$CONST.MEDIA_KEYWORDS}

+ +
    + {foreach from=$file.base_keywords key="keyword_row" item="keyword_cells"} + {foreach from=$keyword_cells key="keyword_cell" item="keyword"} + {if $keyword.name} +
  • +
  • + {/if} + {/foreach} + {/foreach} +
+
+ + + {if $file.references} +
+

{$CONST.REFERER}

+ + +
+ {/if} +
+ {/if} +{/foreach} diff --git a/templates/2k11/admin/media_pane.tpl b/templates/2k11/admin/media_pane.tpl new file mode 100644 index 00000000..1613c09e --- /dev/null +++ b/templates/2k11/admin/media_pane.tpl @@ -0,0 +1,165 @@ +{* HTML5: Yes *} +{* jQuery: No *} + + + +

{$CONST.FIND_MEDIA}

+ +
+ {$media.token} + {$media.form_hidden} +
+ {$CONST.FILTERS} + + {$CONST.FILTERS} + +
+
+ + +
+ +
+ + +
+
+ + + {/if} + {/foreach} +
+ +{if $media.keywords_selected != '' OR $show_filter} + +{/if} +
+ {$CONST.SORT_ORDER} + +
+
+ + + +
+ +
+ + + +
+ +
+ + + +
+
+
+{if $media.show_upload} + +{/if} + + +{if $media.nr_files < 1} + {$CONST.NO_IMAGES_FOUND} +{else} + {if $smarty.get.serendipity.adminModule == 'media'} +
+ {$media.token} + + + + {/if} +
+
    +
  • {if $media.page != 1 AND $media.page <= $media.pages}{$CONST.PREVIOUS}{else}{$CONST.NO_ENTRIES_TO_PRINT}{/if}
  • +
  • {if $media.page != $media.pages}{$CONST.NEXT}{else}{$CONST.NO_ENTRIES_TO_PRINT}{/if}
  • +
+ {$MEDIA_ITEMS} + {* Should be cloned using JS *} +
    +
  • {if $media.page != 1 AND $media.page <= $media.pages}{$CONST.PREVIOUS}{else}{$CONST.NO_ENTRIES_TO_PRINT}{/if}
  • +
  • {if $media.page != $media.pages}{$CONST.NEXT}{else}{$CONST.NO_ENTRIES_TO_PRINT}{/if}
  • +
+
+ {if $smarty.get.serendipity.adminModule == 'media'} +
+ + +
+
+ {/if} +{/if} diff --git a/templates/2k11/admin/media_properties.tpl b/templates/2k11/admin/media_properties.tpl new file mode 100644 index 00000000..c24eb72d --- /dev/null +++ b/templates/2k11/admin/media_properties.tpl @@ -0,0 +1,21 @@ +{* HTML5: Yes *} +{* jQuery: NN *} + +{if $media.is_edit} +
+
+ {$media.token} + + + + + {$media.editform_hidden} +{/if} + +{$MEDIA_ITEMS} + +{if $media.is_edit} + +
+
+{/if} diff --git a/templates/2k11/admin/media_showitem.tpl b/templates/2k11/admin/media_showitem.tpl new file mode 100644 index 00000000..37525d2b --- /dev/null +++ b/templates/2k11/admin/media_showitem.tpl @@ -0,0 +1,91 @@ +{* HTML5: Yes *} +{* jQuery: NN *} + + + + + {$media.file.props.base_property.TITLE|@default:$media.file.realname} + + + + +{if $perm_denied} + {$CONST.PERM_DENIED} +{else} +
+

{$media.file.realname}

+ +

{$media.file.props.base_property.TITLE|@default:''}

+ +
+ {if $media.file.is_image} + {$media.file.realname} + {else} + {$media.file.realname} ({$media.file.displaymime}) + {/if} + {$CONST.BACK_TO_BLOG} +
+ {if $media.file.base_property} +
+

{$CONST.MEDIA_PROP}

+ +
+ {foreach from=$media.file.base_property key="prop_fieldname" item="prop_content"} + {if $prop_content.val} +
{$prop_content.label}
+
{$prop_content.val|@escape}
+ {/if} + {/foreach} +
+
+ {/if} + {if $media.file.props.base_keyword} +
+

{$CONST.MEDIA_KEYWORDS}

+ +
+ {foreach from=$media.file.props.base_keyword key="prop_fieldname" item="prop_content"} + {$prop_fieldname|@escape} + {/foreach} +
+
+ {/if} + {if $media.file.props.base_metadata} + + {/if} + {if $media.file.references} +
+

{$CONST.REFERER}

+ + +
+ {/if} +
+{/if} + + diff --git a/templates/2k11/admin/media_upload.tpl b/templates/2k11/admin/media_upload.tpl new file mode 100644 index 00000000..4f547292 --- /dev/null +++ b/templates/2k11/admin/media_upload.tpl @@ -0,0 +1,259 @@ +{* HTML5: No *} +{* jQuery: No *} + +
{$CONST.ADD_MEDIA_BLAHBLAH}
+ + + +
+
+ {if $media.max_file_size} + + {/if} + {$media.token} + + + + {$media.form_hidden} +
+
+ + +
+ +
+ + +
+ {$CONST.WORD_OR} +
+ + +
+ + + + + + + + + + + + + + + + + + + +
{$CONST.ENTER_MEDIA_UPLOAD}

{$CONST.SAVE_FILE_AS} {$CONST.PLAIN_ASCII_NAMES}
{$CONST.STORE_IN_DIRECTORY} +
+
+
+ +
+
+ + + + {serendipity_hookPlugin hook="backend_image_addform" hookAll=true} + +
+ + +
+ +
+ + {$CONST.WORD_OR} + +
+
+
+ +
{$CONST.ADD_MEDIA_BLAHBLAH_NOTE}
diff --git a/templates/2k11/admin/pluginmanager.css b/templates/2k11/admin/pluginmanager.css new file mode 100644 index 00000000..20e2e683 --- /dev/null +++ b/templates/2k11/admin/pluginmanager.css @@ -0,0 +1,34 @@ +.pluginmanager_side { + vertical-align: top; + width: 33%; +} + +.pluginmanager_container { + background: transparent; + border: 1px solid #ddd; + height: 98%; + margin: 0; + min-height: 12.5em; + padding: 5px; +} + +.pluginmanager_container li { + margin: 0 0 5px; + padding: 5px; + position: relative; +} + +.pluginmanager_item_even, +.pluginmanager_item_uneven { + background: #eee; + border: 1px solid #ddd; +} + +.pluginmanager_place, +.pluginmanager_ownership, +.pluginmanager_move { text-align: right; } + +.pluginmanager_grablet { + cursor: move; + display: block; +} diff --git a/templates/2k11/admin/style.css b/templates/2k11/admin/style.css new file mode 100644 index 00000000..31da54f7 --- /dev/null +++ b/templates/2k11/admin/style.css @@ -0,0 +1,877 @@ +/* normalize.css v1.0.1 | MIT License | git.io/normalize */ +article, aside, details, +figcaption, figure, footer, +header, hgroup, nav, section, +summary { display: block; } + +audio, canvas, +video { + display: inline-block; + *display: inline; + *zoom: 1; +} + +audio:not([controls]) { + display: none; + height: 0; +} + +[hidden] { display: none; } + +html { + font-size: 100%; + -webkit-text-size-adjust: 100%; + -ms-text-size-adjust: 100%; +} + +a:focus { outline: thin dotted; } + +a:active, +a:hover { outline: 0; } + +abbr[title] { border-bottom: 1px dotted; } + +b, strong { font-weight: bold; } + +blockquote { margin: 1em 40px; } + +dfn { font-style: italic; } + +mark { + background: #ff0; + color: #000; +} + +code, kbd, +pre, samp { + font-family: monospace, serif; + _font-family: 'courier new', monospace; + font-size: 1em; +} + +pre { + white-space: pre; + white-space: pre-wrap; + word-wrap: break-word; +} + +small { font-size: 80%; } + +sub, sup { + font-size: 75%; + line-height: 0; + position: relative; + vertical-align: baseline; +} + +sup { top: -0.5em; } +sub { bottom: -0.25em; } + +menu, ol, +ul { padding: 0 0 0 40px; } + +nav ul, +nav ol { + list-style: none; + list-style-image: none; +} + +img { + border: 0; + -ms-interpolation-mode: bicubic; +} + +svg:not(:root) { overflow: hidden; } + +figure, +form { margin: 0; } + +fieldset { + border: 1px solid #ccc; + margin: 0 2px; + padding: 0.35em 0.625em 0.75em; +} + +legend { + border: 0; + padding: 0; + white-space: normal; + *margin-left: -7px; +} + +button, input, +select, textarea { + font-size: 100%; + margin: 0; + vertical-align: baseline; + *vertical-align: middle; +} + +button, input { line-height: normal; } + +button, +html input[type="button"], +input[type="reset"], +input[type="submit"] { + -webkit-appearance: button; + cursor: pointer; + *overflow: visible; +} + +button[disabled], +input[disabled] { cursor: default; } + +input[type="checkbox"], +input[type="radio"] { + box-sizing: border-box; + padding: 0; + *height: 13px; + *width: 13px; +} + +input[type="search"] { + -webkit-appearance: textfield; + -moz-box-sizing: content-box; + -webkit-box-sizing: content-box; + box-sizing: content-box; +} + +input[type="search"]::-webkit-search-cancel-button, +input[type="search"]::-webkit-search-decoration { -webkit-appearance: none; } + +button::-moz-focus-inner, +input::-moz-focus-inner { + border: 0; + padding: 0; +} + +textarea { + overflow: auto; + vertical-align: top; +} + +table { + border-collapse: collapse; + border-spacing: 0; +} + +/* Base styles */ +html, button, +input, select, +textarea { + background: #fcfcfc; + color: #222; + font-family: Helvetica, Arial, sans-serif; +} + +body { + font-size: 1em; + line-height: 1.5; + margin: 0; +} + +/* These selection declarations have to be separate. */ +::-moz-selection { + background: #3a4b6f; + color: #fff; + text-shadow: none; +} + +::selection { + background: #3a4b6f; + color: #fff; + text-shadow: none; +} + +hr { + display: block; + height: 1px; + border: 0; + border-top: 1px solid #ccc; + margin: 1.5em 0; + padding: 0; +} + +img { vertical-align: middle; } + +/* Responsive media objects + http://unstoppablerobotninja.com/entry/fluid-images */ +embed, object, +audio, video, +img { max-width: 100%; } + +video, +img { height: auto; } + +fieldset { + border: 0; + margin: 0; + padding: 0; +} + +textarea { resize: vertical; } + +/* Automagic quotes, http://html5doctor.com/blockquote-q-cite/ */ +q { quotes: '“' '”' '‘' '’'; } +:lang(de) q { quotes: '„' '“' '‚' '‘'; } + +blockquote p { quotes: '“' '”'; } + +blockquote p:before { + content: ''; + content: no-open-quote; +} + +blockquote p:after { + content: ''; + content: no-close-quote; +} + +blockquote p:first-child:before { + content: '“'; + content: open-quote; +} + +blockquote p:last-child:after { + content: '”'; + content: close-quote; +} + +:lang(de) blockquote p, +blockquote:lang(de) p { quotes: '„' '“'; } + +:lang(de) blockquote p:before, +blockquote:lang(de) p:before { + content: ''; + content: no-open-quote; +} + +:lang(de) blockquote p:after, +blockquote:lang(de) p:after { + content: ''; + content: no-close-quote; +} + +:lang(de) blockquote p:first-child:before, +blockquote:lang(de) p:first-child:before { + content: '„'; + content: open-quote; +} + +:lang(de) blockquote p:last-child:after, +blockquote:lang(de) p:last-child:after { + content: '“'; + content: close-quote; +} + +blockquote > cite, +blockquote + cite { display: block; } + +blockquote > cite:before, +blockquote + cite:before { content: "– "; } + +blockquote > cite { margin: 1.5em 0; } + +blockquote + cite { margin: 0 0 1.5em 3em; } + +dt { font-weight: bold; } +dd { margin: 0; } + +caption, th { text-align: left; } + +li ul, li ol { margin: 0; } + +pre code { font-size: 1em; } + +p { + -webkit-hyphens: auto; + -moz-hyphens: auto; + -ms-hyphens: auto; + hyphens: auto; +} + +p code, p samp, +p kbd { + -webkit-hyphens: none; + -moz-hyphens: none; + -ms-hypens: none; + hyphens: none; +} + +nav ul, +nav ol { padding: 0; } + +/* CSS helper classes for various purposes */ +/* Image replacement */ +.ir { + background-color: transparent; + border: 0; + overflow: hidden; + *text-indent: -9999px; +} + +.ir:before { + content: ""; + display: block; + width: 0; + height: 100%; +} + +/* Hide from both screenreaders and browsers */ +.hidden { + display: none !important; + visibility: hidden; +} + +/* Hide only visually, but have it available for screenreaders */ +.visuallyhidden { + border: 0; + clip: rect(0 0 0 0); + height: 1px; + margin: -1px; + overflow: hidden; + padding: 0; + position: absolute; + width: 1px; +} + +/* Extends the .visuallyhidden class to allow the element + to be focusable when navigated to via the keyboard */ +.visuallyhidden.focusable:active, +.visuallyhidden.focusable:focus { + clip: auto; + height: auto; + margin: 0; + overflow: visible; + position: static; + width: auto; +} + +/* Hide visually and from screenreaders, but maintain layout */ +.invisible { visibility: hidden; } + +/* Clearfix: contain floats */ +.clearfix:before, +.clearfix:after { + content: " "; + display: table; +} + +.clearfix:after { clear: both; } +.clearfix { *zoom: 1; } + +/* Forms | forked from formalize.me */ +.input_full_wrap { + display: block; + padding-right: 8px; +} + +input[type="radio"], +input[type="checkbox"] { + position: relative; + vertical-align: top; + top: 5px; + top: 0 \0; + *top: -5px; +} + +button:focus, input:focus, +select:focus, textarea:focus { + -webkit-box-shadow: #0066ff 0 0 5px 0; + -moz-box-shadow: #0066ff 0 0 5px 0; + box-shadow: #0066ff 0 0 5px 0; + z-index: 1; +} + +input[type="file"]:focus, input[type="file"]:active, +input[type="radio"]:focus, input[type="radio"]:active, +input[type="checkbox"]:focus, input[type="checkbox"]:active { + -webkit-box-shadow: none; + -moz-box-shadow: none; + box-shadow: none; +} + +button, input[type="button"], +input[type="reset"], +input[type="submit"] { + -webkit-border-radius: 4px; + -moz-border-radius: 4px; + -ms-border-radius: 4px; + -o-border-radius: 4px; + border-radius: 4px; + -webkit-background-clip: padding; + -moz-background-clip: padding; + background-clip: padding-box; + background: #ddd; + background-image: -webkit-gradient(linear, 50% 0%, 50% 100%, color-stop(0%, #ffffff), color-stop(100%, #dddddd)); + background-image: -webkit-linear-gradient(#ffffff, #dddddd); + background-image: -moz-linear-gradient(#ffffff, #dddddd); + background-image: -o-linear-gradient(#ffffff, #dddddd); + background-image: linear-gradient(#ffffff, #dddddd); + border: 1px solid; + border-color: #ddd #bbb #999; + color: #000; + outline: 0; + padding: 3px 10px; + text-shadow: #fff 0 1px 1px; + width: auto; + *padding-top: 2px; + *padding-bottom: 0; +} + +button:hover, input[type="button"]:hover, +input[type="reset"]:hover, +input[type="submit"]:hover { + background-image: -webkit-gradient(linear, 50% 0%, 50% 100%, color-stop(0%, #ffffff), color-stop(1px, #eeeeee), color-stop(100%, #cccccc)); + background-image: -webkit-linear-gradient(#ffffff, #eeeeee 1px, #cccccc); + background-image: -moz-linear-gradient(#ffffff, #eeeeee 1px, #cccccc); + background-image: -o-linear-gradient(#ffffff, #eeeeee 1px, #cccccc); + background-image: linear-gradient(#ffffff, #eeeeee 1px, #cccccc); +} + +button:active, input[type="button"]:active, +input[type="reset"]:active, +input[type="submit"]:active { + background-image: -webkit-gradient(linear, 50% 0%, 50% 100%, color-stop(0%, #ffffff), color-stop(1px, #dddddd), color-stop(100%, #eeeeee)); + background-image: -webkit-linear-gradient(#ffffff, #dddddd 1px, #eeeeee); + background-image: -moz-linear-gradient(#ffffff, #dddddd 1px, #eeeeee); + background-image: -o-linear-gradient(#ffffff, #dddddd 1px, #eeeeee); + background-image: linear-gradient(#ffffff, #dddddd 1px, #eeeeee); + -webkit-box-shadow: inset rgba(0, 0, 0, 0.25) 0 1px 2px 0; + -moz-box-shadow: inset rgba(0, 0, 0, 0.25) 0 1px 2px 0; + box-shadow: inset rgba(0, 0, 0, 0.25) 0 1px 2px 0; + border-color: #999 #bbb #ddd; +} + +button { + *padding-top: 1px; + *padding-bottom: 1px; +} + +input[type="date"], input[type="datetime"], +input[type="datetime-local"], input[type="month"], +input[type="number"], input[type="password"], +input[type="time"], input[type="week"], +textarea, select, input[type="email"], +input[type="search"], input[type="tel"], +input[type="text"], input[type="url"] { + -webkit-box-sizing: border-box; + -moz-box-sizing: border-box; + box-sizing: border-box; + -webkit-background-clip: padding; + -moz-background-clip: padding; + background-clip: padding-box; + -webkit-border-radius: 0; + -moz-border-radius: 0; + -ms-border-radius: 0; + -o-border-radius: 0; + border-radius: 0; + -webkit-appearance: none; + background-color: #fafafa; + border: 1px solid; + border-color: #c1c1c1 #c1c1c1 #e1e1e1; + color: #222; + outline: 0; + padding: 2px 3px; + text-align: left; + height: 1.8em; + *padding-top: 2px; + *padding-bottom: 1px; + *height: auto; +} + +input[type="date"][disabled], input[type="datetime"][disabled], +input[type="datetime-local"][disabled], input[type="month"][disabled], +input[type="number"][disabled], input[type="password"][disabled], +input[type="time"][disabled], input[type="week"][disabled], +textarea[disabled], select[disabled], input[type="email"][disabled], +input[type="search"][disabled], input[type="tel"][disabled], +input[type="text"][disabled], input[type="url"][disabled] { background-color: #eee; } + +button[disabled], input[disabled], +select[disabled], select[disabled] option, +select[disabled] optgroup, textarea[disabled] { + -webkit-box-shadow: none; + -moz-box-shadow: none; + box-shadow: none; + -moz-user-select: -moz-none; + -webkit-user-select: none; + user-select: none; + color: #888; + cursor: default; +} + +/* Separate rule for Firefox. + Separate rule for IE, too. + Cannot stack with WebKit's. */ +::-webkit-input-placeholder { color: #888; } + +input:-moz-placeholder, +textarea:-moz-placeholder { color: #888; } + +input.placeholder_text, +textarea.placeholder_text { color: #888; } + +:invalid { + -webkit-box-shadow: none; + -moz-box-shadow: none; + box-shadow: none; +} + +textarea, select[size], +select[multiple] { height: auto; } + +@media (-webkit-min-device-pixel-ratio: 0) { + select { + background-image: url("data:image/gif;base64,R0lGODlhDQAEAIAAAAAAAP8A/yH5BAEHAAEALAAAAAANAAQAAAILhA+hG5jMDpxvhgIAOw=="); + background-repeat: no-repeat; + background-position: right center; + padding-right: 20px; + } + + select[size], + select[multiple] { + background-image: none; + padding: 0; + } +} + +textarea { + min-height: 40px; + overflow: auto; + resize: vertical; + width: 100%; +} + +optgroup { + color: #222; + font-style: normal; + font-weight: normal; +} + +/* Backend-specific form stuff */ +label, .standout, +legend > span { font-weight: bold; } + +.block_level, +.form_multiselect label, +label > span { display: block; } + +label > span, +input[type=checkbox] + label, +input[type=radio] + label, +.form_check label { font-weight: normal; } + +input[type=checkbox] { margin-right: .4em; } + +.form_radio { + float: left; + margin-right: 1em; +} + +.form_buttons { + margin-top: 1.5em; + margin-bottom: 1.5em; +} + +.form_field, .form_area, +.form_check, .form_radio, +.form_select, .form_multiselect { + margin-top: .75em; + margin-bottom: .75em; +} + +/* Styles common to all resolutions */ + +/* Color scheme: + ------------- + Dark blue: #25253d Mid blue: #3e5f81 + Lite blue: #ccdee7 Yellow: #ffbf00 + Off black: #222 Off white: #fcfcfc + */ + +html { background: #ccdee7; } + +body { + background: #fcfcfc; + font-size: 0.875em; +} + +a, a:visited { color: #3a4b6f; } + +a:hover, a:focus { color: #d06604; } + +h1 { + font-size: 1.71429em; + line-height: 1.75em; + margin: 0.875em 0; +} + +h2 { + font-size: 1.42857em; + line-height: 1.05em; + margin: 1.05em 0; +} + +h3 { + font-size: 1.28571em; + line-height: 1.16667em; + margin: 1.16667em 0; +} + +h4 { + font-size: 1.14286em; + line-height: 1.3125em; + margin: 1.3125em 0; +} + +h5, h6 { font-size: 1em; } + +h5, h6, +blockquote, +ul, ol, dl, +p, table, +details, +.standalone { + margin-top: 1.5em; + margin-bottom: 1.5em; +} + +summary { cursor: pointer; } + +.plainList, +.imageMessage ul, +.actions { + list-style: none; + padding: 0; +} + +/* Backend messages */ +.msg_error, .msg_success, +.msg_notice { + display: block; + margin: 1.5em 0; + padding: 10px; +} + +.msg_error { + background: #f2dede; + border: 1px solid #e4b9b9; + color: #b94a48; +} + +.msg_success { + background: #dff0d8; + border: 1px solid #c1e2b3; + color: #468847; +} + +.msg_notice { + background: #fcf8e3; + border: 1px solid #f7ecb5; + color: #c09853; +} + +/* Layout */ +#top > div, +#main { + margin: 0 auto; + max-width: 1280px; + width: 96%; +} + +/* Header area */ +#top { + background: #25253d; + color: #fcfcfc; +} + +#top a, #top a:visited { color: #ffbf00; } +#top a:hover, #top a:focus { color: #fcfcfc; } + +#banner h1, +#banner a { float: left; } + +#banner a { margin: 2.4em 0 0 2em; } + +#user_menu { clear: both; } + +#user_menu h2 { margin: 1.5em 0 0; } + +#user_menu li, +.edit_actions li { + display: inline-block; + margin: 0 1em 0 0; + *display: inline; + *zoom: 1; +} + +.edit_actions li { margin: 0 0 0 1em; } + +.category_data, +.user_name, .group_name, +.edit_actions { float: left; } + +.category_data, +.user_name, .group_name { min-width: 8em; } + +.category_data { margin: 0 1em 0 0; } + +/* Content area */ +.comment_data dt, .comment_data dd, +.template_info dt, +.template_info dd { float: left; } + +.comment_data dt, +.template_info dt { margin: 0 .4em 0 0; } + +.comment_data dt, .template_info dt, +.comment_summary, .comment_full { clear: both; } + +.actions li { + display: inline-block; + margin: 0 .4em 0 0; + *display: inline; + *zoom: 1; +} + +#entry_skip legend, +#entry_skip label, +#skipto_entry, +.dialog_delrip li { + float: left; + margin: 0 .4em 0 0; +} + +.sub_perm { margin-left: 1em; } + +/* Login form */ +#login { margin: 2em auto 1em; } + +#back_to_blog { + display: block; + margin: 1em auto 2em; +} + +#back_to_blog, +#login { max-width: 24em; } + +#login .form_check, +#login_send { float: left; } + +#login_send { margin: .5em 0 0 7.5em;} + +#login .form_field label { + display: inline-block; + min-width: 8em; + *display: inline; + *zoom: 1; +} + +/* Footer area */ +#meta { + background: #ccdee7; + border-top: 1px solid #25253d; + text-align: center; +} + +#meta small { + display: block; + font-size: 1em; + padding: 8px; +} + +/* Plugin manager – might go into pluginmanager.css in the end */ +#configuration_footer { height: 100px; } + +.plugin_count { + clear: both; + margin: 0 0 1.5em; +} + +/* Media db – might go into imgedit.css in the end */ +#fs_crop { min-height: 200px; } + +.media_pane .pagination { margin: 0; } + +/* Media Queries for Responsive Design. */ +@media only screen and (min-width: 481px) { } + +@media only screen and (min-width: 768px) { + body { font-size: 1em; } + + h1 { + font-size: 2em; + line-height: 1.5em; + margin: 0.75em 0; + } + + h2 { + font-size: 1.5em; + line-height: 1em; + margin: 1em 0; + } + + pre { + font-size: 0.875em; + line-height: 1.71429em; + margin: 1.71429em 0; + } + + /* Plugin manager – might go into pluginmanager.css in the end */ + .pluginmanager_side { + float: left; + margin: 0 0 1.5em; + } + + #pluginlist_sidebar .pluginmanager_side { + margin-right: 1%; + width: 32%; + } + + #pluginlist_event .pluginmanager_side { + margin-right: 1%; + width: 48%; + } +} + +@media only screen and (min-width: 1024px) { + #banner, + #content { + float: left; + margin: 0 2% 0 0; + } + + #user_menu, + #main_menu { + float: right; + margin: 0 0 0 2%; + } + + #banner, #user_menu { width: 48%; } + .lt-ie8 #banner, .lt-ie8 #user_menu { width: 47.5%; } + + #user_menu { + clear: none; + text-align: right; + } + + #user_menu li, + .edit_actions li { margin: 0 0 0 1em; } + + .edit_actions { float: right; } + + #content { width: 73%; } + .lt-ie8 #content { width: 72.5%; } + + #main_menu { width: 23%; } + .lt-ie8 #main_menu { width: 22.5%; } + + #login { margin: 4em auto 1em; } + + #back_to_blog { margin: 1em auto 4em; } +} + +@media only screen and (min-width: 1400px) { + body { font-size: 1.125em; } +}