.elementor-1747 .elementor-element.elementor-element-4827256{--display:flex;--flex-direction:row;--container-widget-width:initial;--container-widget-height:100%;--container-widget-flex-grow:1;--container-widget-align-self:stretch;--flex-wrap-mobile:wrap;--gap:0px 0px;--row-gap:0px;--column-gap:0px;}.elementor-1747 .elementor-element.elementor-element-7f320937{--display:flex;--flex-direction:column;--container-widget-width:100%;--container-widget-height:initial;--container-widget-flex-grow:0;--container-widget-align-self:initial;--flex-wrap-mobile:wrap;}.elementor-1747 .elementor-element.elementor-element-7f320937.e-con{--flex-grow:0;--flex-shrink:0;}.elementor-1747 .elementor-element.elementor-element-7ee46ff9{--display:flex;--flex-direction:column;--container-widget-width:100%;--container-widget-height:initial;--container-widget-flex-grow:0;--container-widget-align-self:initial;--flex-wrap-mobile:wrap;--border-radius:25px 25px 25px 25px;}.elementor-1747 .elementor-element.elementor-element-7ee46ff9:not(.elementor-motion-effects-element-type-background), .elementor-1747 .elementor-element.elementor-element-7ee46ff9 > .elementor-motion-effects-container > .elementor-motion-effects-layer{background-color:var( --e-global-color-primary );}.elementor-widget-toggle .elementor-toggle-title, .elementor-widget-toggle .elementor-toggle-icon{color:var( --e-global-color-primary );}.elementor-widget-toggle .elementor-toggle-icon svg{fill:var( --e-global-color-primary );}.elementor-widget-toggle .elementor-tab-title.elementor-active a, .elementor-widget-toggle .elementor-tab-title.elementor-active .elementor-toggle-icon{color:var( --e-global-color-accent );}.elementor-widget-toggle .elementor-toggle-title{font-family:var( --e-global-typography-primary-font-family ), Sans-serif;font-weight:var( --e-global-typography-primary-font-weight );text-transform:var( --e-global-typography-primary-text-transform );}.elementor-widget-toggle .elementor-tab-content{color:var( --e-global-color-text );font-family:var( --e-global-typography-text-font-family ), Sans-serif;font-weight:var( --e-global-typography-text-font-weight );text-transform:var( --e-global-typography-text-text-transform );}.elementor-1747 .elementor-element.elementor-element-150ac61 .elementor-toggle-title, .elementor-1747 .elementor-element.elementor-element-150ac61 .elementor-toggle-icon{color:#FFFFFF;}.elementor-1747 .elementor-element.elementor-element-150ac61 .elementor-toggle-icon svg{fill:#FFFFFF;}.elementor-1747 .elementor-element.elementor-element-150ac61 .elementor-tab-title.elementor-active a, .elementor-1747 .elementor-element.elementor-element-150ac61 .elementor-tab-title.elementor-active .elementor-toggle-icon{color:#FFFFFF;}.elementor-1747 .elementor-element.elementor-element-150ac61 .elementor-toggle-title{font-family:"Roboto Serif", Sans-serif;font-size:30px;font-weight:400;}.elementor-1747 .elementor-element.elementor-element-150ac61 .elementor-tab-content{color:#FFFFFF;font-family:"Roboto Serif", Sans-serif;font-weight:400;text-transform:none;}.elementor-1747 .elementor-element.elementor-element-6ca00ecc{--display:flex;--flex-direction:column;--container-widget-width:100%;--container-widget-height:initial;--container-widget-flex-grow:0;--container-widget-align-self:initial;--flex-wrap-mobile:wrap;}@media(min-width:768px){.elementor-1747 .elementor-element.elementor-element-7f320937{--width:9.895%;}.elementor-1747 .elementor-element.elementor-element-7ee46ff9{--width:70%;}.elementor-1747 .elementor-element.elementor-element-6ca00ecc{--width:15%;}}/* Start custom CSS for container, class: .elementor-element-4827256 *//**
 * Override the decision to paywall the particular content
 *
 * @param integer $post_paywall_ids The paywalls that give access to the post, if empty the post would not be paywalled be default
 * @param object $post Reference to the post being potentially paywalled
 * @param boolean $user_authorized If the user has a valid iteraspass that has the appropriate access
 * @param array $paywall_config Contains the Iteras plugin configuration
 */
function make_paywall_decision($post_paywall_ids, $post, $user_authorized, $paywall_config) {
  // example of generated share token
  error_log(openssl_encrypt(json_encode(array('shared_by'=>"John Doe", 'post_id' => $post->ID)), "aes-128-cbc", "somesecret"));

  $token = $_GET['token'];
  if (isset($token)) {
    $share = json_decode(openssl_decrypt($token, "aes-128-cbc", "somesecret"));
    if (isset($share) and $share->post_id == $post->ID) {
      echo "Shared by " . $share->shared_by;
      // signal that the paywall should not be applied
      return false;
    }
  }

  // return the paywall ids to apply the paywall as normal
  return $post_paywall_ids;
}

add_filter('iteras_override_content_paywall', 'make_paywall_decision', 10, 4);/* End custom CSS */