Changeset 2334762
- Timestamp:
- 07/03/2020 10:21:37 AM (6 years ago)
- Location:
- headless-cms/trunk
- Files:
-
- 2 added
- 4 edited
-
headless-cms.php (modified) (1 diff)
-
inc/classes/class-category.php (modified) (2 diffs)
-
inc/classes/class-get-post-api.php (added)
-
inc/classes/class-get-posts-api.php (added)
-
inc/classes/class-plugin.php (modified) (1 diff)
-
readme.txt (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
headless-cms/trunk/headless-cms.php
r2333762 r2334762 8 8 * License: GPL2 9 9 * License URI: https://www.gnu.org/licenses/gpl-2.0.html 10 * Version: 1.0. 110 * Version: 1.0.2 11 11 * Text Domain: headless-cms 12 12 * -
headless-cms/trunk/inc/classes/class-category.php
r2333730 r2334762 78 78 <td> 79 79 <?php 80 $image_id = get_term_meta( $term->term_id, 'category-image-id', true );81 $add_image_class = ! empty( $image_id ) ? 'hcms_hide' : '';80 $image_id = get_term_meta( $term->term_id, 'category-image-id', true ); 81 $add_image_class = ! empty( $image_id ) ? 'hcms_hide' : ''; 82 82 $remove_image_class = empty( $image_id ) ? 'hcms_hide' : ''; 83 83 ?> … … 89 89 </div> 90 90 <div> 91 <input type="button" class="button button-secondary hcms_tax_media_button <?php e sc_attr_e( $add_image_class ); ?>" id="hcms_tax_media_button" name="hcms_tax_media_button" value="<?php esc_html_e( 'Add Image', 'headless-cms' ); ?>" />92 <input type="button" class="button button-secondary hcms_tax_media_remove <?php e sc_attr_e( $remove_image_class ); ?>" id="hcms_tax_media_remove" name="hcms_tax_media_remove" value="<?php esc_html_e( 'Remove Image', 'headless-cms' ); ?>" />91 <input type="button" class="button button-secondary hcms_tax_media_button <?php echo esc_attr( $add_image_class ); ?>" id="hcms_tax_media_button" name="hcms_tax_media_button" value="<?php esc_html_e( 'Add Image', 'headless-cms' ); ?>" /> 92 <input type="button" class="button button-secondary hcms_tax_media_remove <?php echo esc_attr( $remove_image_class ); ?>" id="hcms_tax_media_remove" name="hcms_tax_media_remove" value="<?php esc_html_e( 'Remove Image', 'headless-cms' ); ?>" /> 93 93 </div> 94 94 </td> -
headless-cms/trunk/inc/classes/class-plugin.php
r2333730 r2334762 25 25 Assets::get_instance(); 26 26 Customizer::get_instance(); 27 Get_Post_Api::get_instance(); 28 Get_Posts_Api::get_instance(); 27 29 Header_Footer_Api::get_instance(); 28 30 Home_Page_Api::get_instance(); -
headless-cms/trunk/readme.txt
r2333744 r2334762 1 1 === Headless CMS === 2 2 Contributors: gsayed786 3 Tags: headless-cms, decoupled 3 Tags: headless-cms, decoupled, graphql 4 4 Requires at least: 4.6 5 5 Tested up to: 5.4.2 … … 15 15 A WordPress plugin that adds following features to use WordPress as a headless CMS with any front-end environment using REST API 16 16 This plugin provides multiple features and you can use the one's that is relevant to your front-end application. You don't necessarily need to use all. 17 18 [Github-repo](https://github.com/imranhsayed/headless-cms)19 17 20 18 == Features == … … 43 41 3. Get header and footer date: ( GET Request ) 44 42 * Get the header data ( site title, site description , site logo URL, menu items ) and footer data ( footer menu items, social icons ) 45 * `http://example.com/wp-json/rae/v1/header-footer?header_location_id= primary&footer_location_id=secondary`43 * `http://example.com/wp-json/rae/v1/header-footer?header_location_id=hcms-menu-header&footer_location_id=hcms-menu-footer`` 46 44 47 45 4. Get posts by page no: ( GET Request )
Note: See TracChangeset
for help on using the changeset viewer.