Ejemplo n.º 1
0
    dcPage::open(__('Blog appearance'), dcPage::jsPageTabs() . dcPage::jsColorPicker() . $core->callBehavior('themesToolsHeaders', $core, true), dcPage::breadcrumb(array(html::escapeHTML($core->blog->name) => '', __('Blog appearance') => $list->getURL('', false), '<span class="page-title">' . __('Theme configuration') . '</span>' => '')));
    # Display previously gathered content
    $list->displayConfiguration();
    dcPage::helpBlock('core_blog_theme_conf');
    dcPage::close();
    # Stop reading code here
    return;
}
# -- Execute actions --
try {
    $list->doActions();
} catch (Exception $e) {
    $core->error->add($e->getMessage());
}
# -- Page header --
dcPage::open(__('Themes management'), dcPage::jsLoad('js/_blog_theme.js') . dcPage::jsPageTabs() . dcPage::jsColorPicker() . $core->callBehavior('themesToolsHeaders', $core, false), dcPage::breadcrumb(array(html::escapeHTML($core->blog->name) => '', '<span class="page-title">' . __('Blog appearance') . '</span>' => '')));
# -- Display modules lists --
if ($core->auth->isSuperAdmin()) {
    # Updated modules from repo
    $modules = $list->store->get(true);
    if (!empty($modules)) {
        echo '<div class="multi-part" id="update" title="' . html::escapeHTML(__('Update themes')) . '">' . '<h3>' . html::escapeHTML(__('Update themes')) . '</h3>' . '<p>' . sprintf(__('There is one theme to update available from repository.', 'There are %s themes to update available from repository.', count($modules)), count($modules)) . '</p>';
        $list->setList('theme-update')->setTab('themes')->setModules($modules)->displayModules(array('checkbox', 'name', 'sshot', 'desc', 'author', 'version', 'current_version', 'parent'), array('update', 'delete'));
        echo '<p class="info vertical-separator">' . sprintf(__("Visit %s repository, the resources center for Dotclear."), '<a href="http://themes.dotaddict.org/galerie-dc2/">Dotaddict</a>') . '</p>' . '</div>';
    }
}
# Activated modules
$modules = $list->modules->getModules();
if (!empty($modules)) {
    echo '<div class="multi-part" id="themes" title="' . __('Installed themes') . '">' . '<h3>' . __('Installed themes') . '</h3>' . '<p>' . __('You can configure and manage installed themes from this list.') . '</p>';
    $list->setList('theme-activate')->setTab('themes')->setModules($modules)->displayModules(array('sshot', 'distrib', 'name', 'config', 'desc', 'author', 'version', 'parent'), array('select', 'behavior', 'deactivate', 'delete'));
Ejemplo n.º 2
0
    } catch (Exception $e) {
        $core->error->add($e->getMessage());
    }
}
?>
<html>
<head>
  <title><?php 
echo __('Blowup configuration');
?>
</title>
  <?php 
echo dcPage::jsLoad(dcPage::getPF('blowupConfig/config.js'));
?>
  <?php 
echo dcPage::jsColorPicker();
?>
  <script type="text/javascript">
  //<![CDATA[
  <?php 
echo dcPage::jsVar('dotclear.blowup_public_url', blowupConfig::imagesURL());
echo dcPage::jsVar('dotclear.msg.predefined_styles', __('Predefined styles'));
echo dcPage::jsVar('dotclear.msg.apply_code', __('Apply code'));
echo dcPage::jsVar('dotclear.msg.predefined_style_title', __('Choose a predefined style'));
?>
  //]]>
  </script>
</head>

<body>
<?php 
Ejemplo n.º 3
0
    if ($has_css) {
        $res .= '<a class="theme-css" href="' . $theme_url . '/style.css">' . __('Stylesheet') . '</a>';
    }
    $res .= '</p>';
    $res .= '</div>' . '<div class="theme-actions">';
    if ($current && $has_conf) {
        $res .= '<p><a href="blog_theme.php?conf=1" class="button">' . __('Theme configuration') . '</a></p>';
    }
    if ($current) {
        # --BEHAVIOR-- adminCurrentThemeDetails
        $res .= $core->callBehavior('adminCurrentThemeDetails', $core, $id, $details);
    }
    $res .= '</div>' . '</div>';
    return $res;
}
dcPage::open(__('Blog themes'), dcPage::jsLoad('js/_blog_theme.js') . dcPage::jsPageTabs($default_tab) . dcPage::jsColorPicker());
if (!$theme_conf_mode) {
    echo '<h2>' . html::escapeHTML($core->blog->name) . ' &rsaquo; ' . __('Blog aspect') . '</h2>';
    if (!empty($_GET['upd'])) {
        echo '<p class="message">' . __('Theme has been successfully changed.') . '</p>';
    }
    if (!empty($_GET['added'])) {
        echo '<p class="message">' . ($_GET['added'] == 2 ? __('Theme has been successfully upgraded') : __('Theme has been successfully installed.')) . '</p>';
    }
    if (!empty($_GET['del'])) {
        echo '<p class="message">' . __('Theme has been successfully deleted.') . '</p>';
    }
    if ($can_install) {
        echo '<p><strong>' . sprintf(__('You can find additional themes for your blog on %s.'), '<a href="http://themes.dotaddict.org/galerie-dc2/">Dotaddict</a>') . '</strong> ' . __('To install or upgrade a theme you generally just need to upload it ' . 'in "Install or upgrade a theme" section.') . '</p>';
    }
    # Themes list