Last active
June 13, 2016 16:41
-
-
Save ozamancse/f3bc487665ae361fe931a11acbfcc3d7 to your computer and use it in GitHub Desktop.
Unyson Settings
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 1# Active Unyson Without plugin | |
| <?php | |
| include_once ('framework/bootstrap.php'); | |
| ?> | |
| 2# Diable Unyson Others Extensions | |
| \framework\core\components\extensions\manager(available-extensions.php) | |
| <?php if ( ! defined( 'FW' ) ) { | |
| die( 'Forbidden' ); | |
| } | |
| $thumbnails_uri = fw_get_framework_directory_uri( '/core/components/extensions/manager/static/img/thumbnails' ); | |
| $github_account = 'ThemeFuse'; | |
| $extensions = array( | |
| 'slider' => array( | |
| 'display' => false,//use "true" it's show in display | |
| 'parent' => 'media', | |
| 'name' => __( 'Sliders', 'fw' ), | |
| 'description' => __( 'Adds a sliders module to your website from where you\'ll be able to create different built in jQuery sliders for your homepage and rest of the pages.', 'fw' ), | |
| 'thumbnail' => $thumbnails_uri . '/sliders.jpg', | |
| 'download' => array( | |
| 'github' => array( | |
| 'user_repo' => $github_account . '/Unyson-Sliders-Extension', | |
| ), | |
| ), | |
| ), | |
| ?> | |
| 3# Create Custom Extension Shortcodes in your theme | |
| (your-theme)\framework-customizations\extensions\shortcodes\shortcodes\(custom-shortcode-folder-name\) | |
| 4# Disable shortcodes (your-theme)\framework-customizations\extensions\shortcodes(hooks.php)\ | |
| <?php | |
| if (!defined('FW')) | |
| die('Forbidden'); | |
| function disable_default_shortcodes($to_disable) { | |
| //$to_disable[] = 'accordion'; | |
| //$to_disable[] = 'button'; | |
| //$to_disable[] = 'divider'; | |
| //$to_disable[] = 'icon'; | |
| return $to_disable; | |
| } | |
| add_filter('fw_ext_shortcodes_disable_shortcodes', 'disable_default_shortcodes'); | |
| ?> | |
| 5# Disable Unyson Pagebulider Deactive Button Path | |
| \framework\core\components\extensions\manager\views\extension.php(line: 107) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment