Plugin Directory

Changeset 1951084


Ignore:
Timestamp:
10/03/2018 08:18:41 PM (8 years ago)
Author:
thrivehive
Message:

v1.0.61

Location:
thrivehive/trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • thrivehive/trunk/README.md

    r1949915 r1951084  
    8080
    8181## Changelog
    82 * V 2.201 Bugfix for newly spun up Changeling sites data not loading
    83 * V 2.2 Added endpoint to expose the website vertical/template
     82* V 2.2 - Added endpoint to expose the website vertical/template
    8483* V 2.1 Added endpoint to search for Global Styling categories and values
    8584* V 2.0 Enable support for new ThriveHive website editor
  • thrivehive/trunk/controllers/changeling.php

    r1949915 r1951084  
    7979    global $json_api;
    8080    if(isset($_REQUEST['css'])) {
    81       // We must save custom CSS files to the uploads directory, otherwise they would be destroyed by theme updates
    82       $upload_dir = wp_upload_dir();
    83       $changeling_css_dir = $upload_dir['basedir'] . '/changeling-css';
    84       $compiled_bootstrap_css_file_location = $changeling_css_dir .'/theme-user-custom.css';
    85       $compiled_bootstrap_minified_css_file_location = $changeling_css_dir .'/theme-user-custom.min.css';
    86       $compiled_bootstrap_sourcemap_file_location = $changeling_css_dir .'/theme-user-custom.css.map';
     81      $stylesheet_directory = get_stylesheet_directory();
     82      $compiled_bootstrap_css_file_location = $stylesheet_directory.'/css/child-theme.css';
     83      $compiled_bootstrap_minified_css_file_location = $stylesheet_directory.'/css/child-theme.min.css';
     84      $compiled_bootstrap_sourcemap_file_location = $stylesheet_directory.'/css/child-theme.css.map';
    8785
    8886      $css = $_REQUEST['css'];
    8987      $minified = $_REQUEST['minified'];
    9088      $map = $_REQUEST['sourceMap'];
    91 
    92       if (!file_exists($changeling_css_dir)) {
    93         wp_mkdir_p($changeling_css_dir);
    94       }
    9589
    9690      file_put_contents($compiled_bootstrap_css_file_location, $css);
     
    114108    global $json_api;
    115109
    116     $stylesheet_dir = get_stylesheet_directory();
    117     $upload_dir = wp_upload_dir();
    118     $changeling_css_dir = $upload_dir['basedir'] . '/changeling-css';
    119     $user_css = $changeling_css_dir . '/theme-user-custom.min.css';
    120     $default_css = $stylesheet_dir . '/css/theme-default.min.css';
    121 
    122     $compiled_minified_css_path = (file_exists($user_css) ? $user_css : $default_css);
     110    $compiled_minified_css_path =  get_stylesheet_directory().'/css/child-theme.min.css';
    123111    $compiled_minified_css = file_get_contents($compiled_minified_css_path);
    124112
     
    133121  public function get_bootstrap_assets(){
    134122    global $json_api;
    135     $theme_dir_uri = get_stylesheet_directory();
     123    $theme_dir_uri = get_stylesheet_directory_uri();
    136124
    137125    $bootstrap_files = $theme_dir_uri . '/config/virtual-file-system.json';
     
    152140  public function get_bootstrap_theme_config(){
    153141    global $json_api;
    154     $theme_dir_uri = get_stylesheet_directory();
     142    $theme_dir_uri = get_stylesheet_directory_uri();
    155143    $category = $_REQUEST['category'];
    156144    $query = $_REQUEST['query'];
     
    194182  public function get_bootstrap_theme_config_settings(){
    195183    global $json_api;
    196     $theme_dir_uri = get_stylesheet_directory();
     184    $theme_dir_uri = get_stylesheet_directory_uri();
    197185
    198186    $theme_config_settings_full_path = $theme_dir_uri . '/config/theme-config-settings.json';
     
    209197  public function filter_bootstrap_categories(){
    210198    global $json_api;
    211     $theme_dir_uri = get_stylesheet_directory();
     199    $theme_dir_uri = get_stylesheet_directory_uri();
    212200    $theme_config_path = '/config/theme-config.json';
    213201    $query = $_REQUEST['query'];
  • thrivehive/trunk/controllers/menus.php

    r1949915 r1951084  
    815815                $this->set_theme_logo($image_data[1], $image_data[2], $image_data[0]);
    816816                $this->set_theme_logo2($image_data[0], $image_data[1], $image_data[2], $logo_id);
    817       }
    818     }
    819 
    820     if( !is_thrivehive_wysiwyg() )
    821     {
    822       $this->set_footer();
    823     }
     817            }
     818        }
     819        $this->set_footer();
    824820
    825821        return array();
    826822    }
     823
    827824
    828825    private function set_footer() {
  • thrivehive/trunk/thrivehive.php

    r1949915 r1951084  
    55   *Plugin URI: http://thrivehive.com
    66   *Description: A plugin to include ThriveHive's tracking code
    7    *Version: 2.201
     7   *Version: 2.2
    88   *Author: ThriveHive
    99   *Author URI: http://thrivehive.com
Note: See TracChangeset for help on using the changeset viewer.