One Paragraph of project description goes here
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.
| cat dump.sql | docker exec -i mysql_container mysql -uroot -pmorph database_name |
| {% assign col = section.settings.select_collection %} | |
| {% assign collection = collections[col] %} | |
| {% paginate collection.products by {{section.settings.prod_per_page}} %} | |
| {% comment %}ly_global_begin{% endcomment %}{% include 'ly-global' %}{% comment %}ly_global_end{% endcomment %} | |
| <div class="wrap-bread-crumb breadcrumb_collection2"> | |
| <div class="text-center bg-breadcrumb" style="background-image : url({% if section.settings.bg_breadcrumb != blank %}{{section.settings.bg_breadcrumb | img_url : 'master'}} {% else %}//placehold.it/1920x510 {% endif %})"> | |
| <div class="title-page"> | |
| <h1 class="">{{page.title}}</h1> |
| {% comment %}ly_global_begin{% endcomment %}{% include 'ly-global' %}{% comment %}ly_global_end{% endcomment %} | |
| {% section 'section-product-lists' %} |
| // import external dependencies | |
| import 'jquery'; | |
| // Import everything from autoload | |
| import './autoload/**/*' | |
| // import local dependencies | |
| import Router from './util/Router'; | |
| import common from './routes/common'; | |
| import home from './routes/home'; | |
| import aboutUs from './routes/about'; | |
| /** Populate Router instance with DOM routes */ |
Once in a while, you may need to cleanup resources (containers, volumes, images, networks) ...
// see: https://github.com/chadoe/docker-cleanup-volumes
$ docker volume rm $(docker volume ls -qf dangling=true)
$ docker volume ls -qf dangling=true | xargs -r docker volume rm
| <?php // Do not include this if already open! | |
| /** | |
| * Remove existing tabs from single product pages. | |
| */ | |
| function remove_woocommerce_product_tabs( $tabs ) { | |
| unset( $tabs['description'] ); | |
| unset( $tabs['reviews'] ); | |
| unset( $tabs['additional_information'] ); | |
| return $tabs; |
| <?php | |
| // Change the description tab title to product name | |
| add_filter( 'woocommerce_product_tabs', 'wc_change_product_description_tab_title', 10, 1 ); | |
| function wc_change_product_description_tab_title( $tabs ) { | |
| global $post; | |
| if ( isset( $tabs['description']['title'] ) ) | |
| $tabs['description']['title'] = $post->post_title; | |
| return $tabs; | |
| } |
| <?php | |
| /** | |
| * [list_searcheable_acf list all the custom fields we want to include in our search query] | |
| * @return [array] [list of custom fields] | |
| */ | |
| function list_searcheable_acf(){ | |
| $list_searcheable_acf = array("title", "sub_title", "excerpt_short", "excerpt_long", "xyz", "myACF"); | |
| return $list_searcheable_acf; | |
| } |
| # https://git-scm.com/docs/gitignore | |
| # https://help.github.com/articles/ignoring-files | |
| # Example .gitignore files: https://github.com/github/gitignore | |
| /bower_components/ | |
| /node_modules/ | |
| /admin/ | |
| /cgi-bin/ | |
| /configuration.php | |
| /css/ | |
| /demo/ |