Ejemplo n.º 1
0
 function zenpagecms()
 {
     setOptionDefault('zenpage_articles_per_page', '10');
     setOptionDefault('zenpage_text_length', '500');
     setOptionDefault('zenpage_textshorten_indicator', ' (...)');
     gettext($str = 'Read more');
     setOptionDefault('zenpage_read_more', getAllTranslations($str));
     setOptionDefault('zenpage_rss_items', '10');
     setOptionDefault('zenpage_rss_length', '100');
     setOptionDefault('zenpage_admin_articles', '15');
     setOptionDefault('zenpage_indexhitcounter', false);
     setOptionDefault('zenpage_combinews', false);
     setOptionDefault('zenpage_combinews_readmore', gettext('Visit gallery page'));
     setOptionDefault('zenpage_combinews_mode', 'latestimage-sizedimage');
     setOptionDefault('zenpage_combinews_imagesize', '300');
     setOptionDefault('zenpage_combinews_sortorder', 'mtime');
     setOptionDefault('zenpage_combinews_gallerylink', 'image');
     setOptionDefault('combinews-thumbnail-cropwidth', '');
     setOptionDefault('combinews-thumbnail-cropheight', '');
     setOptionDefault('combinews-thumbnail-width', '');
     setOptionDefault('combinews-thumbnail-height', '');
     setOptionDefault('combinews-thumbnail-cropx', '');
     setOptionDefault('combinews-thumbnail-cropy', '');
     setOptionDefault('combinews-latestimagesbyalbum-imgdesc', false);
     setOptionDefault('combinews-latestimagesbyalbum-imgtitle', false);
     gettext($str = '%1$u new item in <em>%2$s</em>: %3$s');
     setOptionDefault('combinews-customtitle-singular', getAllTranslations($str));
     gettext($str = '%1$u new items in <em>%2$s</em>: %3$s');
     setOptionDefault('combinews-customtitle-plural', getAllTranslations($str));
     setOptionDefault('combinews-customtitle-imagetitles', '6');
     setOptionDefault('menu_truncate_string', 0);
     setOptionDefault('menu_truncate_indicator', '');
 }
Ejemplo n.º 2
0
 function __construct()
 {
     // force core theme options for this theme
     setThemeOption('albums_per_row', 2, null, 'zpfocus');
     setThemeOption('images_per_row', 3, null, 'zpfocus');
     setThemeOption('thumb_size', 160, null, 'zpfocus');
     setThemeOption('thumb_crop', 0, null, 'zpfocus');
     setThemeOption('image_size', 800, null, 'zpfocus');
     //for sized cb target option only
     setThemeOption('image_use_side', 'longest', null, 'zpfocus');
     setThemeOption('custom_index_page', '', null, 'zpfocus');
     // set core theme option defaults
     setThemeOptionDefault('albums_per_page', 6);
     setThemeOptionDefault('images_per_page', 9);
     setThemeOptionDefault('thumb_transition', 2);
     // set theme option defaults
     $str = '';
     setOptionDefault('zpfocus_tagline', getAllTranslations($str));
     gettext($str = 'A ZenPhoto / ZenPage Powered Theme');
     setThemeOptionDefault('zpfocus_allow_search', true);
     setThemeOptionDefault('zpfocus_show_archive', true);
     setThemeOptionDefault('zpfocus_use_colorbox', true);
     setThemeOptionDefault('zpfocus_use_colorbox_slideshow', true);
     setThemeOptionDefault('zpfocus_homepage', 'none');
     setThemeOptionDefault('zpfocus_spotlight', 'manual');
     setOptionDefault('zpfocus_spotlight_text', getAllTranslations($str));
     gettext($str = '<p>This is the <span class="spotlight-span">spotlight</span> area that can be set in the theme options.  You can either enter the text manually in the options or set it to display the latest news if ZenPage is being used. If you want nothing to appear here, set the spotlight to none.</p>');
     setThemeOptionDefault('zpfocus_show_credit', false);
     setThemeOptionDefault('zpfocus_menutype', 'dropdown');
     setThemeOptionDefault('zpfocus_logotype', true);
     setThemeOptionDefault('zpfocus_logofile', 'logo.jpg');
     setThemeOptionDefault('zpfocus_showrandom', 'rotator');
     setThemeOptionDefault('zpfocus_rotatoreffect', 'fade');
     setThemeOptionDefault('zpfocus_rotatorspeed', '3000');
     setThemeOptionDefault('zpfocus_cbtarget', true);
     setThemeOptionDefault('zpfocus_cbstyle', 'example3');
     setThemeOptionDefault('zpfocus_cbtransition', 'fade');
     setThemeOptionDefault('zpfocus_cbssspeed', '2500');
     setThemeOptionDefault('zpfocus_final_link', 'nolink');
     setThemeOptionDefault('zpfocus_news', true);
     // plugin options
     setOptionDefault('jcarousel_zpfocus_image', 1);
     if (class_exists('cacheManager')) {
         cacheManager::deleteThemeCacheSizes('zpfocus');
         cacheManager::addThemeCacheSize('zpfocus', null, 600, 900, null, null, null, null, false, getOption('fullimage_watermark'), false, true);
         cacheManager::addThemeCacheSize('zpfocus', null, 300, 300, 300, 300, null, null, true, getOption('fullimage_watermark'), false, false);
         if (getOption('zpfocus_use_colorbox') && getOption('zpfocus_cbtarget')) {
             cacheManager::addThemeCacheSize('zpfocus', 800, null, null, null, null, null, null, false, getOption('fullimage_watermark'), false, false);
         }
     }
 }
Ejemplo n.º 3
0
 function pagedthumbsOptions()
 {
     setOptionDefault('pagedthumbs_imagesperpage', '10');
     setOptionDefault('pagedthumbs_counter', '');
     gettext($str = '« prev thumbs');
     setOptionDefault('pagedthumbs_prevtext', getAllTranslations($str));
     gettext($str = 'next thumbs »');
     setOptionDefault('pagedthumbs_nexttext', getAllTranslations($str));
     setOptionDefault('pagedthumbs_width', '50');
     setOptionDefault('pagedthumbs_height', '50');
     setOptionDefault('pagedthumbs_crop', '1');
     setOptionDefault('pagedthumbs_placeholders', '');
     setOptionDefault('pagedthumbs_pagelist', '');
     setOptionDefault('pagedthumbs_pagelistprevnext', '');
     setOptionDefault('pagedthumbs_pagelistlength', '6');
 }
 function __construct()
 {
     if (OFFSET_PATH == 2) {
         setOptionDefault('galleryArticles_images', NULL);
         setOptionDefault('galleryArticles_albums', NULL);
         setOptionDefault('galleryArticles_category', NULL);
         setOptionDefault('galleryArticles_albumCategory', 0);
         $text = gettext('New album: %1$s');
         setOptionDefault('galleryArticles_album_text', getAllTranslations($text));
         $text = gettext('New image: [%2$s]%1$s');
         setOptionDefault('galleryArticles_image_text', getAllTranslations($text));
         setOptionDefault('galleryArticles_size', 80);
         setOptionDefault('galleryArticles_protected', 0);
         cacheManager::deleteThemeCacheSizes('galleryArticles');
         cacheManager::addThemeCacheSize('galleryArticles', getOption('galleryArticles_size'), NULL, NULL, NULL, NULL, NULL, NULL, false, NULL, NULL, NULL);
     }
 }
Ejemplo n.º 5
0
 function __construct()
 {
     if (OFFSET_PATH == 2) {
         setOptionDefault('favorites_multi', 0);
         setOptionDefault('favorites_link', '_PAGE_/favorites');
         gettext($str = 'My favorites');
         setOptionDefault('favorites_title', getAllTranslations($str));
         setOptionDefault('favorites_linktext', getAllTranslations($str));
         gettext($str = 'The albums and images selected as favorites.');
         setOptionDefault('favorites_desc', getAllTranslations($str));
         gettext($str = 'Add favorite');
         setOptionDefault('favorites_add_button', getAllTranslations($str));
         gettext($str = 'Remove favorite');
         setOptionDefault('favorites_remove_button', getAllTranslations($str));
         setOptionDefault('favorites_album_sort_type', 'title');
         setOptionDefault('favorites_image_sort_type', 'title');
         setOptionDefault('favorites_album_sort_direction', '');
         setOptionDefault('favorites_image_sort_direction', '');
     }
 }
 function pagedthumbsOptions()
 {
     if (OFFSET_PATH == 2) {
         setOptionDefault('pagedthumbs_imagesperpage', '10');
         setOptionDefault('pagedthumbs_counter', '');
         gettext($str = '« prev thumbs');
         setOptionDefault('pagedthumbs_prevtext', getAllTranslations($str));
         gettext($str = 'next thumbs »');
         setOptionDefault('pagedthumbs_nexttext', getAllTranslations($str));
         setOptionDefault('pagedthumbs_width', '50');
         setOptionDefault('pagedthumbs_height', '50');
         setOptionDefault('pagedthumbs_crop', '1');
         setOptionDefault('pagedthumbs_placeholders', '');
         setOptionDefault('pagedthumbs_pagelist', '');
         setOptionDefault('pagedthumbs_pagelistprevnext', '');
         setOptionDefault('pagedthumbs_pagelistlength', '6');
         cacheManager::deleteThemeCacheSizes('paged_thumbs_nav');
         cacheManager::addThemeCacheSize('paged_thumbs_nav', NULL, getOption('pagedthumbs_width'), getOption('pagedthumbs_height'), NULL, NULL, NULL, NULL, true, NULL, NULL, NULL);
     }
 }
Ejemplo n.º 7
0
 function __construct()
 {
     global $_zp_authority;
     setOptionDefault('register_user_link', '_PAGE_/register');
     gettext($str = 'You have received this email because you registered with the user id %3$s on this site.' . "\n" . 'To complete your registration visit %1$s.');
     setOptionDefault('register_user_text', getAllTranslations($str));
     gettext($str = 'Click here to register for this site.');
     setOptionDefault('register_user_page_tip', getAllTranslations($str));
     gettext($str = 'Register');
     setOptionDefault('register_user_page_link', getAllTranslations($str));
     setOptionDefault('register_user_captcha', 0);
     setOptionDefault('register_user_email_is_id', 1);
     setOptionDefault('register_user_create_album', 0);
     $mailinglist = $_zp_authority->getAdminEmail(ADMIN_RIGHTS);
     if (count($mailinglist) == 0) {
         //	no one to send the notice to!
         setOption('register_user_notify', 0);
     } else {
         setOptionDefault('register_user_notify', 1);
     }
 }
Ejemplo n.º 8
0
 function contactformOptions()
 {
     global $_zp_authority;
     if (OFFSET_PATH == 2 && !getOption('contactform_mailaddress')) {
         purgeOption('contactform_mailaddress');
     }
     setOptionDefault('contactform_rewrite', '_PAGE_/contact');
     gettext($str = '<p>Fields with <strong>*</strong> are required. HTML or any other code is not allowed.</p>');
     setOptionDefault('contactform_introtext', getAllTranslations($str));
     gettext($str = '<p>Please confirm that you really want to send this email. Thanks.</p>');
     setOptionDefault('contactform_confirmtext', getAllTranslations($str));
     gettext($str = '<p>Thanks for your message.</p>');
     setOptionDefault('contactform_thankstext', getAllTranslations($str));
     gettext($str = 'Send another message.');
     setOptionDefault('contactform_newmessagelink', getAllTranslations($str));
     setOptionDefault('contactform_title', "show");
     setOptionDefault('contactform_name', "required");
     setOptionDefault('contactform_company', "show");
     setOptionDefault('contactform_street', "show");
     setOptionDefault('contactform_city', "show");
     setOptionDefault('contactform_state', "show");
     setOptionDefault('contactform_postal', "show");
     setOptionDefault('contactform_country', "show");
     setOptionDefault('contactform_email', "required");
     setOptionDefault('contactform_website', "show");
     setOptionDefault('contactform_phone', "show");
     setOptionDefault('contactform_captcha', 0);
     setOptionDefault('contactform_confirm', 1);
     setOptionDefault('contactform_sendcopy', 0);
     gettext($str = '<p>A copy of your e-mail will automatically be sent to the address you provided for your own records.</p>');
     setOptionDefault('contactform_sendcopy_text', getAllTranslations($str));
     $mailings = $_zp_authority->getAdminEmail();
     $email_list = '';
     foreach ($mailings as $email) {
         $email_list .= ';' . $email;
     }
     if ($email_list) {
         setOptionDefault('contactform_mailaddress', substr($email_list, 1));
     }
 }
Ejemplo n.º 9
0
    foreach ($changes as $change) {
        echo '<div> ' . $change . '</div>';
    }
    unset($_SESSION['changes']);
}
?>
    <p>
        <?php 
echo __("welcome_message");
?>
    </p>
</div>

<form action="SaveData.php" method="post">
    <?php 
$translations = getAllTranslations();
foreach ($translations as $translation) {
    ?>
        <div><?php 
    echo $translation['text_' . \Models\Localization::LANG_DEFAULT];
    ?>
</div>
        <textarea name="<?php 
    echo $translation['id'];
    ?>
"><?php 
    echo $translation['text_bg'];
    ?>
</textarea>
    <?php 
}
Ejemplo n.º 10
0
$old = @unserialize(getOption('zenphoto_install'));
$from = preg_replace('/\\[.*\\]/', '', $old['ZENPHOTO']);
setOption('zenphoto_install', serialize(installSignature()));
$admins = $_zp_authority->getAdministrators('all');
$str = gettext("What is your father’s middle name?");
$questions[] = getSerializedArray(getAllTranslations($str));
$str = gettext("What street did your Grandmother live on?");
$questions[] = getSerializedArray(getAllTranslations($str));
$str = gettext("Who was your favorite singer?");
$questions[] = getSerializedArray(getAllTranslations($str));
$str = gettext("When did you first get a computer?");
$questions[] = getSerializedArray(getAllTranslations($str));
$str = gettext("How much wood could a woodchuck chuck if a woodchuck could chuck wood?");
$questions[] = getSerializedArray(getAllTranslations($str));
$str = gettext("What is the date of the Ides of March?");
$questions[] = getSerializedArray(getAllTranslations($str));
setOptionDefault('challenge_foils', serialize($questions));
if (empty($admins)) {
    //	empty administrators table
    $groupsdefined = NULL;
    if (isset($_SESSION['clone'][$cloneid])) {
        //replicate the user who cloned the install
        $clone = $_SESSION['clone'][$cloneid];
        setOption('UTF8_image_URI', $clone['UTF8_image_URI']);
        setOption('strong_hash', $clone['strong_hash']);
        setOption('extra_auth_hash_text', $clone['hash']);
        if ($clone['mod_rewrite']) {
            $_GET['mod_rewrite'] = true;
        }
        $_zp_current_admin_obj = unserialize($_SESSION['admin'][$cloneid]);
        $_zp_current_admin_obj->clearID();
Ejemplo n.º 11
0
 function __construct()
 {
     if (OFFSET_PATH == 2) {
         setOptionDefault('zenpage_articles_per_page', '10');
         setOptionDefault('zenpage_text_length', '500');
         setOptionDefault('zenpage_textshorten_indicator', ' (...)');
         gettext($str = 'Read more');
         setOptionDefault('zenpage_read_more', getAllTranslations($str));
         setOptionDefault('zenpage_indexhitcounter', false);
         setOptionDefault('menu_truncate_string', 0);
         setOptionDefault('menu_truncate_indicator', '');
         setOptionDefault('zenpage_enabled_items', 3);
     }
 }
    if (empty($data['gallery_sorttype'])) {
        $data['gallery_sorttype'] = 'ID';
    }
}
if (!isset($data['gallery_title'])) {
    $data['gallery_title'] = getOption('gallery_title');
    if (is_null($data['gallery_title'])) {
        gettext($str = "Gallery");
        $data['gallery_title'] = getAllTranslations($str);
    }
}
if (!isset($data['Gallery_description'])) {
    $data['Gallery_description'] = getOption('Gallery_description');
    if (is_null($data['Gallery_description'])) {
        gettext($str = 'You can insert your Gallery description on the Admin Options Gallery tab.');
        $data['Gallery_description'] = getAllTranslations($str);
    }
}
if (!isset($data['gallery_password'])) {
    $data['gallery_password'] = getOption('gallery_password');
}
if (!isset($data['gallery_user'])) {
    $data['gallery_user'] = getOption('gallery_user');
}
if (!isset($data['gallery_hint'])) {
    $data['gallery_hint'] = getOption('gallery_hint');
}
if (!isset($data['hitcounter'])) {
    $data['hitcounter'] = $result = getOption('Page-Hitcounter-index');
}
if (!isset($data['current_theme'])) {
Ejemplo n.º 13
0
<?php

require_once '../functions/functions.php';
if ($user->id && in_array($user->id, $ocp_allowed_user_for_translation)) {
    # access allowed
} else {
    checkMinGroup(3);
}
if (is_array($_POST) && count($_POST)) {
    foreach ($_POST as $k => $v) {
        if (preg_match('#translation_(\\d+)#', $k, $matches)) {
            $id = $matches[1];
            updateTranslation($id, $v);
        }
    }
    addInfoMessage('Translations updated.');
}
$translations = getAllTranslations($user->ui->language);
$smarty->assign('translations', $translations);
smarty_display('translations');