Sindbad~EG File Manager
<?php
/*
* Security : blocking direct access
* Source : http://codex.wordpress.org/Theme_Development#Template_Files
*/
defined('ABSPATH') or die("Access Restricted");
$source_name = mwp_option('source_name');
$source_link = mwp_option('source_link');
$author_name = mwp_option('author_name');
$author_photo = mwp_option('author_photo');
$video_duration = mwp_option('video_duration');
$metaboxes = array(
'page_layout' => array(
'title' => __('NewsBT - Metabox', MWP_TEXT_DOMAIN),
'context' => 'normal',
'priority' => 'high',
'tabs' => array(
'general' => array(
'title' => __('General', MWP_TEXT_DOMAIN),
'fields' => array(
'title_post_seconde' => array(
'title' => __('Second Post Title', MWP_TEXT_DOMAIN),
'type' => 'text',
'description' => __( 'display custom title under post title', MWP_TEXT_DOMAIN ),
'size' => '',
'std' => ''
),
'single_full_width' => array(
'title' => __('Remove Sidebar', MWP_TEXT_DOMAIN),
'type' => 'checkbox',
'description' => __( 'remove sidebar from current post', MWP_TEXT_DOMAIN ),
'size' => '',
'std' => 0
),
'_seo_scrap' => array(
'title' => __('Facebook Open Graph Debugger', MWP_TEXT_DOMAIN),
'description' => __( 'Note : you can fetch new scrape information only when post is published', MWP_TEXT_DOMAIN ),
'type' => 'custom-button',
'std' => ''
),
'_google_amp_cache' => array(
'title' => __('Generate AMP Cache URL', MWP_TEXT_DOMAIN),
'description' => __( 'Note : this option work only if you use amp pages and current post must be published', MWP_TEXT_DOMAIN ),
'type' => 'generate-amp-cache',
'std' => ''
),
'thumbnail_hide' => array(
'title' => __('Hide Post Thumbnail', MWP_TEXT_DOMAIN),
'type' => 'checkbox',
'description' => __( 'if you wante to remove thumbnail for the current post just check this option', MWP_TEXT_DOMAIN ),
'size' => '',
'std' => 0
),
'slider_select' => array(
'title' => __('Display This Post in Silder', MWP_TEXT_DOMAIN),
'type' => 'checkbox',
'description' => __( 'work only if you select in slider options "Display From NewsBT MetaBox" ', MWP_TEXT_DOMAIN ),
'size' => '',
'std' => 0
),
'newsbar_select' => array(
'title' => __('Display This Post in Newsbar', MWP_TEXT_DOMAIN),
'type' => 'checkbox',
'description' => __( 'work only if you select in newsbar options "Display From NewsBT MetaBox" ', MWP_TEXT_DOMAIN ),
'size' => '',
'std' => 0
),
'editors_picks' => array(
'title' => __('Display This Post in Widegts', MWP_TEXT_DOMAIN),
'type' => 'checkbox',
'description' => __( "work only with widget options : Editors' Picks - Metabox", MWP_TEXT_DOMAIN ),
'size' => '',
'std' => 0
),
'instead_gallery' => array(
'title' => __('Gallery instead of post thumbnail', MWP_TEXT_DOMAIN),
'type' => 'checkbox',
'description' => __( 'if you wante to show gallery for the current post just check this option', MWP_TEXT_DOMAIN ),
'size' => '',
'std' => 0
),
'instead_thumbnail' => array(
'title' => __('Video instead of thumbnail', MWP_TEXT_DOMAIN),
'type' => 'text',
'description' => __( 'Use video id : S6WGfCe-Rfc', MWP_TEXT_DOMAIN ),
'size' => '',
'std' => ''
),
'instead_thumbnail_source' => array(
'title' => __('Source Video instead', MWP_TEXT_DOMAIN),
'type' => 'radio',
'description' => __( 'Select source of Video instead of thumbnail', MWP_TEXT_DOMAIN ),
'std' => '',
'options' => array(
'1' => __( 'Youtube', MWP_TEXT_DOMAIN ),
'2' => __( 'Vimeo', MWP_TEXT_DOMAIN ),
'3' => __( 'Dailymotion', MWP_TEXT_DOMAIN ),
)
),
$video_duration => array(
'title' => __('Video Duration', MWP_TEXT_DOMAIN),
'type' => 'text',
'description' => __( 'Example : 01:30 - Note : work only if post in videos categories', MWP_TEXT_DOMAIN ),
'size' => '',
'std' => ''
),
'html_instead_thumbnail' => array(
'title' => __( 'Custom Code', MWP_TEXT_DOMAIN ),
'description' => __( 'Add HTML code instead of post thumbnail, like video iframe', MWP_TEXT_DOMAIN),
'type' => 'textarea',
'size' => '8',
'std' => ''
),
'readmore_inside_text' => array(
'title' => __('Read More Inside Content', MWP_TEXT_DOMAIN),
'type' => 'text',
'description' => __( 'set custom text instead of default text', MWP_TEXT_DOMAIN ),
'size' => '',
'std' => ''
),
'paragraph_ads' => array(
'title' => __( 'Ad unit Paragraph', MWP_TEXT_DOMAIN ),
'description' => __( 'Display the ad unit after which paragraph', MWP_TEXT_DOMAIN),
'type' => 'text',
'size' => '',
'std' => ''
),
)
),
'seo' => array(
'title' => __('SEO', MWP_TEXT_DOMAIN),
'fields' => array(
'_mwp_schema_disable' => array(
'title' => __( 'Disbale microformat', MWP_TEXT_DOMAIN ),
'description' => __( 'Disbale microformat JSON-LD for the current post', MWP_TEXT_DOMAIN),
'type' => 'checkbox',
'size' => '',
'std' => ''
),
'mwp_seo_title' => array(
'title' => __( 'Title', MWP_TEXT_DOMAIN ),
'description' => __( 'A custom title that shows up in the title tag for this page.', MWP_TEXT_DOMAIN),
'type' => 'text',
'size' => '',
'std' => ''
),
'mwp_seo_desc' => array(
'title' => __( 'Description', MWP_TEXT_DOMAIN ),
'description' => __( 'The META description for this page. This will override any autogenerated descriptions', MWP_TEXT_DOMAIN),
'type' => 'textarea',
'std' => ''
),
'mwp_seo_keywords' => array(
'title' => __( 'Keywords', MWP_TEXT_DOMAIN ),
'description' => __( '(comma separated) comma separated list of your most important keywords for this page that will be written as META keywords', MWP_TEXT_DOMAIN),
'type' => 'text',
'size' => '',
'std' => ''
)
)
),
'social' => array(
'title' => __('Social', MWP_TEXT_DOMAIN),
'fields' => array(
'mwp_social_title' => array(
'title' => __( 'Title', MWP_TEXT_DOMAIN ),
'description' => __( 'A custom title that shows up in social site', MWP_TEXT_DOMAIN),
'type' => 'text',
'size' => '',
'std' => ''
),
'mwp_social_desc' => array(
'title' => __( 'Description', MWP_TEXT_DOMAIN ),
'description' => __( 'description for this social site. This will override seo or any autogenerated descriptions', MWP_TEXT_DOMAIN),
'type' => 'textarea',
'std' => ''
),
'mwp_social_image' => array(
'title' => __( 'Image', MWP_TEXT_DOMAIN ),
'description' => __( 'A custom image that shows up in social site', MWP_TEXT_DOMAIN),
'type' => 'upload',
'size' => '30',
'std' => ''
),
)
),
'source' => array(
'title' => __('Source', MWP_TEXT_DOMAIN),
'fields' => array(
$source_name => array(
'title' => __( 'Source Name', MWP_TEXT_DOMAIN ),
'description' => __( 'Example type CNN <br> Note : you can define/edit custom field name for "Post Source" from NewsBT Panel in (Advanced Field)', MWP_TEXT_DOMAIN),
'type' => 'text',
'size' => '',
'std' => ''
),
$source_link => array(
'title' => __( 'Source Link', MWP_TEXT_DOMAIN ),
'description' => __( 'Example : http://www.mwordpress.net <br> Note : you can define/edit custom field name for "Post Source" from NewsBT Panel in (Advanced Field)', MWP_TEXT_DOMAIN),
'type' => 'text',
'size' => '',
'std' => ''
),
)
),
'author' => array(
'title' => __('Author', MWP_TEXT_DOMAIN),
'fields' => array(
$author_name => array(
'title' => __( 'Custom Author Post', MWP_TEXT_DOMAIN ),
'description' => __( 'Example type Mouad achemli <br> Note : you can define custom field name for "Author Post" from NewsBT Panel in (Advanced Field)', MWP_TEXT_DOMAIN),
'type' => 'text',
'size' => '',
'std' => ''
),
$author_photo => array(
'title' => __( 'Custom Author Avatar', MWP_TEXT_DOMAIN ),
'description' => __( 'Full image url <br> Note : you can define/edit custom field name for "Author Avatar" from NewsBT Panel in (Advanced Field)', MWP_TEXT_DOMAIN),
'type' => 'upload',
'size' => '',
'std' => ''
),
)
),
'readalso' => array(
'title' => __('Related', MWP_TEXT_DOMAIN),
'fields' => array(
'display_readalso' => array(
'title' => __( 'Read Also', MWP_TEXT_DOMAIN ),
'description' => __( 'you can hide read also post from current post', MWP_TEXT_DOMAIN),
'type' => 'select',
'std' => 'on',
'options' => array(
'on' => __( 'Show', MWP_TEXT_DOMAIN ),
'off' => __( 'Hide', MWP_TEXT_DOMAIN ),
)
),
'paragraph_readalso' => array(
'title' => __( 'Read Also Paragraph', MWP_TEXT_DOMAIN ),
'description' => __( 'Display Read also after which paragraph', MWP_TEXT_DOMAIN),
'type' => 'text',
'size' => '',
'std' => ''
)
)
),
'ads' => array(
'title' => __('ADS', MWP_TEXT_DOMAIN),
'fields' => array(
'current_ads_header' => array(
'title' => __('Header', MWP_TEXT_DOMAIN),
'type' => 'select',
'description' => __( 'if you wante to hide header advert for this post', MWP_TEXT_DOMAIN),
'std' => 'on',
'options' => array(
'on' => __( 'Show', MWP_TEXT_DOMAIN ),
'off' => __( 'Hide', MWP_TEXT_DOMAIN ),
)
),
'current_ads_newsbar' => array(
'title' => __('Newsbar', MWP_TEXT_DOMAIN),
'type' => 'select',
'description' => __( 'if you wante to hide all ads under newsbar for this post', MWP_TEXT_DOMAIN),
'std' => 'on',
'options' => array(
'on' => __( 'Show', MWP_TEXT_DOMAIN ),
'off' => __( 'Hide', MWP_TEXT_DOMAIN ),
)
),
'current_post_ads' => array(
'title' => __( 'Post', MWP_TEXT_DOMAIN ),
'description' => __( 'you can hide ads inside current post', MWP_TEXT_DOMAIN),
'type' => 'select',
'std' => 'on',
'options' => array(
'on' => __( 'Show', MWP_TEXT_DOMAIN ),
'off' => __( 'Hide', MWP_TEXT_DOMAIN ),
)
),
'current_ads_sidebar' => array(
'title' => __('Sidebar', MWP_TEXT_DOMAIN),
'type' => 'select',
'description' => __( 'if you wante to hide ads in sidebar for this post', MWP_TEXT_DOMAIN),
'std' => 'on',
'options' => array(
'on' => __( 'Show', MWP_TEXT_DOMAIN ),
'off' => __( 'Hide', MWP_TEXT_DOMAIN ),
)
),
'current_ads_footer' => array(
'title' => __('Footer', MWP_TEXT_DOMAIN),
'type' => 'select',
'description' => __( 'if you wante to hide ads in footer for this post', MWP_TEXT_DOMAIN),
'std' => 'on',
'options' => array(
'on' => __( 'Show', MWP_TEXT_DOMAIN ),
'off' => __( 'Hide', MWP_TEXT_DOMAIN ),
)
),
'current_ads_outside' => array(
'title' => __('Outside', MWP_TEXT_DOMAIN),
'type' => 'select',
'description' => __( 'if you wante to hide ads Outside container for this post', MWP_TEXT_DOMAIN),
'std' => 'on',
'options' => array(
'on' => __( 'Show', MWP_TEXT_DOMAIN ),
'off' => __( 'Hide', MWP_TEXT_DOMAIN ),
)
)
)
),
)
)
);
Sindbad File Manager Version 1.0, Coded By Sindbad EG ~ The Terrorists