From: Steve Sutton Date: Mon, 23 Mar 2015 20:00:58 +0000 (-0400) Subject: Update documentation X-Git-Tag: v1.1.2^2~1 X-Git-Url: http://cvs2.gaslightmedia.com/gitweb/index.cgi?a=commitdiff_plain;h=aea9da255b2e0860654e8380c349023851005005;p=WP-Plugins%2Fglm-blocks.git Update documentation Create Docs for setting up plugin --- diff --git a/README.md b/README.md new file mode 100644 index 0000000..d071794 --- /dev/null +++ b/README.md @@ -0,0 +1,59 @@ +# Gaslight Media Blocks Application + +##Setup Instructions +###Install plugin + git clone git@cvs2:WP-Plugins/glm-blocks.git +###Setup plugin in front-page.php +Default setup +``` + +``` +Default setup from the glmTheme (grunt-init) +``` + +``` + +Customize Output of Blocks. +``` + + +
+ + + +
+

+ +``` + +##Directories and Files Structure +###controllers + admin.php + front.php +###models + block.php +###views + admin + metaBoxes.php + front + showBlocks.php +###glm-blocks (root) + glm-blocks.php + README.md diff --git a/controllers/admin.php b/controllers/admin.php index 0742328..f16304c 100644 --- a/controllers/admin.php +++ b/controllers/admin.php @@ -22,13 +22,18 @@ class glm_blocks_admin add_action('admin_init', array($this, 'remove_elements')); } + /** + * Sets the pluginDirName variable + */ public function setPluginDir($dir) { $this->pluginDirName = $dir; } - + /** + * Hide certain elements from the normal post edit page. + */ function remove_elements() { if( isset($_GET['post']) && $_GET['post'] diff --git a/glm-blocks.php b/glm-blocks.php index dabdc69..5ac8ed6 100644 --- a/glm-blocks.php +++ b/glm-blocks.php @@ -1,7 +1,7 @@ Author URI: http://www.gaslightmedia.com