Skip to content

nf-theme/ExportToolForNFTheme

 
 

Repository files navigation

Extension Kit

It's an extension kit for our theme https://github.com/hieu-pv/nf-theme

Installation

Add notifications folder in your theme

Add notifications folder in your theme

Working with local repository

To add namespace of package with PSR-4, add the following code to your composer.json then run command composer dump-autoload or composer dump-autoload -o to optimize

    "autoload": {
        "psr-4": {
            "Vicoders\\Notification\\": "notifications/src/"
        }
    },
Step 1: Install Through Composer
Updating ...

Step 2: Add the Service Provider

Open config/app.php and register the required service provider.

  'providers'  => [
        // .... Others providers 
        \Vicoders\Notification\NotificationServiceProvider::class
    ],
Step 3: Run migrate

Run below command to migrate tables into database. It'll create 2 tables wp_notify and wp_user_notify.

php command migrate
Step 4: Insert shortcodes

Insert 2 shortcodes where you need

[vc-notify link_more="#"]: Show icon notify, badge and link to redirect to list notify page
[vc-notify-list-page]: List all notifies

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • PHP 64.2%
  • CSS 24.6%
  • JavaScript 11.2%