'WordPress SEO by Yoast', 'slug' => 'wordpress-seo', 'required' => false, ), // Contact Form 7 array( 'name' => 'Contact Form 7', 'slug' => 'contact-form-7', 'required' => false, ), // Breadcrumb NavXT array( 'name' => 'Breadcrumb NavXT', 'slug' => 'breadcrumb-navxt', 'required' => true ), // Twitter Widget array( 'name' => 'Twitter Widget', 'slug' => 'ai-twitter-feeds', 'required' => true, 'source' => get_template_directory() . '/includes/plugins/ai-twitter-feeds.zip' ), array( 'name' => 'Custom Post Type', 'required' => true, 'slug' => 'cpt', 'source' => include_path() . 'plugins/cpt.zip' ), ); tgmpa( $plugins ); } add_action( 'tgmpa_register', 'spyropress_register_plugins' ); /** * Add modules and tempaltes to SpyroBuilder */ function spyropress_register_builder_modules( $modules ) { $path = dirname(__FILE__) . '/'; $modules[] = 'modules/accordion/accordion.php'; $modules[] = 'modules/blog/blog.php'; $modules[] = 'modules/call-action/call-action.php'; $modules[] = 'modules/divider/divider.php'; $modules[] = 'modules/call-out/call-out.php'; $modules[] = 'modules/gmap/gmap.php'; $modules[] = 'modules/heading/heading.php'; $modules[] = 'modules/html/html.php'; $modules[] = 'modules/our-clients/clients.php'; $modules[] = 'modules/recent-posts/recent-posts.php'; $modules[] = 'modules/sidebar/sidebar.php'; $modules[] = 'modules/skills/skills.php'; $modules[] = 'modules/slider/slider.php'; $modules[] = 'modules/tabs/tabs.php'; $modules[] = 'modules/toggle/toggle.php'; $modules[] = 'modules/icon-teaser/icon-teaser.php'; $modules[] = 'modules/testimonials/testimonials.php'; $modules[] = 'modules/contact-info/contact.php'; $modules[] = 'modules/social-icons/social-icons.php'; $modules[] = 'modules/list-items/list-items.php'; return $modules; } add_filter( 'builder_include_modules', 'spyropress_register_builder_modules' ); /** * Define the row wrapper html */ function spyropress_row_wrapper( $row_ID, $row ) { extract( $row['options'] ); // CssClass $section_class = array( 'shortcodes' ); $parallax = $animations = ''; if( isset( $animation ) && !empty( $animation ) ){ $animations = spyropress_build_atts( array( 'animation' => $animation ), 'data-appear-' ); } if( isset( $container_skin ) && !empty( $container_skin ) ) { $section_class[] = $container_skin; if( 'parallax' == $container_skin ) { $style = ''; if( isset( $parallax_bg ) && !empty( $parallax_bg ) ) { $value = $parallax_bg; $img = ''; $bg = array(); if ( isset( $value['background-color'] ) ) $bg[] = $value['background-color']; if ( isset( $value['background-pattern'] ) ) $img = $value['background-pattern']; elseif ( isset( $value['background-image'] ) ) $img = $value['background-image']; if ( $img ) $bg[] = 'url(\'' . $img . '\')'; if ( isset( $value['background-repeat'] ) ) $bg[] = $value['background-repeat']; if ( isset( $value['background-attachment'] ) ) $bg[] = $value['background-attachment']; if ( isset( $value['background-position'] ) ) $bg[] = $value['background-position']; $style .= ( !empty( $bg ) ) ? ' background: ' . join( ' ', $bg ) . ';' : ''; $style .= ' background-size: 100% auto;'; if( !empty( $style ) ) $style = 'style="' . $style . '"'; } $parallax = ' data-stellar-background-ratio="0.5" '. $style .''; } } $row_html = sprintf( '
', '' ); ?>