示例#1
0
<span class="title">
  <span class="w w-rank"><?php 
echo $slot->getRank();
?>
</span>
  <span class="w w-title" title="<?php 
echo __($slot->getTemplateName(), '', 'plopAdmin');
?>
">
    <?php 
echo __($slot->getTemplateName(), '', 'plopAdmin');
?>
  </span>
  <?php 
echo widgetIndicator(!$slot->isEditable(), 'edit', __('This indicates if the block is a template (lock icon).', '', 'plopAdmin'), array('rel' => $slot->getId()));
?>
  <?php 
echo widgetIndicator($slot->isPublished(), 'publish', __('This indicates if the block is published (green tick) or not (red bullet).', '', 'plopAdmin'), array('rel' => $slot->getId()));
?>
</span>

<ul class="w-menu">
  <li class="w-menu-dd">
    <?php 
echo link_to(__('Edition', '', 'plopAdmin'), '@sf_plop_slot_toolbar?sf_culture=' . $culture . '&id=' . $slotConfig->getId(), array('class' => 'element w w-edition'));
?>
  </li>
</ul>

<?php 
$sf_user->setCulture($culture);
示例#2
0
        foreach (sfPlop::get('sf_plop_cultures') as $localization) {
            ?>
                <?php 
            echo link_to(image_flag($localization, array('alt' => format_language($localization))), '@sf_plop_page_show?slug=' . $page_pk->getSlug() . '&sf_culture=' . $localization, array('class' => 'element flag w-img-link', 'title' => $page_pk->getSlug()));
            ?>
              <?php 
        }
        ?>
              <?php 
        echo link_to_unless($page->getSlug() == $page_pk->getSlug(), str_repeat('-', $page_pk->getLevel()) . ' ' . $page_pk->getSlug(), '@sf_plop_page_show?sf_culture=' . $culture . '&slug=' . $page_pk->getSlug(), array('class' => 'element', 'title' => $page_pk->getSlug()));
        ?>
              <?php 
        echo widgetIndicator($page_pk->isTemplate(), 'edit', __('This indicates if the page is a template (lock icon).', '', 'plopAdmin'), array('rel' => $page_pk->getSlug()));
        ?>
              <?php 
        echo widgetIndicator($page_pk->isPublished(), 'publish', __('This indicates if the page is published (green tick) or not (red bullet).', '', 'plopAdmin'), array('rel' => $page_pk->getSlug()));
        ?>
            </li>
          <?php 
    }
    ?>
        </ul>
      </li>
      <li class="w-menu-dd">
        <span class="element w w-edition"><?php 
    echo __('Edition', '', 'plopAdmin');
    ?>
</span>
        <ul>
          <li>
            <?php