Current File : /home/escuelai/public_html/wp-content/themes/coursector/lib/admin.lib.php |
<?php
coursector_themegoods_action();
$is_verified_envato_purchase_code = false;
//Get verified purchase code data
$pp_verified_envato_coursector = get_option("pp_verified_envato_coursector");
if(!empty($pp_verified_envato_coursector))
{
$is_verified_envato_purchase_code = true;
}
//Layout demo importer
$demo_import_options_arr = array(
array('id' => 'demo1', 'title' => 'Main Demo', 'url' => 'http://themes.themegoods.com/coursector/demo/', 'demo' => 1),
);
/*
Begin creating admin options
*/
$getting_started_html = '';
if(!$is_verified_envato_purchase_code)
{
$getting_started_html.= '<div class="tg_notice">
<span class="dashicons dashicons-warning" style="color:#FF3B30"></span>
Please visit <a href="javascript:jQuery(\'#pp_panel_registration_a\').trigger(\'click\');">Product Registration page</a> and enter a valid Envato Token to import the full '.COURSECTOR_THEMENAME.' demos and single pages through Elementor.
</div>
<div style="height:40px"></div>
';
}
$getting_started_html.= '<div class="one_half">
<div class="step_icon">
<a href="'.admin_url("themes.php?page=install-required-plugins").'">
<div class="step_number">Step <div class="int_number">1</div></div>
</a>
</div>
<div class="step_info">
<h3>Install the recommended plugins</h3>
Theme has required and recommended plugins in order to build your website using layouts you saw on our demo site. We recommend you to install recommended plugins.
</div>
</div>
<div class="one_half last">
<div class="step_icon">
<a href="javascript:;" onclick="jQuery(\'#pp_panel_import-demo_a\').trigger(\'click\');">
<div class="step_number">Step <div class="int_number">2</div></div>
</a>
</div>
<div class="step_info">
<h3>Import the demo data</h3>
Here you can import the demo data to your site. Doing this will make your site look like the demo site. It helps you to understand better the theme and build something similar to our demo quicker.
</div>
</div>
<div class="one_half">
<div class="step_icon">
<a href="'.admin_url("customize.php").'">
<div class="step_number">Step <div class="int_number">3</div></div>
</a>
</div>
<div class="step_info">
<h3>Customize theme elements and options</h3>
Start customize theme\'s layouts, typography, elements colors using WordPress customize and see your changes in live preview instantly.
</div>
</div>
<div class="one_half last">
<div class="step_icon">
<a href="'.admin_url("post-new.php?post_type=page").'">
<div class="step_number">Step <div class="int_number">4</div></div>
</a>
</div>
<div class="step_info">
<h3>Create pages</h3>
'.COURSECTOR_THEMENAME.' support standard WordPress page option. You can also use Elementor page builder to create and organise page contents.
</div>
</div>
<div class="one_half">
<div class="step_icon">
<a href="'.admin_url("nav-menus.php").'">
<div class="step_number">Step <div class="int_number">5</div></div>
</a>
</div>
<div class="step_info">
<h3>Setting up navigation menu</h3>
Once you imported demo or created your own pages. You can setup navigation menu and assign to your website main header or any other places.
</div>
</div>
<div class="one_half last">
<div class="step_icon">
<a href="'.admin_url("options-permalink.php").'">
<div class="step_number">Step <div class="int_number">6</div></div>
</a>
</div>
<div class="step_info">
<h3>Permalinks structure</h3>
You can change your website permalink structure to better SEO result. Click here to setup WordPress permalink options.
</div>
</div>';
$getting_started_html.= '<br style="clear:both;"/>
<h1>Support</h1>
<div style="height:20px"></div>
<div class="one_half nomargin">
<div class="step_icon">
<a href="https://themegoods.ticksy.com/submit/" target="_blank">
<i class="fas fa-life-ring"></i>
<div class="step_title">Submit a Ticket</div>
</a>
</div>
<div class="step_info">
<h3>Theme support</h3>
We offer excellent support through our ticket system. Please make sure you prepare your purchased code first to access our services.
</div>
</div>
<div class="one_half last nomargin">
<div class="step_icon">
<a href="https://docs.themegoods.com/docs/coursector" target="_blank">
<i class="fas fa-book"></i>
<div class="step_title">Theme Document</div>
</a>
</div>
<div class="step_info">
<h3>Online documentation</h3>
This is the place to go find all reference aspects of theme functionalities. Our online documentation is resource for you to start using theme.
</div>
</div>
';
//Get product registration
//if verified envato purchase code
$check_icon = '';
$verification_desc = 'Thank you for choosing '.COURSECTOR_THEMENAME.'. Your product must be registered to receive many advantage features ex. demos import and support. We are sorry about this extra step but we built the activation system to prevent mass piracy of our themes. This will help us to better serve our paying customers.';
if($is_verified_envato_purchase_code)
{
$check_icon = '<span class="tg_valid dashicons dashicons-yes"></span>';
$verification_desc = 'Congratulations! Your product is registered now.';
}
$pp_envato_personal_token = get_option('pp_envato_personal_token');
$product_registration_html ='
<h1>Product Registration</h1>
<div class="getting_started_desc">'.$verification_desc.'</div>
<br style="clear:both;"/>
<div style="height:10px"></div>
<label for="pp_envato_personal_token">'.$check_icon.'Your Envato Token</label>
<small class="description">Please enter your Envato Token.</small>
<input name="pp_envato_personal_token" id="pp_envato_personal_token" type="text" value="'.esc_attr($pp_envato_personal_token).'"/>
';
if(isset($_GET['action']) && $_GET['action'] == 'invalid-purchase')
{
$product_registration_html.='<br style="clear:both;"/><div style="height:20px"></div><div class="tg_error"><span class="dashicons dashicons-warning"></span> We can\'t find your purchase of '.COURSECTOR_THEMENAME.' theme. Please make sure you enter correct Envato Token. If you are sure you enter correct one. <a href="https://themegoods.ticksy.com" target="_blank">Please open a ticket</a> to us so our support staff can help you. Thank you very much.</div>
<br style="clear:both;"/>
<div style="height:10px"></div>';
}
if(!$is_verified_envato_purchase_code)
{
$product_registration_html.='
<br style="clear:both;"/>
<div style="height:30px"></div>
<h1>How to get your Envato Token</h1>
<div style="height:5px"></div>
<ol>
<li>Click on this <a href="https://build.envato.com/create-token/?purchase:download=t&purchase:verify=t&purchase:list=t" target="_blank">Generate A Personal Token</a> link. <strong>IMPORTANT:</strong> You must be logged into the same Themeforest account that purchased '.COURSECTOR_THEMENAME.'. If you are not logged in, you will be directed to login then directed back to the Create A Token Page.</li>
<li>Enter a name for your token, then check the boxes for <strong>View Your Envato Account Username, Download Your Purchased Items, List Purchases You\'ve Made</strong> and <strong>Verify Purchases You\'ve Made</strong> from the permissions needed section. Check the box to agree to the terms and conditions, then click the <strong>Create Token button</strong></li>
<li>A new page will load with a token number in a box. Copy the token number then come back to this registration page and paste it into the "Your Envato Token" field above and click the <strong>Save</strong> button.</li>
<li>You will see a green check mark for success, or a failure message if something went wrong. If it failed, please make sure you followed the steps above correctly.</li>
</ol>
';
}
//Check if Envato Market plugin is installed
$envato_market_activated = function_exists('envato_market');
if($is_verified_envato_purchase_code && !$envato_market_activated)
{
$product_registration_html.='<br style="clear:both;"/><div style="height:40px"></div>
<h1>Auto Update</h1>
<div class="getting_started_desc">To enable auto update feature. You first must <a href="'.admin_url('themes.php?page=install-required-plugins').'">install Envato Market plugin</a> and enter your purchase code there. <a href="https://help.market.envato.com/hc/en-us/articles/202822600-Where-Is-My-Purchase-Code-" target="_blank">Find your purchase code</a></div>
<br style="clear:both;"/>
<div style="height:10px"></div>
';
}
//Get system info
$has_red_status = false;
//Get memory_limit
$memory_limit = ini_get('memory_limit');
$memory_limit_class = 'tg_valid';
$memory_limit_text = '';
if(intval($memory_limit) < 128)
{
$memory_limit_class = 'tg_error';
$has_error = 1;
$memory_limit_text = '*RECOMMENDED 128M';
$has_red_status = true;
}
$memory_limit_text = '<div class="'.$memory_limit_class.'">'.$memory_limit.' '.$memory_limit_text.'</div>';
//Get post_max_size
$post_max_size = ini_get('post_max_size');
$post_max_size_class = 'tg_valid';
$post_max_size_text = '';
if(intval($post_max_size) < 32)
{
$post_max_size_class = 'tg_error';
$has_error = 1;
$post_max_size_text = '*RECOMMENDED 32M';
$has_red_status = true;
}
$post_max_size_text = '<div class="'.$post_max_size_class.'">'.$post_max_size.' '.$post_max_size_text.'</div>';
//Get max_execution_time
$max_execution_time = ini_get('max_execution_time');
$max_execution_time_class = 'tg_valid';
$max_execution_time_text = '';
if($max_execution_time < 180)
{
$max_execution_time_class = 'tg_error';
$has_error = 1;
$max_execution_time_text = '*RECOMMENDED 180';
$has_red_status = true;
}
$max_execution_time_text = '<div class="'.$max_execution_time_class.'">'.$max_execution_time.' '.$max_execution_time_text.'</div>';
//Get max_input_vars
$max_input_vars = ini_get('max_input_vars');
$max_input_vars_class = 'tg_valid';
$max_input_vars_text = '';
if(intval($max_input_vars) < 2000)
{
$max_input_vars_class = 'tg_error';
$has_error = 1;
$max_input_vars_text = '*RECOMMENDED 2000';
$has_red_status = true;
}
$max_input_vars_text = '<div class="'.$max_input_vars_class.'">'.$max_input_vars.' '.$max_input_vars_text.'</div>';
//Get upload_max_filesize
$upload_max_filesize = ini_get('upload_max_filesize');
$upload_max_filesize_class = 'tg_valid';
$upload_max_filesize_text = '';
if(intval($upload_max_filesize) < 32)
{
$upload_max_filesize_class = 'tg_error';
$has_error = 1;
$upload_max_filesize_text = '*RECOMMENDED 32M';
$has_red_status = true;
}
$upload_max_filesize_text = '<div class="'.$upload_max_filesize_class.'">'.$upload_max_filesize.' '.$upload_max_filesize_text.'</div>';
//Get GD library version
$php_gd_arr = gd_info();
$system_info_html = '';
if(!$is_verified_envato_purchase_code)
{
$system_info_html = '<div style="height:20px"></div>
<div class="tg_notice">
<span class="dashicons dashicons-warning" style="color:#FF3B30"></span>
<span style="color:#FF3B30">'.COURSECTOR_THEMENAME.' Demos can only be imported with a valid Envato Token</span><br/><br/>
Please visit <a href="javascript:jQuery(\'#pp_panel_registration_a\').trigger(\'click\');">Product Registration page</a> and enter a valid Envato Token to import the full '.COURSECTOR_THEMENAME.' demos and single pages through Elementor.
</div>
<div style="height:40px"></div>
';
}
else
{
$system_info_html = '<table class="widefat" cellspacing="0">
<thead>
<tr>
<th colspan="3">Server Environment</th>
</tr>
</thead>
<tbody>
<tr>
<td class="title">PHP Version:</td>
<td class="help"><a href="javascript" title="The version of PHP installed on your hosting server." class="tooltipster">[?]</a></td>
<td class="value">'.phpversion().'</td>
</tr>
<tr>
<td class="title">WP Memory Limit:</td>
<td class="help"><a href="javascript" title="The maximum amount of memory (RAM) that your site can use at one time." class="tooltipster">[?]</a></td>
<td class="value">'.$memory_limit_text.'</td>
</tr>
<tr>
<td class="title">PHP Post Max Size:</td>
<td class="help"><a href="javascript" title="The largest file size that can be contained in one post." class="tooltipster">[?]</a></td>
<td class="value">'.$post_max_size_text.'</td>
</tr>
<tr>
<td class="title">PHP Time Limit:</td>
<td class="help"><a href="javascript" title="The amount of time (in seconds) that your site will spend on a single operation before timing out (to avoid server lockups)" class="tooltipster">[?]</a></td>
<td class="value">'.$max_execution_time_text.'</td>
</tr>
<tr>
<td class="title">PHP Max Input Vars:</td>
<td class="help"><a href="javascript" title="The maximum number of variables your server can use for a single function to avoid overloads." class="tooltipster">[?]</a></td>
<td class="value">'.$max_input_vars_text.'</td>
</tr>
<tr>
<td class="title">Max Upload Size:</td>
<td class="help"><a href="javascript" title="The largest filesize that can be uploaded to your WordPress installation." class="tooltipster">[?]</a></td>
<td class="value">'.$upload_max_filesize_text.'</td>
</tr>
<tr>
<td class="title">GD Library:</td>
<td class="help"><a href="javascript" title="This library help resizing images and improve site loading speed" class="tooltipster">[?]</a></td>
<td class="value">'.$php_gd_arr['GD Version'].'</td>
</tr>
</tbody>
</table>
<div style="height:20px"></div>';
$system_info_html.= '<div style="height:20px"></div>
<div class="tg_notice">
<span class="dashicons dashicons-warning"></span>
<span>If you have experience issue regarding import demo contents. <a href="https://docs.themegoods.com/docs/coursector/demos/import-demo-issue/" target="_blank">Please see explanation and workaround for the issue here</a></span>
</div>';
//Check if required plugins is installed
$elementor_activated = function_exists('elementor_load_plugin_textdomain');
$coursector_elementor_activated = function_exists('coursector_elementor_load');
$ocdi_activated = class_exists('OCDI_Plugin');
if($elementor_activated && $coursector_elementor_activated && $ocdi_activated)
{
if($has_red_status)
{
$system_info_html.= '<div style="height:20px"></div>
<div class="tg_notice">
<span class="dashicons dashicons-warning" style="color:#FF3B30"></span>
<span>There are some settings which are below theme recommendation values and it might causes issue importing demo contents.</span>
</div>';
$import_demo_button_label = 'I understand and want to process demo importing process';
}
else
{
$import_demo_button_label = 'Begin importing demo process';
}
$system_info_html.= '<div class="tg_begin_import"><a href="'.admin_url('themes.php?page=tg-one-click-demo-import').'" class="button button-primary button-large">'.$import_demo_button_label.'</a></div>';
}
else
{
$system_info_html.= '<div style="height:20px"></div>
<div class="tg_notice">
<span class="dashicons dashicons-warning" style="color:#FF3B30"></span>
<span style="color:#FF3B30">One Click Demo Import, Elementor and '.COURSECTOR_THEMENAME.' Elementor plugins required</span><br/><br/>
Please <a href="'.admin_url("themes.php?page=install-required-plugins").'">install and activate these required plugins.</a> first so demo contents can be imported properly.
</div>';
}
}
$coursector_options = coursector_get_options();
$coursector_options = array (
//Begin admin header
array(
"name" => COURSECTOR_THEMENAME." Options",
"type" => "title"
),
//End admin header
//Begin second tab "Home"
array( "name" => "Home",
"type" => "section",
"icon" => "dashicons-admin-home",
),
array( "type" => "open"),
array( "name" => "",
"desc" => "",
"id" => COURSECTOR_SHORTNAME."_home",
"type" => "html",
"html" => '
<h1>Getting Started</h1>
<div class="getting_started_desc">Welcome to '.COURSECTOR_THEMENAME.' theme. '.COURSECTOR_THEMENAME.' is now installed and ready to use! Please follow below steps to getting started.</div>
<div style="height:50px"></div>
'.$getting_started_html.'
',
),
array( "type" => "close"),
//End second tab "Home"
//Begin second tab "Registration"
array( "name" => "Registration",
"type" => "section",
"icon" => "dashicons-admin-network",
),
array( "type" => "open"),
array( "name" => "",
"desc" => "",
"id" => COURSECTOR_SHORTNAME."_registration",
"type" => "html",
"html" => $product_registration_html,
),
array( "type" => "close"),
//End second tab "Registration"
//Begin second tab "Demo"
array( "name" => "Import-Demo",
"type" => "section",
"icon" => "dashicons-cloud",
),
array( "type" => "open"),
array( "name" => "",
"desc" => "",
"id" => COURSECTOR_SHORTNAME."_import_demo_notice",
"type" => "html",
"html" => '<h1>Checklist before Importing Demo</h1><br/><strong>IMPORTANT</strong>: Demo importer can vary in time. The included required plugins need to be installed and activated before you import demo. Please check the Server Environment below to ensure your server meets all requirements for a successful import. <strong>Settings that need attention will be listed in red</strong>.
',
),
array( "name" => "",
"desc" => "",
"id" => COURSECTOR_THEMENAME."_import_demo_content",
"type" => "html",
"html" => $system_info_html,
),
array( "type" => "close"),
//Begin second tab "Images"
array( "name" => "Images",
"type" => "section",
"icon" => "dashicons-format-image",
),
array( "type" => "open"),
array( "name" => "",
"desc" => "",
"id" => COURSECTOR_SHORTNAME."_gallery_image_dimensions_notice",
"type" => "html",
"html" => '<h1>Defined Image Size</h1>These settings affect the display and dimensions of images in your portfolio, gallery, blog pages – the display on the front-end will still be affected by CSS styles. After changing these settings you may need to <a href="https://wordpress.org/plugins/force-regenerate-thumbnails/" target="_blank">regenerate your thumbnails</a>
',
),
array( "name" => "<h2>Gallery Grid Image Dimensions Settings</h2>Image Width",
"desc" => "Enter gallery grid image width(in pixels).",
"id" => COURSECTOR_SHORTNAME."_gallery_grid_image_width",
"type" => "text",
"std" => "700",
"validation" => "text",
),
array( "name" => "Image Height",
"desc" => "Enter gallery grid image height(in pixels). Please enter 9999 for auto height.",
"id" => COURSECTOR_SHORTNAME."_gallery_grid_image_height",
"type" => "text",
"std" => "466",
"validation" => "text",
),
array( "name" => "<h2>Gallery Masonry Image Dimensions Settings</h2>Image Width",
"desc" => "Enter gallery masonry image width(in pixels).",
"id" => COURSECTOR_SHORTNAME."_gallery_masonry_image_width",
"type" => "text",
"std" => "440",
"validation" => "text",
),
array( "name" => "Image Height",
"desc" => "Enter gallery masonry image height(in pixels). Please enter 9999 for auto height.",
"id" => COURSECTOR_SHORTNAME."_gallery_masonry_image_height",
"type" => "text",
"std" => "9999",
"validation" => "text",
),
array( "name" => "<h2>Gallery List Image Dimensions Settings</h2>Image Width",
"desc" => "Enter gallery list image width(in pixels).",
"id" => COURSECTOR_SHORTNAME."_gallery_list_image_width",
"type" => "text",
"std" => "610",
"validation" => "text",
),
array( "name" => "Image Height",
"desc" => "Enter gallery list image height(in pixels). Please enter 9999 for auto height.",
"id" => COURSECTOR_SHORTNAME."_gallery_list_image_height",
"type" => "text",
"std" => "610",
"validation" => "text",
),
array( "name" => "<h2>Blog Classic Featured Image Dimensions Settings</h2>Image Width",
"desc" => "Enter blog classic featured image width(in pixels).",
"id" => COURSECTOR_SHORTNAME."_blog_image_width",
"type" => "text",
"std" => "960",
"validation" => "text",
),
array( "name" => "Image Height",
"desc" => "Enter blog classic featured image height(in pixels). Please enter 9999 for auto height.",
"id" => COURSECTOR_SHORTNAME."_blog_image_height",
"type" => "text",
"std" => "604",
"validation" => "text",
),
array( "name" => "<h2>Blog Grid Featured Image Dimensions Settings</h2>Image Width",
"desc" => "Enter blog grid featured image width(in pixels).",
"id" => COURSECTOR_SHORTNAME."_blog_grid_image_width",
"type" => "text",
"std" => "480",
"validation" => "text",
),
array( "name" => "Image Height",
"desc" => "Enter blog grid featured image height(in pixels). Please enter 9999 for auto height.",
"id" => COURSECTOR_SHORTNAME."_blog_grid_image_height",
"type" => "text",
"std" => "302",
"validation" => "text",
),
array( "type" => "close"),
//Begin fifth tab "Social Profiles"
array( "name" => "Social-Profiles",
"type" => "section",
"icon" => "dashicons-facebook",
),
array( "type" => "open"),
array( "name" => "",
"desc" => "",
"id" => COURSECTOR_SHORTNAME."_social_profiles_title",
"type" => "html",
"html" => '<h1>Social Profiles Accounts</h1>Setup your social profiles accounts. It can be used for navigation bar, footer etc.',
),
array( "name" => "<h2>Accounts Settings</h2>Facebook page URL",
"desc" => "Enter full Facebook page URL",
"id" => COURSECTOR_SHORTNAME."_facebook_url",
"type" => "text",
"std" => "",
"validation" => "text",
),
array( "name" => "Twitter Username",
"desc" => "Enter Twitter username",
"id" => COURSECTOR_SHORTNAME."_twitter_username",
"type" => "text",
"std" => "",
"validation" => "text",
),
array( "name" => "Google Plus URL",
"desc" => "Enter Google Plus URL",
"id" => COURSECTOR_SHORTNAME."_google_url",
"type" => "text",
"std" => "",
"validation" => "text",
),
array( "name" => "Flickr Username",
"desc" => "Enter Flickr username",
"id" => COURSECTOR_SHORTNAME."_flickr_username",
"type" => "text",
"std" => "",
"validation" => "text",
),
array( "name" => "Youtube Profile URL",
"desc" => "Enter Youtube Profile URL",
"id" => COURSECTOR_SHORTNAME."_youtube_url",
"type" => "text",
"std" => "",
"validation" => "text",
),
array( "name" => "Vimeo Username",
"desc" => "Enter Vimeo username",
"id" => COURSECTOR_SHORTNAME."_vimeo_username",
"type" => "text",
"std" => "",
"validation" => "text",
),
array( "name" => "Tumblr Username",
"desc" => "Enter Tumblr username",
"id" => COURSECTOR_SHORTNAME."_tumblr_username",
"type" => "text",
"std" => "",
"validation" => "text",
),
array( "name" => "Dribbble Username",
"desc" => "Enter Dribbble username",
"id" => COURSECTOR_SHORTNAME."_dribbble_username",
"type" => "text",
"std" => "",
"validation" => "text",
),
array( "name" => "Linkedin URL",
"desc" => "Enter full Linkedin URL",
"id" => COURSECTOR_SHORTNAME."_linkedin_url",
"type" => "text",
"std" => "",
"validation" => "text",
),
array( "name" => "Pinterest Username",
"desc" => "Enter Pinterest username",
"id" => COURSECTOR_SHORTNAME."_pinterest_username",
"type" => "text",
"std" => "",
"validation" => "text",
),
array( "name" => "Instagram Username",
"desc" => "Enter Instagram username",
"id" => COURSECTOR_SHORTNAME."_instagram_username",
"type" => "text",
"std" => "",
"validation" => "text",
),
array( "name" => "Behance Username",
"desc" => "Enter Behance username",
"id" => COURSECTOR_SHORTNAME."_behance_username",
"type" => "text",
"std" => "",
"validation" => "text",
),
array( "name" => "500px Profile URL",
"desc" => "Enter 500px Profile URL",
"id" => COURSECTOR_SHORTNAME."_500px_url",
"type" => "text",
"std" => "",
"validation" => "text",
),
array( "name" => "<h2>API Settings</h2>Instagram Access Token",
"desc" => "Enter Instagram Access Token. <a href=\"https://themegoods.ticksy.com/article/12747\" >How to get you Access Token here</a>",
"id" => COURSECTOR_SHORTNAME."_instagram_access_token",
"type" => "text",
"std" => "",
"validation" => "text",
),
array( "name" => "Flickr ID",
"desc" => "Enter Flickr ID. <a href=\"http://idgettr.com/\" target=\"_blank\">Find your Flickr ID here</a>",
"id" => COURSECTOR_SHORTNAME."_flickr_id",
"type" => "text",
"std" => "",
"validation" => "text",
),
array( "type" => "close"),
//End fifth tab "Social Profiles"
//Begin second tab "Sidebar"
array( "name" => "Sidebar",
"type" => "section",
"icon" => "dashicons-feedback",
),
array( "type" => "open"),
array( "name" => "",
"desc" => "",
"id" => COURSECTOR_SHORTNAME."_sidebar_title",
"type" => "html",
"html" => '<h1>Custom Sidebars</h1>Setup custom sidebars, you can create ones from below form and it can be used in page/post with sidebar layout support.',
),
array( "name" => "<h2>Custom Sidebar Settings</h2>Add a new sidebar",
"desc" => "Enter sidebar name",
"id" => COURSECTOR_SHORTNAME."_sidebar0",
"type" => "text",
"validation" => "text",
"std" => "",
),
array( "type" => "close"),
//End second tab "Sidebar"
//Begin second tab "System"
/*array( "name" => "System",
"type" => "section",
"icon" => "dashicons-dashboard",
),
array( "type" => "open"),
array( "name" => "<h2>System Information</h2>",
"desc" => "",
"id" => COURSECTOR_SHORTNAME."_system",
"type" => "html",
"html" => $system_info_html,
),
array( "type" => "close"),*/
//End second tab "System"
);
$coursector_options[] = array( "type" => "close");
coursector_set_options($coursector_options);
?>