Plugin Directory

Changeset 1949915


Ignore:
Timestamp:
10/01/2018 07:41:55 PM (8 years ago)
Author:
thrivehive
Message:

updated plugin to version 2.201

Location:
thrivehive/trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • thrivehive/trunk/README.md

    r1921080 r1949915  
    3434## Deployment
    3535
    36 1. Zip the contents of the repo into a zip named `thrivehive.zip`. So if you are inside the warp-prism folder you can select everything inside and put that into a zip.
     361. Zip the contents of the repo into a zip named `thrivehive.zip`. If you are inside the warp-prism folder you can select everything inside and put that into a zip.
    37372. Now you need to initiate an SFTP connection to all of the wordpress servers:
    3838 - customers.thrivehivesite.com
     
    47473. Copy the thrivehive.zip file into `/root/plugins` folder on each of the servers.
    48484. Also on each of the servers copy the contents of the repo (sans `thrivehive.zip`) into `/root/cpanel3-skel/public_html/wp-content/plugins/thrivehive`
    49 5. Now that we have all the files on the servers, on each server we can run the script `/scripts/update_thrivehive_plugin.py`
     495. Now that we have all the files on the servers, on each server we can run the script `/scripts/update_thrivehive_addins.py --plugin`
    50506. These scripts may run for a while, but once they are done, all plugins should be up to date!
    5151
     
    5656git pull
    5757zip -r /tmp/thrivehive.zip .
    58 for c in customers2 customers3 customers4; do
     58for c in customers customers2 customers3 customers4; do
    5959  server="${c}.thrivehivesite.com"
    6060  scp /tmp/thrivehive.zip $server:/tmp/
     
    7272rm -rf thrivehive/trunk/.git
    7373rm -rf thrivehive/trunk/.gitignore
     74cd thrivehive
    7475svn commit -m "mygitbranch"
    7576```
     
    7980
    8081## Changelog
    81 * V 2.2 - Added endpoint to expose the website vertical/template
     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
    8284* V 2.1 Added endpoint to search for Global Styling categories and values
    8385* V 2.0 Enable support for new ThriveHive website editor
  • thrivehive/trunk/controllers/changeling.php

    r1914280 r1949915  
    3434  /**
    3535  *@api
     36  * WARNING: This could fail silently if the user has permission issues
    3637  **/
    3738  public function set_bootstrap_sass_settings() {
     
    4041      $settings = stripslashes($_REQUEST['settings']);
    4142      $resp = update_option('user_defined_bootstrap_sass_settings', $settings);
    42       if($resp === false) {
    43         return $json_api->error('Settings were not changed or were unable to update');
    44       }
    4543      return array('settings' => $settings);
    4644    } else {
     
    8179    global $json_api;
    8280    if(isset($_REQUEST['css'])) {
    83       $stylesheet_directory = get_stylesheet_directory();
    84       $compiled_bootstrap_css_file_location = $stylesheet_directory.'/css/child-theme.css';
    85       $compiled_bootstrap_minified_css_file_location = $stylesheet_directory.'/css/child-theme.min.css';
    86       $compiled_bootstrap_sourcemap_file_location = $stylesheet_directory.'/css/child-theme.css.map';
     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';
    8787
    8888      $css = $_REQUEST['css'];
    8989      $minified = $_REQUEST['minified'];
    9090      $map = $_REQUEST['sourceMap'];
     91
     92      if (!file_exists($changeling_css_dir)) {
     93        wp_mkdir_p($changeling_css_dir);
     94      }
    9195
    9296      file_put_contents($compiled_bootstrap_css_file_location, $css);
     
    110114    global $json_api;
    111115
    112     $compiled_minified_css_path =  get_stylesheet_directory().'/css/child-theme.min.css';
     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);
    113123    $compiled_minified_css = file_get_contents($compiled_minified_css_path);
    114124
     
    123133  public function get_bootstrap_assets(){
    124134    global $json_api;
    125     $theme_dir_uri = get_stylesheet_directory_uri();
     135    $theme_dir_uri = get_stylesheet_directory();
    126136
    127137    $bootstrap_files = $theme_dir_uri . '/config/virtual-file-system.json';
     
    142152  public function get_bootstrap_theme_config(){
    143153    global $json_api;
    144     $theme_dir_uri = get_stylesheet_directory_uri();
     154    $theme_dir_uri = get_stylesheet_directory();
    145155    $category = $_REQUEST['category'];
    146156    $query = $_REQUEST['query'];
     
    184194  public function get_bootstrap_theme_config_settings(){
    185195    global $json_api;
    186     $theme_dir_uri = get_stylesheet_directory_uri();
     196    $theme_dir_uri = get_stylesheet_directory();
    187197
    188198    $theme_config_settings_full_path = $theme_dir_uri . '/config/theme-config-settings.json';
     
    199209  public function filter_bootstrap_categories(){
    200210    global $json_api;
    201     $theme_dir_uri = get_stylesheet_directory_uri();
     211    $theme_dir_uri = get_stylesheet_directory();
    202212    $theme_config_path = '/config/theme-config.json';
    203213    $query = $_REQUEST['query'];
  • thrivehive/trunk/controllers/menus.php

    r1896065 r1949915  
    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         $this->set_footer();
     817      }
     818    }
     819
     820    if( !is_thrivehive_wysiwyg() )
     821    {
     822      $this->set_footer();
     823    }
    820824
    821825        return array();
    822826    }
    823 
    824827
    825828    private function set_footer() {
  • thrivehive/trunk/thrivehive.php

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