Plugin Directory

Changeset 1149594


Ignore:
Timestamp:
04/29/2015 10:33:52 PM (11 years ago)
Author:
guavaworks
Message:

Child Theme Support - 1.2.1

Location:
angularjs-for-wp/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • angularjs-for-wp/trunk/plugin.php

    r1132529 r1149594  
    44 * Plugin URI: http://www.roysivan.com/angularjs-for-wordpress
    55 * Description: This plugin will allow you to easily load WordPress content client-side using AngularJS. JSON REST API required.
    6  * Version: 1.2
     6 * Version: 1.2.1
    77 * Author: Roy Sivan
    88 * Author URI: http://www.roysivan.com
     
    4444
    4545        // TEMPLATE OVERRIDES
    46         if(file_exists(get_template_directory().'/angularjs-templates/list-detail.html')) {
    47             $template_directory['list_detail'] = get_bloginfo('template_directory').'/angularjs-templates/list-detail.html';
     46        if(file_exists(get_stylesheet_directory().'/angularjs-templates/list-detail.html')) {
     47            $template_directory['list_detail'] = get_stylesheet_directory_uri().'/angularjs-templates/list-detail.html';
    4848        }
    4949
    50         if(file_exists(get_template_directory().'/angularjs-templates/single-detail.html')) {
    51             $template_directory['list_detail'] = get_bloginfo('template_directory').'/angularjs-templates/single-detail.html';
     50        if(file_exists(get_stylesheet_directory().'/angularjs-templates/single-detail.html')) {
     51            $template_directory['single_detail'] = get_stylesheet_directory_uri().'/angularjs-templates/single-detail.html';
    5252        }
    53         if(file_exists(get_template_directory().'/angularjs-templates/new-post.html')) {
    54             $template_directory['new_post'] = get_bloginfo('template_directory').'/angularjs-templates/new-post.html';
     53        if(file_exists(get_stylesheet_directory().'/angularjs-templates/new-post.html')) {
     54            $template_directory['new_post'] = get_stylesheet_directory_uri().'/angularjs-templates/new-post.html';
    5555        }
    56         if(file_exists(get_template_directory().'/angularjs-templates/post-content.html')) {
    57             $template_directory['post_content'] = get_bloginfo('template_directory').'/angularjs-templates/post-content.html';
     56        if(file_exists(get_stylesheet_directory().'/angularjs-templates/post-content.html')) {
     57            $template_directory['post_content'] = get_stylesheet_directory_uri().'/angularjs-templates/post-content.html';
    5858        }
    5959
  • angularjs-for-wp/trunk/readme.txt

    r1149074 r1149594  
    55Requires at least: 3.9
    66Tested up to: 4.2.1
    7 Stable tag: 1.2
     7Stable tag: 1.2.1
    88License: GPLv2 or later
    99License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    6767= 1.2 =
    6868* Fix for new post template [fixing issue](https://wordpress.org/support/topic/template-override-for-new-posthtml-appears-to-not-be-working?replies=2#post-6635530)
     69
     70= 1.2.1 =
     71* Child Theme Support
Note: See TracChangeset for help on using the changeset viewer.