This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// allow BGN for WooCommerce and PayPal | |
add_filter( 'woocommerce_paypal_supported_currencies', 'add_bgn_paypal_valid_currency' ); | |
function add_bgn_paypal_valid_currency( $currencies ) { | |
array_push ( $currencies , 'BGN' ); | |
return $currencies; | |
} | |
// Convert BGN to EUR for PayPal payments | |
add_filter('woocommerce_paypal_args', 'convert_bgn_to_eur'); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* Simple shortcode for Subscribe posts | |
*/ | |
function shortcode_funct($atts) { | |
ob_start(); | |
$a = shortcode_atts(array( | |
// 'header' => 'Header text', | |
'header' => 'Целият материал е достъпен за абонати на MasterHack. Вече си в клуба? Логни се.', | |
'text' => 'Този материал е част от оригиналното премиум съдържание на MyJob.BG, достъпен е само за членове на клуб HR Club.', |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ------------------------------------------------ | |
// A simple registration form for the signup page | |
// ------------------------------------------------ | |
function signup_page_form_new() { | |
// Configuration. Set these accordingly. | |
$returnUrl = "https://www.brosix.com/signup/"; | |
$partnerID = "en.brosix.com-signup"; | |
// Do not change | |
$WHITELABEL_API_URL = "https://box-n2.brosix.com/net/signup/process/creating/"; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<section id="lp-top" class="margin-bottom"> | |
<div class="signup-box"> | |
<div class="signup-box-left"> | |
<figure><img class="size-full img-responsive wp-image-6185 size-medium" src="https://dev.brosix.com/wp-content/uploads/brosix-logo-new-resized.png" alt="fullresponsive" width="268" /></figure> | |
<h1>Sign up for Brosix Team Network</h1> | |
[contact-form-7 id="13483" title="signup-new"] | |
</div> | |
<div> | |
<h2 class="no-margin-top">Get your 30 day free trial of Brosix Enterprise and enjoy the amazing features:</h2> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Display (Free) when shipping method does not charge any cost. | |
* | |
* @param String $label Shipping method label. | |
* @param WC_Shipping_Rate $method Shipping method data. | |
* @return string | |
*/ | |
function serdika_free_shipping_label( $label, $method ) { | |
// Only apply when is free and not using the free shipping method. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Add to cart redirect to checkout. | |
* | |
* @param string $url | |
* @return string | |
*/ | |
function woocode_wc_add_to_cart_redirect_to_checkout( $url ) { | |
return wc_get_checkout_url(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
if ( ! defined( 'ABSPATH' ) ) { | |
exit; // Exit if accessed directly. | |
} | |
/** | |
* Scripts | |
* | |
* @since 1.0 |