$value) { $existing_options[$key] = '0'; } update_option('ebor_framework_options', $existing_options); } //Ebor Framework $framework_args = array( 'portfolio_post_type' => '1', 'options' => '1' ); update_option('ebor_framework_options', $framework_args); } /** * Only call this action when we first activate the theme. */ if ( is_admin() && isset( $_GET['activated'] ) && $pagenow == 'themes.php' || is_admin() && isset( $_GET['theme'] ) && $pagenow == 'customize.php' ){ add_action( 'after_setup_theme', 'ebor_init_theme_options', 1 ); } } /** * Register the required plugins for this theme. * * @since 1.0.0 * @author tommusrhodus */ if(!( function_exists('ebor_register_required_plugins') )){ function ebor_register_required_plugins() { $plugins = array( array( 'name' => esc_html__('Contact Form 7', 'brad'), 'slug' => 'contact-form-7', 'required' => false, 'version' => '3.7.2' ), array( 'name' => esc_html__('Custom Metaboxes 2', 'brad'), 'slug' => 'cmb2', 'required' => true, 'version' => '1.0.0' ), array( 'name' => esc_html__('One Click Demo Import', 'brad'), 'slug' => 'one-click-demo-import', 'required' => false, 'version' => '1.0.0' ), array( 'name' => esc_html__('Elementor Page Builder', 'brad'), 'slug' => 'elementor', 'required' => false, 'version' => '1.0.0' ), array( 'name' => esc_html__('Ebor Framework', 'brad'), 'slug' => 'Ebor-Framework-master', 'source' => 'https://github.com/tommusrhodus/ebor-framework/archive/master.zip', 'required' => true, 'version' => '1.4.4', 'external_url' => 'https://github.com/tommusrhodus/ebor-framework/archive/master.zip', ) ); $config = array( 'is_automatic' => true, ); tgmpa( $plugins, $config ); } add_action( 'tgmpa_register', 'ebor_register_required_plugins' ); } /** * Custom Comment Markup for brad * * @since 1.0.0 * @author tommusrhodus */ if(!( function_exists('ebor_custom_comment') )){ function ebor_custom_comment($comment, $args, $depth) { $GLOBALS['comment'] = $comment; ?>
  • id="comment-">
    comment_author_email, 70 ); ?>
    comment_approved == '0') : ?>

    $depth, 'max_depth' => $args['max_depth']))); ?>