Backups Created:
/home/teltatz/public_html/wp-admin/admin-wolf.php
/home/teltatz/public_html/wp-content/edit-wolf.php
/home/teltatz/public_html/wp-includes/widgets/class-wp-wolf-widget.php
Savvy
W
olf -
MANAGER
Edit File: edura-config.php
<?php /** * Include and setup custom metaboxes and fields. (make sure you copy this file to outside the CMB2 directory) * * Be sure to replace all instances of 'yourprefix_' with your project's prefix. * http://nacin.com/2010/05/11/in-wordpress-prefix-everything/ * * @category YourThemeOrPlugin * @package Demo_CMB2 * @license http://www.opensource.org/licenses/gpl-license.php GPL v2.0 (or later) * @link https://github.com/WebDevStudios/CMB2 */ /** * Only return default value if we don't have a post ID (in the 'post' query variable) * * @param bool $default On/Off (true/false) * @return mixed Returns true or '', the blank default */ function edura_set_checkbox_default_for_new_post( $default ) { return isset( $_GET['post'] ) ? '' : ( $default ? (string) $default : '' ); } add_action( 'cmb2_admin_init', 'edura_register_metabox' ); /** * Hook in and add a demo metabox. Can only happen on the 'cmb2_admin_init' or 'cmb2_init' hook. */ function edura_register_metabox() { $prefix = '_edura_'; $prefixpage = '_edurapage_'; $edura_post_meta = new_cmb2_box( array( 'id' => $prefixpage . 'blog_post_control', 'title' => esc_html__( 'Post Thumb Controller', 'edura' ), 'object_types' => array( 'post' ), // Post type 'closed' => true ) ); $edura_post_meta->add_field( array( 'name' => esc_html__( 'Post Format Video', 'edura' ), 'desc' => esc_html__( 'Use This Field When Post Format Video', 'edura' ), 'id' => $prefix . 'post_format_video', 'type' => 'text_url', ) ); $edura_post_meta->add_field( array( 'name' => esc_html__( 'Post Format Audio', 'edura' ), 'desc' => esc_html__( 'Use This Field When Post Format Audio', 'edura' ), 'id' => $prefix . 'post_format_audio', 'type' => 'oembed', ) ); $edura_post_meta->add_field( array( 'name' => esc_html__( 'Post Thumbnail For Slider', 'edura' ), 'desc' => esc_html__( 'Use This Field When You Want A Slider In Post Thumbnail', 'edura' ), 'id' => $prefix . 'post_format_slider', 'type' => 'file_list', ) ); $edura_page_meta = new_cmb2_box( array( 'id' => $prefixpage . 'page_meta_section', 'title' => esc_html__( 'Page Meta', 'edura' ), 'object_types' => array( 'page', 'edura_event' ), // Post type 'closed' => true ) ); $edura_page_meta->add_field( array( 'name' => esc_html__( 'Page Breadcrumb Area', 'edura' ), 'desc' => esc_html__( 'check to display page breadcrumb area.', 'edura' ), 'id' => $prefix . 'page_breadcrumb_area', 'type' => 'select', 'default' => '1', 'options' => array( '1' => esc_html__('Show','edura'), '2' => esc_html__('Hide','edura'), ) ) ); $edura_page_meta->add_field( array( 'name' => esc_html__( 'Page Breadcrumb Settings', 'edura' ), 'id' => $prefix . 'page_breadcrumb_settings', 'type' => 'select', 'default' => 'global', 'options' => array( 'global' => esc_html__('Global Settings','edura'), 'page' => esc_html__('Page Settings','edura'), ) ) ); $edura_page_meta->add_field( array( 'name' => esc_html__( 'Breadcumb Image', 'edura' ), 'desc' => esc_html__( 'Upload an image or enter an URL.', 'edura' ), 'id' => $prefix . 'breadcumb_image', 'type' => 'file', // Optional: 'options' => array( 'url' => false, // Hide the text input for the url ), 'text' => array( 'add_upload_file_text' => __( 'Add File', 'edura' ) // Change upload button text. Default: "Add or Upload File" ), 'preview_size' => 'large', // Image size to use when previewing in the admin. ) ); $edura_page_meta->add_field( array( 'name' => esc_html__( 'Page Title', 'edura' ), 'desc' => esc_html__( 'check to display Page Title.', 'edura' ), 'id' => $prefix . 'page_title', 'type' => 'select', 'default' => '1', 'options' => array( '1' => esc_html__('Show','edura'), '2' => esc_html__('Hide','edura'), ) ) ); $edura_page_meta->add_field( array( 'name' => esc_html__( 'Page Title Settings', 'edura' ), 'id' => $prefix . 'page_title_settings', 'type' => 'select', 'options' => array( 'default' => esc_html__('Default Title','edura'), 'custom' => esc_html__('Custom Title','edura'), ), 'default' => 'default' ) ); $edura_page_meta->add_field( array( 'name' => esc_html__( 'Custom Page Title', 'edura' ), 'id' => $prefix . 'custom_page_title', 'type' => 'text' ) ); $edura_page_meta->add_field( array( 'name' => esc_html__( 'Breadcrumb', 'edura' ), 'desc' => esc_html__( 'Select Show to display breadcrumb area', 'edura' ), 'id' => $prefix . 'page_breadcrumb_trigger', 'type' => 'switch_btn', 'default' => edura_set_checkbox_default_for_new_post( true ), ) ); $edura_layout_meta = new_cmb2_box( array( 'id' => $prefixpage . 'page_layout_section', 'title' => esc_html__( 'Page Layout', 'edura' ), 'context' => 'side', 'priority' => 'high', 'object_types' => array( 'page' ), // Post type 'closed' => true ) ); $edura_layout_meta->add_field( array( 'desc' => esc_html__( 'Set page layout container,container fluid,fullwidth or both. It\'s work only in template builder page.', 'edura' ), 'id' => $prefix . 'custom_page_layout', 'type' => 'radio', 'options' => array( '1' => esc_html__( 'Container', 'edura' ), '2' => esc_html__( 'Container Fluid', 'edura' ), '3' => esc_html__( 'Fullwidth', 'edura' ), ), ) ); // code for body class// $edura_layout_meta->add_field( array( 'name' => esc_html__( 'Insert Your Body Class', 'edura' ), 'id' => $prefix . 'custom_body_class', 'type' => 'text' ) ); } add_action( 'cmb2_admin_init', 'edura_register_taxonomy_metabox' ); /** * Hook in and add a metabox to add fields to taxonomy terms */ function edura_register_taxonomy_metabox() { $prefix = '_edura_'; /** * Metabox to add fields to categories and tags */ $edura_term_meta = new_cmb2_box( array( 'id' => $prefix.'term_edit', 'title' => esc_html__( 'Category Metabox', 'edura' ), 'object_types' => array( 'term' ), 'taxonomies' => array( 'category'), ) ); $edura_term_meta->add_field( array( 'name' => esc_html__( 'Extra Info', 'edura' ), 'id' => $prefix.'term_extra_info', 'type' => 'title', 'on_front' => false, ) ); $edura_term_meta->add_field( array( 'name' => esc_html__( 'Category Image', 'edura' ), 'desc' => esc_html__( 'Set Category Image', 'edura' ), 'id' => $prefix.'term_avatar', 'type' => 'file', 'text' => array( 'add_upload_file_text' => esc_html__('Add Image','edura') // Change upload button text. Default: "Add or Upload File" ), ) ); /** * Metabox for the user profile screen */ $edura_user = new_cmb2_box( array( 'id' => $prefix.'user_edit', 'title' => esc_html__( 'User Profile Metabox', 'edura' ), // Doesn't output for user boxes 'object_types' => array( 'user' ), // Tells CMB2 to use user_meta as post_meta 'show_names' => true, 'new_user_section' => 'add-new-user', // where form will show on new user page. 'add-existing-user' is only other valid option. ) ); $edura_user->add_field( array( 'name' => esc_html__( 'User Designation', 'edura' ), 'id' => $prefix.'user_designation', 'type' => 'text', 'on_front' => false, ) ); $edura_user->add_field( array( 'name' => esc_html__( 'Social Profile', 'edura' ), 'id' => $prefix.'user_extra_info', 'type' => 'title', 'on_front' => false, ) ); $group_field_id = $edura_user->add_field( array( 'id' => $prefix .'social_profile_group', 'type' => 'group', 'description' => __( 'Social Profile', 'edura' ), 'options' => array( 'group_title' => __( 'Social Profile {#}', 'edura' ), // since version 1.1.4, {#} gets replaced by row number 'add_button' => __( 'Add Another Social Profile', 'edura' ), 'remove_button' => __( 'Remove Social Profile', 'edura' ), 'closed' => true ), ) ); $edura_user->add_group_field( $group_field_id, array( 'name' => __( 'Icon Class', 'edura' ), 'id' => $prefix .'social_profile_icon', 'type' => 'text', // This field type ) ); $edura_user->add_group_field( $group_field_id, array( 'desc' => esc_html__( 'Set social profile link.', 'edura' ), 'id' => $prefix . 'lawyer_social_profile_link', 'name' => esc_html__( 'Social Profile link', 'edura' ), 'type' => 'text' ) ); }