Giter VIP home page Giter VIP logo

studios's Introduction

studios

studios's People

Contributors

tayron123 avatar

Stargazers

 avatar

Watchers

 avatar

studios's Issues

karta

diff -ur plugin1/admin/admin-pages.php plugin2/admin/admin-pages.php
--- plugin1/admin/admin-pages.php 2013-07-06 01:47:04.000000000 -0400
+++ plugin2/admin/admin-pages.php 2013-10-02 13:38:14.000000000 -0400
@@ -35,7 +35,7 @@

$html .= "<p>" . __("You are using version","WPBDM") . " <b>" . WPBDP_VERSION . "</b> </p>";
  • if( !wpbdp_get_option('googlecheckout') && !wpbdp_get_option('paypal') && wpbdp_get_option('payments-on') ) {
  • if(!wpbdp_get_option('coinpayments') && !wpbdp_get_option('googlecheckout') && !wpbdp_get_option('paypal') && wpbdp_get_option('payments-on') ) {
    $html .= "<p style="padding:10px;background:#ff0000;color:#ffffff;font-weight:bold;">";
    $html.=__("You have payments turned on but all your gateways are set to hidden. Your system will run as if payments are turned off until you fix the problem. To fix go to Manage options > Payment and unhide at least 1 payment gateway, or if it is your intention not to charge a payment fee set payments to off instead of on.","WPBDM");
    $html.="

    ";
    diff -ur plugin1/admin/templates/fees.tpl.php plugin2/admin/templates/fees.tpl.php
    --- plugin1/admin/templates/fees.tpl.php 2013-07-06 01:47:04.000000000 -0400
    +++ plugin2/admin/templates/fees.tpl.php 2013-10-01 13:55:30.000000000 -0400
    @@ -26,6 +26,11 @@


  •   		<?php if (wpbdp_payments_api()->has_gateway('coinpayments')): ?>
    
  •   			<li style="background:url(<?php echo WPBDP_URL . 'resources/images/check.png'; ?>) no-repeat left center; padding-left:30px;">
    
  •   				<?php _ex('CoinPayments.net', 'admin templates', 'WPBDM'); ?>
    
  •   			</li>
    
  •   		<?php endif; ?>
      		<?php if (wpbdp_payments_api()->has_gateway('2checkout')): ?>
      			<li style="background:url(<?php echo WPBDP_URL . 'resources/images/check.png'; ?>) no-repeat left center; padding-left:30px;">
      				<?php _ex('2Checkout', 'admin templates', 'WPBDM'); ?>
    

@@ -33,7 +38,7 @@

  •   	<?php if (!wpbdp_payments_api()->has_gateway('googlecheckout') && !wpbdp_payments_api()->has_gateway('paypal') && !wpbdp_payments_api()->has_gateway('2checkout')): ?>
    
  •   	<?php if (!wpbdp_payments_api()->has_gateway('coinpayments') && !wpbdp_payments_api()->has_gateway('googlecheckout') && !wpbdp_payments_api()->has_gateway('paypal') && !wpbdp_payments_api()->has_gateway('2checkout')): ?>
      		<p><?php _ex("It does not appear you have any of the payment gateway modules installed. You need to purchase a payment gateway module in order to charge a fee for listings. To purchase payment gateways use the buttons below or visit", 'admin templates', "WPBDM"); ?></p>
      		<p><a href="http://businessdirectoryplugin.com/premium-modules/">http://businessdirectoryplugin.com/premium-modules/</a></p>			
      	<?php endif; ?>
    

diff -ur plugin1/api/api.php plugin2/api/api.php
--- plugin1/api/api.php 2013-07-06 01:47:04.000000000 -0400
+++ plugin2/api/api.php 2013-10-01 13:55:30.000000000 -0400
@@ -22,7 +22,8 @@
'view-listings' => array('businessdirectory-viewlistings', 'businessdirectory-listings', 'WPBUSDIRMANMVIEWLISTINGS'),
'paypal' => 'WPBUSDIRMANPAYPAL',
'2checkout' => 'WPBUSDIRMANTWOCHECKOUT',

  •    'googlecheckout' => 'WPBUSDIRMANGOOGLECHECKOUT'
    
  •    'googlecheckout' => 'WPBUSDIRMANGOOGLECHECKOUT',
    
  •    'coinpayments' => 'WPBUSDIRMANCOINPAYMENTS'
    

    );

    if (!array_key_exists($name, $shortcodes))
    diff -ur plugin1/api/wpbdp-settings.class.php plugin2/api/wpbdp-settings.class.php
    --- plugin1/api/wpbdp-settings.class.php 2013-07-06 01:47:04.000000000 -0400
    +++ plugin2/api/wpbdp-settings.class.php 2013-10-01 13:55:30.000000000 -0400
    @@ -172,6 +172,10 @@
    $this->add_setting($s, 'googlecheckout-merchant', _x('Google Checkout Merchant ID', 'admin settings', 'WPBDM'));
    // $this->add_setting($s, 'googlecheckout-seller', _x('Google Checkout Seller ID', 'admin settings', 'WPBDM'));

  •    $s = $this->add_section($g, 'coinpayments', _x('CoinPayments.net Settings', 'admin settings', 'WPBDM'));
    
  •    $this->add_setting($s, 'coinpayments', _x('Activate CoinPayments.net?', 'admin settings', 'WPBDM'), 'boolean', false);
    
  •    $this->add_setting($s, 'coinpayments-merchant', _x('Merchant ID', 'admin settings', 'WPBDM'));
    
  •    $s = $this->add_section($g, 'paypal', _x('PayPal Gateway Settings', 'admin settings', 'WPBDM'));
       $this->add_setting($s, 'paypal', _x('Activate Paypal?', 'admin settings', 'WPBDM'), 'boolean', false,
                          _x('Will only work when the <a href="http://businessdirectoryplugin.com/premium-modules/">PayPal module</a> is installed', 'admin settings', 'WPBDM'));
    

Only in plugin2: gateways-coinpayments.php
diff -ur plugin1/wpbusdirman.php plugin2/wpbusdirman.php
--- plugin1/wpbusdirman.php 2013-07-06 01:47:04.000000000 -0400
+++ plugin2/wpbusdirman.php 2013-10-02 18:41:44.000000000 -0400
@@ -41,6 +41,7 @@
require_once( WPBDP_PATH . 'api/api.php' );
require_once( WPBDP_PATH . 'deprecated/deprecated.php' );
include_once( WPBDP_PATH . 'gateways-googlecheckout.php' );
+include_once( WPBDP_PATH . 'gateways-coinpayments.php' );
require_once( WPBDP_PATH . 'utils.php' );
require_once( WPBDP_PATH . 'admin/wpbdp-admin.class.php' );
require_once( WPBDP_PATH . 'api/wpbdp-settings.class.php' );
@@ -430,6 +431,9 @@
case 'twocheckout':
return wpbdp_payments_api()->has_gateway('2checkout');
break;

  •        case 'coinpayments':
    
  •            return wpbdp_payments_api()->has_gateway('coinpayments');
    
  •            break;
           case 'googlecheckout':
               return wpbdp_payments_api()->has_gateway('googlecheckout');
               break;
    

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.