/**
  * Magic __construct
  * @since 0.1.0
  */
 public function __construct()
 {
     Pootle_Page_Builder_Render_Layout::$instance = $this;
     /* Main content filter */
     add_filter('the_content', array($this, 'content_filter'));
     //Row custom styles
     require_once POOTLEPB_DIR . 'inc/class-custom-styles.php';
     /* Puts stuff in row */
     add_action('pootlepb_before_row', array($this, 'row_accordion'));
     add_action('pootlepb_before_cells', array($this, 'row_embed_css'), 10, 2);
     add_filter('pootlepb_row_cell_attributes', array($this, 'row_animation'), 10, 4);
     /* Embed styles */
     add_action('pootlepb_row_embed_style', array($this, 'row_col_gutter'), 10, 3);
     add_action('pootlepb_row_embed_style', array($this, 'row_overlay'), 10, 3);
 }
Example #2
0
                     * @param array $widget_info - Info for this block - backwards compatible with widgets
                     * @param int   $gi          - Grid Index
                     * @param int   $ci          - Cell Index
                     * @param int   $pi          - Panel/Content Block Index
                     * @param int   $blocks_num  - Total number of Blocks in cell
                     * @param int   $post_id     - The current post ID
                     */
                    do_action('ppb_panels_render_content_block', $widget_info, $gi, $ci, $pi, count($widgets), $post_id);
                }
                if (empty($widgets)) {
                    echo ' ';
                }
                echo '</div>';
            }
            echo "</div>";
            echo '</div>';
            if (!empty($style_attributes)) {
                echo '</div>';
            }
            // This allows other themes and plugins to add html after the row
            echo apply_filters('siteorigin_panels_after_row', '', $panels_data['grids'][$gi]);
        }
        $html = ob_get_clean();
        // Reset the current post
        $siteorigin_panels_current_post = $old_current_post;
        return apply_filters('siteorigin_panels_render', $html, $post_id, null);
    }
}
//Instantiating Pootle_Page_Builder_Render_Layout class
Pootle_Page_Builder_Render_Layout::instance();