'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( '
%4$s
', $row_ID, spyropress_clean_cssclass( $section_class ) , get_row_class( true ), builder_render_frontend_columns( $row['columns'] ),$parallax,$animations ); return $row_html; } add_filter( 'spyropress_builder_row_wrapper', 'spyropress_row_wrapper', 10, 2 ); /** * Include Widgets */ function spyropress_register_widgets( $widgets ) { $path = dirname(__FILE__) . '/widgets/'; $custom = array( $path . 'default-widgets.php', $path . 'contact-us/contact-us.php', $path . 'text/text.php', ); return array_merge( $widgets, $custom ); } add_filter( 'spyropress_register_widgets', 'spyropress_register_widgets' ); /** * Comment Callback */ if( !function_exists( 'spyropress_comment' ) ) : function spyropress_comment( $comment, $args, $depth ) { $translate['translate-comment-reply'] = get_setting( 'translate' ) ? get_setting( 'translate-comment-reply', 'Reply' ) : __( 'Reply', 'spyropress' ); $GLOBALS['comment'] = $comment; switch ( $comment->comment_type ) : case 'pingback' : case 'trackback' : ?>

', '' ); ?>

id="li-comment-" class="comment">
$depth, 'reply_text' => $translate['translate-comment-reply'], 'max_depth' => $args['max_depth'], ) ) ); ?>
comment_approved == '0' ) { ?>
' . preg_replace( '/(width|height|frameborder)="\d*"\s/', "", $html ) . ''; } //add_filter ( 'embed_oembed_html', 'oembed_modifier', 99 ); //add_filter ( 'oembed_result', 'oembed_modifier' ); function remove_more_link_scroll( $link ) { $link = preg_replace( '|#more-[0-9]+|', '', $link ); return $link; } add_filter( 'the_content_more_link', 'remove_more_link_scroll' ); add_filter( 'the_content_more_link', 'modify_read_more_link' ); function modify_read_more_link() { return ''. __( 'Continue reading ', 'spyropress' ) .''; } ?>