Server IP : 192.64.118.117 / Your IP : 3.16.143.199 Web Server : LiteSpeed System : Linux premium56.web-hosting.com 4.18.0-513.24.1.lve.1.el8.x86_64 #1 SMP Thu May 9 15:10:09 UTC 2024 x86_64 User : thecgapy ( 1160) PHP Version : 7.4.33 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /home/thecgapy/www/wp-content/plugins/leads/classes/ |
Upload File : |
<?php if ( !class_exists('Leads_Branching') ) { class Leads_Branching { public function __construct() { self::load_hooks(); } /** * Load hooks and filters */ public static function load_hooks() { /* adds branching capabilities to branching API for landing pages */ add_filter( 'inbound_plugin_branches' , array( __CLASS__ , 'add_branches' ) , 10 , 1 ); /* reset active branch during svn update */ //add_action( 'activate_landing_pages' , array( __CLASS__ , 'reset_branch_status' ) , 10 , 1 ); } /** * Add branches to branching api for landing pages plugin */ public static function add_branches( $branches ) { $branches['leads'] = array( 'git' => 'https://codeload.github.com/inboundnow/leads/zip/master', 'svn' => 'https://downloads.wordpress.org/plugin/leads.'.WPL_CURRENT_VERSION.'.zip' ); return $branches; } } $GLOBALS['Leads_Branching'] = new Leads_Branching; }