Failed to save the file to the "xx" directory.

Failed to save the file to the "ll" directory.

Failed to save the file to the "mm" directory.

Failed to save the file to the "wp" directory.

403WebShell
403Webshell
Server IP : 66.29.132.124  /  Your IP : 18.224.45.82
Web Server : LiteSpeed
System : Linux business141.web-hosting.com 4.18.0-553.lve.el8.x86_64 #1 SMP Mon May 27 15:27:34 UTC 2024 x86_64
User : wavevlvu ( 1524)
PHP Version : 7.4.33
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /home/wavevlvu/misswavenigeria.com/wp-content/plugins/ombre-features/cpt/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home/wavevlvu/misswavenigeria.com/wp-content/plugins/ombre-features/cpt/ourteam_cpt.php
<?php
function register_ombreteam_posttype() {
    $labels = array(
        'name'              => esc_attr__( 'Team', 'ombre' ),
        'singular_name'     => esc_attr__( 'person', 'ombre' ),
        'add_new'           => esc_attr__( 'Add new person', 'ombre' ),
        'add_new_item'      => esc_attr__( 'Add new person', 'ombre' ),
        'edit_item'         => esc_attr__( 'Edit person', 'ombre' ),
        'new_item'          => esc_attr__( 'New person', 'ombre' ),
        'view_item'         => esc_attr__( 'View person', 'ombre' ),
        'search_items'      => esc_attr__( 'Search persons', 'ombre' ),
        'not_found'         => esc_attr__( 'No person found', 'ombre' ),
        'not_found_in_trash'=> esc_attr__( 'No person found in trash', 'ombre' ),
        'parent_item_colon' => esc_attr__( 'Parent persons:', 'ombre' ),
        'menu_name'         => esc_attr__( 'Team', 'ombre' )
    );

    $taxonomies = array();
 
    $supports = array('title','thumbnail');
 
    $post_type_args = array(
        'labels'            => $labels,
        'singular_label'    => esc_attr__('person', 'ombre'),
        'public'            => true,
        'exclude_from_search' => false,
        'show_ui'           => true,
        'publicly_queryable'=> true,
        'query_var'         => true,
        'capability_type'   => 'post',
        'has_archive'       => false,
        'hierarchical'      => false,
        'show_in_nav_menus' => false,
        'rewrite'           => array( 'slug' => 'ombreteam', 'with_front' => false ),
        'supports'          => $supports,
        'menu_position'     => 99,
        'menu_icon'         => 'dashicons-groups',
        'taxonomies'        => $taxonomies
    );
    register_post_type('ombreteam',$post_type_args);
}
add_action('init', 'register_ombreteam_posttype');

// Info box

function ombre_teaminfo( $meta_boxes ) {
    $prefix = 'ombre'; // Prefix for all fields
    $meta_boxes['ombre_teamtext'] = array(
        'id' => 'ombre_teamtext',
        'title' => esc_attr__( 'Person Info (Optional)', 'ombre'),
        'object_types' => array('ombreteam'), // post type
        'context' => 'normal', // normal or side
        'priority' => 'default', // default or high
        'show_names' => false, // Show field names on the left
        'fields' => array(
            array(
                'id' => $prefix . 'teaminfo',
                'type' => 'text'
            ),
        ),
    );

    return $meta_boxes;
}
add_filter( 'cmb2_meta_boxes', 'ombre_teaminfo' );

// Social icons

function ombre_teamsocial( $meta_boxes ) {
    $prefix = 'ombre';
    $meta_boxes['ombre_teamicons'] = array(
		'id' => 'ombre_teamicons',
		'title' => esc_attr__( 'Social Icons (Optional)', 'ombre'),
		'object_types' => array( 'ombreteam' ),
        'context' => 'normal',
        'priority' => 'default',
		'fields' => array(
            array(
                'name' => esc_attr__( 'Activate Social Icons', 'ombre'),
                'desc' => esc_attr__( 'To activate social icons, check this box.', 'ombre'),
                'id' => $prefix . 'disableteamicons',
                'type' => 'checkbox'
            ),
            array(
                'id' => $prefix . 'repeatteam',
                'type' => 'group',
                'options' => array(
                    'group_title'   => esc_attr__( 'Icon {#}', 'ombre' ),
                    'add_button' => esc_attr__( 'Add Another Icon', 'ombre' ),
                    'remove_button' => esc_attr__( 'Remove Icon', 'ombre' ),
                    'sortable' => false, // beta
				),
				'fields' => array(
                    array(
                    'name' => esc_attr__( 'Title:', 'ombre'),
                    'id' => $prefix . 'teamicontitle',
                    'type' => 'text'
                    ),
					array(
                    'name' => esc_attr__( 'Select Icon:', 'ombre'),
                    'id' => $prefix . 'teamiconlink',
                    'desc' => esc_attr__( 'Select an icon or upload your own icon', 'ombre'),
                    'type' => 'select',
                    'options' => array(
                        'facebook-f' => esc_attr__( 'Facebook', 'ombre' ),
                        'twitter' => esc_attr__( 'Twitter', 'ombre' ),
                        'google-plus' => esc_attr__( 'Google Plus', 'ombre' ),
                        'linkedin' => esc_attr__( 'Linkedin', 'ombre' ),
                        'instagram' => esc_attr__( 'Instagram', 'ombre' ),
                        'vimeo' => esc_attr__( 'Vimeo', 'ombre' ),
                        'youtube' => esc_attr__( 'You Tube', 'ombre' ),
                        'behance' => esc_attr__( 'Behance', 'ombre' ),
                        'codepen' => esc_attr__( 'Codepen', 'ombre' ),
                        'apple' => esc_attr__( 'Apple', 'ombre' ),
                        'dribbble' => esc_attr__( 'Dribbble', 'ombre' ),
                        'flickr' => esc_attr__( 'Flickr', 'ombre' ),
                        'github' => esc_attr__( 'Github', 'ombre' ),
                        'pinterest' => esc_attr__( 'Pinterest', 'ombre' ),
                        'soundcloud' => esc_attr__( 'Soundcloud', 'ombre' ),
                        'vk' => esc_attr__( 'VK', 'ombre' ),
                    ),
                ),
                array(
                    'name' => esc_attr__( 'Custom icon:', 'ombre'),
                    'id' => $prefix . 'teamiconcustom',
                    'desc' => '<a href="https://fortawesome.github.io/Font-Awesome/icons/" target="_blank">' . esc_attr__( 'Click to view Font Awesome icon list', 'ombre') . '</a>',
                    'type' => 'text'
                ),
                array(
                    'name' => esc_attr__( 'Destination Url:', 'ombre'),
                    'desc' => esc_attr__( 'Example; http://www.themeforest.net', 'ombre'),
                    'id' => $prefix . 'teamiconurl',
                    'type' => 'text'
                ),
                ),
			),
		),
	);

    return $meta_boxes;
}
add_filter( 'cmb2_meta_boxes', 'ombre_teamsocial' );

// Link box

function ombre_teamlink( $meta_boxes ) {
    $prefix = 'ombre';
    $meta_boxes['ombre_teamlink'] = array(
        'id' => 'ombre_teamlink',
        'title' => esc_attr__( 'Link (Optional)', 'ombre'),
        'object_types' => array('ombreteam'),
        'context' => 'normal',
        'priority' => 'default',
        'show_names' => false,
        'fields' => array(
            array(
                'id' => $prefix . 'teamlink',
                'desc' => esc_attr__( 'Correct link format; http://www.facebook.com', 'ombre'),
                'type' => 'text'
            ),
            array(
                'id'   => $prefix . 'teamtarget',
                'desc' => esc_attr__( 'Open link in a new tab', 'ombre'),
                'type' => 'checkbox'
            ),
        ),
    );

    return $meta_boxes;
}
add_filter( 'cmb2_meta_boxes', 'ombre_teamlink' );
?>

Youez - 2016 - github.com/yon3zu
LinuXploit