Ejemplo n.º 1
0
                $content['content_key'] = $content_key;
                $sorted_contents[] = $content;
            }
            uasort($sorted_contents, 'drupal_sort_weight');
        }
        ?>
                <?php 
        if (!empty($sorted_contents)) {
            ?>

                  <!-- content -->
                  <?php 
            foreach ($sorted_contents as $content) {
                ?>
                    <?php 
                $content_id = builder_extract_id_key($content['content_key']);
                ?>
                    <div data-contentid="<?php 
                print $content_id;
                ?>
"
                         class="builder-ui-content-wrapper">
                      <div class="builder-ui-content-inner">
                        <!-- content title -->
                        <div
                          class="builder-ui-content-title-wrapper builder-draggable">
                          <div
                            class="builder-ui-action-links builder-ui-content-title-buttons">
                            <?php 
                print $content_actions[$row_id][$column_id][$content_id];
                ?>
Ejemplo n.º 2
0
         $column['bid'] = $builder->bid;
         $columns[] = $column;
     }
     uasort($columns, 'drupal_sort_weight');
 }
 ?>
   <?php 
 if (!empty($columns)) {
     ?>
     <div class="builder-columns-wrapper builder-grid-row">
       <?php 
     $i_column = 1;
     foreach ($columns as $column) {
         ?>
         <?php 
         $column_id = builder_extract_id_key($column['column_key']);
         ?>
         <?php 
         $render_contents = array();
         $contents = array();
         if (!empty($column['contents'])) {
             foreach ($column['contents'] as $content_key => $content) {
                 $content['content_key'] = $content_key;
                 $contents[] = $content;
             }
             uasort($contents, 'drupal_sort_weight');
         }
         if (!empty($contents)) {
             foreach ($contents as $content) {
                 $visiblity = builder_content_check_visiblity_rules($content);
                 if ($visiblity) {
Ejemplo n.º 3
0
">

  <?php 
if (!empty($rows)) {
    ?>
    <div data-bid="<?php 
    print $builder_cache_id;
    ?>
" class="builder-ui-rows-container">
      <?php 
    $i = 0;
    foreach ($rows as $row_key => $row_element) {
        ?>
        <?php 
        $row = $builder->rows[$row_key];
        $row_id = builder_extract_id_key($row_key);
        ?>
        <div class="builder-ui-row-wrapper<?php 
        $i == 0 ? print ' first' : '';
        ?>
" data-bid="<?php 
        print $builder_cache_id;
        ?>
" data-rid="<?php 
        print $row_id;
        ?>
">
          <div class="builder-ui-row-inner">
            <div class="builder-ui-row-action">
              <div class="builder-ui-move"><span class="builder-ui-draggable icon-builder-move"></span></div>
            </div>