From: anthony Date: Tue, 12 Jun 2018 03:46:08 +0000 (-0700) Subject: adding new functions for functions lib files X-Git-Url: http://cvs2.gaslightmedia.com/gitweb/index.cgi?a=commitdiff_plain;h=276f5e71fb1215109d64f2bbe3db655960ee45df;p=WP-Themes%2FglmOrigin.git adding new functions for functions lib files --- diff --git a/dev/app.scss b/dev/app.scss index fbe3b01..c447ceb 100644 --- a/dev/app.scss +++ b/dev/app.scss @@ -14,13 +14,13 @@ /*Custom Modules */ @import "custom/sidebar/sidebar"; -//@import "custom/slideshow/slideshow"; +@import "custom/slideshow/slideshow"; @import "custom/gravity-forms/gravity-forms"; @import "custom/weather/weather"; @import "custom/nextgen/nextgen"; @import "custom/glma/glm-member-db"; //@import "custom/glma/glm-member-db-events"; -//@import "custom/blocks/glm-blocks"; +@import "custom/blocks/glm-blocks"; @import "custom/action-items/action-items"; @import "custom/svg-map/svg-map"; @import "custom/woocommerce/woocommerce"; \ No newline at end of file diff --git a/dev/custom/slideshow/slideshow.js b/dev/custom/slideshow/slideshow.js new file mode 100644 index 0000000..e69de29 diff --git a/dev/custom/slideshow/slideshow.js.off b/dev/custom/slideshow/slideshow.js.off deleted file mode 100644 index e69de29..0000000 diff --git a/setup/renderer.js b/setup/renderer.js index 45014c2..f33d4c9 100644 --- a/setup/renderer.js +++ b/setup/renderer.js @@ -13,25 +13,19 @@ var lineReader = require('readline').createInterface({ String.prototype.stripSlashes = function(){ return this.replace(/\\(.)/mg, "$1"); } -function getFolders(dir) { - return fs.readdirSync(dir) - .filter(function(file) { - return fs.statSync(path.join(dir, file)).isDirectory(); - }); - } -function sliceAtSpace(str) { - return str.split(' ')[1]; -} + // Display Active and In-Active Modules -let moduleObjs = []; -let modStorage = {}; let modName = ''; - function readLines(mode, state){ if(mode === 'parse'){ lineReader.on('line', function (line) { parseModules(this, line); }); + // activate or deactivate the JS files for each module + functionsFileReader.on('line', function (line) { + parsePhpLibs(this, line) + }); + // functionsFileReader.on('line', function (line) { // parseModules(this, line); // }); @@ -99,14 +93,6 @@ function scanModules(parse, edit, state){ scanModules(true, false, false); -let allModules = JSON.parse(localStorage.getItem("modules")) -// activate or deactivate the JS files for each module -const modPaths = ['dev/core/', 'dev/custom/']; - -functionsFileReader.on('line', function (line) { - parsePhpLibs(this, line) -}); - // On Click Set Mod State $(document).on("click", ".module-item", function(){ let _ = $(this);