You can contact me using your iPhone or using iPad by emailing at {{email}}
15 |My address is {{city}}, {{country}}
16 |├── README.md
├── webapp-t7p-rest-auth-2
├── README.md
├── contacts.html
├── css
│ ├── framework7.css
│ ├── framework7.min.css
│ ├── framework7.rtl.css
│ ├── framework7.rtl.min.css
│ ├── framework7.themes.css
│ ├── framework7.themes.min.css
│ └── my-app.css
├── img
│ ├── bg.jpg
│ ├── i-f7.png
│ ├── i-form-calendar.png
│ ├── i-form-comment.png
│ ├── i-form-email.png
│ ├── i-form-gender.png
│ ├── i-form-name.png
│ ├── i-form-password.png
│ ├── i-form-settings.png
│ ├── i-form-tel.png
│ ├── i-form-toggle.png
│ ├── i-form-url.png
│ ├── icon-114.png
│ ├── icon-120.png
│ ├── icon-144.png
│ ├── icon-152.png
│ ├── icon-57.png
│ ├── icon-72.png
│ └── icon-76.png
├── index.html
├── jade
│ ├── car.jade
│ ├── cars.jade
│ ├── contacts.jade
│ ├── index.jade
│ └── projects.jade
├── js
│ ├── framework7.debug.js
│ ├── framework7.js
│ ├── framework7.js.map
│ ├── framework7.min.js
│ ├── framework7.min.js.map
│ ├── my-app.js
│ └── template7-helpers.js
├── less
│ └── my-app.less
├── manifest.php
├── post.html
└── posts.html
├── webapp-t7p-rest-auth
├── README.md
├── contacts.html
├── css
│ ├── framework7.css
│ ├── framework7.min.css
│ ├── framework7.rtl.css
│ ├── framework7.rtl.min.css
│ ├── framework7.themes.css
│ ├── framework7.themes.min.css
│ └── my-app.css
├── img
│ ├── bg.jpg
│ ├── i-f7.png
│ ├── i-form-calendar.png
│ ├── i-form-comment.png
│ ├── i-form-email.png
│ ├── i-form-gender.png
│ ├── i-form-name.png
│ ├── i-form-password.png
│ ├── i-form-settings.png
│ ├── i-form-tel.png
│ ├── i-form-toggle.png
│ ├── i-form-url.png
│ ├── icon-114.png
│ ├── icon-120.png
│ ├── icon-144.png
│ ├── icon-152.png
│ ├── icon-57.png
│ ├── icon-72.png
│ └── icon-76.png
├── index.html
├── jade
│ ├── car.jade
│ ├── cars.jade
│ ├── contacts.jade
│ ├── index.jade
│ └── projects.jade
├── js
│ ├── framework7.debug.js
│ ├── framework7.js
│ ├── framework7.js.map
│ ├── framework7.min.js
│ ├── framework7.min.js.map
│ ├── my-app.js
│ └── template7-helpers.js
├── less
│ └── my-app.less
├── manifest.php
├── post.html
└── posts.html
├── webapp-t7p-rest-v2
├── contacts.html
├── css
│ ├── framework7.css
│ ├── framework7.min.css
│ ├── framework7.rtl.css
│ ├── framework7.rtl.min.css
│ ├── framework7.themes.css
│ ├── framework7.themes.min.css
│ └── my-app.css
├── img
│ ├── bg.jpg
│ ├── i-f7-ios.png
│ ├── i-f7.png
│ ├── i-form-calendar.png
│ ├── i-form-comment.png
│ ├── i-form-email.png
│ ├── i-form-gender.png
│ ├── i-form-name.png
│ ├── i-form-password.png
│ ├── i-form-settings.png
│ ├── i-form-tel.png
│ ├── i-form-toggle.png
│ ├── i-form-url.png
│ ├── icon-114.png
│ ├── icon-120.png
│ ├── icon-144.png
│ ├── icon-152.png
│ ├── icon-57.png
│ ├── icon-72.png
│ └── icon-76.png
├── index.html
├── jade
│ ├── car.jade
│ ├── cars.jade
│ ├── contacts.jade
│ ├── index.jade
│ └── projects.jade
├── js
│ ├── framework7.debug.js
│ ├── framework7.js
│ ├── framework7.js.map
│ ├── framework7.min.js
│ ├── framework7.min.js.map
│ ├── my-app.js
│ └── template7-helpers.js
├── less
│ └── my-app.less
├── manifest.php
├── post.html
└── posts.html
├── webapp-t7p-rest-v3
├── contacts.html
├── css
│ ├── framework7.ios.colors.css
│ ├── framework7.ios.colors.min.css
│ ├── framework7.ios.css
│ ├── framework7.ios.min.css
│ ├── framework7.ios.rtl.css
│ ├── framework7.ios.rtl.min.css
│ ├── framework7.material.colors.css
│ ├── framework7.material.colors.min.css
│ ├── framework7.material.css
│ ├── framework7.material.min.css
│ ├── framework7.material.rtl.css
│ ├── framework7.material.rtl.min.css
│ └── my-app.css
├── img
│ ├── bg.jpg
│ ├── i-f7-ios.png
│ ├── i-f7-material.png
│ ├── i-f7.png
│ ├── i-form-calendar-ios.svg
│ ├── i-form-calendar-material.svg
│ ├── i-form-calendar.png
│ ├── i-form-comment-ios.svg
│ ├── i-form-comment-material.svg
│ ├── i-form-comment.png
│ ├── i-form-email-ios.svg
│ ├── i-form-email-material.svg
│ ├── i-form-email.png
│ ├── i-form-gender-ios.svg
│ ├── i-form-gender-material.svg
│ ├── i-form-gender.png
│ ├── i-form-name-ios.svg
│ ├── i-form-name-material.svg
│ ├── i-form-name.png
│ ├── i-form-password-ios.svg
│ ├── i-form-password-material.svg
│ ├── i-form-password.png
│ ├── i-form-settings-ios.svg
│ ├── i-form-settings-material.svg
│ ├── i-form-settings.png
│ ├── i-form-tel-ios.svg
│ ├── i-form-tel-material.svg
│ ├── i-form-tel.png
│ ├── i-form-toggle-ios.svg
│ ├── i-form-toggle-material.svg
│ ├── i-form-toggle.png
│ ├── i-form-url-ios.svg
│ ├── i-form-url-material.svg
│ ├── i-form-url.png
│ ├── icon-114.png
│ ├── icon-120.png
│ ├── icon-144.png
│ ├── icon-152.png
│ ├── icon-57.png
│ ├── icon-72.png
│ └── icon-76.png
├── index.html
├── jade
│ ├── car.jade
│ ├── cars.jade
│ ├── contacts.jade
│ ├── index.jade
│ └── projects.jade
├── js
│ ├── framework7.debug.js
│ ├── framework7.js
│ ├── framework7.js.map
│ ├── framework7.min.js
│ ├── framework7.min.js.map
│ ├── my-app.js
│ ├── my-app.js 2.zip
│ ├── my-app.js.zip
│ └── template7-helpers.js
├── less
│ └── my-app.less
├── manifest.php
├── post.html
└── posts.html
├── webapp-t7p-rest
├── README.md
├── contacts.html
├── css
│ ├── framework7.css
│ ├── framework7.min.css
│ ├── framework7.rtl.css
│ ├── framework7.rtl.min.css
│ ├── framework7.themes.css
│ ├── framework7.themes.min.css
│ └── my-app.css
├── img
│ ├── bg.jpg
│ ├── i-f7.png
│ ├── i-form-calendar.png
│ ├── i-form-comment.png
│ ├── i-form-email.png
│ ├── i-form-gender.png
│ ├── i-form-name.png
│ ├── i-form-password.png
│ ├── i-form-settings.png
│ ├── i-form-tel.png
│ ├── i-form-toggle.png
│ ├── i-form-url.png
│ ├── icon-114.png
│ ├── icon-120.png
│ ├── icon-144.png
│ ├── icon-152.png
│ ├── icon-57.png
│ ├── icon-72.png
│ └── icon-76.png
├── index.html
├── jade
│ ├── car.jade
│ ├── cars.jade
│ ├── contacts.jade
│ ├── index.jade
│ └── projects.jade
├── js
│ ├── framework7.debug.js
│ ├── framework7.js
│ ├── framework7.js.map
│ ├── framework7.min.js
│ ├── framework7.min.js.map
│ ├── my-app.js
│ └── template7-helpers.js
├── less
│ └── my-app.less
├── manifest.php
├── post.html
└── posts.html
├── webapp-t7p4wp
├── README.md
├── contacts.html
├── css
│ ├── framework7.css
│ ├── framework7.min.css
│ ├── framework7.rtl.css
│ ├── framework7.rtl.min.css
│ ├── framework7.themes.css
│ ├── framework7.themes.min.css
│ └── my-app.css
├── img
│ ├── bg.jpg
│ ├── i-f7.png
│ ├── i-form-calendar.png
│ ├── i-form-comment.png
│ ├── i-form-email.png
│ ├── i-form-gender.png
│ ├── i-form-name.png
│ ├── i-form-password.png
│ ├── i-form-settings.png
│ ├── i-form-tel.png
│ ├── i-form-toggle.png
│ ├── i-form-url.png
│ ├── icon-114.png
│ ├── icon-120.png
│ ├── icon-144.png
│ ├── icon-152.png
│ ├── icon-57.png
│ ├── icon-72.png
│ └── icon-76.png
├── index.html
├── jade
│ ├── car.jade
│ ├── cars.jade
│ ├── contacts.jade
│ ├── index.jade
│ └── projects.jade
├── js
│ ├── framework7.debug.js
│ ├── framework7.js
│ ├── framework7.js.map
│ ├── framework7.min.js
│ ├── framework7.min.js.map
│ ├── my-app.js
│ └── template7-helpers.js
├── less
│ └── my-app.less
├── manifest.php
├── post.html
└── posts.html
└── wp-plugins
├── xili-f7-basic-auth
├── README.md
└── xili-f7-basic-auth.php
├── xili-json-api-addon
└── xili-json-api-addon.php
└── xili-rest-api-addon
└── xili-rest-api-addon.php
/README.md:
--------------------------------------------------------------------------------
1 | # framework7
2 | examples and tests with framework7 (from idangero.us) and WordPress and iOS context.
3 |
4 |
5 | ## New tests with F7 version 1.2.0 and for WP REST API 2.0-beta3
6 |
7 | (2015-08-28 - sub-folder /webapp-t7p-rest-v3)
8 |
9 | - Now use Framework v1.2.0 and css for iOS context (need another css for Android Material)
10 |
11 | - See previous version for WP REST API infos
12 |
13 | - Tests are also done (remote website) with a WP 4.2.4 multilingual with xili-language to create links between translation (helper) if both translations are in the REST response.
14 |
15 | ## With F7 version 1.0.7 and for WP REST API 2.0-beta3
16 |
17 | (2015-07-11 - folder webapp-t7p-rest-v2)
18 |
19 | - WP REST API 2.0 introduces very important changes in routes and WP_REST response needing changing way to request the remote WP.
20 | - examples of route/queries :
21 | - wp-json/wp/v2/posts?showposts=20
22 | - wp-json/wp/v2/posts?lang=fr_fr (with xili-language)
23 | - Some new helpers were created.
24 | - Because beta3, some collections in json response are faulty (_links).
25 | - The WP plugin (xili-rest-api-addon) modifies the response to include meta and taxonomies per post.
26 | - Tests are also done with a WP 4.2.2 multilingual with xili-language to create links between translation (helper) if both translation are in the REST response.
27 |
28 | ## With F7 version 1.0.5
29 |
30 | - first example (latest posts from a wp website) = in folder webapp-t7p4wp (see readme inside)
31 | - second example (latest posts from a wp website) = in folder webapp-t7p-rest (with recent JSON REST API 1.2.0) (see readme inside)
32 | - third example: same but with Basic Authentication - with F7 1.0.5 in folder webapp-t7p-rest-auth
33 | - fourth example: same but with Basic Authentication only for JSON - only works with Apache Server and WP - with F7 1.0.5 in folder webapp-t7p-rest-auth-2
34 | - wp plugins (to use to improve default json get from wp json plugin and provide Basic Auth for Json feed only)
--------------------------------------------------------------------------------
/webapp-t7p-rest-auth-2/README.md:
--------------------------------------------------------------------------------
1 | # framework7
2 | examples and tests with framework7 (from idangero.us) and WordPress
3 |
4 | ## 4 - Template7 Pages for WordPress and JSON REST API and Basic Authentication only for JSON feed
5 |
6 | This example is the result of tests to learn famous Framework7 with WordPress.
7 | This is based on examples available in http://www.idangero.us/framework7/examples/
8 | This example is published to open discussion and improvements...
9 |
10 | Now, query and login/passwd are set via a popup form (a way to test F7 functions formFromJSON and formToJSON)
11 |
12 | ### Prerequisites
13 |
14 | A (local or not) WordPress website as json server (needs json plugin https://wordpress.org/plugins/json-rest-api/ version 1.2.1).
15 | This plugin is able to deliver json file that will be incorporated in latest posts page of webapp.
16 | To collect custom fields use plugin named xili-json-api-addon (in this same repository)
17 |
18 | URI must be adapted to your config in now via Settings popup form (today: works with Safari, Chrome, IOS Safari and IOS homescreen webapp "apple-mobile-web-app-capable" )
19 |
20 | The webApp uses Framework7 v. 1.0.5 (March 28th, 2015)
21 |
22 | Tested also with an iPad Air retina (via browser or as webapp installed in iPad homepage)
23 |
24 | ### installation
25 |
26 | - install the folder in a (local) server (apache like MAMP)
27 | - modify the URI of the WP website to keep json (verify that the apache server is ready to deliver json for IP client - .htaccess)
28 |
29 | Example of .htaccess (modify paths)
30 | ```
31 | Header set Access-Control-Allow-Origin "http://michel-i5-imac.local"
32 | Header set Access-Control-Allow-Credentials "true"
33 | Header set Access-Control-Allow-Headers "x-requested-with, Content-Type, origin, authorization, accept, client-security-token"
34 | Header set Access-Control-Request-Method "GET, OPTIONS, POST"
35 | # Only if not OPTIONS
36 |
You can contact me using your iPhone or using iPad by emailing at {{email}}
15 |My address is {{city}}, {{country}}
16 |{{#if thumbnail_images}}{{/if}}
{{content}}
17 |You can contact me using your iPhone or using iPad by emailing at {{email}}
15 |My address is {{city}}, {{country}}
16 |{{#if thumbnail_images}}{{/if}}
{{content}}
17 |You can contact me using your iPhone or using iPad by emailing at {{email}}
15 |My address is {{city}}, {{country}}
16 |{{#if thumbnail_images}}{{/if}}
{{content['rendered']}}
17 |You can contact me using your iPhone or using iPad by emailing at {{email}}
15 |My address is {{city}}, {{country}}
16 |{{#if thumbnail_images}}{{/if}}
{{content['rendered']}}
17 |You can contact me using your iPhone or using iPad by emailing at {{email}}
15 |My address is {{city}}, {{country}}
16 |{{#if thumbnail_images}}{{/if}}
{{content}}
17 |You can contact me using your iPhone or using iPad by emailing at {{email}}
15 |My address is {{city}}, {{country}}
16 |{{#if thumbnail_images}}{{/if}}
{{content}}
17 |