Ejemplo n.º 1
0
 public function getPlaceholders(BlockInterface $block = null)
 {
     $placeholders = [];
     for ($i = 0; $i < $block->getColumnCount(); $i++) {
         $placeholders[$i] = sprintf('Column %d', $i + 1);
     }
     return $placeholders;
 }
Ejemplo n.º 2
0
 /**
  * @param BlockInterface $block
  *
  * @return array
  */
 public function getGutterStyles(BlockInterface $block)
 {
     $gutterStyles = array();
     if ($block->getColumnCount()) {
         $properties = $block->getProperties();
         if (isset($properties['gutters']) && count($properties['gutters']) > 0) {
             foreach ($properties['gutters'] as $screen => $cols) {
                 foreach ($cols as $col => $span) {
                     $gutterStyles[$col][] = "p-{$screen}-{$span}";
                 }
             }
         }
     }
     return $gutterStyles;
 }