__  __    __   __  _____      _            _          _____ _          _ _ 
 |  \/  |   \ \ / / |  __ \    (_)          | |        / ____| |        | | |
 | \  / |_ __\ V /  | |__) | __ ___   ____ _| |_ ___  | (___ | |__   ___| | |
 | |\/| | '__|> <   |  ___/ '__| \ \ / / _` | __/ _ \  \___ \| '_ \ / _ \ | |
 | |  | | |_ / . \  | |   | |  | |\ V / (_| | ||  __/  ____) | | | |  __/ | |
 |_|  |_|_(_)_/ \_\ |_|   |_|  |_| \_/ \__,_|\__\___| |_____/|_| |_|\___V 2.1
 if you need WebShell for Seo everyday contact me on Telegram
 Telegram Address : @jackleet
        
        
For_More_Tools: Telegram: @jackleet | Bulk Smtp support mail sender | Business Mail Collector | Mail Bouncer All Mail | Bulk Office Mail Validator | Html Letter private



Upload:

Command:

[email protected]: ~ $
<?php
defined('ABSPATH') or die;

add_action('admin_init', 'gantry5_register_admin_settings');
add_action('admin_menu', 'gantry5_manage_settings');
add_action('network_admin_menu', 'gantry5_manage_settings');
add_filter('plugin_action_links', 'gantry5_modify_plugin_action_links', 10, 2);
add_filter('network_admin_plugin_action_links', 'gantry5_modify_plugin_action_links', 10, 2);

function gantry5_register_admin_settings()
{
    if (current_user_can('manage_options')) {
        register_setting('gantry5_plugin_options', 'gantry5_plugin');
    }
}

function gantry5_manage_settings()
{
    if (current_user_can('manage_options')) {
        add_options_page('Gantry 5 Settings', 'Gantry 5 Settings', 'manage_options', 'g5-settings', 'gantry5_plugin_settings');
    }
}

function gantry5_modify_plugin_action_links($links, $file)
{
    // Return normal links if not Gantry 5 or insufficient permissions
    if (plugin_basename(GANTRY5_PATH . '/gantry5.php') !== $file || !current_user_can('manage_options')) {
        return $links;
    }

    // Add a few links to the existing links array
    return array_merge( $links, array(
        'settings' => '<a href="' . get_admin_url(get_current_blog_id(), 'options-general.php?page=g5-settings') .'">' . esc_html__('Settings', 'gantry5') . '</a>'
    ));

}

function gantry5_plugin_settings()
{
    $option = get_option('gantry5_plugin');

    if (isset($_GET['settings-updated']) && $_GET['settings-updated'] === 'true') {
        echo '<div id="message" class="updated fade"><p>' . __('Gantry 5 plugin settings saved.', 'gantry5') . '</p></div>';
    }

    ?>

    <div id="g5-options-main">
        <div class="wrap">
            <form method="post" action="<?php echo admin_url('options.php'); ?>">
                <?php settings_fields('gantry5_plugin_options'); ?>

                <h1 class="available-options"><?php _e('Gantry 5 Settings', 'gantry5'); ?></h1>

                <table class="form-table">
                    <tbody>
                        <tr>
                            <th scope="row">
                                <label for="production1" title="<?php _e('Production mode makes Gantry faster by more aggressive caching and ignoring changed files in the filesystem. Most changes made from administration should still be detected, but changes made in filesystem or database will be ignored.', 'gantry5'); ?>"><?php _e('Production Mode', 'gantry5'); ?></label>
                            </th>
                            <td>
                                <input id="production1" type="radio" <?php checked($option['production'], '1'); ?> value="1" name="gantry5_plugin[production]" />
                                <label for="production1"><?php _e('Enabled', 'gantry5'); ?></label>&nbsp;&nbsp;
                                <input id="production2" class="second" type="radio" <?php checked($option['production'], '0'); ?> value="0" name="gantry5_plugin[production]" />
                                <label for="production2"><?php _e('Disabled', 'gantry5'); ?></label>
                            </td>
                        </tr>
                        <tr>
                            <th scope="row">
                                <label for="use_media_folder1" title="<?php _e('By default Gantry media picker saves all files into the theme. If you want to save files into uploads folder instead, please select this option. Files in the old location can still be used, but are overridden by the files in the selected folder.', 'gantry5'); ?>"><?php _e('Use Uploads Folder', 'gantry5'); ?></label>
                            </th>
                            <td>
                                <input id="use_media_folder1" type="radio" <?php checked($option['use_media_folder'], '1'); ?> value="1" name="gantry5_plugin[use_media_folder]" />
                                <label for="use_media_folder1"><?php _e('Yes', 'gantry5'); ?></label>&nbsp;&nbsp;
                                <input id="use_media_folder2" class="second" type="radio" <?php checked($option['use_media_folder'], '0'); ?> value="0" name="gantry5_plugin[use_media_folder]" />
                                <label for="use_media_folder2"><?php _e('No', 'gantry5'); ?></label>
                            </td>
                        </tr>
                        <tr>
                            <th scope="row">
                                <label for="assign_posts" title="<?php _e('If your site has or will have a lot of blog posts, you should disable this feature and always assign posts to outlines by taxonomy or by some other criteria. Note that all existing post assignments will be removed.', 'gantry5'); ?>"><?php _e('Post Assignments', 'gantry5'); ?></label>
                            </th>
                            <td>
                                <input id="assign_posts1" type="radio" <?php checked($option['assign_posts'], '1'); ?> value="1" name="gantry5_plugin[assign_posts]" />
                                <label for="assign_posts1"><?php _e('Enabled', 'gantry5'); ?></label>&nbsp;&nbsp;
                                <input id="assign_posts2" class="second" type="radio" <?php checked($option['assign_posts'], '0'); ?> value="0" name="gantry5_plugin[assign_posts]" />
                                <label for="assign_posts2"><?php _e('Disabled', 'gantry5'); ?></label>
                            </td>
                        </tr>
                        <tr>
                            <th scope="row">
                                <label for="assign_pages" title="<?php _e('If your site has or will have a lot of pages (including custom types), you should disable this feature and always assign pages to outlines by taxonomy or by some other criteria. Note that all existing page assignments will be removed.', 'gantry5'); ?>"><?php _e('Page Assignments', 'gantry5'); ?></label>
                            </th>
                            <td>
                                <input id="assign_pages1" type="radio" <?php checked($option['assign_pages'], '1'); ?> value="1" name="gantry5_plugin[assign_pages]" />
                                <label for="assign_pages1"><?php _e('Enabled', 'gantry5'); ?></label>&nbsp;&nbsp;
                                <input id="assign_pages2" class="second" type="radio" <?php checked($option['assign_pages'], '0'); ?> value="0" name="gantry5_plugin[assign_pages]" />
                                <label for="assign_pages2"><?php _e('Disabled', 'gantry5'); ?></label>
                            </td>
                        </tr>
                        <tr>
                            <th scope="row">
                                <label for="offline1"><?php _e('Offline Mode', 'gantry5'); ?></label>
                            </th>
                            <td>
                                <input id="offline1" type="radio" <?php checked($option['offline'], '1'); ?> value="1" name="gantry5_plugin[offline]" />
                                <label for="offline1"><?php _e('Enabled', 'gantry5'); ?></label>&nbsp;&nbsp;
                                <input id="offline2" class="second" type="radio" <?php checked($option['offline'], '0'); ?> value="0" name="gantry5_plugin[offline]" />
                                <label for="offline2"><?php _e('Disabled', 'gantry5'); ?></label>
                            </td>
                        </tr>
                        <tr>
                            <th scope="row">
                                <label for="offline_message"><?php _e('Offline Message', 'gantry5'); ?></label>
                            </th>
                            <td>
                                <input id="offline_message" type="text" value="<?php echo $option['offline_message']; ?>" class="regular-text" name="gantry5_plugin[offline_message]" />
                            </td>
                        </tr>
                        <tr>
                            <th scope="row">
                                <label for="cache_path"><?php _e('Cache Path', 'gantry5'); ?></label>
                            </th>
                            <td>
                                <input id="cache_path" type="text" value="<?php echo $option['cache_path']; ?>" placeholder="<?php echo WP_CONTENT_DIR; ?>/cache/gantry5" class="regular-text" name="gantry5_plugin[cache_path]" />
                            </td>
                        </tr>
                        <tr>
                            <th scope="row">
                                <label for="debug1"><?php _e('Debug Mode', 'gantry5'); ?></label>
                            </th>
                            <td>
                                <input id="debug1" type="radio" <?php checked($option['debug'], '1'); ?> value="1" name="gantry5_plugin[debug]" />
                                <label for="debug1"><?php _e('Enabled', 'gantry5'); ?></label>&nbsp;&nbsp;
                                <input id="debug2" class="second" type="radio" <?php checked($option['debug'], '0'); ?> value="0" name="gantry5_plugin[debug]" />
                                <label for="debug2"><?php _e('Disabled', 'gantry5'); ?></label>
                            </td>
                        </tr>
                        <tr>
                            <th scope="row">
                                <label for="compile_yaml1" title="<?php _e('Compile YAML configuration files into PHP, making page loads significantly faster.', 'gantry5'); ?>"><?php _e('Compile YAML', 'gantry5'); ?></label>
                            </th>
                            <td>
                                <input id="compile_yaml1" type="radio" <?php checked($option['compile_yaml'], '1'); ?> value="1" name="gantry5_plugin[compile_yaml]" />
                                <label for="compile_yaml1"><?php _e('Enabled', 'gantry5'); ?></label>&nbsp;&nbsp;
                                <input id="compile_yaml2" class="second" type="radio" <?php checked($option['compile_yaml'], '0'); ?> value="0" name="gantry5_plugin[compile_yaml]" />
                                <label for="compile_yaml2"><?php _e('Disabled', 'gantry5'); ?></label>
                            </td>
                        </tr>
                        <tr>
                            <th scope="row">
                                <label for="compile_twig1" title="<?php _e('Compile Twig template files into PHP, making page loads significantly faster.', 'gantry5'); ?>"><?php _e('Compile Twig', 'gantry5'); ?></label>
                            </th>
                            <td>
                                <input id="compile_twig1" type="radio" <?php checked($option['compile_twig'], '1'); ?> value="1" name="gantry5_plugin[compile_twig]" />
                                <label for="compile_twig1"><?php _e('Enabled', 'gantry5'); ?></label>&nbsp;&nbsp;
                                <input id="compile_twig2" class="second" type="radio" <?php checked($option['compile_twig'], '0'); ?> value="0" name="gantry5_plugin[compile_twig]" />
                                <label for="compile_twig2"><?php _e('Disabled', 'gantry5'); ?></label>
                            </td>
                        </tr>
                    </tbody>
                </table>

                <p class="submit">
                    <input type="submit" name="submit" id="submit" class="button button-primary" value="<?php _e('Save Changes'); ?>" />
                </p>
            </form>
        </div>
    </div>
<?php
}

Filemanager

Name Type Size Permission Actions
blueprints Folder 0775
css-compiled Folder 0775
fonts Folder 0775
images Folder 0775
js Folder 0775
languages Folder 0775
scss Folder 0775
templates Folder 0775
translations Folder 0775
init.php File 9.21 KB 0775
settings.php File 11.31 KB 0775
yarn.lock File 190.9 KB 0775
Filemanager