| Server IP : 65.109.86.83 / Your IP : 216.73.217.84 Web Server : nginx/1.14.1 System : Linux libra 4.18.0-553.51.1.el8_10.x86_64 #1 SMP Wed Apr 30 20:24:04 UTC 2025 x86_64 User : root ( 0) PHP Version : 8.3.31 Disable Function : exec,passthru,shell_exec,system,proc_open,popen,parse_ini_file,show_source MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /var/www/html/wp-content/themes/zodiac22/inc/ |
Upload File : |
<?php
/**
* shortcode for kristina
*
* @return string
*/
function kristina_clickbank_link_shortcode_handler($atts)
{
ob_start();
$purchaseLinkGenerated = $atts['link'];
if ($atts['link'] == '') {
$purchaseLinkGenerated = 'http://taurustextmagic.taurusman.pay.clickbank.net/?cbfid=48452&cbskin=33713';
}
if (isset($_GET['vtid'])) {
if (strpos($purchaseLinkGenerated, '?') !== -1) {
$purchaseLinkGenerated = urldecode($purchaseLinkGenerated . '&vtid=' . $_GET['vtid']);
}
}
?>
<div>
<a style=" background: #1372d3;
border-radius: 5px;
padding: 20px 40px;
color: #fff;
display: block;
width: 170px;
text-align: center;
font-size: 20px;" href="<?php echo $purchaseLinkGenerated; ?>">
Get Access Now
</a>
</div>
<?php
return ob_get_clean();
}
add_shortcode('kristina_clickbank', 'kristina_clickbank_link_shortcode_handler');
/**
* shortcode for "Add To Cart!" button on homepage
*
* @return string
*/
function clickbank_link_shortcode_handler($atts)
{
ob_start();
$purchaseLinkGenerated = $atts['link'];
if ($atts['link'] == '') {
$purchaseLinkGenerated = get_field('purchase_link', 'option');
}
if (isset($_GET['vtid'])) {
if (strpos($purchaseLinkGenerated, '?') !== -1) {
$purchaseLinkGenerated = urldecode($purchaseLinkGenerated . '&vtid=' . $_GET['vtid']);
}
}
if (isset($_GET['hop'])) {
if (strpos($purchaseLinkGenerated, '?') !== -1) {
$purchaseLinkGenerated = urldecode($purchaseLinkGenerated . '&hop=' . $_GET['hop']);
}
}
?>
<a class="purchaseLink" href="<?php echo $purchaseLinkGenerated; ?>">
<img
class="orderButton"
src="<?php echo get_field('order_image', 'option'); ?>"/>
</a>
<?php
return ob_get_clean();
}
add_shortcode('clickbank_link', 'clickbank_link_shortcode_handler');
/**
* @param $atts
*
* @return string
* This is shortcode for displaying download button.
*/
function download_single_button_shortcode($atts)
{
ob_start();
$linkToDownload = $atts['link'];
if (!empty($linkToDownload)) {
if (isset($_GET['iv'])) {
echo '<a class="download" target="_blank" href="' . $linkToDownload . '">Download</a>';
} else {
echo '<p>Download link will appear here once you complete the payment.</p>';
}
}
return ob_get_clean();
}
add_shortcode('download-button', 'download_single_button_shortcode');
/**
* @return string
* This is shortcode for Add To My Order Button.
*/
function big_payment_button_shortcode()
{
ob_start();
$link = get_field('purchase_link', 'option');
$imageLink = get_template_directory_uri() . '/img/payment-methods.png';
echo '<a class="addToMyOrder" href="' . $link . '">ADD TO MY ORDER</a>';
echo '<img class="paymentMethods" src="' . $imageLink . '" alt="Payment Methods">';
return ob_get_clean();
}
add_shortcode('add-to-my-order', 'big_payment_button_shortcode');
function download_button_shortcode($atts)
{
ob_start();
$linkToDownload = $atts['link'];
$image = $atts['image'];
$altTag = $atts['alt'];
$class = $atts['class'];
if (!empty($linkToDownload)) {
if (empty($altTag)) {
$altTag = HORO_NAMESPACE_CAP . ' Man Secrets';
}
if (empty($class)) {
$class = 'bookCover';
}
if (!empty($image)) {
echo '<img class="' . $class . '" src="' . $image . '" alt="' . $altTag . '">';
}
if (isset($_GET['iv'])) {
echo '<a class="download" target="_blank" href="/downloader.php?file=' . $linkToDownload . '">Download</a>';
} else {
echo '<p>Download link will appear here once you complete the payment.</p>';
}
}
return ob_get_clean();
}
add_shortcode('download', 'download_button_shortcode');
/**
* @return string
* This is shortcode for Add To Cart on "30 Secrets Thank You" page.
*/
function add_to_my_card_payment_button_shortcode()
{
ob_start();
$link = get_title('purchase_link', 'option') . '/?vtid=typ1';
$imageLink = get_template_directory_uri() . '/img/payment-methods.png';
echo '<a class="add-to-cart-button" href="' . $link . '">Add To Cart</a>';
echo '<img class="payment-methods" src="' . $imageLink . '" alt="Payment Methods">';
return ob_get_clean();
}
add_shortcode('add-to-cart-button', 'add_to_my_card_payment_button_shortcode');
/**
* @return string
*/
function yqhoro_special_offer_form_shortcode()
{
ob_start();
?>
<div class="form-section">
<form id="special-offer" action="" method="post" novalidate="novalidate">
<div class="her-info">
<div class="form-box">
<label for="her_email">Your Email Address</label>
<input type="email" id="her_email" name="her_email">
</div>
<div class="form-box">
<label for="her_name">Your Name</label>
<input type="text" id="her_name" name="her_name">
</div>
<div class="form-box">
<label for="her_date">Your Exact Date of Birth</label>
<input type="text" placeholder="mm/dd/yyyy" class="datepicker hasDatepicker" id="her_date"
name="her_date">
</div>
<div class="form-box">
<label for="her_place">Your Exact Place of Birth</label>
<input type="text" placeholder="Country, City" id="her_place" name="her_place">
</div>
<div class="form-box">
<label for="her_time">Your Exact Time of Birth</label>
<input class="timepicker" type="time" placeholder="Choose a time" id="her_time" name="her_time">
</div>
</div>
<div class="his-info">
<div class="form-box">
<label for="his_name">His Name</label>
<input type="text" id="his_name" name="his_name">
</div>
<div class="form-box">
<label for="his_date">His Exact Date of Birth</label>
<input type="text" placeholder="mm/dd/yyyy" class="datepicker hasDatepicker" id="his_date"
name="his_date">
</div>
<div class="form-box">
<label for="his_place">His Exact Place of Birth</label>
<input type="text" placeholder="Country, City" id="his_place" name="his_place">
</div>
<div class="form-box">
<label for="his_time">His Exact Time of Birth</label>
<input class="timepicker" type="time" placeholder="Choose a time" id="his_time" name="his_time">
</div>
<div class="form-box">
<label for="afternoon_morning">Not sure? Do you know if he was born in the morning or the
afternoon?</label>
<div style=" width: 30%;
vertical-align: top;
display: inline-block;" class="block">
<label style=" display: inline-block;vertical-align: top;" for="morning_">Morning</label>
<input style=" width: 16px;
position: relative;
top: -3px;" type="radio" id="morning_" name="afternoon_morning[]" value="Morning">
</div>
<div style=" width: 30%;
vertical-align: top;
display: inline-block;" class="block">
<label style=" display: inline-block;vertical-align: top;" for="afternoon_">Afternoon</label>
<input style=" width: 16px;
position: relative;
top: -3px;" type="radio" id="afternoon_" name="afternoon_morning[]" value="Afternoon">
</div>
</div>
</div>
<div class="additional-info">
<div class="form-box">
<label for="info_one">Tell me as much as you can about your relationship:</label>
<textarea name="message_1" id="info_one" rows="5"></textarea>
</div>
<div class="form-box">
<label for="info_two">What's your biggest concern and what would you like to know:</label>
<textarea name="message_2" id="info_two" rows="5"></textarea>
</div>
</div>
<p>If you don't know <i>everything</i> that's OK, and if I need to know anything extra, I'll email you about
it. Just don't forget to enter your <i>correct email address</i> and click ''ADD TO MY ORDER'' once
you're done.</p>
<p><b>NOTE:</b> <i>Your Cosmo Compatibility Reading Package comes via email in PDF format, within 48 hours,
at a one-time charge of just $97.</i></p>
<input class="button" type="submit" value="ADD TO MY ORDER">
</form>
<p style="font-size: 16px; text-align: center;"><b><a
href="<?php echo get_field('purchase_link', 'option') ?>/?cbur=d">NO
THANKS, I DON'T WANT A READING DONE AND I'LL GIVE MY SPOT TO SOMEONE ELSE. TAKE ME TO
MY <?php echo HORO_NAMESPACE_BIG ?> MAN
SECRETS BOOKS.</a></b></p>
</div>
<?php
return ob_get_clean();
}
add_shortcode('special_offer_form', 'yqhoro_special_offer_form_shortcode');
/**
* @return string
*/
function yqhoro_thank_you_for_your_purchase_shortcode()
{
ob_start();
?>
<div class="form-section">
<form action="https://www.aweber.com/scripts/addlead.pl" method="post">
<div style="display: none;"><input name="meta_web_form_id" type="hidden" value="1508698749"/>
<input name="meta_split_id" type="hidden" value=""/>
<input name="listname" type="hidden" value="awlist5197432"/>
<input id="redirect_6ce0e7243ecc555c040cada7abebc3a2" name="redirect" type="hidden"
value="https://www.aweber.com/thankyou-coi.htm?m=text"/><input name="meta_adtracking"
type="hidden"
value="Anna's_<?php echo HORO_NAMESPACE_CAP ?>_Man_Secrets"/>
<input name="meta_message" type="hidden" value="1"/>
<input name="meta_required" type="hidden" value="email"/><input name="meta_tooltip" type="hidden"
value=""/></div>
<div class="_form-content">
<div class="label-input"><label for="awf_field-101838599">First name: </label><input
id="awf_field-101838599" tabindex="500" name="name" required="" type="text" value=""
placeholder="Enter your first name"/></div>
<div class="label-input"><label for="awf_field-101838600">Email: </label><input id="awf_field-101838600"
tabindex="500"
name="email" required=""
type="text" value=""
placeholder="Enter your email address"/>
</div>
<button id="af-submit-image-1493722293" class="button" tabindex="501" name="submit">GIVE ME ACCESS
</button>
</div>
</form>
</div>
<?php
return ob_get_clean();
}
add_shortcode('thank_you_for_your_purchase', 'yqhoro_thank_you_for_your_purchase_shortcode');
/**
* @return string
* shortcode for 30 secrets page
*/
function secrets_30_form_shortcode()
{
return get_field('30_secrets_form', 'option');
}
add_shortcode('30_secrets_form', 'secrets_30_form_shortcode');
/**
* @return string
* This is shortcode for Affiliates page, section "Why promote my Capricorn Man Secrets product"
*/
function affiliates_shortcode()
{
ob_start();
$post_id = get_the_ID();
if (have_rows('affiliates_repeater', $post_id)):
echo '<h3>' . get_field('aff_title', $post_id) . '</h3>';
echo '<ul class="check">';
while (have_rows('affiliates_repeater', $post_id)) : the_row();
echo '<li>' . get_sub_field('item_name', $post_id) . '</li>';
endwhile;
echo '</ul>';
endif;
return ob_get_clean();
}
add_shortcode('why_promote_my_cms_product', 'affiliates_shortcode');
/**
* @return false|string
*/
function blockquote_shortcode($atts)
{
$title = $atts['title'];
$text = $atts['text'];
ob_start();
?>
<blockquote class="block-quote">
<strong><?php echo $title; ?></strong>
<p>
<?php echo $text; ?>
</p>
</blockquote>
<?php
return ob_get_clean();
}
add_shortcode('zodiac_blockquote', 'blockquote_shortcode');
/**
* @return string
* This is shortcode for Add To My Order Button.
*/
function hoplink_generator_shortcode($atts)
{
ob_start();
?>
<style>
.form-box {
display: flex;
flex-direction: column;
}
.row {
display: flex;
gap: 1rem;
align-items: center;
}
/* Col-sm-6 */
.col-sm-6 {
width: 100%;
}
select {
width: 100%;
}
/* Col-sm-12 */
.col-sm-12 {
flex: 0 0 100%;
max-width: 100%;
padding-right: 15px;
padding-left: 15px;
}
/* Form-control */
.form-control {
display: block;
width: 100%;
padding: 0.375rem 0.75rem;
font-size: 1rem;
line-height: 1.5;
color: #495057;
background-color: #fff;
background-clip: padding-box;
border: 1px solid #ced4da;
border-radius: 0.25rem;
transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}
/* Text-center */
.text-center {
text-align: center;
}
/* Btn */
.btn {
display: inline-block;
font-weight: 400;
color: #212529;
text-align: center;
vertical-align: middle;
-webkit-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
background-color: pink;
border: 1px solid #ccc;
padding: 0.375rem 0.75rem;
font-size: 1rem;
line-height: 1.5;
border-radius: 0.25rem;
transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}
#generated-link {
}
label {
font-family: Poppins;
}
</style>
<form id="link-form">
<div class="form-box row">
<div class="row">
<div class="col-sm-6">
<div class="row"><label for="myid">Clickbank ID</label></div>
<div class="row"><input class="form-control" type="text" value="" name="clickbank_id"></div>
</div>
<div class="col-sm-6">
<div class="row"><label for="trackid">Tracking ID (optional)</label></div>
<div class="row"><input class="form-control" type="text" value="" id="trackid"></div>
</div>
</div>
<div class="row">
<label for="lid">Choose Sign:</label>
<select class="form-control" name="vendor">
<option value="ariesecret">Aries</option>
<option value="aquarman">Aquarius</option>
<option value="cansecrets">Cancer</option>
<option value="caprman">Capricorn</option>
<option value="gemiman">Gemini</option>
<option value="leosecrets">Leo</option>
<option value="libraanna">Libra</option>
<option value="piscesman">Pisces</option>
<option value="scorpman">Scorpio</option>
<option value="sagitman">Sagittarius</option>
<option value="virgoanna">Virgo</option>
<option value="taurusman">Taurus</option>
</select>
</div>
<!-- <div class="row text-center" style="margin: 10px 0; display: block;">-->
<!-- <input type="checkbox" value="" name=""-->
<!-- id="agree" style="cursor: pointer;"-->
<!-- > <label-->
<!-- for="agree" class="bold font-16" style="cursor: pointer;">I agree to the terms of service</label>-->
<!-- </div>-->
<div class="row text-center">
<div class="col-sm-6">
<button type="button" class="btn" onclick="generate()">Generate hoplink</button>
</div>
<div class="col-sm-6">
<button class="btn" onclick="copyToClipboard()"
type="button"> Copy to clipboard
</button>
</div>
</div>
<input type="hidden" name="cbpage" value="<?php echo $atts['cbpage'] ?>">
<div id="generated-link"></div>
</div>
</form>
<script>
// JavaScript function to generate the link
function generate() {
// Get form element
const form = document.getElementById('link-form');
// Get form values
const clickbank_id = form.elements['clickbank_id'].value;
const vendor = form.elements['vendor'].value;
const cbpage = form.elements['cbpage'].value;
if (!vendor || !clickbank_id) {
return;
}
// Create link
const link = `https://hop.clickbank.net/?affiliate=${clickbank_id}&vendor=${vendor}&cbpage=${cbpage}`;
// Display the link
document.getElementById('generated-link').textContent = link;
}
// Function to copy link to clipboard
function copyToClipboard() {
const linkText = document.getElementById('generated-link').textContent;
if (linkText) {
// Create a temporary textarea element to hold the link
const tempElem = document.createElement('textarea');
tempElem.value = linkText;
document.body.appendChild(tempElem);
// Select and copy the link
tempElem.select();
document.execCommand('copy');
// Remove the temporary element
document.body.removeChild(tempElem);
// Show a message or do something else to indicate that the link has been copied
alert('Link copied to clipboard!');
}
}
</script>
<?php
return ob_get_clean();
}
add_shortcode('hoplink_generator', 'hoplink_generator_shortcode');