Esempio n. 1
0
 /**
  * The public code for the shortcode
  *
  * @access public
  * @param array $atts
  * @return shortcode output
  */
 public static function render($atts)
 {
     global $mvb_metro_factory;
     $load = $atts;
     $load['no_of_posts'] = isset($load['no_of_posts']) ? $load['no_of_posts'] : '';
     $no_of_panels = $load['no_of_posts'];
     if ($no_of_panels == 0 or $no_of_panels > 12) {
         return;
     }
     $load['column_number'] = mvb_num_to_string(12 / $no_of_panels);
     $load['sizes'] = mvb_foundation_columns(ceil($mvb_metro_factory->no_of_columns / $no_of_panels));
     return $mvb_metro_factory->_load_view('html/public/mvb_recent_news.php', $load);
 }
 /**
  * The public code for the shortcode
  *
  * @access public
  * @param array $atts
  * @return shortcode output
  */
 public static function render($atts, $content = null)
 {
     global $mvb_metro_factory;
     $load = $atts;
     $load['r_items'] = $mvb_metro_factory->do_repeater_shortcode($content);
     $no_of_panels = count($load['r_items']);
     if ($no_of_panels == 0 or $no_of_panels > 12) {
         return;
     }
     foreach ($load['r_items'] as $k => $row) {
         # Alignment
         $load['r_items'][$k]['alignment'] = 1;
         // Align left
         if (empty($load['r_items'][$k]['read_more_text'])) {
             $load['r_items'][$k]['read_more_text'] = __('Read more', 'dfd');
         }
     }
     $load['few_rows'] = 0;
     $load['module_class'] = '';
     $load['box_hover_with_class'] = 'feature-box-wrap-tiles';
     $load['icon_over_title'] = true;
     $load['icon_class'] = '';
     $load['column_number'] = mvb_num_to_string(12 / $no_of_panels);
     $load['sizes'] = mvb_foundation_columns(ceil($mvb_metro_factory->no_of_columns / $no_of_panels));
     return $mvb_metro_factory->_load_view('html/public/mvb_presentation_boxes.php', $load);
 }
Esempio n. 3
0
 /**
  * The public code for the shortcode
  *
  * @access public
  * @param array $atts
  * @return shortcode output
  */
 public static function render($atts, $content = null)
 {
     global $mvb_metro_factory;
     $load = $atts;
     $load['r_items'] = $mvb_metro_factory->do_repeater_shortcode($content);
     $load['image_format'] = isset($load['image_format']) ? $load['image_format'] : '';
     $load['sizes'] = isset($load['sizes']) ? $load['sizes'] : '';
     $load['sizes'] = mvb_foundation_columns($mvb_metro_factory->no_of_columns);
     $load['image_height'] = mvb_image_formats($load['image_format'], $load['sizes']);
     $_nfc = floor(12 / $load['no_of_columns_photos']);
     $load['_css_no_of_columns'] = mvb_num_to_string($_nfc);
     $i = 0;
     $_tags_by_id = array();
     $_tags = array();
     if (isset($load['isotope_filtering']) && $load['isotope_filtering']) {
         $_sh_js = array('depends' => array('jquery'), 'js' => array('mvb_isotope' => $mvb_metro_factory->app_url . '/assets/js/isotope/isotope.min.js'));
         if (is_array($load['r_items']) and !empty($load['r_items'])) {
             foreach ($load['r_items'] as $item) {
                 if (isset($item['gall_tags']) && trim($item['gall_tags']) != '') {
                     $m = array();
                     $tmp = explode(",", $item['gall_tags']);
                     foreach ($tmp as $t) {
                         $san = sanitize_title(trim($t));
                         $m[] = $san;
                         if (!array_key_exists($san, $_tags)) {
                             $_tags[$san] = trim($t);
                         }
                         //endif;
                     }
                     //endforeach;
                     $_tags_by_id[$i] = implode(" ", $m);
                     $i++;
                 }
                 //endif;
             }
             //endforeach;
         }
         //endif;
         $load['_tags'] = $_tags;
         $load['_tags_by_id'] = $_tags_by_id;
         if (!empty($_tags)) {
             $mvb_metro_factory->queue_scripts($_sh_js, __CLASS__);
         }
         //endif;
     }
     //endif;
     return $mvb_metro_factory->_load_view('html/public/mvb_gallery.php', $load);
 }
Esempio n. 4
0
 /**
  * The public code for the shortcode
  *
  * @access public
  * @param array $atts
  * @return shortcode output
  */
 public static function render($atts, $content = null)
 {
     global $mvb_metro_factory;
     $load = $atts;
     $_sh_js = array('js' => array('charts-js' => get_template_directory_uri() . '/assets/js/chart.min.js'));
     $mvb_metro_factory->queue_scripts($_sh_js, __CLASS__);
     $load['r_items'] = $mvb_metro_factory->do_repeater_shortcode($content);
     $load['num_panels'] = count($load['r_items']);
     $no_of_panels = count($load['r_items']);
     if ($no_of_panels == 0 or $no_of_panels > 12) {
         return;
     }
     $load['column_number'] = mvb_num_to_string(12 / $no_of_panels);
     $load['sizes'] = mvb_foundation_columns(ceil($mvb_metro_factory->no_of_columns / $no_of_panels));
     return $mvb_metro_factory->_load_view('html/public/mvb_charts.php', $load);
 }
Esempio n. 5
0
if (!empty($addition_css_styles)) {
    $addition_css_styles = 'style="' . $addition_css_styles . '"';
}
?>

<?php 
$column_number = '';
if (!empty($few_rows)) {
    if (count($r_items) >= 4) {
        $column_number = mvb_num_to_string(3);
    }
} else {
    if (count($r_items) <= 6) {
        $column_number = mvb_num_to_string(ceil(12 / count($r_items)));
    } else {
        $column_number = mvb_num_to_string(2);
    }
}
?>

<div id="<?php 
if (!empty($unique_id)) {
    echo $unique_id;
}
?>
" class="clients_tiles_module module row features_module-eq-height <?php 
echo !empty($css) ? $css : '';
?>
" <?php 
echo $addition_css_styles;
?>
 /**
  * The public code for the shortcode
  *
  * @access public
  * @param array $atts
  * @return shortcode output
  */
 public static function render($atts, $content = null)
 {
     global $mvb_metro_factory;
     $load = $atts;
     $load['r_items'] = $mvb_metro_factory->do_repeater_shortcode($content);
     /*if( $load['link_url'] == '' AND $load['page_id'] > 0 )
       {
           $load['link_url'] = get_page_link($load['page_id']);
       }*/
     //endif;
     $no_of_panels = count($load['r_items']);
     if ($no_of_panels == 0 or $no_of_panels > 12) {
         return;
     }
     $load['column_number'] = mvb_num_to_string(12 / $no_of_panels);
     $load['sizes'] = mvb_foundation_columns(ceil($mvb_metro_factory->no_of_columns / $no_of_panels));
     return $mvb_metro_factory->_load_view('html/public/mvb_presentation_boxes_img.php', $load);
 }
 /**
  * The public code for the shortcode
  *
  * @access public
  * @param array $atts
  * @return shortcode output
  */
 public static function render($atts, $content = null)
 {
     global $mvb_metro_factory;
     $load = $atts;
     $load['r_items'] = $mvb_metro_factory->do_repeater_shortcode($content);
     $no_of_panels = count($load['r_items']);
     if ($no_of_panels == 0 or $no_of_panels > 12) {
         return;
     }
     foreach ($load['r_items'] as $k => $row) {
         # Alignment
         $load['r_items'][$k]['alignment'] = 0;
         // Align top
     }
     $load['few_rows'] = 0;
     $load['module_class'] = 'features_module-eq-height-simple';
     $load['box_hover_with_class'] = 'feature-box-wrap';
     $load['icon_over_title'] = false;
     $load['icon_class'] = 'icon-large';
     $load['column_number'] = mvb_num_to_string(12 / $no_of_panels);
     $load['sizes'] = mvb_foundation_columns(ceil($mvb_metro_factory->no_of_columns / $no_of_panels));
     return $mvb_metro_factory->_load_view('html/public/mvb_presentation_boxes.php', $load);
 }
Esempio n. 8
0
 /**
  * The public code for the shortcode
  *
  * @access public
  * @param array $atts
  * @return shortcode output
  */
 public static function render($atts, $content = null)
 {
     global $mvb_metro_factory;
     $load = $atts;
     $load['r_items'] = $mvb_metro_factory->do_repeater_shortcode($content);
     $no_of_panels = count($load['r_items']);
     if ($no_of_panels > 4) {
         $no_of_panels = 4;
     }
     $load['column_number'] = mvb_num_to_string(ceil(12 / $no_of_panels));
     $load['sizes'] = mvb_foundation_columns(ceil($mvb_metro_factory->no_of_columns / $no_of_panels));
     return $mvb_metro_factory->_load_view('html/public/mvb_our_team.php', $load);
 }
Esempio n. 9
0
 /**
  * The public code for the shortcode
  *
  * @access public
  * @param array $atts
  * @return shortcode output
  */
 public static function render($atts, $content = null)
 {
     global $mvb_metro_factory;
     $load = $atts;
     $load['r_items'] = $mvb_metro_factory->do_repeater_shortcode($content);
     $load['link_url'] = isset($load['link_url']) ? $load['link_url'] : '';
     $load['page_id'] = isset($load['page_id']) ? $load['page_id'] : '';
     if ($load['link_url'] == '' and $load['page_id'] > 0) {
         $load['link_url'] = get_page_link($load['page_id']);
     }
     //endif;
     $no_of_panels = count($load['r_items']);
     $load['column_number'] = mvb_num_to_string(12 / $no_of_panels);
     return $mvb_metro_factory->_load_view('html/public/mvb_clients_tiles.php', $load);
 }
Esempio n. 10
0
 /**
  * The public code for the shortcode
  *
  * @access public
  * @param array $atts
  * @return shortcode output
  */
 public static function render($atts, $content = null)
 {
     //column_text_box
     global $mvb_metro_factory;
     $load = $atts;
     $load['content'] = $content;
     $load['r_items'] = $mvb_metro_factory->do_repeater_shortcode($content);
     foreach ($load['r_items'] as $k => $row) {
         $load['r_items'][$k]['text_columns_class'] = mvb_num_to_string($row['text_columns']);
     }
     //		$load['sizes'] = mvb_foundation_columns($mvb_metro_factory->no_of_columns);
     return $mvb_metro_factory->_load_view('html/public/mvb_multicolumn_text.php', $load);
 }
 /**
  * The public code for the shortcode
  *
  * @access public
  * @param array $atts
  * @return shortcode output
  */
 public static function render($atts, $content = null)
 {
     global $mvb_metro_factory;
     $load = $atts;
     $load['r_items'] = $mvb_metro_factory->do_repeater_shortcode($content);
     $no_of_panels = count($load['r_items']);
     if ($no_of_panels == 0 or $no_of_panels > 12) {
         return;
     }
     $load['module_class'] = '';
     $load['box_hover_with_class'] = 'feature-box-wrap';
     $load['icon_over_title'] = true;
     $load['icon_class'] = '';
     $load['column_number'] = mvb_num_to_string(12 / $no_of_panels);
     $load['sizes'] = mvb_foundation_columns(ceil($mvb_metro_factory->no_of_columns / $no_of_panels));
     return $mvb_metro_factory->_load_view('html/public/mvb_presentation_boxes_polygon.php', $load);
 }