How to enable osCitas Accordion Extension For Redux Framework in Theme?

Home Forums How to enable osCitas Accordion Extension For Redux Framework in Theme?

Viewing 0 reply threads
  • Author
    Posts
    • #6972
      osCitas Themes
      Keymaster

      First of all thanks for the purchase!!!

      Here are the instruction to enable the osCitas Accordion Extension For Redux Framework in theme

      1. Purchase and Download the plugin from here  osCitas Accordion Extension For Redux Framework.
      2. Extract the downloaded files.
      3. Copy the plugin folder.
      4. Paste into the <your-theme-path>/admin/redux-extensions/
      5. Now add the following code to functions.php file in your theme$redux_opt_name = '<your opt_name>';if(!function_exists(‘redux_register_custom_extension_loader’)) :

        function redux_register_custom_extension_loader($ReduxFramework) {

        $path = dirname( __FILE__ ) . ‘/admin/redux-extensions/’;
        $folders = scandir( $path, 1 );
        foreach ( $folders as $folder ) {

        if ( $folder === ‘.’ or $folder === ‘..’ or ! is_dir( $path . $folder ) ) {

        continue;

        }
        $extension_class = ‘ReduxFramework_Extension_’ . $folder;
        if ( ! class_exists( $extension_class ) ) {

        // In case you wanted override your override, hah.
        $class_file = $path . $folder . ‘/extension_’ . $folder . ‘.php’;
        $class_file = apply_filters( ‘redux/extension/’ . $ReduxFramework->args[‘opt_name’] . ‘/’ . $folder, $class_file );
        if ( $class_file ) {

        require_once( $class_file );

        }

        }
        if ( ! isset( $ReduxFramework->extensions[ $folder ] ) ) {

        $ReduxFramework->extensions[ $folder ] = new $extension_class( $ReduxFramework );

        }

        }

        }
        // Modify {$redux_opt_name} to match your opt_name
        add_action(“redux/extensions/{$redux_opt_name}/before”, ‘redux_register_custom_extension_loader’, 0);

        endif;

       

       

Viewing 0 reply threads
  • You must be logged in to reply to this topic.