• Welcome to Tux Reports: Where Penguins Fly. We hope you find the topics varied, interesting, and worthy of your time. Please become a member and join in the discussions.

Implemented class-xenword-style-loader.php legacy code

LPH

Flight Director
Flight Instructor
Loading CSS for public and admin can be done through the new /assets/css directory.

Open class-xenwordd-style-loader.php

This is found in the /legacy/includes/Styles directory of the plugin.

Change the styles function to the following:

PHP:
public function styles() {

   if ( class_exists( 'XenForo_Model' ) ) {

      // Load /assets/css/xenword-public.css
      new XenWord\Core\Stylesheets();

      // Load /assets/css/xenword-admin.css
      new XenWord\Admin\Dashboard\Stylesheets();

      /** Load the XenWord toolbar for alerts, conversations. */
      if ( $this->options['use_wordpress_toolbar'] == true ) {
         require_once __DIR__ . '/' . 'class-xenword-toolbar.php';
      }

      /** Load the XenWord toolbar login - signup links */
      if ( $this->options['use_toolbar_login'] == true ) {
         require_once __DIR__ . '/' . 'class-xenword-toolbar-login.php';
      }
   }
}

You can now delete the /legacy/public directories. because the new assets/css files are being loaded.
 
Top