diff --git a/README.md b/README.md new file mode 100644 index 0000000000000000000000000000000000000000..6f53dc963c72871beff84348f78e4db0316e6e2b --- /dev/null +++ b/README.md @@ -0,0 +1,98 @@ +##Running the app locally + +###Mac OS X Setup +####Requirements +* Apache +* Mac OS X comes with Apache preinstalled +* PHP +* Mac OS X comes with PHP preinstalled +* MySQL + +####Steps +1. Clone the Marketplace Repo to your machine + ``https://github.com/Blocp/Marketplace.git`` + +2. Update your Hosts file with the following + ``sudo vi /etc/hosts`` + +Add the following lines + +``127.0.0.1 blocpower`` +``127.0.0.1 blocpower.local`` + +#####Apache Configuration +Update Apache to serve PHP by running from the command line (You will need Super User access): +``$ sudo su -`` +``$ vi /etc/apache2/httpd.conf`` + +Uncomment the following lines + +``LoadModule deflate_module libexec/apache2/mod_deflate.so`` +``LoadModule expires_module libexec/apache2/mod_expires.so`` +``LoadModule rewrite_module libexec/apache2/mod_rewrite.so`` +``LoadModule php5_module libexec/apache2/libphp5.so`` + +Create Virtual Hosts + +``$ mkdir /etc/apache2/vhosts`` +``$ touch /etc/apache2/vhosts/default.conf`` +``$ vi /etc/apache2/vhosts/default.conf`` + +Then add: + +`` + DocumentRoot "/Library/WebServer/Documents" +`` + +``$ mkdir /etc/apache2/vhosts`` +``$ touch /etc/apache2/vhosts/marketplace.conf`` +``$ vi /etc/apache2/vhosts/marketplace.conf`` + +Then add: + +```` +``DocumentRoot "[path to local Marketplace repo]"`` + ``ServerName blocpower.local`` + ``ErrorLog "/private/var/log/apache2/blocpower.local-error_log"`` + ``CustomLog "/private/var/log/apache2/blocpower.local-access_log" common`` + ```` + ``AllowOverride All`` + ``Require all granted`` + ```` +```` + +Save and close + +Restart Apache +``apachectl restart`` + +####MySQL Setup + +1. Download and install MySQL +2. Setup root username and root password +3. Import Marketplace Database from S3 Backup – https://s3.amazonaws.com/blocpower.us.builds/marketplace/sql/marketplace-production-2016-3-28.sql +4. ``mysql -u -p < database_backup.sql`` +5. Enter your mysql password, the same password created during setup + +####Wordpress Config + +Update the file `…/Marketplace/wordpress/wp-config.php` + +``define('DB_NAME', 'marketplace');`` +``define('DB_USER', '');`` +``define('DB_PASSWORD', '');`` +``define('DB_HOST', '127.0.0.1:3306');`` +``define('WP_HOME','http://blocpower:8888');`` +``define('WP_SITEURL','http://blocpower:8888');`` + +####Wordpress Plugin Config + +1. Navigate to: http://blocpower:8888/wp-admin + **Login info: + ***Login: Blocpower + ***Password: 49oAJn + +2. Go to Plugins, and “activate” any plugins that need activating +“Advanced Custom Fields” & “User Role Editor” are usual suspects. + +3. Browse the Marketplace http://blocpower:8888 \ No newline at end of file diff --git a/wordpress/.htaccess b/wordpress/.htaccess index 08117e1167c3aaa280b9d546beaa4d0050467330..6dab457b78822568a48e17e6eacefc7831751d5e 100644 --- a/wordpress/.htaccess +++ b/wordpress/.htaccess @@ -11,13 +11,5 @@ # END W3TC Browser Cache # BEGIN WordPress - -RewriteEngine On -RewriteBase / -RewriteRule ^index\.php$ - [L] -RewriteCond %{REQUEST_FILENAME} !-f -RewriteCond %{REQUEST_FILENAME} !-d -RewriteRule . /index.php [L] - # END WordPress diff --git a/wordpress/wp-content/themes/backer/header-projectsingle.php b/wordpress/wp-content/themes/backer/header-projectsingle.php index 3b2806d50eda2f66eadf1f4c33360921f374b2f2..93cd1378b149893bc7516c176cdb886b573b9a3e 100644 --- a/wordpress/wp-content/themes/backer/header-projectsingle.php +++ b/wordpress/wp-content/themes/backer/header-projectsingle.php @@ -53,8 +53,7 @@ // the location the link goes to. // make your code return true to let the click happen // return false to stop the click - } - }); + }); }); diff --git a/wordpress/wp-content/themes/backer/single-ignition_product.php b/wordpress/wp-content/themes/backer/single-ignition_product.php index 037facf150efb8a7b4b233521f81e3b3288d3ee9..2aa784cf9c9a312fcf7b88890c355dfa48009820 100644 --- a/wordpress/wp-content/themes/backer/single-ignition_product.php +++ b/wordpress/wp-content/themes/backer/single-ignition_product.php @@ -3,12 +3,14 @@ Template Name: newsingleproduct Template */ ?> - ID, 'ign_project_id', true ); $project_name = get_post_meta( $post->ID, 'ign_product_name', true ); @@ -207,99 +209,102 @@ Add Data Remove Data --> - - - - + + + + @@ -436,65 +441,15 @@ - ID, 'ign_project_id', true ); + $deck = new Deck($project_id); + $the_deck = $deck->the_deck(); + echo do_action('id_widget_after', $project_id, $the_deck); ?> - - - - - - - - - - - - - level_invalid) || !$level->level_invalid) { - echo ''.$level->meta_title.''; - } - } - ?> - - - - - - - - - - - - - - - - - - - - - - - - - - - + - - - \ No newline at end of file +
- -