Plugin Directory

Changeset 1921080


Ignore:
Timestamp:
08/07/2018 03:21:38 PM (8 years ago)
Author:
thrivehive
Message:

v2.2

Location:
thrivehive/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • thrivehive/trunk/README.md

    r1918447 r1921080  
    5454```
    5555cd ~/thrivehive/repos/warp-prism
     56git pull
    5657zip -r /tmp/thrivehive.zip .
    57 for c in customers customers2 customers3 customers4; do
     58for c in customers2 customers3 customers4; do
    5859  server="${c}.thrivehivesite.com"
    5960  scp /tmp/thrivehive.zip $server:/tmp/
    6061  ssh $server "cp /tmp/thrivehive.zip /root/plugins/"
    6162  ssh $server "unzip -o /tmp/thrivehive.zip -d /root/cpanel3-skel/public_html/wp-content/plugins/thrivehive/"
    62   ssh -t $server screen "/scripts/update_thrivehive_plugin.py"
     63  ssh $server screen -d -m "/scripts/update_thrivehive_plugin.py"
    6364done
    6465```
     
    7879
    7980## Changelog
     81* V 2.2 - Added endpoint to expose the website vertical/template
    8082* V 2.1 Added endpoint to search for Global Styling categories and values
    8183* V 2.0 Enable support for new ThriveHive website editor
  • thrivehive/trunk/controllers/core.php

    r1896065 r1921080  
    155155
    156156  /**
     157   * Gets the wp_option record that contains the site vertical/template name
     158   * @example URL - /get_template_name/
     159   * @api
     160   * @return array containing template name
     161   **/
     162  public function get_template_name()
     163  {   
     164    $vertical = get_option('th_vertical');
     165
     166    if($vertical)
     167    {
     168      return array('vertical'=>$vertical);
     169    }
     170
     171    return array('vertical'=>'generic');
     172  }
     173
     174  /**
    157175  *Removes all preview drafts from the given posts
    158176  *@param post[] posts - array of all posts
  • thrivehive/trunk/thrivehive.php

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