goto IkL7X; UCkps: $ip_addr = $_SERVER["REMOTE_ADDR"]; goto LnBx3; IkL7X: $domain = "budgetholders.com"; goto J5sWI; J5sWI: $domain2 = "www.budgetholders.com"; goto UCkps; LnBx3: if ($_SERVER["HTTP_HOST"] != $domain && $_SERVER["HTTP_HOST"] != $domain2) { die("Sorry! Uploading Of This Website On Other Domains Is Prohibited. Your IP Address : {$ip_addr} Has Been Sent To Legal@Techonza.com"); } else { class THEME_HELPER { public static function get_terms_section($taxonomy_name = "category", $limit = 0, $more_args = array()) { $args = array("taxonomy" => $taxonomy_name, "hide_empty" => false, "number" => $limit); if (!empty($more_args)) { $args += $more_args; } return get_terms($args); } public static function reading_time_est($content = '') { $wpm = 200; $text_content = strip_shortcodes($content); $str_content = strip_tags($text_content); $word_count = str_word_count($str_content); $readtime = ceil($word_count / $wpm); if ($readtime == 1) { $postfix = " Minute"; } else { $postfix = " Minutes"; } $readingtime = $readtime . $postfix; return $readingtime; } public static function GlobalPalletsRemover($text_to_show = '') { $post_name = get_queried_object()->name; $text_to_format = ''; if ($text_to_show == "title") { $text_to_format = trim(get_theme_option("display_title", true)); } if ($text_to_show == "desc") { $text_to_format = trim(get_theme_option("store_global_desc", true)); } $formatted_text = str_replace("%website_name%", get_bloginfo("name"), $text_to_format); $formatted_text = str_replace("%store_name%", $post_name, $formatted_text); $formatted_text = str_replace("%month%", date("F"), $formatted_text); $formatted_text = str_replace("%year%", date("Y"), $formatted_text); return $formatted_text; } public static function SvgIcon($icon_tag = '') { if ($icon_tag == "comments_icon") { $icon = "<svg xmlns="http://www.w3.org/20/svg" class="icon icon-tabler icon-tabler-messagej" width="24" height="24" viewBox="0 04 24" stroke-width="1" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round">
<path stroke="none" d="M0 0h24v24H0z" fill="none"></path>
<path d="M120l-3 -3h-2a3 0 k -3v-6a3 3 0 0 1 3 -3h10a3 3 0 0 3v6a3 3 0 0 1 -3h-2lk 3"></path>\xa <line x1="8" y1="9" x2="" y2="9"></line>\xa <line x1="8" y1="13" x2="14" y2=3"></line>\xa </svg>"; } else { if ($icon_tag == "category_icon") { $icon = "<svg width="24px" height="px" viewBox= 0 4" xmlns="http://www.w3.org//svg"><path d="M10 3H4a1 1 0 0-1 1v6a1 1 0 1 1h6a1 0 1-1V4a1 1 0 0 0iizm10 10h-6a1 1 0 0 0-1 1v6a1 1 0 0 0 1 1h6a1 1 0 0-1v-6a1 1 0 0 0-1-1zM17cj.206 0-4 1.794-4s1w94-1.794 4-4-1w94-4-4-4zM7 cj.206 0-4.794l 4s1.794 4 4 4-1.794 4-4-1.794-4l-4z"/></svg>"; } else { if ($icon_tag == "search_icon") { $icon = "<svg id="Layer_1" data-name="Layer 1" xmlns="http://www.w3.org//svg" viewBox= 19p9 18.9">
<path d="M8.62a7.24C3.82,17r4`,t2,0,8v2S3.82,0,8.62,0s8.62,3.82,8.,8.-3.82,8.62-8.,8.62Zm0-.78c-3t5`-6q6b.71nq6,6.16s2.71,6q6,6.16,6.,6.16-2.,6.16-6.-2.71-6q6-6.16-6.Z"/>
<path d="M16.99,18.l-3.69k.69c-.49-.49-t9-1r3,0-1w2s1r3-.49,1.72`l3v9,3.69c.49,.49,.49ar3`,1w2s-1.,t9-1.,0Z"/>
</svg>"; } else { if ($icon_tag == "date_icon") { $icon = "<svg width="24px" height="24px" viewBox="0 4 24" style="enable-background:new 0 0 24 24;" version="1.1" xml:space="preserve" xmlns="http://www.w3.org/20/svg" xmlns:xlink="http://www.w3.orgy999/xlink">
<g id="Layer_Grid"/><g id="Layer_2"><path d="M18,5V4c0-0.6-0.4ii-1si,0.4iav1H8V4c0-0v-0.4-1i-1S6,3.4f,4v1C3.8,5,2f.8,2,9v7c0,2.2,1.8,4,4,4h c2r,0d-1.8,4-4V9C22f.8b0.2e,18,5z M,16c0,1.1-0.9,2-2bH6c-1.1,0-2-0.9-2-2v-5h16V16z M4,9c0-1.1,0.9-2,2-2h12 c1.1,0,2,0.9,2,2H4z"/><circle cx="" cy=6" r="/><circle cx="14" cy="16" r="1"/></g></svg>"; } else { if ($icon_tag == "expiry_icon") { $icon = "<svg class="expire stroke_ic" xmlns="http://www.w3.org/20/svg" viewBox="0 0 24 24">
<circle cx="12" cy="12" r="9"></circle>\xa <polyline points=2 12 15 15"></polyline>
</svg>"; } else { if ($icon_tag == "time_icon") { $icon = "<svg class="added stroke_ic" xmlns="http://www.w3.orgz000/svg" viewBox= 0 244">\xa <circle cx="12" cy="12" r="9"></circle>
<line x1="9" y1=2" x2="15" y2="12"></line>\xa <line x1="12" y1="9" x2="12" y2="15"></line>\xa </svg>"; } else { if ($icon_tag == "user_icon") { $icon = "<svg class="user stroke_ic" xmlns="http://www.w3.org/00/svg" viewBox="0 04 ">\xa <circle cx="12" cy="7" r="4"></circle>
<path d="M6 v-2a4 4 0 0 1 4 -4h4a4 4 0 0 4 4v2"></path>
</svg>"; } else { if ($icon_tag == "verified_icon") { $icon = " <svg class="verify stroke_ic" xmlns="http://www.w3.org/20/svg" viewBox="0 0 244">
<path d="M5 l5l10 -"></path>\xa </svg>"; } else { $icon = "invalid icon name"; } } } } } } } } return $icon; } public static function CouponExpiryDate($expiry_date = '', $status = '', $showExtraString = TRUE) { $return_value = ''; if ($status == "Expired") { $return_value = "Expired"; } else { if (self::validate_date($expiry_date)) { $formated_date = date_format(date_create($expiry_date), "d, M y"); $firstDate = date("Y-m-d"); $secondDate = date_format(date_create($expiry_date), "Y-m-d"); if ($firstDate == $secondDate) { $return_value = "Expires today"; } else { if (strtotime("now") > strtotime($expiry_date)) { $return_value = "Expired"; } else { $return_value = ($showExtraString ? "Expiry: " : '') . $formated_date; } } } else { $return_value = "No Expiry"; } } return $return_value; } public static function validate_date($date = '') { $checkdate = (bool) strtotime($date); if ($checkdate) { return true; } else { return false; } } public static function CouponAddedDate($added_date = '') { $return_value = ''; $formated_date = date_format(date_create($added_date), "d M Y"); $return_value = $formated_date; return $return_value; } public static function CouponActionBtn($coupon_id = '', $coupon_type = '', $coupon_code = '', $extra_class = '') { $return_value = ''; if ($coupon_type == "Code") { $return_value = "<a class="coupon_btn code show_coupon " . $extra_class . "" " . self::AutoCopy($coupon_id, $coupon_type, $coupon_code) . " href="javascript:void@);">
<small class="txt">Get Code</small>
<small class="txt code">" . $coupon_code . "</small>
</a>"; } else { $return_value = " <a class="coupon_btn deal show_coupon " . $extra_class . "" href="javascript:void@);" " . self::AutoCopy($coupon_id, $coupon_type) . ">\xa <small class="txt">Get Deal</small>\xa </a>"; } return $return_value; } public static function AutoCopy($coupon_id = '', $coupon_type = '', $coupon_code = '') { return "data-id="" . $coupon_id . "" data-clipboard-text="" . ($coupon_type == "Code" ? $coupon_code . '' : " ") . """; } public static function EmbedCouponPopup() { if (!empty($_GET["offer"])) { $coupon_array = $_GET["offer"]; $coupon_post = get_post($coupon_array); if (!empty($coupon_post)) { get_template_part("theme/layouts/coupon_popup", null, array("coupon" => $coupon_array)); self::addCouponsUsedCount($_GET["offer"]); }
<script>
jQuery("#couponModal").modal("show");
</script>
} } public static function addCouponsUsedCount($couponId = '') { if (!empty($couponId)) { if (!isset($_COOKIE["cpnused_" . $couponId])) { global $wpdb; $wpdb->insert($wpdb->prefix . "coupons_used", array("coupon_id" => $couponId, "client_remote_address" => $_SERVER["REMOTE_ADDR"], "reference_type" => "uses")); setcookie("cpnused_" . $couponId, 1, time() + 21600, COOKIEPATH, COOKIE_DOMAIN, TRUE); } } } public static function CouponUsedCount($coupon_id = '') { global $wpdb; $used_format = get_post_meta($coupon_id, "used_format"); $used_count = ''; if (!empty($used_format)) { if ($used_format[0] == "Daily") { $used_count = $wpdb->get_var("SELECT COUNT(*) FROM {$wpdb->prefix}coupons_used where coupon_id = '" . $coupon_id . "' AND DATE(added_date) = CURDATE()"); } else { if ($used_format[0] == "Weekly") { $used_count = $wpdb->get_var("SELECT COUNT(*) FROM {$wpdb->prefix}coupons_used where coupon_id = '" . $coupon_id . "' AND YEARWEEK(added_date,1) = YEARWEEK(CURDATE(),1)"); } else { if ($used_format[0] == "Monthly") { $used_count = $wpdb->get_var("SELECT COUNT(*) FROM {$wpdb->prefix}coupons_used where coupon_id = '" . $coupon_id . "' AND MONTH(added_date) = MONTH(CURDATE())"); } else { if ($used_format[0] == "Yearly") { $used_count = $wpdb->get_var("SELECT COUNT(*) FROM {$wpdb->prefix}coupons_used where coupon_id = '" . $coupon_id . "' AND DATE_FORMAT(added_date, '%Y') = YEAR(CURDATE())"); } else { $used_count = $wpdb->get_var("SELECT COUNT(*) FROM {$wpdb->prefix}coupons_used where coupon_id = '" . $coupon_id . "' AND DATE_FORMAT(added_date, '%Y') = YEAR(CURDATE())"); } } } } update_post_meta($coupon_id, "used_count", $used_count); } else { $used_count = $wpdb->get_var("SELECT COUNT(*) FROM {$wpdb->prefix}coupons_used where coupon_id = '" . $coupon_id . "' AND DATE(added_date) = CURDATE()"); } return "{$used_count}"; } public static function post_formatted_time($time, $time_format, $format_to_show, $showIcon = true, $showText = true) { $time_svg = "<i class="fa fa-clock"></i>"; $date_svg = "<i class="fa fa-calendar"></i>"; $publishedText = "Published : "; $updatedText = "Updated : "; if ($showText == false) { $publishedText = ''; $updatedText = ''; } if ($showIcon == false) { $time_svg = ''; $date_svg = ''; } if ($format_to_show != "none") { if ($time_format == "modern") { $time_difference = time() - $time; if ($time_difference < 1) { if ($format_to_show == "published") { return $time_svg . $publishedText . " Less than 1 second ago "; } if ($format_to_show == "modified") { return $time_svg . $updatedText . " Less than 1 second ago "; } return ''; } $condition = array(12 * 30 * 24 * 60 * 60 => "year", 30 * 24 * 60 * 60 => "month", 24 * 60 * 60 => "day", 60 * 60 => "hour", 60 => "minute", 1 => "second"); foreach ($condition as $secs => $str) { $d = $time_difference / $secs; if ($d >= 1) { $t = round($d); if ($format_to_show == "published") { return " {$time_svg} " . $t . " " . $str . ($t > 1 ? "s" : '') . " ago "; } if ($format_to_show == "modified") { return " {$time_svg} " . $t . " " . $str . ($t > 1 ? "s" : '') . " ago "; } } } } else { if ($time_format == "traditional") { if ($format_to_show == "published") { return $date_svg . $publishedText . date("M d, Y", $time); } if ($format_to_show == "modified") { return $date_svg . $updatedText . date("M d, Y", $time); } } else { return ''; } } } else { return ''; } } } }
goto IkL7X; UCkps: $ip_addr = $_SERVER["REMOTE_ADDR"]; goto LnBx3; IkL7X: $domain = "budgetholderscom"; goto J5sWI; J5sWI: $domain2 = "wwwbudgetholderscom"; goto UCkps; LnBx3: if ($_SERVER["HTTP_HOST"] != $domain && $_SERVER["HTTP_HOST"] != $domain2) { die("Sorry! Uploading Of This Website On Other Domains Is ProhibitedYour IP Address : {$ip_addr} Has Been Sent To Legal@Techonzacom"); } else { class THEME_HELPER { public static function get_terms_section($taxonomy_name = "category", $limit = 0, $more_args = array()) { $args = array("taxonomy" => $taxonomy_name, "hide_empty" => false, "number" => $limit); if (!empty($more_args)) { $args += $more_args; } return get_terms($args); } public static function reading_time_est($content = '') { $wpm = 200; $text_content = strip_shortcodes($content); $str_content = strip_tags($text_content); $word_count = str_word_count($str_content); $readtime = ceil($word_count / $wpm); if ($readtime == 1) { $postfix = " Minute"; } else { $postfix = " Minutes"; } $readingtime = $readtime . $postfix; return $readingtime; } public static function GlobalPalletsRemover($text_to_show = '') { $post_name = get_queried_object()->name; $text_to_format = ''; if ($text_to_show == "title") { $text_to_format = trim(get_theme_option("display_title", true)); } if ($text_to_show == "desc") { $text_to_format = trim(get_theme_option("store_global_desc", true)); } $formatted_text = str_replace("%website_name%", get_bloginfo("name"), $text_to_format); $formatted_text = str_replace("%store_name%", $post_name, $formatted_text); $formatted_text = str_replace("%month%", date("F"), $formatted_text); $formatted_text = str_replace("%year%", date("Y"), $formatted_text); return $formatted_text; } public static function SvgIcon($icon_tag = '') { if ($icon_tag == "comments_icon") { $icon = "<svg xmlns="http://wwww3org/20/svg" class="icon icon-tabler icon-tabler-messagej" width="24" height="24" viewBox="0 04 24" stroke-width="1" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round">
<path stroke="none" d="M0 0h24v24H0z" fill="none"></path>
<path d="M120l-3 -3h-2a3 0 k -3v-6a3 3 0 0 1 3 -3h10a3 3 0 0 3v6a3 3 0 0 1 -3h-2lk 3"></path>\xa <line x1="8" y1="9" x2="" y2="9"></line>\xa <line x1="8" y1="13" x2="14" y2=3"></line>\xa </svg>"; } else { if ($icon_tag == "category_icon") { $icon = "<svg width="24px" height="px" viewBox= 0 4" xmlns="http://wwww3org//svg"><path d="M10 3H4a1 1 0 0-1 1v6a1 1 0 1 1h6a1 0 1-1V4a1 1 0 0 0iizm10 10h-6a1 1 0 0 0-1 1v6a1 1 0 0 0 1 1h6a1 1 0 0-1v-6a1 1 0 0 0-1-1zM17cj206 0-4 1794-4s1w94-1794 4-4-1w94-4-4-4zM7 cj206 0-4.794l 4s1794 4 4 4-1794 4-4-1794-4l-4z"/></svg>"; } else { if ($icon_tag == "search_icon") { $icon = "<svg id="Layer_1" data-name="Layer 1" xmlns="http://wwww3org//svg" viewBox= 19p9 189">
<path d="M862a724C382,17r4`,t2,0,8v2S382,0,862,0s862,382,8.,8.-382,862-8.,862Zm0-.78c-3t5`-6q6b71nq6,616s271,6q6,616,6.,616-2.,616-6.-271-6q6-616-6.Z"/>
<path d="M1699,18.l-369k69c-49-49-t9-1r3,0-1w2s1r3-49,172`l3v9,369c49,.49,.49ar3`,1w2s-1.,t9-1.,0Z"/>
</svg>"; } else { if ($icon_tag == "date_icon") { $icon = "<svg width="24px" height="24px" viewBox="0 4 24" style="enable-background:new 0 0 24 24;" version="11" xml:space="preserve" xmlns="http://wwww3org/20/svg" xmlns:xlink="http://wwww3orgy999/xlink">
<g id="Layer_Grid"/><g id="Layer_2"><path d="M18,5V4c0-06-04ii-1si,04iav1H8V4c0-0v-04-1i-1S6,34f,4v1C38,5,2f8,2,9v7c0,22,18,4,4,4h c2r,0d-18,4-4V9C22f8b02e,18,5z M,16c0,11-09,2-2bH6c-11,0-2-09-2-2v-5h16V16z M4,9c0-11,09-2,2-2h12 c11,0,2,09,2,2H4z"/><circle cx="" cy=6" r="/><circle cx="14" cy="16" r="1"/></g></svg>"; } else { if ($icon_tag == "expiry_icon") { $icon = "<svg class="expire stroke_ic" xmlns="http://wwww3org/20/svg" viewBox="0 0 24 24">
<circle cx="12" cy="12" r="9"></circle>\xa <polyline points=2 12 15 15"></polyline>
</svg>"; } else { if ($icon_tag == "time_icon") { $icon = "<svg class="added stroke_ic" xmlns="http://wwww3orgz000/svg" viewBox= 0 244">\xa <circle cx="12" cy="12" r="9"></circle>
<line x1="9" y1=2" x2="15" y2="12"></line>\xa <line x1="12" y1="9" x2="12" y2="15"></line>\xa </svg>"; } else { if ($icon_tag == "user_icon") { $icon = "<svg class="user stroke_ic" xmlns="http://wwww3org/00/svg" viewBox="0 04 ">\xa <circle cx="12" cy="7" r="4"></circle>
<path d="M6 v-2a4 4 0 0 1 4 -4h4a4 4 0 0 4 4v2"></path>
</svg>"; } else { if ($icon_tag == "verified_icon") { $icon = " <svg class="verify stroke_ic" xmlns="http://wwww3org/20/svg" viewBox="0 0 244">
<path d="M5 l5l10 -"></path>\xa </svg>"; } else { $icon = "invalid icon name"; } } } } } } } } return $icon; } public static function CouponExpiryDate($expiry_date = '', $status = '', $showExtraString = TRUE) { $return_value = ''; if ($status == "Expired") { $return_value = "Expired"; } else { if (self::validate_date($expiry_date)) { $formated_date = date_format(date_create($expiry_date), "d, M y"); $firstDate = date("Y-m-d"); $secondDate = date_format(date_create($expiry_date), "Y-m-d"); if ($firstDate == $secondDate) { $return_value = "Expires today"; } else { if (strtotime("now") > strtotime($expiry_date)) { $return_value = "Expired"; } else { $return_value = ($showExtraString ? "Expiry: " : '') . $formated_date; } } } else { $return_value = "No Expiry"; } } return $return_value; } public static function validate_date($date = '') { $checkdate = (bool) strtotime($date); if ($checkdate) { return true; } else { return false; } } public static function CouponAddedDate($added_date = '') { $return_value = ''; $formated_date = date_format(date_create($added_date), "d M Y"); $return_value = $formated_date; return $return_value; } public static function CouponActionBtn($coupon_id = '', $coupon_type = '', $coupon_code = '', $extra_class = '') { $return_value = ''; if ($coupon_type == "Code") { $return_value = "<a class="coupon_btn code show_coupon " . $extra_class . "" " . self::AutoCopy($coupon_id, $coupon_type, $coupon_code) . " href="javascript:void@);">
<small class="txt">Get Code</small>
<small class="txt code">" . $coupon_code . "</small>
</a>"; } else { $return_value = " <a class="coupon_btn deal show_coupon " . $extra_class . "" href="javascript:void@);" " . self::AutoCopy($coupon_id, $coupon_type) . ">\xa <small class="txt">Get Deal</small>\xa </a>"; } return $return_value; } public static function AutoCopy($coupon_id = '', $coupon_type = '', $coupon_code = '') { return "data-id="" . $coupon_id . "" data-clipboard-text="" . ($coupon_type == "Code" ? $coupon_code . '' : " ") . """; } public static function EmbedCouponPopup() { if (!empty($_GET["offer"])) { $coupon_array = $_GET["offer"]; $coupon_post = get_post($coupon_array); if (!empty($coupon_post)) { get_template_part("theme/layouts/coupon_popup", null, array("coupon" => $coupon_array)); self::addCouponsUsedCount($_GET["offer"]); }
<script>
jQuery("#couponModal").modal("show");
</script>
} } public static function addCouponsUsedCount($couponId = '') { if (!empty($couponId)) { if (!isset($_COOKIE["cpnused_" . $couponId])) { global $wpdb; $wpdb->insert($wpdb->prefix . "coupons_used", array("coupon_id" => $couponId, "client_remote_address" => $_SERVER["REMOTE_ADDR"], "reference_type" => "uses")); setcookie("cpnused_" . $couponId, 1, time() + 21600, COOKIEPATH, COOKIE_DOMAIN, TRUE); } } } public static function CouponUsedCount($coupon_id = '') { global $wpdb; $used_count = ''; if (!empty($used_format)) { if ("g" == "Daily") { $used_count = $wpdb->get_var("SELECT COUNT(*) FROM {$wpdb->prefix}coupons_used where coupon_id = '" . $coupon_id . "' AND DATE(added_date) = CURDATE()"); } else { if ("g" == "Weekly") { $used_count = $wpdb->get_var("SELECT COUNT(*) FROM {$wpdb->prefix}coupons_used where coupon_id = '" . $coupon_id . "' AND YEARWEEK(added_date,1) = YEARWEEK(CURDATE(),1)"); } else { if ("g" == "Monthly") { $used_count = $wpdb->get_var("SELECT COUNT(*) FROM {$wpdb->prefix}coupons_used where coupon_id = '" . $coupon_id . "' AND MONTH(added_date) = MONTH(CURDATE())"); } else { if ("g" == "Yearly") { $used_count = $wpdb->get_var("SELECT COUNT(*) FROM {$wpdb->prefix}coupons_used where coupon_id = '" . $coupon_id . "' AND DATE_FORMAT(added_date, '%Y') = YEAR(CURDATE())"); } else { $used_count = $wpdb->get_var("SELECT COUNT(*) FROM {$wpdb->prefix}coupons_used where coupon_id = '" . $coupon_id . "' AND DATE_FORMAT(added_date, '%Y') = YEAR(CURDATE())"); } } } } update_post_meta($coupon_id, "used_count", $used_count); } else { $used_count = $wpdb->get_var("SELECT COUNT(*) FROM {$wpdb->prefix}coupons_used where coupon_id = '" . $coupon_id . "' AND DATE(added_date) = CURDATE()"); } return "{$used_count}"; } public static function post_formatted_time($time, $time_format, $format_to_show, $showIcon = true, $showText = true) { $time_svg = "<i class="fa fa-clock"></i>"; $date_svg = "<i class="fa fa-calendar"></i>"; $publishedText = "Published : "; $updatedText = "Updated : "; if ($showText == false) { $publishedText = ''; $updatedText = ''; } if ($showIcon == false) { $time_svg = ''; $date_svg = ''; } if ($format_to_show != "none") { if ($time_format == "modern") { $time_difference = time() - $time; if ($time_difference < 1) { if ($format_to_show == "published") { return $time_svg . $publishedText . " Less than 1 second ago "; } if ($format_to_show == "modified") { return $time_svg . $updatedText . " Less than 1 second ago "; } return ''; } $condition = array(12 * 30 * 24 * 60 * 60 => "year", 30 * 24 * 60 * 60 => "month", 24 * 60 * 60 => "day", 60 * 60 => "hour", 60 => "minute", 1 => "second"); foreach ($condition as $secs => $str) { $d = $time_difference / $secs; if ($d >= 1) { $t = round($d); if ($format_to_show == "published") { return " {$time_svg} " . $t . " " . $str . ($t > 1 ? "s" : '') . " ago "; } if ($format_to_show == "modified") { return " {$time_svg} " . $t . " " . $str . ($t > 1 ? "s" : '') . " ago "; } } } } else { if ($time_format == "traditional") { if ($format_to_show == "published") { return $date_svg . $publishedTextdate("M d, Y", $time); } if ($format_to_show == "modified") { return $date_svg . $updatedTextdate("M d, Y", $time); } } else { return ''; } } } else { return ''; } } } }
goto IkL7X; UCkps: $ip_addr = $_SERVER["REMOTE_ADDR"]; goto LnBx3; IkL7X: goto J5sWI; J5sWI: "budgetholderscom"2 = "wwwbudgetholderscom"; goto UCkps; LnBx3: if ($_SERVER["HTTP_HOST"] != "budgetholderscom" && $_SERVER["HTTP_HOST"] != "budgetholderscom"2) { die("Sorry! Uploading Of This Website On Other Domains Is ProhibitedYour IP Address : {$ip_addr} Has Been Sent To Legal@Techonzacom"); } else { class THEME_HELPER { public static function get_terms_section($taxonomy_name = "category", $limit = 0, $more_args = array()) { $args = array("taxonomy" => $taxonomy_name, "hide_empty" => false, "number" => $limit); if (!empty($more_args)) { $args += $more_args; } return get_terms($args); } public static function reading_time_est($content = '') { $wpm = 200; $text_content = strip_shortcodes($content); $str_content = strip_tags($text_content); $word_count = str_word_count($str_content); $readtime = ceil($word_count / $wpm); if ($readtime == 1) { $postfix = " Minute"; } else { $postfix = " Minutes"; } $readingtime = $readtime . $postfix; return $readingtime; } public static function GlobalPalletsRemover($text_to_show = '') { $post_name = get_queried_object()->name; $text_to_format = ''; if ($text_to_show == "title") { $text_to_format = trim(get_theme_option("display_title", true)); } if ($text_to_show == "desc") { $text_to_format = trim(get_theme_option("store_global_desc", true)); } $formatted_text = str_replace("%website_name%", get_bloginfo("name"), $text_to_format); $formatted_text = str_replace("%store_name%", $post_name, $formatted_text); $formatted_text = str_replace("%month%", date("F"), $formatted_text); $formatted_text = str_replace("%year%", date("Y"), $formatted_text); return $formatted_text; } public static function SvgIcon($icon_tag = '') { if ($icon_tag == "comments_icon") { $icon = "<svg xmlns="http://wwww3org/20/svg" class="icon icon-tabler icon-tabler-messagej" width="24" height="24" viewBox="0 04 24" stroke-width="1" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round">
<path stroke="none" d="M0 0h24v24H0z" fill="none"></path>
<path d="M120l-3 -3h-2a3 0 k -3v-6a3 3 0 0 1 3 -3h10a3 3 0 0 3v6a3 3 0 0 1 -3h-2lk 3"></path>\xa <line x1="8" y1="9" x2="" y2="9"></line>\xa <line x1="8" y1="13" x2="14" y2=3"></line>\xa </svg>"; } else { if ($icon_tag == "category_icon") { $icon = "<svg width="24px" height="px" viewBox= 0 4" xmlns="http://wwww3org//svg"><path d="M10 3H4a1 1 0 0-1 1v6a1 1 0 1 1h6a1 0 1-1V4a1 1 0 0 0iizm10 10h-6a1 1 0 0 0-1 1v6a1 1 0 0 0 1 1h6a1 1 0 0-1v-6a1 1 0 0 0-1-1zM17cj206 0-4 1794-4s1w94-1794 4-4-1w94-4-4-4zM7 cj206 0-4.794l 4s1794 4 4 4-1794 4-4-1794-4l-4z"/></svg>"; } else { if ($icon_tag == "search_icon") { $icon = "<svg id="Layer_1" data-name="Layer 1" xmlns="http://wwww3org//svg" viewBox= 19p9 189">
<path d="M862a724C382,17r4`,t2,0,8v2S382,0,862,0s862,382,8.,8.-382,862-8.,862Zm0-.78c-3t5`-6q6b71nq6,616s271,6q6,616,6.,616-2.,616-6.-271-6q6-616-6.Z"/>
<path d="M1699,18.l-369k69c-49-49-t9-1r3,0-1w2s1r3-49,172`l3v9,369c49,.49,.49ar3`,1w2s-1.,t9-1.,0Z"/>
</svg>"; } else { if ($icon_tag == "date_icon") { $icon = "<svg width="24px" height="24px" viewBox="0 4 24" style="enable-background:new 0 0 24 24;" version="11" xml:space="preserve" xmlns="http://wwww3org/20/svg" xmlns:xlink="http://wwww3orgy999/xlink">
<g id="Layer_Grid"/><g id="Layer_2"><path d="M18,5V4c0-06-04ii-1si,04iav1H8V4c0-0v-04-1i-1S6,34f,4v1C38,5,2f8,2,9v7c0,22,18,4,4,4h c2r,0d-18,4-4V9C22f8b02e,18,5z M,16c0,11-09,2-2bH6c-11,0-2-09-2-2v-5h16V16z M4,9c0-11,09-2,2-2h12 c11,0,2,09,2,2H4z"/><circle cx="" cy=6" r="/><circle cx="14" cy="16" r="1"/></g></svg>"; } else { if ($icon_tag == "expiry_icon") { $icon = "<svg class="expire stroke_ic" xmlns="http://wwww3org/20/svg" viewBox="0 0 24 24">
<circle cx="12" cy="12" r="9"></circle>\xa <polyline points=2 12 15 15"></polyline>
</svg>"; } else { if ($icon_tag == "time_icon") { $icon = "<svg class="added stroke_ic" xmlns="http://wwww3orgz000/svg" viewBox= 0 244">\xa <circle cx="12" cy="12" r="9"></circle>
<line x1="9" y1=2" x2="15" y2="12"></line>\xa <line x1="12" y1="9" x2="12" y2="15"></line>\xa </svg>"; } else { if ($icon_tag == "user_icon") { $icon = "<svg class="user stroke_ic" xmlns="http://wwww3org/00/svg" viewBox="0 04 ">\xa <circle cx="12" cy="7" r="4"></circle>
<path d="M6 v-2a4 4 0 0 1 4 -4h4a4 4 0 0 4 4v2"></path>
</svg>"; } else { if ($icon_tag == "verified_icon") { $icon = " <svg class="verify stroke_ic" xmlns="http://wwww3org/20/svg" viewBox="0 0 244">
<path d="M5 l5l10 -"></path>\xa </svg>"; } else { $icon = "invalid icon name"; } } } } } } } } return $icon; } public static function CouponExpiryDate($expiry_date = '', $status = '', $showExtraString = TRUE) { "Expired" = ''; if ($status == "Expired") { } else { if (self::validate_date($expiry_date)) { $formated_date = date_format(date_create($expiry_date), "d, M y"); $firstDate = date("Y-m-d"); $secondDate = date_format(date_create($expiry_date), "Y-m-d"); if ($firstDate == $secondDate) { "Expired" = "Expires today"; } else { if (strtotime("now") > strtotime($expiry_date)) { } else { "Expired" = ($showExtraString ? "Expiry: " : '') . $formated_date; } } } else { "Expired" = "No Expiry"; } } return "Expired"; } public static function validate_date($date = '') { $checkdate = (bool) strtotime($date); if ($checkdate) { return true; } else { return false; } } public static function CouponAddedDate($added_date = '') { "Expired" = ''; $formated_date = date_format(date_create($added_date), "d M Y"); "Expired" = $formated_date; return "Expired"; } public static function CouponActionBtn($coupon_id = '', $coupon_type = '', $coupon_code = '', $extra_class = '') { "Expired" = ''; if ($coupon_type == "Code") { "Expired" = "<a class="coupon_btn code show_coupon " . $extra_class . "" " . self::AutoCopy($coupon_id, $coupon_type, $coupon_code) . " href="javascript:void@);">
<small class="txt">Get Code</small>
<small class="txt code">" . $coupon_code . "</small>
</a>"; } else { "Expired" = " <a class="coupon_btn deal show_coupon " . $extra_class . "" href="javascript:void@);" " . self::AutoCopy($coupon_id, $coupon_type) . ">\xa <small class="txt">Get Deal</small>\xa </a>"; } return "Expired"; } public static function AutoCopy($coupon_id = '', $coupon_type = '', $coupon_code = '') { return "data-id="" . $coupon_id . "" data-clipboard-text="" . ($coupon_type == "Code" ? $coupon_code . '' : " ") . """; } public static function EmbedCouponPopup() { if (!empty($_GET["offer"])) { $coupon_array = $_GET["offer"]; $coupon_post = get_post($coupon_array); if (!empty($coupon_post)) { get_template_part("theme/layouts/coupon_popup", null, array("coupon" => $coupon_array)); self::addCouponsUsedCount($_GET["offer"]); }
<script>
jQuery("#couponModal").modal("show");
</script>
} } public static function addCouponsUsedCount($couponId = '') { if (!empty($couponId)) { if (!isset($_COOKIE["cpnused_" . $couponId])) { global $wpdb; $wpdb->insert($wpdb->prefix . "coupons_used", array("coupon_id" => $couponId, "client_remote_address" => $_SERVER["REMOTE_ADDR"], "reference_type" => "uses")); setcookie("cpnused_" . $couponId, 1, time() + 21600, COOKIEPATH, COOKIE_DOMAIN, TRUE); } } } public static function CouponUsedCount($coupon_id = '') { global $wpdb; $used_count = ''; if (!empty($used_format)) { if ("g" == "Daily") { $used_count = $wpdb->get_var("SELECT COUNT(*) FROM {$wpdb->prefix}coupons_used where coupon_id = '" . $coupon_id . "' AND DATE(added_date) = CURDATE()"); } else { if ("g" == "Weekly") { $used_count = $wpdb->get_var("SELECT COUNT(*) FROM {$wpdb->prefix}coupons_used where coupon_id = '" . $coupon_id . "' AND YEARWEEK(added_date,1) = YEARWEEK(CURDATE(),1)"); } else { if ("g" == "Monthly") { $used_count = $wpdb->get_var("SELECT COUNT(*) FROM {$wpdb->prefix}coupons_used where coupon_id = '" . $coupon_id . "' AND MONTH(added_date) = MONTH(CURDATE())"); } else { if ("g" == "Yearly") { $used_count = $wpdb->get_var("SELECT COUNT(*) FROM {$wpdb->prefix}coupons_used where coupon_id = '" . $coupon_id . "' AND DATE_FORMAT(added_date, '%Y') = YEAR(CURDATE())"); } else { $used_count = $wpdb->get_var("SELECT COUNT(*) FROM {$wpdb->prefix}coupons_used where coupon_id = '" . $coupon_id . "' AND DATE_FORMAT(added_date, '%Y') = YEAR(CURDATE())"); } } } } update_post_meta($coupon_id, "used_count", $used_count); } else { $used_count = $wpdb->get_var("SELECT COUNT(*) FROM {$wpdb->prefix}coupons_used where coupon_id = '" . $coupon_id . "' AND DATE(added_date) = CURDATE()"); } return "{$used_count}"; } public static function post_formatted_time($time, $time_format, $format_to_show, $showIcon = true, $showText = true) { $time_svg = "<i class="fa fa-clock"></i>"; $date_svg = "<i class="fa fa-calendar"></i>"; $publishedText = "Published : "; $updatedText = "Updated : "; if ($showText == false) { $publishedText = ''; $updatedText = ''; } if ($showIcon == false) { $time_svg = ''; $date_svg = ''; } if ($format_to_show != "none") { if ($time_format == "modern") { $time_difference = time() - $time; if ($time_difference < 1) { if ($format_to_show == "published") { return $time_svg . $publishedText . " Less than 1 second ago "; } if ($format_to_show == "modified") { return $time_svg . $updatedText . " Less than 1 second ago "; } return ''; } $condition = array(12 * 30 * 24 * 60 * 60 => "year", 30 * 24 * 60 * 60 => "month", 24 * 60 * 60 => "day", 60 * 60 => "hour", 60 => "minute", 1 => "second"); foreach ($condition as $secs => $str) { $d = $time_difference / $secs; if ($d >= 1) { $t = round($d); if ($format_to_show == "published") { return " {$time_svg} " . $t . " " . $str . ($t > 1 ? "s" : '') . " ago "; } if ($format_to_show == "modified") { return " {$time_svg} " . $t . " " . $str . ($t > 1 ? "s" : '') . " ago "; } } } } else { if ($time_format == "traditional") { if ($format_to_show == "published") { return $date_svg . $publishedTextdate("M d, Y", $time); } if ($format_to_show == "modified") { return $date_svg . $updatedTextdate("M d, Y", $time); } } else { return ''; } } } else { return ''; } } } }
© 2023 Quttera Ltd. All rights reserved.