Files structure - GavickPro/GK-News-Show-Pro GitHub Wiki

The GK NSP widget is a quite complex extension, that's why it is worth to know the files structure of the widget.

The widget stores their data in the main two places:

  • wp-uploads
    • gk_nsp_cache - it stores the cached images
    • gk_nsp_cache/overrides - it stores overrides for selected images (manually created by the user)
    • gk_nsp_external_data - it stores the XML and JSON files with user data
  • wp-content/plugins/gk-nsp
    • article_formats - place for all article formats (*.format files)

    • article_wrappers - place for all article wrappers

    • data_sources - place for all data sources

    • images - additional UI images

    • languages - language files

    • gk-nsp.php - main widget file

    • gk-nsp-form.php - file used to generate the back-end form

    • gk-nsp-form-walkers.php - filew ith classes used for generating taxonomy checklist in the back-end form

    • gk-nsp-helpers.php - file with additional helper functions

    • gk-nsp-image-filters.php - file with greyscale and sepia image filters implementations

    • gk-nsp.css and gk-nsp.less - styling for the default wrapper

    • gk-nsp-admin.css and gk-nsp-admin.less - styling for the back-end

    • gk-nsp.js - scripts for the default wrapper

    • gk-nsp-admin.js - scripts for the back-end

    • other *.js, *.json and .jshint files are connected witht he Grunt for plugin