https://github.com/benignware/wp-swiper-shortcode-pro
Swiper integration for Wordpress
https://github.com/benignware/wp-swiper-shortcode-pro
Last synced: 11 months ago
JSON representation
Swiper integration for Wordpress
- Host: GitHub
- URL: https://github.com/benignware/wp-swiper-shortcode-pro
- Owner: benignware
- Created: 2019-07-24T10:21:32.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2019-08-09T14:45:52.000Z (almost 7 years ago)
- Last Synced: 2023-10-11T04:59:58.682Z (over 2 years ago)
- Language: JavaScript
- Size: 4.49 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Swiper shortcode
Swiper integration for Wordpress
## API Reference
### Functions
`swiper_shortcode($params, $content)`
`swiper_slide_shortcode($params, $content)`
`swiper_gallery_shortcode($params, $content)`
`get_swiper($template, $format, $params)`
`register_swiper_theme($name, $theme)`
## Development
Download [Docker CE](https://www.docker.com/get-docker) for your OS.
Download [NodeJS](https://nodejs.org) for your OS.
### Install
#### Install wordpress
```cli
docker-compose run --rm wp install-wp
```
After installation you can log in with user `wordpress` and password `wordpress`.
If you like, you can import Wordpress Standard Demo Content like this:
```cli
docker-compose run wp import vendor/wptrt/theme-unit-test --authors=skip
```
#### Install front-end dependencies
```cli
npm i
```
### Development Server
Point terminal to your project root and start up the container.
```cli
docker-compose up -d
```
Point your browser to [http://localhost:8080](http://localhost:8080).
#### Watch front-end dependencies
```cli
npm run watch
```
### Docker
##### Update composer dependencies
```cli
docker-compose run composer update
```
##### Globally stop all running docker containers
```cli
docker stop $(docker ps -a -q)
```
##### Update Wordpress
Due to some permission issues, you need to chmod your container's web-root prior to running the updater:
```cli
docker-compose exec wordpress bash
```
From the container shell, change permissons all down the tree.
```cli
chmod -R 777 .
```
After `CTRL+D`, you're ready to update Wordpress, either from the admin-interface or using wp-cli:
```cli
docker-compose run wp core update
```
## Production
Create a build for production
```cli
npm run build
```