Ip\Internal\Plugins\Model::marketUrl PHP Method

marketUrl() public static method

public static marketUrl ( )
    public static function marketUrl()
    {
        if (ipGetOption('Ip.disablePluginMarket', 0)) {
            return '';
        }
        $marketUrl = ipConfig()->get('pluginMarketUrl', ipConfig()->protocol() . '://market.impresspages.org/plugins-v1/?version=4&cms=1');
        return $marketUrl;
    }

Usage Example

Example #1
0
 public function market()
 {
     ipAddJs('Ip/Internal/Core/assets/js/jquery-ui/jquery-ui.js');
     ipAddCss('Ip/Internal/Core/assets/js/jquery-ui/jquery-ui.css');
     ipAddJs('Ip/Internal/Core/assets/js/easyXDM/easyXDM.min.js');
     ipAddJs('Ip/Internal/Plugins/assets/market.js');
     $data = array('marketUrl' => Model::marketUrl());
     $contentView = ipView('view/market.php', $data);
     ipResponse()->setLayoutVariable('removeAdminContentWrapper', true);
     return $contentView->render();
 }