function smarty_function_bertaCopyright($params, &$smarty) { $str = I18n::_('berta_copyright_text'); if (!empty($_SERVER['SERVER_ADDR']) && in_array($_SERVER['SERVER_ADDR'], BertaBase::$options['hip_ipaddr'])) { $str .= ', hosted on <a href="http://hip-hosting.com/" target="_blank" title="Friendly web hosting">HIP</a>'; } return $str; }
public function preDispatch(Zend_Controller_Request_Abstract $request) { $session = Zend_Registry::get('session'); if (!isset($session->authdata) || !isset($session->authdata['authed']) || $session->authdata['authed'] === false) { return; } $cur_ctrl = $request->getControllerName(); $cur_action = $request->getActionName(); $view = Zend_Registry::get('view'); if (is_dir(FWACTIONS_PATH)) { $dir = opendir(FWACTIONS_PATH); while (($file = readdir($dir)) !== false) { if ($file == '.' || $file == '..') { continue; } if (preg_match('/^Action([a-zA-Z0-9_]*)\\.php/', $file, $match)) { $path = FWACTIONS_PATH . '/' . $file; require_once $path; $r = new ReflectionClass($match[1]); if ($r->isSubclassOf('FWAction')) { /** * match Actions permission with the permissions of the currently logged in user, * add to menu if user has access to that action */ $required = $r->getMethod('getRequiredPermissions')->invoke(null); $menuprio = $r->getMethod('getTopNavPrio')->invoke(null); $ctrl = $r->getMethod('getController')->invoke(null); $action = $r->getMethod('getAction')->invoke(null); $text = $r->getMethod('getMenutext')->invoke(null); $role = $session->authdata['authed_role']; if ($cur_ctrl == $ctrl) { # && $cur_action == $action) $aclass = ' class="active"'; } else { $aclass = ''; } $acl = $session->authdata['authed_permissions']; if (is_array($required) && count($required) == 0) { $view->topNav('<a href="' . $view->url(array('controller' => $ctrl, 'action' => $action), 'default', true) . '"' . $aclass . '>' . I18n::_($text) . '</a>', Zend_View_Helper_Placeholder_Container_Abstract::SET, $menuprio); } else { foreach ($required as $rperm) { if ($acl->has($rperm) && $acl->isAllowed($role, $rperm, 'view')) { $view->topNav('<a href="' . $view->url(array('controller' => $ctrl, 'action' => $action), 'default', true) . '"' . $aclass . '>' . I18n::_($text) . '</a>', Zend_View_Helper_Placeholder_Container_Abstract::SET, $menuprio); break; // exit on first match } } } } } } closedir($dir); } }
protected function _initDoctype() { $this->bootstrap('view'); $this->bootstrap('log'); $this->bootstrap('I18n'); $this->bootstrap('session'); $view = $this->getResource('view'); Zend_Registry::set('view', $view); $view->doctype('XHTML1_STRICT'); $view->addHelperPath(APPLICATION_PATH . '/views/helpers/'); $view->headTitle = I18n::_('CAcert Test Manager'); }
public function postDispatch(Zend_Controller_Request_Abstract $request) { $session = Zend_Registry::get('session'); if (!isset($session->authdata) || !isset($session->authdata['authed']) || $session->authdata['authed'] === false) { $controller = 'login'; $text = 'Login'; } else { $controller = 'logout'; $text = 'Logout'; } $cur_ctrl = $request->getControllerName(); if ($cur_ctrl == 'login') { $aclass = ' class="active"'; } else { $aclass = ''; } $view = Zend_Registry::get('view'); $view->topNav('<a href="' . $view->url(array('controller' => $controller), 'default', true) . '"' . $aclass . '>' . I18n::_($text) . '</a>', Zend_View_Helper_Placeholder_Container_Abstract::SET, 1000); }
'googleFont' => array('format' => 'text', 'default' => '', 'title' => 'Google web fonts', 'description' => I18n::_('googleFont_description')), 'fontSize' => array('format' => 'text', 'default' => '10px', 'title' => 'Font size', 'description' => ''), 'fontWeight' => array('format' => 'select', 'values' => array('normal', 'bold'), 'default' => 'normal', 'title' => 'Font weight', 'description' => ''), 'fontStyle' => array('format' => 'select', 'values' => array('normal', 'italic'), 'default' => 'normal', 'title' => 'Font style', 'description' => ''), 'lineHeight' => array('format' => 'text', 'default' => '16px', 'title' => 'Line height', 'description' => 'Height of text line. Use em, px or % values or the default value "normal"'), 'colorLink' => array('format' => 'color', 'default' => '#1a1a1a', 'title' => 'Color', 'description' => ''), 'colorHover' => array('format' => 'color', 'default' => '#0000ff', 'title' => 'Color when hovered', 'description' => ''), 'colorActive' => array('format' => 'color', 'default' => '#1a1a1a', 'title' => 'Color when opened', 'description' => ''), 'textDecorationLink' => array('format' => 'select', 'values' => array('none', 'underline', 'overline', 'line-through'), 'default' => 'none', 'title' => 'Decoration', 'description' => ''), 'textDecorationHover' => array('format' => 'select', 'values' => array('none', 'underline', 'overline', 'line-through'), 'default' => 'none', 'title' => 'Decoration when hovered', 'description' => ''), 'textDecorationActive' => array('format' => 'select', 'values' => array('none', 'underline', 'overline', 'line-through'), 'default' => 'underline', 'title' => 'Decoration when opened', 'description' => '') ), 'tagsMenu' => array( 'fontFamily' => array('format' => 'fontselect', 'values' => $fontOptionsWithInherit, 'default' => 'inherit', 'title' => 'Font face', 'description' => ''), 'googleFont' => array('format' => 'text', 'default' => '', 'title' => 'Google web fonts', 'description' => I18n::_('googleFont_description')), 'fontSize' => array('format' => 'text', 'default' => '11px', 'title' => 'Font size', 'description' => ''), 'fontWeight' => array('format' => 'select', 'values' => array('normal', 'bold'), 'default' => 'normal', 'title' => 'Font weight', 'description' => ''), 'fontStyle' => array('format' => 'select', 'values' => array('normal', 'italic'), 'default' => 'normal', 'title' => 'Font style', 'description' => ''), 'lineHeight' => array('format' => 'text', 'default' => '16px', 'title' => 'Line height', 'description' => 'Height of text line. Use em, px or % values or the default value "normal"'), 'colorLink' => array('format' => 'color', 'default' => '#1a1a1a', 'title' => 'Color', 'description' => ''), 'colorHover' => array('format' => 'color', 'default' => '#0000ff', 'title' => 'Color when hovered', 'description' => ''), 'colorActive' => array('format' => 'color', 'default' => '#1a1a1a', 'title' => 'Color when selected', 'description' => ''), 'textDecorationLink' => array('format' => 'select', 'values' => array('none', 'underline', 'overline', 'line-through'), 'default' => 'none', 'title' => 'Decoration', 'description' => ''), 'textDecorationHover' => array('format' => 'select', 'values' => array('none', 'underline', 'overline', 'line-through'), 'default' => 'none', 'title' => 'Decoration when hovered', 'description' => ''), 'textDecorationActive' => array('format' => 'select', 'values' => array('none', 'underline', 'overline', 'line-through'), 'default' => 'line-through', 'title' => 'Decoration when opened', 'description' => '') ), 'links' => array( 'colorLink' => array('format' => 'color', 'default' => '#0000ff', 'title' => 'Link color', 'description' => ''), 'colorVisited' => array('format' => 'color', 'default' => '#666666', 'title' => 'Visited link color', 'description' => ''),
$sql = ' SELECT * FROM pending_video WHERE pending_video_id = :pending_video_id AND user_id = :user_id LIMIT 1 '; $sth = $pdo->prepare($sql); $sth->bindValue(':pending_video_id', $pendingVideoId, PDO::PARAM_INT); $sth->bindValue(':user_id', $authUser->user_id, PDO::PARAM_INT); if ($sth->execute()) { $pendingVideo = $sth->fetch(PDO::FETCH_OBJ); } // Did we get a $pendingVideo? if (!$pendingVideo) { response(I18n::_(I18n::VIDEO_INVALID_ID), 400); } response($pendingVideo); }); // The webhook that HeyWatch posts to when encoding is complete. $slim->post('/pending_video/completed/:pending_video_id', function ($pendingVideoId) use($pdo) { // Get results passed in from HeyWatch $results = json_decode(file_get_contents('php://input'), true); if ($results && is_array($results) && array_key_exists('errors', $results)) { // Update the record to indicated processing is finished. $sql = ' UPDATE pending_video SET date_processed = :date_processed, is_error = :is_error, heywatch_id = :heywatch_id WHERE
/** * build login form and return to requesting method * @return Zend_Form */ protected function getForm() { $form = new Zend_Form(); $form->setAction('/login/login')->setMethod('post'); #$form->setAttrib('id', 'loginform'); $username = new Zend_Form_Element_Text('login_name'); $username->setRequired(true)->setLabel(I18n::_('User Name'))->addFilter(new Zend_Filter_StringTrim())->addFilter(new Zend_Filter_StripTags()); $password = new Zend_Form_Element_Password('login_password'); $password->setRequired(true)->setLabel(I18n::_('Password'))->addFilter(new Zend_Filter_StringTrim()); $submit = new Zend_Form_Element_Submit('submit'); $submit->setLabel(I18n::_('Login')); $form->addElement($username)->addElement($password)->addElement($submit); return $form; }
$SITE_ROOT = '../../'; $ENGINE_ROOT = '../../engine/'; define('AUTH_AUTHREQUIRED', true); define('SETTINGS_INSTALLREQUIRED', false); include $ENGINE_ROOT . 'inc.page.php'; } ?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title><? echo $berta->settings->get('texts', 'pageTitle') ?> / <?php echo I18n::_('welcome'); ?> </title> <link href="<? echo $ENGINE_ABS_ROOT ?>css/default.css" rel="stylesheet" type="text/css" /> <link href="<? echo $ENGINE_ABS_ROOT ?>css/login.css" rel="stylesheet" type="text/css" /> <link href="<? echo $ENGINE_ABS_ROOT ?>css/editor.css.php" rel="stylesheet" type="text/css" /> </head> <body class="xLoginPageBody"> <div class="xMAlign-container xPanel"> <div class="xMAlign-outer"> <div class="xMAlign-inner"> <?php echo I18n::_('welcome_text__not_installed'); ?> </div> </div> </div> </body> </html>
<?php $fontOptions = array('Arial, sans-serif' => 'Arial, sans-serif', 'Helvetica, Arial, sans-serif' => 'Helvetica, Arial, sans-serif', '"Helvetica Neue", Helvetica, Arial, sans-serif' => 'Helvetica Neue, Helvetica, Arial, sans-serif', '"Arial Black", Gadget, sans-serif' => 'Arial Black, Gadget', '"Comic Sans MS", cursive' => 'Comic Sans MS', '"Courier New", Courier, monospace' => 'Courier New, Courier', 'Georgia, "Times New Roman", Times, serif' => 'Georgia, Times New Roman, Times', 'Impact, Charcoal, sans-serif' => 'Impact, Charcoal', '"Lucida Console", Monaco, monospace' => 'Lucida Console, Monaco', '"Lucida Sans Unicode", "Lucida Grande", sans-serif' => 'Lucida Sans Unicode, Lucida Grande', '"Palatino Linotype", "Book Antiqua", Palatino, serif' => 'Palatino Linotype, Book Antiqua, Palatino', 'Tahoma, Geneva, sans-serif' => 'Tahoma, Geneva', '"Times New Roman", Times, serif' => 'Times New Roman, Times', '"Trebuchet MS", Helvetica, sans-serif' => 'Trebuchet MS, Helvetica', 'Verdana, Geneva, sans-serif' => 'Verdana, Geneva'); $fontOptionsWithInherit = array_merge(array('inherit' => '(inherit from general-font-settings)'), $fontOptions); $sectionTypes = array('default' => array('title' => 'Default'), 'external_link' => array('title' => 'External link', 'params' => array('link' => array('format' => 'text', 'default' => '', 'link' => true), 'target' => array('format' => 'select', 'values' => array('_self' => 'Same window', '_blank' => 'New window'), 'default' => '_blank'))), 'mash_up' => array('title' => 'Mash-up', 'params' => array('marked_items_imageselect' => array('format' => 'select', 'values' => array('random' => 'random image', 'first' => 'first image'), 'default' => 'first', 'html_before' => '<div>show </div>'), 'marked_items_count' => array('format' => 'text', 'html_before' => '<br class="clear" /><div>from each of </div>', 'html_after' => '<div> marked entries</div><br class="clear" /><div>from all sections except this one</div>', 'default' => '5'))), 'portfolio' => array('title' => 'Portfolio')); $templateConf = array('generalFontSettings' => array('_' => array('title' => I18n::_('General font settings')), 'color' => array('format' => 'color', 'default' => '#1a1a1a', 'title' => I18n::_('Color'), 'description' => ''), 'fontFamily' => array('format' => 'fontselect', 'values' => $fontOptions, 'default' => '"Times New Roman", Times, serif', 'title' => I18n::_('Font face'), 'description' => ''), 'googleFont' => array('format' => 'text', 'default' => '', 'html_entities' => true, 'title' => I18n::_('Google web fonts'), 'description' => I18n::_('googleFont_description')), 'fontSize' => array('format' => 'text', 'css_units' => true, 'default' => '11px', 'title' => I18n::_('Font size'), 'description' => ''), 'fontWeight' => array('format' => 'select', 'values' => array('normal', 'bold'), 'default' => 'normal', 'title' => I18n::_('Font weight'), 'description' => ''), 'fontStyle' => array('format' => 'select', 'values' => array('normal', 'italic'), 'default' => 'normal', 'title' => I18n::_('Font style'), 'description' => ''), 'fontVariant' => array('format' => 'select', 'values' => array('normal', 'small-caps'), 'default' => 'normal', 'title' => I18n::_('Font variant'), 'description' => ''), 'lineHeight' => array('format' => 'text', 'css_units' => true, 'default' => 'normal', 'title' => I18n::_('Line height'), 'description' => I18n::_('Height of text line. Use em, px or % values or the default value "normal"'))), 'background' => array('_' => array('title' => I18n::_('Background')), 'backgroundColor' => array('format' => 'color', 'default' => '#FFFFFF', 'title' => I18n::_('Background color'), 'description' => ''), 'backgroundImageEnabled' => array('format' => 'select', 'values' => array('yes', 'no'), 'default' => 'no', 'title' => I18n::_('Is background image enabled?'), 'description' => ''), 'backgroundImage' => array('format' => 'image', 'default' => '', 'min_width' => 1, 'min_height' => 1, 'max_width' => 3000, 'max_height' => 3000, 'title' => I18n::_('Background image'), 'description' => I18n::_('Picture to use for page background.')), 'backgroundRepeat' => array('format' => 'select', 'values' => array('repeat' => 'tile vertically and horizontally', 'repeat-x' => 'tile horizontally', 'repeat-y' => 'tile vertically', 'no-repeat' => 'no tiling'), 'default' => 'repeat', 'title' => I18n::_('Background tiling'), 'description' => I18n::_('How the background fills the screen?')), 'backgroundPosition' => array('format' => 'select', 'values' => array('top left', 'top center', 'top right', 'center left', 'center', 'center right', 'bottom left', 'bottom center', 'bottom right'), 'default' => 'top left', 'title' => I18n::_('Background alignment'), 'description' => I18n::_('Where the background image is positioned?')), 'backgroundAttachment' => array('format' => 'select', 'values' => array('fixed' => 'Fixed to browser window', 'fill' => 'Filled in browser window', 'scroll' => 'No stretch, scroll along with content'), 'default' => 'scroll', 'title' => I18n::_('Background position'), 'description' => I18n::_('Sets how background behaves in relation with the browser window.'))), 'pageLayout' => array('_' => array('title' => I18n::_('Page layout')), 'centered' => array('format' => 'select', 'default' => 'no', 'values' => array('yes', 'no'), 'title' => I18n::_('Centered layout'), 'description' => I18n::_('Sets whether layout should be centered or not.')), 'contentWidth' => array('format' => 'text', 'default' => '380px', 'css_units' => true, 'title' => I18n::_('Entry text max width'), 'description' => I18n::_('Width of texts in the entries. This does not apply to the width of images.')), 'paddingTop' => array('format' => 'text', 'default' => '30px', 'css_units' => true, 'title' => I18n::_('How far content is from page top?'), 'description' => I18n::_('The vertical distance between the top of the page and the content area.')), 'paddingLeft' => array('format' => 'text', 'default' => '30px', 'css_units' => true, 'title' => I18n::_('How far content is from sidebar?'), 'description' => I18n::_('The horizontal distance between the menu and the content area.')), 'group_responsive' => array('format' => false, 'default' => false, 'title' => '<h3>' . I18n::_('Responsive design') . '</h3>'), 'responsive' => array('format' => 'select', 'default' => 'no', 'values' => array('no', 'yes'), 'title' => I18n::_('Enabled'), 'description' => I18n::_('Sets whether layout should be responsive or not.')), 'mashUpColumns' => array('format' => 'select', 'default' => '1', 'values' => array('1', '2', '3', '4'), 'title' => I18n::_('Mash-up columns'), 'description' => I18n::_('Column count for Mash-up section.'))), 'entryLayout' => array('_' => array('title' => I18n::_('Entry layout')), 'spaceBetween' => array('format' => 'text', 'default' => '20px', 'css_units' => true, 'title' => I18n::_('Space between entries'), 'description' => I18n::_('Distance from entry to entry. In pixels.')), 'defaultGalleryType' => array('format' => 'select', 'values' => array('slideshow', 'row'), 'default' => 'slideshow', 'title' => I18n::_('Default gallery type'), 'description' => ''), 'spaceBetweenImages' => array('format' => 'text', 'default' => '1em', 'css_units' => true, 'title' => I18n::_('Space between images in row and column'), 'description' => I18n::_('Horizontal/vertical space between images when gallery is in "row"/"column" mode')), 'galleryNavMargin' => array('format' => 'text', 'default' => '5px', 'css_units' => true, 'title' => I18n::_('Space between images and image navigation'), 'description' => I18n::_('Vertical space between images and image navigation (the digits below the image) when gallery is in "slideshow" mode')), 'galleryMargin' => array('format' => 'text', 'default' => '5px', 'css_units' => true, 'title' => I18n::_('Empty space below gallery'), 'description' => I18n::_('Distance between the gallery and the content below')), 'displayTags' => array('format' => 'select', 'values' => array('yes', 'no'), 'default' => 'no', 'title' => I18n::_('Display tags by each entry'), 'description' => I18n::_('This determines whether people will see tags you set for each entry. Regardless of this settting, tags still will make up the main menu.'))), 'sideBar' => array('_' => array('title' => I18n::_('Sidebar')), 'width' => array('format' => 'text', 'default' => '200px', 'css_units' => true, 'title' => I18n::_('Width'), 'description' => ''), 'marginLeft' => array('format' => 'text', 'default' => '0px', 'css_units' => true, 'title' => I18n::_('Left margin'), 'description' => I18n::_('How far the sidebar is from the left side of the screen. This gets ignored, if centered layout is enabled.')), 'marginTop' => array('format' => 'text', 'default' => '30px', 'css_units' => true, 'title' => I18n::_('Top padding'), 'description' => I18n::_('How far the header is from the top of the screen?')), 'marginBottom' => array('format' => 'text', 'default' => '20px', 'css_units' => true, 'title' => I18n::_('Space between header and menu'), 'description' => I18n::_('How far the menu is from the header text or header image.')), 'transparent' => array('format' => 'select', 'values' => array('yes', 'no'), 'default' => 'no', 'title' => I18n::_('Is transparent?'), 'description' => ''), 'backgroundColor' => array('format' => 'color', 'default' => '#ffffff', 'title' => I18n::_('Background color'), 'description' => ''), 'image' => array('format' => 'image', 'default' => '', 'min_width' => 1, 'min_height' => 1, 'max_width' => 'setting:template:sideBar:width', 'max_height' => 1600, 'title' => I18n::_('Logo image'), 'description' => '<span class="warning">' . I18n::_('Displayed image will be half of the original size, full size will be used for hi-res displays.') . '</span>'), 'color' => array('format' => 'color', 'default' => '#1a1a1a', 'title' => I18n::_('Heading text color'), 'description' => ''), 'fontFamily' => array('format' => 'fontselect', 'values' => $fontOptionsWithInherit, 'default' => 'Georgia, "Times New Roman", Times, serif', 'title' => I18n::_('Heading font'), 'description' => ''), 'googleFont' => array('format' => 'text', 'default' => '', 'html_entities' => true, 'title' => I18n::_('Google web fonts'), 'description' => I18n::_('googleFont_description')), 'fontSize' => array('format' => 'text', 'css_units' => true, 'default' => '10px', 'title' => I18n::_('Heading font size'), 'description' => ''), 'fontWeight' => array('format' => 'select', 'values' => array('normal', 'bold'), 'default' => 'normal', 'title' => I18n::_('Heading font weight'), 'description' => ''), 'fontStyle' => array('format' => 'select', 'values' => array('normal', 'italic'), 'default' => 'normal', 'title' => I18n::_('Heading font style'), 'description' => ''), 'fontVariant' => array('format' => 'select', 'values' => array('normal', 'small-caps'), 'default' => 'normal', 'title' => I18n::_('Heading font variant'), 'description' => ''), 'lineHeight' => array('format' => 'text', 'css_units' => true, 'default' => '1em', 'title' => I18n::_('Heading line height'), 'description' => I18n::_('Height of text line. Use em, px or % values or the default value "normal"'))), 'firstPage' => array('_' => array('title' => I18n::_('First page')), 'imageSizeRatio' => array('format' => 'text', 'default' => '0.4', 'css_units' => false, 'title' => I18n::_('Image size ratio'), 'description' => I18n::_('Images in the first page layout will be resized by this ratio. Think of it as percentage, e.g., 0.7 = 70% of the original image size.')), 'imageHaveShadows' => array('format' => 'select', 'values' => array('yes', 'no'), 'default' => 'no', 'title' => I18n::_('Images have shadows?'), 'description' => ''), 'hoverWiggle' => array('format' => 'select', 'values' => array('yes', 'no'), 'default' => 'yes', 'title' => I18n::_('Images wiggle on mouse-over?'), 'description' => '')), 'menu' => array('_' => array('title' => I18n::_('Main menu')), 'fontFamily' => array('format' => 'fontselect', 'values' => $fontOptionsWithInherit, 'default' => 'inherit', 'title' => I18n::_('Font face'), 'description' => ''), 'googleFont' => array('format' => 'text', 'default' => '', 'html_entities' => true, 'title' => I18n::_('Google web fonts'), 'description' => I18n::_('googleFont_description')), 'fontSize' => array('format' => 'text', 'css_units' => true, 'default' => '10px', 'title' => I18n::_('Font size'), 'description' => ''), 'fontWeight' => array('format' => 'select', 'values' => array('normal', 'bold'), 'default' => 'normal', 'title' => I18n::_('Font weight'), 'description' => ''), 'fontStyle' => array('format' => 'select', 'values' => array('normal', 'italic'), 'default' => 'normal', 'title' => I18n::_('Font style'), 'description' => ''), 'lineHeight' => array('format' => 'text', 'css_units' => true, 'default' => '16px', 'title' => I18n::_('Line height'), 'description' => I18n::_('Height of text line. Use em, px or % values or the default value "normal"')), 'colorLink' => array('format' => 'color', 'default' => '#1a1a1a', 'title' => I18n::_('Color'), 'description' => ''), 'colorHover' => array('format' => 'color', 'default' => '#0000ff', 'title' => I18n::_('Color when hovered'), 'description' => ''), 'colorActive' => array('format' => 'color', 'default' => '#1a1a1a', 'title' => I18n::_('Color when opened'), 'description' => ''), 'textDecorationLink' => array('format' => 'select', 'values' => array('none', 'underline', 'overline', 'line-through'), 'default' => 'none', 'title' => I18n::_('Decoration'), 'description' => ''), 'textDecorationHover' => array('format' => 'select', 'values' => array('none', 'underline', 'overline', 'line-through'), 'default' => 'none', 'title' => I18n::_('Decoration when hovered'), 'description' => ''), 'textDecorationActive' => array('format' => 'select', 'values' => array('none', 'underline', 'overline', 'line-through'), 'default' => 'underline', 'title' => I18n::_('Decoration when opened'), 'description' => '')), 'tagsMenu' => array('_' => array('title' => I18n::_('Submenu')), 'fontFamily' => array('format' => 'fontselect', 'values' => $fontOptionsWithInherit, 'default' => 'inherit', 'title' => I18n::_('Font face'), 'description' => ''), 'googleFont' => array('format' => 'text', 'default' => '', 'html_entities' => true, 'title' => I18n::_('Google web fonts'), 'description' => I18n::_('googleFont_description')), 'fontSize' => array('format' => 'text', 'css_units' => true, 'default' => '11px', 'title' => I18n::_('Font size'), 'description' => ''), 'fontWeight' => array('format' => 'select', 'values' => array('normal', 'bold'), 'default' => 'normal', 'title' => I18n::_('Font weight'), 'description' => ''), 'fontStyle' => array('format' => 'select', 'values' => array('normal', 'italic'), 'default' => 'normal', 'title' => I18n::_('Font style'), 'description' => ''), 'lineHeight' => array('format' => 'text', 'css_units' => true, 'default' => '16px', 'title' => I18n::_('Line height'), 'description' => I18n::_('Height of text line. Use em, px or % values or the default value "normal"')), 'colorLink' => array('format' => 'color', 'default' => '#1a1a1a', 'title' => I18n::_('Color'), 'description' => ''), 'colorHover' => array('format' => 'color', 'default' => '#0000ff', 'title' => I18n::_('Color when hovered'), 'description' => ''), 'colorActive' => array('format' => 'color', 'default' => '#1a1a1a', 'title' => I18n::_('Color when selected'), 'description' => ''), 'textDecorationLink' => array('format' => 'select', 'values' => array('none', 'underline', 'overline', 'line-through'), 'default' => 'none', 'title' => I18n::_('Decoration'), 'description' => ''), 'textDecorationHover' => array('format' => 'select', 'values' => array('none', 'underline', 'overline', 'line-through'), 'default' => 'none', 'title' => I18n::_('Decoration when hovered'), 'description' => ''), 'textDecorationActive' => array('format' => 'select', 'values' => array('none', 'underline', 'overline', 'line-through'), 'default' => 'line-through', 'title' => I18n::_('Decoration when opened'), 'description' => '')), 'links' => array('_' => array('title' => I18n::_('Hyperlinks')), 'colorLink' => array('format' => 'color', 'default' => '#0000ff', 'title' => I18n::_('Link color'), 'description' => ''), 'colorVisited' => array('format' => 'color', 'default' => '#666666', 'title' => I18n::_('Visited link color'), 'description' => ''), 'colorHover' => array('format' => 'color', 'default' => '#0000ff', 'title' => I18n::_('Link color when hovered'), 'description' => ''), 'colorActive' => array('format' => 'color', 'default' => '#0000ff', 'title' => I18n::_('Link color when clicked'), 'description' => ''), 'textDecorationLink' => array('format' => 'select', 'values' => array('none', 'underline', 'overline', 'line-through'), 'default' => 'none', 'title' => I18n::_('Link decoration'), 'description' => ''), 'textDecorationVisited' => array('format' => 'select', 'values' => array('none', 'underline', 'overline', 'line-through'), 'default' => 'none', 'title' => I18n::_('Visited link decoration'), 'description' => ''), 'textDecorationHover' => array('format' => 'select', 'values' => array('none', 'underline', 'overline', 'line-through'), 'default' => 'underline', 'title' => I18n::_('Link decoration when hovered'), 'description' => ''), 'textDecorationActive' => array('format' => 'select', 'values' => array('none', 'underline', 'overline', 'line-through'), 'default' => 'underline', 'title' => I18n::_('Link decoration when clicked'), 'description' => '')), 'css' => array('_' => array('title' => I18n::_('Custom CSS')), 'customCSS' => array('format' => 'longtext', 'allow_blank' => true, 'default' => '', 'html_entities' => true, 'title' => I18n::_('Custom CSS'), 'description' => I18n::_('description_custom_css')))); return array($sectionTypes, $templateConf);
protected function getFlagsForm(Default_Model_User $user) { $form = new Zend_Form(); $form->setAction('/manage-account/flags')->setMethod('post'); $flags = $user->getFlags(); // Add a checkbox for each flag $labels = array(); $labels['admin'] = I18n::_('Support Engineer'); $labels['codesign'] = I18n::_('Code Signing'); $labels['orgadmin'] = I18n::_('Organisation Assurer'); $labels['ttpadmin'] = I18n::_('TTP Admin'); $labels['board'] = I18n::_('Board Member'); $labels['locadmin'] = I18n::_('Location Admin'); $labels['tverify'] = I18n::_('TVerify'); $labels['locked'] = I18n::_('Lock Account'); $labels['assurer_blocked'] = I18n::_('Block Assurer'); foreach ($labels as $flag => $label) { $checkbox = new Zend_Form_Element_Checkbox($flag); $checkbox->setLabel($label)->setChecked($flags[$flag]); $form->addElement($checkbox); } $submit = new Zend_Form_Element_Submit('submit'); $submit->setLabel(I18n::_('Save Flags')); $form->addElement($submit); return $form; }
<body class="xLoginPageBody"> <div class="xMAlign-container xPanel"> <div class="xMAlign-outer"> <div class="xMAlign-inner"> <form name="xLoginForm" action="<? echo $ENGINE_ABS_ROOT ?>login.php" method="post"> <div class="xLoginLogo"> <img src="<? echo $ENGINE_ABS_ROOT ?>layout/berta.png" alt="berta v <? echo BertaBase::$options['version'] ?>" /> </div> <? if($errStr) { ?> <div class="xLoginError"><? echo $errStr ?></div> <? } ?> <input type="hidden" name="auth_action" value="login" /> <!--[if IE ]> <input type="hidden" name="auth_browser" value="invalid" /> <![endif]--> <!--[if (gte IE 9)|!(IE)]><!--> <input type="hidden" name="auth_browser" value="supported" /> <!--<![endif]--> <input type="text" name="auth_user" id="auth_user" class="xLoginField" /> <input type="password" name="auth_pass" id="auth_pass" class="xLoginField" /> <input type="submit" name="auth_subm" id="auth_subm" class="xLoginSubmit" value="<?php echo I18n::_('Log in'); ?> " /> <p> berta v <? echo BertaBase::$options['version'] ?> - <? echo date('Y') ?> </p> </form> </div> </div> </div> </body> </html>
" class="social_button social_button_google"><span class="icon-google-plus"></span>Log in with Google</a> <p class="social_or">or</p> <?php } ?> <input type="text" name="auth_user" id="auth_user" class="xLoginField" /> <input type="password" name="auth_pass" id="auth_pass" class="xLoginField" /> <input type="submit" name="auth_subm" id="auth_subm" class="xLoginSubmit" value="<?php echo I18n::_('Log in'); ?> " /> <p><a href="<?php echo $options['FORGOTPASSWORD_LINK']; ?> " target="_blank"><?php echo I18n::_('Forgot password?'); ?> </a></p> <p> berta v <?php echo BertaBase::$options['version']; ?> 2008-<?php echo date('Y'); ?> </p> </form> </div> </div> </div>
while(list($idx, ) = each($_COOKIE)) { if(strpos($idx, '_berta_') === 0) { //unset($_COOKIE[$idx]); setcookie($idx, "", time() - 3600); } } ?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title><? echo $berta->settings->get('texts', 'page-title') ?> / logout</title> <link href="<? echo $ENGINE_ABS_ROOT ?>css/default.css" rel="stylesheet" type="text/css" /> <link href="<? echo $ENGINE_ABS_ROOT ?>css/login.css" rel="stylesheet" type="text/css" /> <link href="<? echo $ENGINE_ABS_ROOT ?>css/editor.css.php" rel="stylesheet" type="text/css" /> </head> <body class="xLoginPageBody" onload="setTimeout('window.location=\'<? echo $SITE_ABS_ROOT ?>\'', 1500)"> <div class="xMAlign-container xPanel"> <div class="xMAlign-outer"> <div class="xMAlign-inner"> <p class="xLogout"><?php echo I18n::_('Logout ok. Please wait...'); ?> </p> </div> </div> </div> </body> </html>
<div id="allContainer"> <div id="contentContainer"> <h1 id="allPageTitle"><?= I18n::_('Profile') ?></h1> <div id="xSectionsEditor"> <form name="password_form" id="password_form" method="get" action="<? echo htmlspecialchars($ENGINE_ROOT) ?>update.php" > <label for="old_password"><?= I18n::_('Old password') ?></label><br /> <input type="password" name="old_password" id="old_password" value="" /><br /> <label for="new_password"><?= I18n::_('New password') ?></label><br /> <input type="password" name="new_password" id="new_password" value="" /><br /> <label for="retype_password"><?= I18n::_('Retype new password') ?></label><br /> <input type="password" name="retype_password" id="retype_password" value="" /><br /> <input type="submit" name="xBertaEditorChangePassword" id="xBertaEditorChangePassword" value="<?= I18n::_('Change password') ?>" /> </form> <br class="clear" /> <hr /> <div class="entry"> <div class="value value-long"> <?= I18n::_('password_help_text') ?> </div> </div> <p> </p> </div> </div> </div> </body> </html>
<?php $fontOptions = array('Arial, sans-serif' => 'Arial, sans-serif', 'Helvetica, Arial, sans-serif' => 'Helvetica, Arial, sans-serif', '"Helvetica Neue", Helvetica, Arial, sans-serif' => 'Helvetica Neue, Helvetica, Arial, sans-serif', '"Arial Black", Gadget, sans-serif' => 'Arial Black, Gadget', '"Comic Sans MS", cursive' => 'Comic Sans MS', '"Courier New", Courier, monospace' => 'Courier New, Courier', 'Georgia, "Times New Roman", Times, serif' => 'Georgia, Times New Roman, Times', 'Impact, Charcoal, sans-serif' => 'Impact, Charcoal', '"Lucida Console", Monaco, monospace' => 'Lucida Console, Monaco', '"Lucida Sans Unicode", "Lucida Grande", sans-serif' => 'Lucida Sans Unicode, Lucida Grande', '"Palatino Linotype", "Book Antiqua", Palatino, serif' => 'Palatino Linotype, Book Antiqua, Palatino', 'Tahoma, Geneva, sans-serif' => 'Tahoma, Geneva', '"Times New Roman", Times, serif' => 'Times New Roman, Times', '"Trebuchet MS", Helvetica, sans-serif' => 'Trebuchet MS, Helvetica', 'Verdana, Geneva, sans-serif' => 'Verdana, Geneva'); $fontOptionsWithInherit = array_merge(array('inherit' => '(inherit from general-font-settings)'), $fontOptions); $sectionTypes = array('default' => array('title' => 'Default'), 'external_link' => array('title' => 'External link', 'params' => array('link' => array('format' => 'text', 'default' => '', 'link' => true), 'target' => array('format' => 'select', 'values' => array('_self' => 'Same window', '_blank' => 'New window'), 'default' => '_blank'))), 'portfolio' => array('title' => 'Portfolio')); $templateConf = array('generalFontSettings' => array('_' => array('title' => I18n::_('General font settings')), 'color' => array('format' => 'color', 'default' => '#000000', 'title' => I18n::_('Color'), 'description' => ''), 'fontFamily' => array('format' => 'fontselect', 'values' => $fontOptions, 'default' => 'Arial, sans-serif', 'title' => I18n::_('Font face'), 'description' => ''), 'googleFont' => array('format' => 'text', 'default' => '', 'html_entities' => true, 'title' => 'Google web fonts', 'description' => I18n::_('googleFont_description')), 'fontSize' => array('format' => 'text', 'css_units' => true, 'default' => '11px', 'title' => I18n::_('Font size'), 'description' => ''), 'fontWeight' => array('format' => 'select', 'values' => array('normal', 'bold'), 'default' => 'normal', 'title' => I18n::_('Font weight'), 'description' => ''), 'fontStyle' => array('format' => 'select', 'values' => array('normal', 'italic'), 'default' => 'normal', 'title' => I18n::_('Font style'), 'description' => ''), 'fontVariant' => array('format' => 'select', 'values' => array('normal', 'small-caps'), 'default' => 'normal', 'title' => I18n::_('Font variant'), 'description' => ''), 'lineHeight' => array('format' => 'text', 'css_units' => true, 'default' => 'normal', 'title' => I18n::_('Line height'), 'description' => I18n::_('Height of text line. Use em, px or % values or the default value "normal"'))), 'menu' => array('_' => array('title' => I18n::_('Main menu')), 'colorLink' => array('format' => 'color', 'default' => '#666666', 'title' => I18n::_('Color'), 'description' => ''), 'colorHover' => array('format' => 'color', 'default' => '#666666', 'title' => I18n::_('Color when hovered'), 'description' => I18n::_('Color of the element under mouse cursor')), 'colorActive' => array('format' => 'color', 'default' => '#666666', 'title' => I18n::_('Color when selected'), 'description' => I18n::_('Color of the element of the currently opened section')), 'textDecorationLink' => array('format' => 'select', 'values' => array('none', 'underline', 'overline', 'line-through'), 'default' => 'none', 'title' => I18n::_('Decoration'), 'description' => ''), 'textDecorationHover' => array('format' => 'select', 'values' => array('none', 'underline', 'overline', 'line-through'), 'default' => 'underline', 'title' => I18n::_('Decoration when hovered'), 'description' => ''), 'textDecorationActive' => array('format' => 'select', 'values' => array('none', 'underline', 'overline', 'line-through'), 'default' => 'underline', 'title' => I18n::_('Decoration when selected'), 'description' => '')), 'links' => array('_' => array('title' => I18n::_('Hyperlinks')), 'colorLink' => array('format' => 'color', 'default' => '#666666', 'title' => I18n::_('Link color'), 'description' => ''), 'colorVisited' => array('format' => 'color', 'default' => '#666666', 'title' => I18n::_('Visited link color'), 'description' => ''), 'colorHover' => array('format' => 'color', 'default' => '#666666', 'title' => I18n::_('Link color when hovered'), 'description' => ''), 'colorActive' => array('format' => 'color', 'default' => '#666666', 'title' => I18n::_('Link color when clicked'), 'description' => ''), 'textDecorationLink' => array('format' => 'select', 'values' => array('none', 'underline', 'overline', 'line-through'), 'default' => 'none', 'title' => I18n::_('Link decoration'), 'description' => ''), 'textDecorationVisited' => array('format' => 'select', 'values' => array('none', 'underline', 'overline', 'line-through'), 'default' => 'none', 'title' => I18n::_('Visited link decoration'), 'description' => ''), 'textDecorationHover' => array('format' => 'select', 'values' => array('none', 'underline', 'overline', 'line-through'), 'default' => 'underline', 'title' => I18n::_('Link decoration when hovered'), 'description' => ''), 'textDecorationActive' => array('format' => 'select', 'values' => array('none', 'underline', 'overline', 'line-through'), 'default' => 'underline', 'title' => I18n::_('Link decoration when clicked'), 'description' => '')), 'background' => array('_' => array('title' => I18n::_('Background')), 'backgroundColor' => array('format' => 'color', 'default' => '#FFFFFF', 'title' => I18n::_('Background color'), 'description' => ''), 'backgroundImageEnabled' => array('format' => 'select', 'values' => array('yes', 'no'), 'default' => 'no', 'title' => I18n::_('Is background image enabled?'), 'description' => ''), 'backgroundImage' => array('format' => 'image', 'default' => '', 'min_width' => 1, 'min_height' => 1, 'max_width' => 3000, 'max_height' => 3000, 'title' => I18n::_('Background image'), 'description' => I18n::_('Picture to use for page background.')), 'backgroundRepeat' => array('format' => 'select', 'values' => array('repeat' => 'tile vertically and horizontally', 'repeat-x' => 'tile horizontally', 'repeat-y' => 'tile vertically', 'no-repeat' => 'no tiling'), 'default' => 'repeat', 'title' => I18n::_('Background tiling'), 'description' => I18n::_('How the background fills the screen?')), 'backgroundPosition' => array('format' => 'select', 'values' => array('top left', 'top center', 'top right', 'center left', 'center', 'center right', 'bottom left', 'bottom center', 'bottom right'), 'default' => 'top left', 'title' => I18n::_('Background alignment'), 'description' => I18n::_('Where the background image is positioned?')), 'backgroundAttachment' => array('format' => 'select', 'values' => array('fixed' => 'Fixed to browser window', 'fill' => 'Filled in browser window', 'scroll' => 'No stretch, scroll along with content'), 'default' => 'scroll', 'title' => I18n::_('Background position'), 'description' => I18n::_('Sets how background behaves in relation with the browser window.'))), 'pageHeading' => array('_' => array('title' => I18n::_('Page heading')), 'image' => array('format' => 'image', 'default' => '', 'min_width' => 1, 'min_height' => 1, 'max_width' => 140, 'max_height' => 400, 'title' => I18n::_('Header image'), 'description' => '<span class="warning">' . I18n::_('Displayed image will be half of the original size, full size will be used for hi-res displays.') . '</span>'), 'color' => array('format' => 'color', 'default' => '#000000', 'title' => I18n::_('Color'), 'description' => ''), 'fontFamily' => array('format' => 'fontselect', 'values' => $fontOptionsWithInherit, 'default' => 'inherit', 'title' => I18n::_('Font face'), 'description' => ''), 'googleFont' => array('format' => 'text', 'default' => '', 'html_entities' => true, 'title' => 'Google web fonts', 'description' => I18n::_('googleFont_description')), 'fontSize' => array('format' => 'text', 'css_units' => true, 'default' => '20px', 'title' => I18n::_('Font size'), 'description' => ''), 'fontWeight' => array('format' => 'select', 'values' => array('normal', 'bold'), 'default' => 'normal', 'title' => I18n::_('Font weight'), 'description' => ''), 'fontStyle' => array('format' => 'select', 'values' => array('normal', 'italic'), 'default' => 'normal', 'title' => I18n::_('Font style'), 'description' => ''), 'fontVariant' => array('format' => 'select', 'values' => array('normal', 'small-caps'), 'default' => 'normal', 'title' => I18n::_('Font variant'), 'description' => ''), 'lineHeight' => array('format' => 'text', 'css_units' => true, 'default' => '1em', 'title' => I18n::_('Line height'), 'description' => I18n::_('Height of text line. Use em, px or % values or the default value "normal"')), 'marginTop' => array('format' => 'text', 'default' => '0', 'css_units' => true, 'title' => I18n::_('Empty space on top'), 'description' => ''), 'marginBottom' => array('format' => 'text', 'default' => '20px', 'css_units' => true, 'title' => I18n::_('Empty space on bottom'), 'description' => '')), 'pageLayout' => array('_' => array('title' => I18n::_('Page layout')), 'centered' => array('format' => 'select', 'default' => 'no', 'values' => array('yes', 'no'), 'title' => I18n::_('Centered layout'), 'description' => I18n::_('Sets whether layout should be centered or not.')), 'contentWidth' => array('format' => 'text', 'default' => '600px', 'css_units' => true, 'title' => I18n::_('Entry text max width'), 'description' => I18n::_('Width of texts in the entries. This does not apply to the width of images.')), 'paddingTop' => array('format' => 'text', 'default' => '90px', 'css_units' => true, 'title' => I18n::_('How far content is from page top?'), 'description' => I18n::_('The vertical distance between the top of the page and the content area.')), 'paddingLeft' => array('format' => 'text', 'default' => '30px', 'css_units' => true, 'title' => I18n::_('How far content is from menu?'), 'description' => I18n::_('The horizontal distance between the menu and the content area.')), 'leftColumnWidth' => array('format' => 'text', 'default' => '170px', 'css_units' => true, 'title' => I18n::_('Width of the left column'), 'description' => ''), 'group_responsive' => array('format' => false, 'default' => false, 'title' => '<h3>' . I18n::_('Responsive design') . '</h3>'), 'responsive' => array('format' => 'select', 'default' => 'no', 'values' => array('no', 'yes'), 'title' => I18n::_('Enabled'), 'description' => I18n::_('Sets whether layout should be responsive or not.'))), 'entryLayout' => array('_' => array('title' => I18n::_('Entry layout')), 'spaceBetween' => array('format' => 'text', 'default' => '20px', 'css_units' => true, 'title' => I18n::_('Space between entries'), 'description' => I18n::_('Distance from entry to entry. In pixels.')), 'defaultGalleryType' => array('format' => 'select', 'values' => array('slideshow', 'row'), 'default' => 'slideshow', 'title' => I18n::_('Default gallery type'), 'description' => ''), 'spaceBetweenImages' => array('format' => 'text', 'default' => '1em', 'css_units' => true, 'title' => I18n::_('Space between images in row and column'), 'description' => I18n::_('Horizontal/vertical space between images when gallery is in "row"/"column" mode')), 'galleryNavMargin' => array('format' => 'text', 'default' => '0', 'css_units' => true, 'title' => I18n::_('Space between images and image navigation'), 'description' => I18n::_('Vertical space between images and image navigation (the digits below the image) when gallery is in "slideshow" mode')), 'galleryMargin' => array('format' => 'text', 'default' => '1em', 'css_units' => true, 'title' => I18n::_('Empty space below gallery'), 'description' => I18n::_('Distance between the gallery and the content below')), 'displayTags' => array('format' => 'select', 'values' => array('yes', 'no'), 'default' => 'yes', 'title' => I18n::_('Display tags by each entry'), 'description' => I18n::_('This determines whether people will see tags you set for each entry. Regardless of this settting, tags still will make up the main menu.'))), 'css' => array('_' => array('title' => I18n::_('Custom CSS')), 'customCSS' => array('format' => 'longtext', 'allow_blank' => true, 'default' => '', 'html_entities' => true, 'title' => I18n::_('Custom CSS'), 'description' => I18n::_('description_custom_css')))); return array($sectionTypes, $templateConf);
public static function getTopPanelHTML($selectedSection = 'site') { $tickerClass = !empty($_COOKIE['_berta_newsticker_hidden']) ? 'xHidden' : ''; $tickerColorClass = empty($_COOKIE['_berta_newsticker_hilight']) ? 'xNewsTickerRed' : 'xNewsTickerGrey'; $newsTickerContent = false; // $_SESSION['_berta_newsticker'] = false; // for testing... //$_SESSION['_berta_newsticker_numtries'] = 0; // for testing... if (!empty(self::$options['newsticker_update_uri'])) { if (!empty($_SESSION['_berta_newsticker'])) { $newsTickerContent = $_SESSION['_berta_newsticker']; } elseif ((empty($_SESSION['_berta_newsticker_numtries']) || $_SESSION['_berta_newsticker_numtries'] < 5) && ini_get('allow_url_fopen')) { $remoteResult = false; reset(self::$options['newsticker_update_uri']); while ((!$remoteResult || empty($remoteResult['content'])) && (list(, $remoteURL) = each(self::$options['newsticker_update_uri']))) { $remoteResult = BertaUtils::getRemoteFile($remoteURL, 5); } //var_dump($remoteResult ); //$options['newsticker_update_uri_alt']); if ($remoteResult && isset($remoteResult['content'])) { $newsTickerContent = $_SESSION['_berta_newsticker'] = $remoteResult['content']; setcookie('_berta_newsticker', $remoteResult['content']); } $_SESSION['_berta_newsticker_numtries'] = !empty($_SESSION['_berta_newsticker_numtries']) ? ++$_SESSION['_berta_newsticker_numtries'] : 1; } } if (!$newsTickerContent) { $tickerClass = 'xHidden'; } $m0 = I18n::_('close this'); $m1 = I18n::_('my site'); $m2 = I18n::_('sections'); $m3 = I18n::_('settings'); $m4 = I18n::_('template design'); $m5 = I18n::_('profile'); $m6 = I18n::_('sign out'); $m1Class = $selectedSection == 'site' ? ' class="selected"' : ''; $m2Class = $selectedSection == 'sections' ? ' class="selected"' : ''; $m3Class = $selectedSection == 'settings' ? ' class="selected"' : ''; $m4Class = $selectedSection == 'template' ? ' class="selected"' : ''; $m5Class = $selectedSection == 'profile' ? ' selected' : ''; $str = <<<DOC \t\t\t<div id="xTopPanelContainer" class="xPanel"> \t\t\t\t<div id="xTopPanel"> \t\t\t\t\t \t\t\t\t\t<div id="xNewsTickerContainer" class="{$tickerClass}"> \t\t\t\t\t\t<div class="news-ticker-background {$tickerColorClass}"></div> \t\t\t\t\t\t<div class="news-ticker-content">{$newsTickerContent}</div> \t\t\t\t\t\t<a href="#" class="close">{$m0}</a> \t\t\t\t\t\t<br class="clear" /> \t\t\t\t\t</div> \t\t\t\t\t<ul id="xEditorMenu"> \t\t\t\t\t\t<li id="xEditorMenuBg"></li> \t\t\t\t\t\t<li{$m1Class}><a href=".">{$m1}</a></li><li>|</li> \t\t\t\t\t\t<li{$m2Class}><a href="sections.php">{$m2}</a></li><li>|</li> \t\t\t\t\t\t<li{$m3Class}><a href="settings.php">{$m3}</a></li><li>|</li> \t\t\t\t\t\t<li{$m4Class}><a href="settings.php?mode=template">{$m4}</a></li> \t\t\t\t\t\t<li class="last{$m5Class}"><a href="profile.php">{$m5}</a> | <a href="logout.php">{$m6}</a></li> \t\t\t\t\t</ul> \t\t\t\t</div> \t\t\t</div> DOC; return $str; }
'_' => array('title' => I18n::_('Entry heading')), 'color' => array('format' => 'color', 'default' => '#333333', 'title' => I18n::_('Color'), 'description' => ''), 'fontFamily' => array('format' => 'fontselect', 'values' => $fontOptionsWithInherit, 'default' => 'inherit', 'title' => I18n::_('Font face'), 'description' => ''), 'googleFont' => array('format' => 'text', 'default' => '', 'title' => 'Google web fonts', 'description' => I18n::_('googleFont_description')), 'fontSize' => array('format' => 'text', 'default' => '1.8em', 'title' => I18n::_('Font size'), 'description' => ''), 'fontWeight' => array('format' => 'select', 'values' => array('normal', 'bold'), 'default' => 'normal', 'title' => I18n::_('Font weight'), 'description' => ''), 'fontStyle' => array('format' => 'select', 'values' => array('normal', 'italic'), 'default' => 'normal', 'title' => I18n::_('Font style'), 'description' => ''), 'fontVariant' => array('format' => 'select', 'values' => array('normal', 'small-caps'), 'default' => 'normal', 'title' => I18n::_('Font variant'), 'description' => ''), 'lineHeight' => array('format' => 'text', 'default' => 'normal', 'title' => I18n::_('Line height'), 'description' => I18n::_('Height of text line. Use em, px or % values or the default value "normal"')), 'margin' => array('format' => 'text', 'default' => '0', 'title' => I18n::_('Margins'), 'description' => I18n::_('How far the entry heading is form other elements in page. Please see the short CSS guide at the bottom of this page.')), ), 'entryFooter' => array( '_' => array('title' => I18n::_('Entry footer')), 'color' => array('format' => 'color', 'default' => '#333333', 'title' => I18n::_('Color'), 'description' => ''), 'fontFamily' => array('format' => 'fontselect', 'values' => $fontOptionsWithInherit, 'default' => 'inherit', 'title' => I18n::_('Font face'), 'description' => ''), 'googleFont' => array('format' => 'text', 'default' => '', 'title' => 'Google web fonts', 'description' => I18n::_('googleFont_description')), 'fontSize' => array('format' => 'text', 'default' => 'inherit', 'title' => I18n::_('Font size'), 'description' => ''), 'fontWeight' => array('format' => 'select', 'values' => array('inherit', 'normal', 'bold'), 'default' => 'inherit', 'title' => I18n::_('Font weight'), 'description' => ''), 'fontStyle' => array('format' => 'select', 'values' => array('inherit', 'normal', 'italic'), 'default' => 'inherit', 'title' => I18n::_('Font style'), 'description' => ''), 'fontVariant' => array('format' => 'select', 'values' => array('inherit', 'normal', 'small-caps'), 'default' => 'inherit','title' =>I18n::_('Font variant'), 'description' => ''), 'lineHeight' => array('format' => 'text', 'default' => 'inherit', 'title' => I18n::_('Line height'), 'description' => I18n::_('Height of text line. Use em, px or % values or the default value "normal"')), ) ); return array($sectionTypes, $templateConf); ?>
echo I18n::_('Note: the fields that already have value appear yellow only when you roll over them with your mouse. Click on the text below to edit.'); ?> </p> <p class="xFirstTimeField <?php echo $xEditSelectorSimple; ?> xProperty-texts/metaDescription xRequired-<?php echo $berta->settings->isRequired('texts', 'metaDescription') ? '1' : '0'; ?> "><?php echo $berta->settings->get('texts', 'metaDescription', true); ?> </p> <p><input type="button" value=" <?php echo I18n::_('Done!'); ?> " id="xFirstTimeCheckContinue" onclick="window.location='<?php echo $ENGINE_ABS_ROOT; ?> ?_berta_install_done=1<?php echo !empty($options['MULTISITE']) ? '&site=' . $options['MULTISITE'] : ''; ?> '" /></p> </div> <?php ?> </div> </div> </div>
<?php $fontOptions = array('Arial, sans-serif' => 'Arial, sans-serif', 'Helvetica, Arial, sans-serif' => 'Helvetica, Arial, sans-serif', '"Helvetica Neue", Helvetica, Arial, sans-serif' => 'Helvetica Neue, Helvetica, Arial, sans-serif', '"Arial Black", Gadget, sans-serif' => 'Arial Black, Gadget', '"Comic Sans MS", cursive' => 'Comic Sans MS', '"Courier New", Courier, monospace' => 'Courier New, Courier', 'Georgia, "Times New Roman", Times, serif' => 'Georgia, Times New Roman, Times', 'Impact, Charcoal, sans-serif' => 'Impact, Charcoal', '"Lucida Console", Monaco, monospace' => 'Lucida Console, Monaco', '"Lucida Sans Unicode", "Lucida Grande", sans-serif' => 'Lucida Sans Unicode, Lucida Grande', '"Palatino Linotype", "Book Antiqua", Palatino, serif' => 'Palatino Linotype, Book Antiqua, Palatino', 'Tahoma, Geneva, sans-serif' => 'Tahoma, Geneva', '"Times New Roman", Times, serif' => 'Times New Roman, Times', '"Trebuchet MS", Helvetica, sans-serif' => 'Trebuchet MS, Helvetica', 'Verdana, Geneva, sans-serif' => 'Verdana, Geneva'); $fontOptionsWithInherit = array_merge(array('inherit' => '(inherit from general-font-settings)'), $fontOptions); $sectionTypes = array('default' => array('title' => 'Default', 'params' => array('columns' => array('format' => 'select', 'default' => '1', 'values' => array('1', '2', '3', '4'), 'html_before' => '<div class="label">' . I18n::_('Columns') . ':</div>'), 'entryMaxWidth' => array('format' => 'text', 'css_units' => true, 'default' => '', 'html_before' => '<div class="label">' . I18n::_('Entry max width') . ':</div>'), 'entryPadding' => array('format' => 'text', 'default' => '0 10px 20px 10px', 'html_before' => '<div class="label">' . I18n::_('Entry padding') . ':</div>'), 'backgroundVideoEmbed' => array('format' => 'text', 'default' => '', 'html_entities' => true, 'html_before' => '<div class="label">' . I18n::_('Background video (embed)') . ':</div>'), 'backgroundVideoRatio' => array('format' => 'select', 'default' => 'fillWindow', 'values' => array('fillWindow' => I18n::_('Fill window'), 'keepRatio' => I18n::_('Keep ratio')), 'html_before' => '<div class="label">' . I18n::_('Background video ratio') . ':</div>'))), 'external_link' => array('title' => 'External link', 'params' => array('link' => array('format' => 'text', 'default' => '', 'link' => true, 'html_before' => '<div class="label">' . I18n::_('Link address') . ':</div>'), 'target' => array('format' => 'select', 'values' => array('_self' => 'Same window', '_blank' => 'New window'), 'default' => '_blank', 'html_before' => '<div class="label">' . I18n::_('Opens in') . ':</div>'))), 'grid' => array('title' => 'Thumbnails enabled'), 'portfolio' => array('title' => 'Portfolio')); $templateConf = array('generalFontSettings' => array('_' => array('title' => I18n::_('General font settings')), 'color' => array('format' => 'color', 'default' => '#363636', 'title' => I18n::_('Color'), 'description' => ''), 'fontFamily' => array('format' => 'fontselect', 'values' => $fontOptions, 'default' => 'Arial, sans-serif', 'title' => I18n::_('Font face'), 'description' => ''), 'googleFont' => array('format' => 'text', 'default' => '', 'html_entities' => true, 'title' => 'Google web fonts', 'description' => I18n::_('googleFont_description')), 'fontSize' => array('format' => 'text', 'css_units' => true, 'default' => '12px', 'title' => I18n::_('Font size'), 'description' => ''), 'fontWeight' => array('format' => 'select', 'values' => array('normal', 'bold'), 'default' => 'normal', 'title' => I18n::_('Font weight'), 'description' => ''), 'fontStyle' => array('format' => 'select', 'values' => array('normal', 'italic'), 'default' => 'normal', 'title' => I18n::_('Font style'), 'description' => ''), 'fontVariant' => array('format' => 'select', 'values' => array('normal', 'small-caps'), 'default' => 'normal', 'title' => I18n::_('Font variant'), 'description' => ''), 'lineHeight' => array('format' => 'text', 'css_units' => true, 'default' => '18px', 'title' => I18n::_('Line height'), 'description' => I18n::_('Height of text line. Use em, px or % values or the default value "normal"'))), 'background' => array('_' => array('title' => I18n::_('Background')), 'backgroundColor' => array('format' => 'color', 'default' => '#FFFFFF', 'title' => I18n::_('Background color'), 'description' => I18n::_('IMPORTANT! These settings will be overwritten, if you are using background gallery feature. You access it by clicking "edit background gallery" button in each section.')), 'backgroundImageEnabled' => array('format' => 'select', 'values' => array('yes', 'no'), 'default' => 'no', 'title' => I18n::_('Is background image enabled?'), 'description' => ''), 'backgroundImage' => array('format' => 'image', 'default' => '', 'min_width' => 1, 'min_height' => 1, 'max_width' => 3000, 'max_height' => 3000, 'title' => I18n::_('Background image'), 'description' => I18n::_('Picture to use for page background.')), 'backgroundRepeat' => array('format' => 'select', 'values' => array('repeat' => 'tile vertically and horizontally', 'repeat-x' => 'tile horizontally', 'repeat-y' => 'tile vertically', 'no-repeat' => 'no tiling'), 'default' => 'repeat', 'title' => I18n::_('Background tiling'), 'description' => I18n::_('How the background fills the screen?')), 'backgroundPosition' => array('format' => 'select', 'values' => array('top left', 'top center', 'top right', 'center left', 'center', 'center right', 'bottom left', 'bottom center', 'bottom right'), 'default' => 'top left', 'title' => I18n::_('Background alignment'), 'description' => I18n::_('Where the background image is positioned?')), 'backgroundAttachment' => array('format' => 'select', 'values' => array('fixed' => 'Fixed to browser window', 'fill' => 'Filled in browser window', 'scroll' => 'No stretch, scroll along with content'), 'default' => 'scroll', 'title' => I18n::_('Background position'), 'description' => I18n::_('Sets how background behaves in relation with the browser window.'))), 'pageLayout' => array('_' => array('title' => I18n::_('Page layout')), 'bgButtonType' => array('format' => 'select', 'default' => 'dark', 'values' => array('dark', 'bright'), 'title' => I18n::_('Background button type'), 'description' => I18n::_('Select type for background gallery buttons.')), 'centered' => array('format' => 'select', 'default' => 'no', 'values' => array('yes', 'no'), 'title' => I18n::_('Centered layout'), 'description' => I18n::_('Sets whether layout should be centered or not.')), 'centeredWidth' => array('format' => 'text', 'default' => '960px', 'css_units' => true, 'title' => I18n::_('Centered content width'), 'description' => I18n::_('Content width if layout is centered.')), 'centeringGuidesColor' => array('format' => 'select', 'default' => 'dark', 'values' => array('dark', 'bright'), 'title' => I18n::_('Centering guides color tone'), 'description' => I18n::_('Color tone for centering guides (dark for bright background colors, bright for dark background colors).')), 'group_responsive' => array('format' => false, 'default' => false, 'title' => '<h3>' . I18n::_('Responsive design') . '</h3>'), 'responsive' => array('format' => 'select', 'default' => 'no', 'values' => array('no', 'yes'), 'title' => I18n::_('Enabled'), 'description' => I18n::_('Sets whether layout should be responsive or not.')), 'centeredContents' => array('format' => 'select', 'default' => 'no', 'values' => array('no', 'yes'), 'title' => I18n::_('Centered contents'), 'description' => I18n::_('Page heading, menu items and section entries is horizontally centered to window.')), 'headingMargin' => array('format' => 'text', 'default' => '20px 10px', 'title' => I18n::_('Heading margin'), 'description' => I18n::_('Margin around page heading or logo. Please see the short CSS guide at the bottom of this page.')), 'menuMargin' => array('format' => 'text', 'default' => '20px 10px', 'title' => I18n::_('Menu margin'), 'description' => I18n::_('Margin around menu. Please see the short CSS guide at the bottom of this page.'))), 'entryHeading' => array('_' => array('title' => I18n::_('Entry heading')), 'color' => array('format' => 'color', 'default' => '#363636', 'title' => I18n::_('Color'), 'description' => ''), 'fontFamily' => array('format' => 'fontselect', 'values' => $fontOptions, 'default' => 'Arial, sans-serif', 'title' => I18n::_('Font face'), 'description' => ''), 'googleFont' => array('format' => 'text', 'default' => '', 'html_entities' => true, 'title' => 'Google web fonts', 'description' => I18n::_('googleFont_description')), 'fontSize' => array('format' => 'text', 'css_units' => true, 'default' => '1.8em', 'title' => I18n::_('Font size'), 'description' => ''), 'fontWeight' => array('format' => 'select', 'values' => array('normal', 'bold'), 'default' => 'normal', 'title' => I18n::_('Font weight'), 'description' => ''), 'fontStyle' => array('format' => 'select', 'values' => array('normal', 'italic'), 'default' => 'normal', 'title' => I18n::_('Font style'), 'description' => ''), 'fontVariant' => array('format' => 'select', 'values' => array('normal', 'small-caps'), 'default' => 'normal', 'title' => I18n::_('Font variant'), 'description' => ''), 'lineHeight' => array('format' => 'text', 'css_units' => true, 'default' => 'normal', 'title' => I18n::_('Line height'), 'description' => I18n::_('Height of text line. Use em, px or % values or the default value "normal"')), 'margin' => array('format' => 'text', 'default' => '15px 0 15px 0', 'title' => I18n::_('Margins'), 'description' => I18n::_('How far the entry heading is form other elements in page. Please see the short CSS guide at the bottom of this page.'))), 'entryLayout' => array('_' => array('title' => I18n::_('Entry layout')), 'contentWidth' => array('format' => 'text', 'default' => '400px', 'css_units' => true, 'title' => I18n::_('Entry text max width'), 'description' => ''), 'defaultGalleryType' => array('format' => 'select', 'values' => array('slideshow', 'row'), 'default' => 'slideshow', 'title' => I18n::_('Default gallery type'), 'description' => I18n::_('Slideshow means that an image menu plus only one image is visible at a time. Row means that all images are visible.')), 'spaceBetweenImages' => array('format' => 'text', 'default' => '1em', 'css_units' => true, 'title' => I18n::_('Space between images in row and column'), 'description' => I18n::_('Horizontal/vertical space between images when gallery is in "row"/"column" mode')), 'galleryNavMargin' => array('format' => 'text', 'default' => '0', 'css_units' => true, 'title' => I18n::_('Space between images and image navigation'), 'description' => I18n::_('Vertical space between images and image navigation (the digits below the image) when gallery is in "slideshow" mode')), 'galleryMargin' => array('format' => 'text', 'default' => '0', 'css_units' => true, 'title' => I18n::_('Empty space below gallery'), 'description' => I18n::_('Distance between the gallery and the content below')), 'displayTags' => array('format' => 'select', 'values' => array('yes', 'no'), 'default' => 'no', 'title' => I18n::_('Display tags by each entry'), 'description' => I18n::_('This determines whether people will see tags you set for each entry. Regardless of this settting, tags still will make up the main menu.'))), 'heading' => array('_' => array('title' => I18n::_('Page heading')), 'position' => array('format' => 'select', 'values' => array('fixed', 'absolute'), 'default' => 'absolute', 'title' => I18n::_('Heading position'), 'description' => I18n::_('description_heading_position')), 'image' => array('format' => 'image', 'default' => '', 'min_width' => 1, 'min_height' => 1, 'max_width' => 140, 'max_height' => 400, 'title' => I18n::_('Logo image'), 'description' => '<span class="warning">' . I18n::_('Displayed image will be half of the original size, full size will be used for hi-res displays.') . '</span>'), 'color' => array('format' => 'color', 'default' => '#000000', 'title' => I18n::_('Color'), 'description' => ''), 'fontFamily' => array('format' => 'fontselect', 'values' => $fontOptionsWithInherit, 'default' => '"Arial black", Gadget', 'title' => I18n::_('Font face'), 'description' => ''), 'googleFont' => array('format' => 'text', 'default' => '', 'html_entities' => true, 'title' => 'Google web fonts', 'description' => I18n::_('googleFont_description')), 'fontSize' => array('format' => 'text', 'css_units' => true, 'default' => '30px', 'title' => I18n::_('Font size'), 'description' => ''), 'fontWeight' => array('format' => 'select', 'values' => array('normal', 'bold'), 'default' => 'bold', 'title' => I18n::_('Font weight'), 'description' => ''), 'fontStyle' => array('format' => 'select', 'values' => array('normal', 'italic'), 'default' => 'normal', 'title' => I18n::_('Font style'), 'description' => ''), 'fontVariant' => array('format' => 'select', 'values' => array('normal', 'small-caps'), 'default' => 'normal', 'title' => I18n::_('Font variant'), 'description' => ''), 'lineHeight' => array('format' => 'text', 'css_units' => true, 'default' => '1em', 'title' => I18n::_('Line height'), 'description' => I18n::_('Height of text line. Use em, px or % values or the default value "normal"'))), 'menu' => array('_' => array('title' => I18n::_('Main menu')), 'position' => array('format' => 'select', 'values' => array('fixed', 'absolute'), 'default' => 'absolute', 'title' => I18n::_('Menu position'), 'description' => I18n::_('description_menu_position')), 'fontFamily' => array('format' => 'fontselect', 'values' => $fontOptionsWithInherit, 'default' => '"Arial black", Gadget', 'title' => I18n::_('Font face'), 'description' => ''), 'googleFont' => array('format' => 'text', 'default' => '', 'html_entities' => true, 'title' => 'Google web fonts', 'description' => I18n::_('googleFont_description')), 'fontSize' => array('format' => 'text', 'css_units' => true, 'default' => '20px', 'title' => I18n::_('Font size'), 'description' => ''), 'fontWeight' => array('format' => 'select', 'values' => array('normal', 'bold'), 'default' => 'bold', 'title' => I18n::_('Font weight'), 'description' => ''), 'fontStyle' => array('format' => 'select', 'values' => array('normal', 'italic'), 'default' => 'normal', 'title' => I18n::_('Font style'), 'description' => ''), 'lineHeight' => array('format' => 'text', 'css_units' => true, 'default' => '1em', 'title' => I18n::_('Line height'), 'description' => I18n::_('Height of text line. Use em, px or % values or the default value "normal"')), 'colorLink' => array('format' => 'color', 'default' => '#000000', 'title' => I18n::_('Color'), 'description' => ''), 'colorHover' => array('format' => 'color', 'default' => '#000000', 'title' => I18n::_('Color when hovered'), 'description' => I18n::_('Color of the element under mouse cursor')), 'colorActive' => array('format' => 'color', 'default' => '#000000', 'title' => I18n::_('Color when selected'), 'description' => I18n::_('Color of the element of the currently opened section')), 'textDecorationLink' => array('format' => 'select', 'values' => array('none', 'underline', 'overline', 'line-through'), 'default' => 'none', 'title' => I18n::_('Decoration'), 'description' => ''), 'textDecorationHover' => array('format' => 'select', 'values' => array('none', 'underline', 'overline', 'line-through'), 'default' => 'underline', 'title' => I18n::_('Decoration when hovered'), 'description' => ''), 'textDecorationActive' => array('format' => 'select', 'values' => array('none', 'underline', 'overline', 'line-through'), 'default' => 'line-through', 'title' => I18n::_('Decoration when selected'), 'description' => '')), 'tagsMenu' => array('_' => array('title' => I18n::_('Submenu')), 'fontFamily' => array('format' => 'fontselect', 'values' => $fontOptionsWithInherit, 'default' => '"Arial black", Gadget', 'title' => I18n::_('Font face'), 'description' => ''), 'googleFont' => array('format' => 'text', 'default' => '', 'html_entities' => true, 'title' => 'Google web fonts', 'description' => I18n::_('googleFont_description')), 'fontSize' => array('format' => 'text', 'css_units' => true, 'default' => '16px', 'title' => I18n::_('Font size'), 'description' => ''), 'fontWeight' => array('format' => 'select', 'values' => array('normal', 'bold'), 'default' => 'normal', 'title' => I18n::_('Font weight'), 'description' => ''), 'fontStyle' => array('format' => 'select', 'values' => array('normal', 'italic'), 'default' => 'normal', 'title' => I18n::_('Font style'), 'description' => ''), 'lineHeight' => array('format' => 'text', 'css_units' => true, 'default' => '1.5em', 'title' => I18n::_('Line height'), 'description' => I18n::_('Height of text line. Use em, px or % values or the default value "normal"')), 'colorLink' => array('format' => 'color', 'default' => '#000000', 'title' => I18n::_('Color'), 'description' => ''), 'colorHover' => array('format' => 'color', 'default' => '#000000', 'title' => I18n::_('Color when hovered'), 'description' => ''), 'colorActive' => array('format' => 'color', 'default' => '#000000', 'title' => I18n::_('Color when selected'), 'description' => ''), 'textDecorationLink' => array('format' => 'select', 'values' => array('none', 'underline', 'overline', 'line-through'), 'default' => 'none', 'title' => I18n::_('Decoration'), 'description' => ''), 'textDecorationHover' => array('format' => 'select', 'values' => array('none', 'underline', 'overline', 'line-through'), 'default' => 'underline', 'title' => I18n::_('Decoration when hovered'), 'description' => ''), 'textDecorationActive' => array('format' => 'select', 'values' => array('none', 'underline', 'overline', 'line-through'), 'default' => 'underline', 'title' => I18n::_('Decoration when selected'), 'description' => ''), 'x' => array('format' => 'text', 'css_units' => true, 'default' => '0', 'title' => I18n::_('Positon X'), 'description' => I18n::_('description_tagsMenu_x')), 'y' => array('format' => 'text', 'css_units' => true, 'default' => '0', 'title' => I18n::_('Positon Y'), 'description' => I18n::_('description_tagsMenu_y')), 'alwaysOpen' => array('format' => 'select', 'values' => array('yes', 'no'), 'default' => 'yes', 'title' => I18n::_('Submenu is allways open'), 'description' => I18n::_('description_submenu_alwaysopen')), 'hidden' => array('format' => 'select', 'values' => array('yes', 'no'), 'default' => 'no', 'title' => I18n::_('Submenu is hidden'), 'description' => '')), 'links' => array('_' => array('title' => I18n::_('Hyperlinks')), 'colorLink' => array('format' => 'color', 'default' => '#000000', 'title' => I18n::_('Link color'), 'description' => ''), 'colorVisited' => array('format' => 'color', 'default' => '#000000', 'title' => I18n::_('Visited link color'), 'description' => ''), 'colorHover' => array('format' => 'color', 'default' => '#000000', 'title' => I18n::_('Link color when hovered'), 'description' => ''), 'colorActive' => array('format' => 'color', 'default' => '#000000', 'title' => I18n::_('Link color when clicked'), 'description' => ''), 'textDecorationLink' => array('format' => 'select', 'values' => array('none', 'underline', 'overline', 'line-through'), 'default' => 'none', 'title' => I18n::_('Link decoration'), 'description' => ''), 'textDecorationVisited' => array('format' => 'select', 'values' => array('none', 'underline', 'overline', 'line-through'), 'default' => 'none', 'title' => I18n::_('Visited link decoration'), 'description' => ''), 'textDecorationHover' => array('format' => 'select', 'values' => array('none', 'underline', 'overline', 'line-through'), 'default' => 'underline', 'title' => I18n::_('Link decoration when hovered'), 'description' => ''), 'textDecorationActive' => array('format' => 'select', 'values' => array('none', 'underline', 'overline', 'line-through'), 'default' => 'underline', 'title' => I18n::_('Link decoration when clicked'), 'description' => '')), 'grid' => array('_' => array('title' => I18n::_('Thumbnails')), 'whatAreThumbnails' => array('format' => '', 'default' => '', 'title' => I18n::_('Thumbnails can be turned on by setting the section type to "Thumbnails enabled" & adding more than 1 images to background gallery.') . '<br/><br/>'), 'contentWidth' => array('format' => 'text', 'default' => '60%', 'title' => I18n::_('Thumbnail container width'), 'description' => I18n::_('IMPORTANT! This must be set as percentage. i.e. 60%'))), 'css' => array('_' => array('title' => I18n::_('Custom CSS')), 'customCSS' => array('format' => 'longtext', 'allow_blank' => true, 'default' => '', 'html_entities' => true, 'title' => I18n::_('Custom CSS'), 'description' => I18n::_('description_custom_css')))); if (@file_exists('../_plugin_shop/template.conf.php')) { include '../_plugin_shop/template.conf.php'; } return array($sectionTypes, $templateConf);
'banners' => array( '_' => array('title' => I18n::_('Banners')), 'banner1_image' => array('format' => 'image', 'default' => '', 'min_width' => 1, 'min_height' => 1, 'max_width' => 3000, 'max_height' => 3000, 'title' => I18n::_('Banner image').' (1)', 'description' => I18n::_('description_banner')), 'banner1_link' => array('format' => 'text', 'allow_blank' => true, 'default' => null, 'title' => I18n::_('Banner link').' (1)', 'description' => I18n::_('description_banner_link')), 'banner2_image' => array('format' => 'image', 'default' => '', 'min_width' => 1, 'min_height' => 1, 'max_width' => 3000, 'max_height' => 3000, 'title' => I18n::_('Banner image').' (2)', 'description' => ''), 'banner2_link' => array('format' => 'text', 'allow_blank' => true, 'default' => null, 'title' => I18n::_('Banner link').' (2)', 'description' => ''), 'banner3_image' => array('format' => 'image', 'default' => '', 'min_width' => 1, 'min_height' => 1, 'max_width' => 3000, 'max_height' => 3000, 'title' => I18n::_('Banner image').' (3)', 'description' => ''), 'banner3_link' => array('format' => 'text', 'allow_blank' => true, 'default' => null, 'title' => I18n::_('Banner link').' (3)', 'description' => ''), 'banner4_image' => array('format' => 'image', 'default' => '', 'min_width' => 1, 'min_height' => 1, 'max_width' => 3000, 'max_height' => 3000, 'title' => I18n::_('Banner image').' (4)', 'description' => ''), 'banner4_link' => array('format' => 'text', 'allow_blank' => true, 'default' => null, 'title' => I18n::_('Banner link').' (4)', 'description' => ''), 'banner5_image' => array('format' => 'image', 'default' => '', 'min_width' => 1, 'min_height' => 1, 'max_width' => 3000, 'max_height' => 3000, 'title' => I18n::_('Banner image').' (5)', 'description' => ''), 'banner5_link' => array('format' => 'text', 'allow_blank' => true, 'default' => null, 'title' => I18n::_('Banner link').' (5)', 'description' => ''), 'banner6_image' => array('format' => 'image', 'default' => '', 'min_width' => 1, 'min_height' => 1, 'max_width' => 3000, 'max_height' => 3000, 'title' => I18n::_('Banner image').' (6)', 'description' => ''), 'banner6_link' => array('format' => 'text', 'allow_blank' => true, 'default' => null, 'title' => I18n::_('Banner link').' (6)', 'description' => ''), 'banner7_image' => array('format' => 'image', 'default' => '', 'min_width' => 1, 'min_height' => 1, 'max_width' => 3000, 'max_height' => 3000, 'title' => I18n::_('Banner image').' (7)', 'description' => ''), 'banner7_link' => array('format' => 'text', 'allow_blank' => true, 'default' => null, 'title' => I18n::_('Banner link').' (7)', 'description' => ''), ), 'language' => array( '_' => array('title' => I18n::_('Language')), 'language' => array('format' => 'select', 'allow_blank' => false, 'default' => $options['default_language'], 'values' => $options['languages'], 'title' => I18n::_('Interface language'), 'description' => I18n::_('description_language')) ), 'settings' => array( '_' => array('title' => I18n::_('Other settings')), 'googleAnalyticsId' => array('format' => 'text', 'allow_blank' => true, 'default' => '', 'html_entities' => true, 'title' => I18n::_('Google Analytics ID'), 'validator' => 'GoogleAnalytics', 'description' => I18n::_('The ID of the <a href="http://google.com/analytics" target="_blank">Google Analytics</a> site profile. To obtain an ID, register in <a href="http://google.com/analytics" target="_blank">Google Analytics</a> and create a profile for your site.')), 'flashUploadEnabled' => array('format' => 'select', 'allow_blank' => false, 'default' => 'yes', 'values' => array('yes', 'no'), 'title' => I18n::_('Advanced file uploading enabled'), 'description' => I18n::_('Set if the advanced uploading features (selecting multiple files at once, asynchronous uploading) are enabled. You should not disable them UNLESS you are experiencing problems with file uploads.')) ) ); ?>
'fontSize' => array('format' => 'text', 'default' => '20px', 'title' => I18n::_('Font size'), 'description' => ''), 'fontWeight' => array('format' => 'select', 'values' => array('normal', 'bold'), 'default' => 'normal', 'title' => I18n::_('Font weight'), 'description' => ''), 'fontStyle' => array('format' => 'select', 'values' => array('normal', 'italic'), 'default' => 'normal', 'title' => I18n::_('Font style'), 'description' => ''), 'fontVariant' => array('format' => 'select', 'values' => array('normal', 'small-caps'), 'default' => 'normal', 'title' => I18n::_('Font variant'), 'description' => ''), 'lineHeight' => array('format' => 'text', 'default' => '1em', 'title' => I18n::_('Line height'), 'description' => I18n::_('Height of text line. Use em, px or % values or the default value "normal"')), 'marginTop' => array('format' => 'text', 'default' => '0', 'css_units' => true, 'title' => I18n::_('Empty space on top'), 'description' => ''), 'marginBottom' => array('format' => 'text', 'default' => '20px', 'css_units' => true, 'title' => I18n::_('Empty space on bottom'), 'description' => '') ), 'pageLayout' => array( '_' => array('title' => I18n::_('Page layout')), 'contentWidth' => array('format' => 'text', 'default' => '600px', 'css_units' => true, 'title' => I18n::_('Widh of content area'), 'description' => I18n::_('Width of texts in the entries. This does not apply to the width of images.')), 'paddingTop' => array('format' => 'text', 'default' => '90px', 'css_units' => true, 'title' => I18n::_('How far content is from page top?'), 'description' => I18n::_('The vertical distance between the top of the page and the content area.')), 'paddingLeft' => array('format' => 'text', 'default' => '30px', 'css_units' => true, 'title' => I18n::_('How far content is from menu?'), 'description' => I18n::_('The horizontal distance between the menu and the content area.')), 'leftColumnWidth' => array('format' => 'text', 'default' => '170px', 'css_units' => true, 'title' => I18n::_('Width of the left column'), 'description' => '') ), 'entryLayout' => array( '_' => array('title' => I18n::_('Entry layout')), 'spaceBetween' => array('format' => 'text', 'default' => '20px', 'css_units' => true, 'title' => I18n::_('Space between entries'), 'description' => I18n::_('Distance from entry to entry. In pixels.')), 'defaultGalleryType' => array('format' => 'select', 'values' => array('slideshow', 'row'), 'default' => 'slideshow', 'title' => I18n::_('Default gallery type'), 'description' => ''), 'spaceBetweenRowImages'=>array('format' => 'text', 'default' => '1em', 'css_units' => true, 'title' => I18n::_('Space between images in row'), 'description' => I18n::_('Horizontal space bween images when gallery is in "row" mode')), 'galleryNavMargin' => array('format' => 'text', 'default' => '0', 'css_units' => true, 'title' => I18n::_('Space between images and image navigation'), 'description' => I18n::_('Vertical space between images and image navigation (the digits below the image) when gallery is in "slideshow" mode')), 'galleryMargin' => array('format' => 'text', 'default' => '1em', 'css_units' => true, 'title' => I18n::_('Empty space below gallery'), 'description' => I18n::_('Distance between the gallery and the content below')), 'displayTags' => array('format' => 'select', 'values' => array('yes', 'no'), 'default' => 'yes', 'title' => I18n::_('Display tags by each entry'), 'description' => I18n::_('This determines whether people will see tags you set for each entry. Regardless of this settting, tags still will make up the main menu.')) ) ); return array($sectionTypes, $templateConf); ?>
echo '<div class="csSeoKeywords"><span class="' . $xEditSelectorSimple . ' xProperty-seoKeywords xNoHTMLEntities xSection-' . $sN . ' xSectionField">' . (!empty($s['seoKeywords']['value']) ? htmlspecialchars(strip_tags($s['seoKeywords']['value'])) : '') . '</span></div>'; echo '<div class="csSeoDescription"><span class="' . $xEditSelectorTA . ' xProperty-seoDescription xNoHTMLEntities xSection-' . $sN . ' xSectionField">' . (!empty($s['seoDescription']['value']) ? htmlspecialchars(strip_tags($s['seoDescription']['value'])) : '') . '</span></div>'; echo '</li>'; } ?> </ul><br class="clear" /> <hr /> <h2></h2> <div class="entry"> <div class="caption"><?php echo I18n::_('What is SEO?'); ?> </div> <div class="value value-long"> <?php echo I18n::_('seo_help_text'); ?> </div> </div> <br class="clear" /> <p> </p> </div> </div> </div> <?php echo BertaEditor::intercomScript(); ?> </body> </html>
} .xMAlign-inner { display: block; position: relative; top: -50%; text-align: center; width: 400px; margin-left: auto; margin-right: auto; padding: 30px; } h2 { margin: 0 0 20px; font-size: 400%; line-height: 100%; } </style> </head> <body class="xLoginPageBody"> <div class="xMAlign-container xPanel"> <div class="xMAlign-outer"> <div class="xMAlign-inner"> <?php echo I18n::_('welcome_text__not_supported'); ?> </div> </div> </div> </body> </html>
?> </label><br /> <input type="password" name="new_password" id="new_password" value="" /><br /> <label for="retype_password"><?php echo I18n::_('Retype new password'); ?> </label><br /> <input type="password" name="retype_password" id="retype_password" value="" /><br /> <input type="submit" name="xBertaEditorChangePassword" id="xBertaEditorChangePassword" value="<?php echo I18n::_('Change password'); ?> " /> </form> <br class="clear" /> <hr /> <div class="entry"> <div class="value value-long"> <?php echo I18n::_('password_help_text'); ?> </div> </div> <p> </p> </div> </div> </div> </body> </html>
echo I18n::_('What are sections?'); ?> </div> <div class="value value-long"> <?php echo I18n::_('sections_help_text'); ?> </div> </div> <div class="entry"> <div class="caption"><?php echo I18n::_('What is the "external link"?'); ?> </div> <div class="value value-long"> <?php echo I18n::_('external_link_help_text'); ?> </div> </div> <br class="clear" /> <p> </p> </div> </div> </div> <?php echo BertaEditor::intercomScript(); ?> </body> </html>
echo I18n::_('Units'); ?> </div> <div class="value" style="width: 300px; padding-right: 30px"> <?php echo I18n::_('units_help_text'); ?> </div> <div class="caption" style="width: 60px"><?php echo I18n::_('Margins'); ?> , <?php echo I18n::_('Paddings'); ?> </div> <div class="value" style="width: 300px;"> <?php echo I18n::_('margins_help_text'); ?> </div> </div> <br class="clear" /> <p> </p> </div> </div> <?php echo BertaEditor::intercomScript(); ?> </body> </html>
<?php $fontOptions = array('Helvetica, Arial, sans-serif' => 'Helvetica, Arial, sans-serif', '"Helvetica Neue", Helvetica, Arial, sans-serif' => 'Helvetica Neue, Helvetica, Arial, sans-serif', '"Arial Black", Gadget, sans-serif' => 'Arial Black, Gadget', '"Comic Sans MS", cursive' => 'Comic Sans MS', '"Courier New", Courier, monospace' => 'Courier New, Courier', 'Georgia, "Times New Roman", Times, serif' => 'Georgia, Times New Roman, Times', 'Impact, Charcoal, sans-serif' => 'Impact, Charcoal', '"Lucida Console", Monaco, monospace' => 'Lucida Console, Monaco', '"Lucida Sans Unicode", "Lucida Grande", sans-serif' => 'Lucida Sans Unicode, Lucida Grande', '"Palatino Linotype", "Book Antiqua", Palatino, serif' => 'Palatino Linotype, Book Antiqua, Palatino', 'Tahoma, Geneva, sans-serif' => 'Tahoma, Geneva', '"Times New Roman", Times, serif' => 'Times New Roman, Times', '"Trebuchet MS", Helvetica, sans-serif' => 'Trebuchet MS, Helvetica', 'Verdana, Geneva, sans-serif' => 'Verdana, Geneva'); $fontOptionsWithInherit = array_merge(array('inherit' => '(inherit from general-font-settings)'), $fontOptions); $sectionTypes = array('default' => array('title' => 'Default'), 'external_link' => array('title' => 'External link', 'params' => array('link' => array('format' => 'text', 'default' => '', 'link' => true), 'target' => array('format' => 'select', 'values' => array('_self' => 'Same window', '_blank' => 'New window'), 'default' => '_blank'))), 'portfolio' => array('title' => 'Portfolio')); $fontOptions = array_keys($fontOptions); $templateConf = array('generalFontSettings' => array('_' => array('title' => I18n::_('General font settings')), 'color' => array('format' => 'color', 'default' => '#333333', 'title' => I18n::_('Color'), 'description' => ''), 'fontFamily' => array('format' => 'fontselect', 'values' => $fontOptions, 'default' => reset($fontOptions), 'title' => I18n::_('Font face'), 'description' => ''), 'googleFont' => array('format' => 'text', 'default' => '', 'html_entities' => true, 'title' => 'Google web fonts', 'description' => I18n::_('googleFont_description')), 'fontSize' => array('format' => 'text', 'css_units' => true, 'default' => '9pt', 'title' => I18n::_('Font size'), 'description' => ''), 'fontWeight' => array('format' => 'select', 'values' => array('normal', 'bold'), 'default' => 'normal', 'title' => I18n::_('Font weight'), 'description' => ''), 'fontStyle' => array('format' => 'select', 'values' => array('normal', 'italic'), 'default' => 'normal', 'title' => I18n::_('Font style'), 'description' => ''), 'fontVariant' => array('format' => 'select', 'values' => array('normal', 'small-caps'), 'default' => 'normal', 'title' => I18n::_('Font variant'), 'description' => ''), 'lineHeight' => array('format' => 'text', 'css_units' => true, 'default' => 'normal', 'title' => I18n::_('Line height'), 'description' => I18n::_('Height of text line. Use em, px or % values or the default value "normal"'))), 'links' => array('_' => array('title' => I18n::_('Hyperlinks')), 'colorLink' => array('format' => 'color', 'default' => '#888888', 'title' => I18n::_('Link color'), 'description' => ''), 'colorVisited' => array('format' => 'color', 'default' => '#888888', 'title' => I18n::_('Visited link color'), 'description' => ''), 'colorHover' => array('format' => 'color', 'default' => '#888888', 'title' => I18n::_('Link color when hovered'), 'description' => ''), 'colorActive' => array('format' => 'color', 'default' => '#888888', 'title' => I18n::_('Link color when clicked'), 'description' => ''), 'textDecorationLink' => array('format' => 'select', 'values' => array('none', 'underline', 'overline', 'line-through'), 'default' => 'none', 'title' => I18n::_('Link decoration'), 'description' => ''), 'textDecorationVisited' => array('format' => 'select', 'values' => array('none', 'underline', 'overline', 'line-through'), 'default' => 'none', 'title' => I18n::_('Visited link decoration'), 'description' => ''), 'textDecorationHover' => array('format' => 'select', 'values' => array('none', 'underline', 'overline', 'line-through'), 'default' => 'underline', 'title' => I18n::_('Link decoration when hovered'), 'description' => ''), 'textDecorationActive' => array('format' => 'select', 'values' => array('none', 'underline', 'overline', 'line-through'), 'default' => 'underline', 'title' => I18n::_('Link decoration when clicked'), 'description' => '')), 'background' => array('_' => array('title' => I18n::_('Background')), 'backgroundColor' => array('format' => 'color', 'default' => '#FFFFFF', 'title' => I18n::_('Background color'), 'description' => ''), 'backgroundImageEnabled' => array('format' => 'select', 'values' => array('yes', 'no'), 'default' => 'no', 'title' => I18n::_('Is background image enabled?'), 'description' => ''), 'backgroundImage' => array('format' => 'image', 'default' => '', 'min_width' => 1, 'min_height' => 1, 'max_width' => 3000, 'max_height' => 3000, 'title' => I18n::_('Background image'), 'description' => I18n::_('Picture to use for page background.')), 'backgroundRepeat' => array('format' => 'select', 'values' => array('repeat' => 'tile vertically and horizontally', 'repeat-x' => 'tile horizontally', 'repeat-y' => 'tile vertically', 'no-repeat' => 'no tiling'), 'default' => 'repeat', 'title' => I18n::_('Background tiling'), 'description' => I18n::_('How the background fills the screen?')), 'backgroundPosition' => array('format' => 'select', 'values' => array('top left', 'top center', 'top right', 'center left', 'center', 'center right', 'bottom left', 'bottom center', 'bottom right'), 'default' => 'top left', 'title' => I18n::_('Background alignment'), 'description' => I18n::_('Where the background image is positioned?')), 'backgroundAttachment' => array('format' => 'select', 'values' => array('fixed' => 'Fixed to browser window', 'fill' => 'Filled in browser window', 'scroll' => 'No stretch, scroll along with content'), 'default' => 'scroll', 'title' => I18n::_('Background position'), 'description' => I18n::_('Sets how background behaves in relation with the browser window.'))), 'pageLayout' => array('_' => array('title' => I18n::_('Page layout')), 'contentPosition' => array('format' => 'select', 'values' => array('left', 'center', 'right'), 'default' => 'left', 'title' => I18n::_('Content position'), 'description' => ''), 'contentAlign' => array('format' => 'select', 'values' => array('left', 'right', 'justify-left', 'justify-right'), 'default' => 'left', 'title' => I18n::_('Text alignment'), 'description' => ''), 'contentWidth' => array('format' => 'text', 'default' => '500px', 'css_units' => true, 'title' => I18n::_('Width of content area'), 'description' => ''), 'bodyMargin' => array('format' => 'text', 'default' => '20px 40px 40px', 'css_units' => true, 'title' => I18n::_('Page margins'), 'description' => I18n::_('How far the content is from browser edges. Please see the short CSS guide at the bottom of this page.')), 'siteMenuMargin' => array('format' => 'text', 'default' => '0', 'css_units' => true, 'title' => I18n::_('Top menu margins'), 'description' => I18n::_('How big is the distance from the top menu to the other page elements')), 'group_responsive' => array('format' => false, 'default' => false, 'title' => '<h3>' . I18n::_('Responsive design') . '</h3>'), 'responsive' => array('format' => 'select', 'default' => 'no', 'values' => array('no', 'yes'), 'title' => I18n::_('Enabled'), 'description' => I18n::_('Sets whether layout should be responsive or not.'))), 'pageHeading' => array('_' => array('title' => I18n::_('Page heading')), 'image' => array('format' => 'image', 'default' => '', 'min_width' => 1, 'min_height' => 1, 'max_width' => 1000, 'max_height' => 1000, 'title' => I18n::_('Header image'), 'description' => '<span class="warning">' . I18n::_('Displayed image will be half of the original size, full size will be used for hi-res displays.') . '</span>'), 'color' => array('format' => 'color', 'default' => '#333333', 'title' => I18n::_('Color'), 'description' => ''), 'fontFamily' => array('format' => 'fontselect', 'values' => $fontOptionsWithInherit, 'default' => 'inherit', 'title' => I18n::_('Font face'), 'description' => ''), 'googleFont' => array('format' => 'text', 'default' => '', 'html_entities' => true, 'title' => 'Google web fonts', 'description' => I18n::_('googleFont_description')), 'fontSize' => array('format' => 'text', 'css_units' => true, 'default' => '1.2em', 'title' => I18n::_('Font size'), 'description' => ''), 'fontWeight' => array('format' => 'select', 'values' => array('normal', 'bold'), 'default' => 'bold', 'title' => I18n::_('Font weight'), 'description' => ''), 'fontStyle' => array('format' => 'select', 'values' => array('normal', 'italic'), 'default' => 'normal', 'title' => I18n::_('Font style'), 'description' => ''), 'fontVariant' => array('format' => 'select', 'values' => array('normal', 'small-caps'), 'default' => 'normal', 'title' => I18n::_('Font variant'), 'description' => ''), 'lineHeight' => array('format' => 'text', 'css_units' => true, 'default' => '0.8em', 'title' => I18n::_('Line height'), 'description' => I18n::_('Height of text line. Use em, px or % values or the default value "normal"')), 'margin' => array('format' => 'text', 'css_units' => true, 'default' => '10px 0 15px', 'title' => I18n::_('Margins'), 'description' => I18n::_('How far the heading is from other elements in page. Please see the short CSS guide at the bottom of this page.'))), 'menu' => array('_' => array('title' => I18n::_('Main menu')), 'separator' => array('format' => 'text', 'default' => '|', 'title' => I18n::_('Menu items separator'), 'description' => ''), 'separatorDistance' => array('format' => 'text', 'css_units' => true, 'default' => '0.5em', 'title' => I18n::_('Space width around separator'), 'description' => I18n::_('The distance from the separator to the menu item on both sides')), 'fontSize' => array('format' => 'text', 'css_units' => true, 'default' => 'inherit', 'title' => I18n::_('Font size'), 'description' => ''), 'fontFamily' => array('format' => 'fontselect', 'values' => $fontOptionsWithInherit, 'default' => 'inherit', 'title' => I18n::_('Font face'), 'description' => ''), 'googleFont' => array('format' => 'text', 'default' => '', 'html_entities' => true, 'title' => 'Google web fonts', 'description' => I18n::_('googleFont_description')), 'colorLink' => array('format' => 'color', 'default' => '#888888', 'title' => I18n::_('Color'), 'description' => ''), 'colorHover' => array('format' => 'color', 'default' => '#888888', 'title' => I18n::_('Color when hovered'), 'description' => I18n::_('Color of the element under mouse cursor')), 'colorActive' => array('format' => 'color', 'default' => '#888888', 'title' => I18n::_('Color when selected'), 'description' => I18n::_('Color of the element of the currently opened section')), 'fontWeight' => array('format' => 'select', 'values' => array('inherit', 'normal', 'bold'), 'default' => 'inherit', 'title' => I18n::_('Font weight'), 'description' => ''), 'fontStyle' => array('format' => 'select', 'values' => array('inherit', 'normal', 'italic'), 'default' => 'inherit', 'title' => I18n::_('Font style'), 'description' => ''), 'fontVariant' => array('format' => 'select', 'values' => array('inherit', 'normal', 'small-caps'), 'default' => 'inherit', 'title' => I18n::_('Font variant'), 'description' => ''), 'lineHeight' => array('format' => 'text', 'css_units' => true, 'default' => 'inherit', 'title' => I18n::_('Line height'), 'description' => I18n::_('Height of text line. Use em, px or % values or the default value "normal"')), 'margin' => array('format' => 'text', 'css_units' => true, 'default' => '0', 'title' => I18n::_('Margins'), 'description' => I18n::_('How far the menu is form other elements in page. Please see the short CSS guide at the bottom of this page.'))), 'subMenu' => array('_' => array('title' => I18n::_('Submenu')), 'separator' => array('format' => 'text', 'default' => '|', 'title' => I18n::_('Menu items separator'), 'description' => ''), 'separatorDistance' => array('format' => 'text', 'css_units' => true, 'default' => '0.5em', 'title' => I18n::_('Space width around separator'), 'description' => I18n::_('The distance from the separator to the menu item on both sides')), 'fontSize' => array('format' => 'text', 'css_units' => true, 'default' => 'inherit', 'title' => I18n::_('Font size'), 'description' => ''), 'fontFamily' => array('format' => 'fontselect', 'values' => $fontOptionsWithInherit, 'default' => 'inherit', 'title' => I18n::_('Font face'), 'description' => ''), 'googleFont' => array('format' => 'text', 'default' => '', 'html_entities' => true, 'title' => 'Google web fonts', 'description' => I18n::_('googleFont_description')), 'fontWeight' => array('format' => 'select', 'values' => array('inherit', 'normal', 'bold'), 'default' => 'inherit', 'title' => I18n::_('Font weight'), 'description' => ''), 'fontStyle' => array('format' => 'select', 'values' => array('inherit', 'normal', 'italic'), 'default' => 'inherit', 'title' => I18n::_('Font style'), 'description' => ''), 'fontVariant' => array('format' => 'select', 'values' => array('inherit', 'normal', 'small-caps'), 'default' => 'inherit', 'title' => I18n::_('Font variant'), 'description' => ''), 'lineHeight' => array('format' => 'text', 'css_units' => true, 'default' => 'inherit', 'title' => I18n::_('Line height'), 'description' => I18n::_('Height of text line. Use em, px or % values or the default value "normal"')), 'margin' => array('format' => 'text', 'css_units' => true, 'default' => '0 0 10px', 'title' => I18n::_('Margins'), 'description' => I18n::_('How far the menu is form other elements in page. Please see the short CSS guide at the bottom of this page.'))), 'entryLayout' => array('_' => array('title' => I18n::_('Entry layout')), 'margin' => array('format' => 'text', 'css_units' => true, 'default' => '0 0 4em', 'title' => I18n::_('Entry margins'), 'description' => I18n::_('Margins around entries. Please see the short CSS guide at the bottom of this page.')), 'galleryPosition' => array('format' => 'select', 'values' => array('between title/description', 'above title', 'below description'), 'default' => 'between title/description', 'title' => I18n::_('Gallery position'), 'description' => ''), 'defaultGalleryType' => array('format' => 'select', 'values' => array('slideshow', 'row'), 'default' => 'slideshow', 'title' => I18n::_('Default gallery type'), 'description' => I18n::_('Slideshow means that an image menu plus only one image is visible at a time. Row means that all images are visible.')), 'spaceBetweenImages' => array('format' => 'text', 'default' => '1em', 'css_units' => true, 'title' => I18n::_('Space between images in row and column'), 'description' => I18n::_('Horizontal/vertical space between images when gallery is in "row"/"column" mode')), 'galleryMargin' => array('format' => 'text', 'css_units' => true, 'default' => '0', 'title' => I18n::_('Gallery margins'), 'description' => I18n::_('Margin around gallery block'))), 'entryHeading' => array('_' => array('title' => I18n::_('Entry heading')), 'color' => array('format' => 'color', 'default' => '#333333', 'title' => I18n::_('Color'), 'description' => ''), 'fontFamily' => array('format' => 'fontselect', 'values' => $fontOptionsWithInherit, 'default' => 'inherit', 'title' => I18n::_('Font face'), 'description' => ''), 'googleFont' => array('format' => 'text', 'default' => '', 'html_entities' => true, 'title' => 'Google web fonts', 'description' => I18n::_('googleFont_description')), 'fontSize' => array('format' => 'text', 'css_units' => true, 'default' => '1.8em', 'title' => I18n::_('Font size'), 'description' => ''), 'fontWeight' => array('format' => 'select', 'values' => array('normal', 'bold'), 'default' => 'normal', 'title' => I18n::_('Font weight'), 'description' => ''), 'fontStyle' => array('format' => 'select', 'values' => array('normal', 'italic'), 'default' => 'normal', 'title' => I18n::_('Font style'), 'description' => ''), 'fontVariant' => array('format' => 'select', 'values' => array('normal', 'small-caps'), 'default' => 'normal', 'title' => I18n::_('Font variant'), 'description' => ''), 'lineHeight' => array('format' => 'text', 'css_units' => true, 'default' => 'normal', 'title' => I18n::_('Line height'), 'description' => I18n::_('Height of text line. Use em, px or % values or the default value "normal"')), 'margin' => array('format' => 'text', 'css_units' => true, 'default' => '0', 'title' => I18n::_('Margins'), 'description' => I18n::_('How far the entry heading is form other elements in page. Please see the short CSS guide at the bottom of this page.'))), 'entryFooter' => array('_' => array('title' => I18n::_('Entry footer')), 'color' => array('format' => 'color', 'default' => '#333333', 'title' => I18n::_('Color'), 'description' => ''), 'fontFamily' => array('format' => 'fontselect', 'values' => $fontOptionsWithInherit, 'default' => 'inherit', 'title' => I18n::_('Font face'), 'description' => ''), 'googleFont' => array('format' => 'text', 'default' => '', 'html_entities' => true, 'title' => 'Google web fonts', 'description' => I18n::_('googleFont_description')), 'fontSize' => array('format' => 'text', 'css_units' => true, 'default' => 'inherit', 'title' => I18n::_('Font size'), 'description' => ''), 'fontWeight' => array('format' => 'select', 'values' => array('inherit', 'normal', 'bold'), 'default' => 'inherit', 'title' => I18n::_('Font weight'), 'description' => ''), 'fontStyle' => array('format' => 'select', 'values' => array('inherit', 'normal', 'italic'), 'default' => 'inherit', 'title' => I18n::_('Font style'), 'description' => ''), 'fontVariant' => array('format' => 'select', 'values' => array('inherit', 'normal', 'small-caps'), 'default' => 'inherit', 'title' => I18n::_('Font variant'), 'description' => ''), 'lineHeight' => array('format' => 'text', 'css_units' => true, 'default' => 'inherit', 'title' => I18n::_('Line height'), 'description' => I18n::_('Height of text line. Use em, px or % values or the default value "normal"'))), 'css' => array('_' => array('title' => I18n::_('Custom CSS')), 'customCSS' => array('format' => 'longtext', 'allow_blank' => true, 'default' => '', 'html_entities' => true, 'title' => I18n::_('Custom CSS'), 'description' => I18n::_('description_custom_css')))); return array($sectionTypes, $templateConf);
css/backend.min.css?<?php echo $int_version; ?> " type="text/css" charset="utf-8" /> <link rel="stylesheet" href="<?php echo $ENGINE_ABS_ROOT; ?> css/editor.css.php?<?php echo $int_version; ?> " type="text/css" charset="utf-8" /> <link rel="stylesheet" href="<?php echo $ENGINE_ABS_ROOT; ?> css/login.css?<?php echo $int_version; ?> " type="text/css" /> </head> <body class="xLoginPageBody"> <div class="xMAlign-container xPanel"> <div class="xMAlign-outer"> <div class="xMAlign-inner"> <?php echo sprintf(I18n::_('welcome_text__not_installed'), $ENGINE_ABS_ROOT . (!empty($options['MULTISITE']) ? '?site=' . $options['MULTISITE'] : '')); ?> </div> </div> </div> </body> </html>
'fontWeight' => array('format' => 'select', 'values' => array('normal', 'bold'), 'default' => 'normal', 'title' => I18n::_('Font weight'), 'description' => ''), 'fontStyle' => array('format' => 'select', 'values' => array('normal', 'italic'), 'default' => 'normal', 'title' => I18n::_('Font style'), 'description' => ''), 'lineHeight' => array('format' => 'text', 'default' => '16px', 'title' => I18n::_('Line height'), 'description' => I18n::_('Height of text line. Use em, px or % values or the default value "normal"')), 'colorLink' => array('format' => 'color', 'default' => '#000000', 'title' => I18n::_('Color'), 'description' => ''), 'colorHover' => array('format' => 'color', 'default' => '#000000', 'title' => I18n::_('Color when hovered'), 'description' => ''), 'colorActive' => array('format' => 'color', 'default' => '#000000', 'title' => I18n::_('Color when selected'), 'description' => ''), 'textDecorationLink' => array('format' => 'select', 'values' => array('none', 'underline', 'overline', 'line-through'), 'default' => 'none', 'title' => I18n::_('Decoration'), 'description' => ''), 'textDecorationHover' => array('format' => 'select', 'values' => array('none', 'underline', 'overline', 'line-through'), 'default' => 'underline', 'title' => I18n::_('Decoration when hovered'), 'description' => ''), 'textDecorationActive' => array('format' => 'select', 'values' => array('none', 'underline', 'overline', 'line-through'), 'default' => 'underline', 'title' => I18n::_('Decoration when selected'), 'description' => ''), 'x' => array('format' => 'text', 'default' => '0', 'title' => I18n::_('Positon X'), 'description' => I18n::_('description_tagsMenu_x')), 'y' => array('format' => 'text', 'default' => '0', 'title' => I18n::_('Positon Y'), 'description' => I18n::_('description_tagsMenu_y')), 'alwaysOpen' => array('format' => 'select', 'values' => array('yes', 'no'), 'default' => 'yes', 'title' => I18n::_('Submenu is allways open'), 'description' => I18n::_('description_submenu_alwaysopen')) ), 'links' => array( '_' => array('title' => I18n::_('Hyperlinks')), 'colorLink' => array('format' => 'color', 'default' => '#000000', 'title' => I18n::_('Link color'), 'description' => ''), 'colorVisited' => array('format' => 'color', 'default' => '#000000', 'title' => I18n::_('Visited link color'), 'description' => ''), 'colorHover' => array('format' => 'color', 'default' => '#000000', 'title' => I18n::_('Link color when hovered'), 'description' => ''), 'colorActive' => array('format' => 'color', 'default' => '#000000', 'title' => I18n::_('Link color when clicked'), 'description' => ''), 'textDecorationLink' => array('format' => 'select', 'values' => array('none', 'underline', 'overline', 'line-through'), 'default' => 'none', 'title' => I18n::_('Link decoration'), 'description' => ''), 'textDecorationVisited' =>array('format' => 'select', 'values' => array('none', 'underline', 'overline', 'line-through'), 'default' => 'none', 'title' => I18n::_('Visited link decoration'), 'description' => ''), 'textDecorationHover' => array('format' => 'select', 'values' => array('none', 'underline', 'overline', 'line-through'), 'default' => 'underline', 'title' => I18n::_('Link decoration when hovered'), 'description' => ''), 'textDecorationActive' => array('format' => 'select', 'values' => array('none', 'underline', 'overline', 'line-through'), 'default' => 'underline', 'title' => I18n::_('Link decoration when clicked'), 'description' => '') ) ); return array($sectionTypes, $templateConf); ?>
/** * delete message with unique id */ public function deleteAction() { $config = Zend_Registry::get('config'); $uid = $this->getRequest()->getParam('uid', -1); $this->view->returnto = $_SERVER['HTTP_REFERER']; if ($uid == -1) { $this->view->message = I18n::_('You did not select an email for deletion'); } elseif ($this->view->returnto == '') { $this->view->message = I18n::_('Please use the delete icons in the mail inventory to delete mails'); } else { $imap_config = $config->imap; $imap = imapConnection::getInstance('cacert', $imap_config); $imap->imapSwitchMbox('INBOX'); $header = $imap->imapFetchOverview($uid); $session = Zend_Registry::get('session'); if ($session->authdata['authed_role'] != 'Admin' && !in_array($header->to, $this->addresses)) { $this->view->message = I18n::_('This message does not belong to you'); } else { $imap->imapDelete($uid); $imap->imapExpunge(); $this->view->message = I18n::_('Message deleted'); } } }