<?php if ($theme != $default_theme && $sf_user->isAuthenticated()) { ?> <?php use_plop_theme(sfPlop::getAdminTheme($sf_user->getProfile()->getTheme(), false) . ' ' . $theme, $theme); } elseif ($theme != $default_theme) { ?> <?php use_plop_theme($theme, $theme); } ?> <form class="w-form w-form-i"> <h2> <strong><?php echo __('Theme switcher'); ?> </strong> <?php echo __('Change the theme of the page by choosing another one'); ?> </h2> <?php include_partial('sfPlopCMS/form_fields', array('form' => $form)); ?> <div class="form-row form-row-buttons"> <input type="submit" value="<?php
<?php if ($sf_user->isAuthenticated()) { ?> <?php use_plop_theme(($page->isRoot() ? ' root' : null) . ' ' . $page->getTheme() . (sfPlop::get('sf_plop_use_image_zoom') == true ? ' img-zoom' : null) . sfPlop::getAdminTheme($sf_user->getProfile()->getTheme(), $sf_user->isAuthenticated())); ?> <?php } else { ?> <?php use_plop_theme(($page->isRoot() ? ' root' : null) . ' ' . $page->getTheme() . (sfPlop::get('sf_plop_use_image_zoom') == true ? ' img-zoom' : null)); ?> <?php } ?> <?php $user_culture = $sf_user->isAuthenticated() ? $sf_user->getProfile()->getCulture() : $culture; $sf_user->setCulture($user_culture); ?> <?php if (!$sf_request->isXmlHttprequest() && $isUserAdmin) { ?> <?php
<?php use_plop_theme(sfPlop::getAdminTheme($sf_user->getProfile()->getTheme(), true, true), $tmp_theme ? $tmp_theme : null); ?> <?php slot('sf_plop_admin'); ?> <?php include_partial('sfPlopDashboard/toolbarDashboard', array('tabs' => $tabs, 'sub' => $sub)); end_slot(); ?> <<?php echo html5Tag('section'); ?> class="section lcr RichText"> <div class="w-block content RichText"> <?php if (isset($use_theme)) { ?> <p> <?php echo __('You have chosen the theme : "%s".', array('%s' => content_tag('strong', $use_theme)), 'plopAdmin'); ?> </p> <?php } ?>