Skip to content

Commit

Permalink
Merge pull request #29 from codersaiful/5.7.0
Browse files Browse the repository at this point in the history
5.7.0 - Merged on master branch
  • Loading branch information
codersaiful authored Nov 14, 2023
2 parents 3b0f7be + 00796f3 commit 9245d0a
Show file tree
Hide file tree
Showing 6 changed files with 45 additions and 18 deletions.
4 changes: 2 additions & 2 deletions admin/page/main-page/premium-link-header.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?php
$coupon_Code = 'CYBERSECURITY50';
$coupon_Code = 'BLACKFRIDAY2023';

?>
<div class="wrap wcmmq_wrap wcmmq-content">
Expand All @@ -15,7 +15,7 @@
</a>
</div>
<div class="col-lg-4">
<h2>CYBER SECURITY MONTH</h2>
<h2>BLACK FRIDAY</h2>
<p>Checkout our Offer.</p>
</div>
<div class="col-lg-6">
Expand Down
26 changes: 26 additions & 0 deletions assets/css/admin.css
Original file line number Diff line number Diff line change
Expand Up @@ -771,3 +771,29 @@ tr.user_can_not_edit>td:last-child:after {
tr.user_can_not_edit>td {
position: relative;
}

/* black Friday offer */
.notice.ca-notice.notice-offer[data-notice_id="wcmmq_BLACKFRIDAY2023_offer"] {background: black;color: #607D8B;}
.notice.ca-notice.notice-offer[data-notice_id="wcmmq_BLACKFRIDAY2023_offer"] a.ca-logo-link img,
.notice.ca-notice.notice-offer[data-notice_id="wcmmq_BLACKFRIDAY2023_offer"] a.ca-logo-link img,
.notice.ca-notice.notice-offer[data-notice_id="wcmmq_BLACKFRIDAY2023_offer"] img,
.notice.ca-notice.notice-offer[data-notice_id="wcmmq_BLACKFRIDAY2023_offer"] a {
border: 0 none !important;
}
.notice.ca-notice.notice-offer[data-notice_id="wcmmq_BLACKFRIDAY2023_offer"] .ca-msg-text h1 {
color: #ff0000;
font-size: 19px;
}
.notice.ca-notice.notice-offer[data-notice_id="wcmmq_BLACKFRIDAY2023_offer"] .ca-msg-text p>b:last-child {
color: red;
}
.notice.ca-notice.notice-offer[data-notice_id="wcmmq_BLACKFRIDAY2023_offer"] .ca-msg-text p>b>i {
color: #4CAF50;
}
.notice.ca-notice.notice-offer[data-notice_id="wcmmq_BLACKFRIDAY2023_offer"] .ca-msg-text p {
padding-bottom: 5px;
}

.fieldwrap .anywhere-notice.ca-notice.notice-offer .ca-msg-text p.ca-links-collection {
display: none;
}
Binary file added assets/images/copoun-min-max.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
24 changes: 13 additions & 11 deletions framework/plugin-required.php
Original file line number Diff line number Diff line change
Expand Up @@ -52,11 +52,11 @@ public static function fail()
public static function display_notice()
{

//Today: 31.10.2023 - 1698724145 and added 20 days seccond - 1728000 (little change actually)
if(time() > (1698724145 + 2728000)) return;
//Today: 12.11.2023 - 1698724145 and added 20 days seccond - 1728000 (little change actually)
if(time() > (1699862697 + 2728000)) return;
if( defined( 'WC_MMQ_PRO_VERSION' ) ) return;

$temp_numb = rand(5,9);
$temp_numb = rand(1,9);
/**
* small notice for pro plugin,
* charect:
Expand All @@ -75,14 +75,14 @@ public static function display_notice()
/**
* Offer Hanndle
*/
$coupon_Code = 'CYBERSECURITY50';
$coupon_Code = 'BLACKFRIDAY2023';
$target = 'https://codeastrology.com/min-max-quantity/pricing/?discount=' . $coupon_Code . '&campaign=' . $coupon_Code . '&ref=1&utm_source=Default_Offer_LINK';
$my_message = '<b><i>COUPON CODE: ' . $coupon_Code . ' - up to 65% OFF</i></b> A coupon code for you for <b>Min Max Control</b> Plugin';
$my_message = '<b>COUPON CODE: <i>' . $coupon_Code . '</i> - up to 50% OFF</b> for <b>Min Max Control</b> Plugin';
$offerNc = new Notice('wcmmq_'.$coupon_Code.'_offer');
$offerNc->set_title( 'upto 65% Discount - Cyber Security Month' )
$offerNc->set_title( 'BLACK FRIDAY OFFER 🍋 🍌' )
->set_diff_limit(3)
->set_type('offer')
->set_img( WC_MMQ_BASE_URL. 'assets/images/min-max-logo.png')
->set_img( WC_MMQ_BASE_URL. 'assets/images/copoun-min-max.png')
->set_img_target( $target )
->set_message( $my_message )
->add_button([
Expand All @@ -106,10 +106,12 @@ public static function display_notice()
// 'type' => 'error',
// 'link' => 'https://codeastrology.com/downloads//?discount=' . $coupon_Code,
// ]);
if( method_exists($offerNc, 'set_location') && $temp_numb == 8){
$offerNc->set_location('wcmmq_form_panel_bottom'); //wpt_premium_image_bottom
$offerNc->show();
}

//Somossa hocche tai muche dilam.
// if( method_exists($offerNc, 'set_location') && $temp_numb == 8){
// $offerNc->set_location('wcmmq_form_panel_bottom'); //wpt_premium_image_bottom
// $offerNc->show();
// }
if($temp_numb == 5) $offerNc->show();


Expand Down
2 changes: 1 addition & 1 deletion readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ Tags: min max, minimum quantity, maximum quantity, woocommrce quantity, customiz
Requires at least: 4.0.0
Tested up to: 6.3.2
Requires PHP: 5.4
Stable tag: 5.6
Stable tag: 5.7
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Expand Down
7 changes: 3 additions & 4 deletions wcmmq.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
* Author URI: https://codeastrology.com
* Tags: WooCommerce, minimum quantity, maximum quantity, woocommrce quantity, input step control for WC, customize wc quantity, wc qt, max qt, min qt, maximum qt, minimum qt
*
* Version: 5.6
* Version: 5.7
* Requires at least: 4.0.0
* Tested up to: 6.4
* WC requires at least: 3.0.0
Expand All @@ -25,7 +25,7 @@
*/

define('WC_MMQ__FILE__', __FILE__);
define('WC_MMQ_VERSION', '5.6.0');
define('WC_MMQ_VERSION', '5.7.0');
define('WC_MMQ_PATH', plugin_dir_path(WC_MMQ__FILE__));
define('WC_MMQ_URL', plugins_url(DIRECTORY_SEPARATOR, WC_MMQ__FILE__));
//for Modules and
Expand Down Expand Up @@ -223,8 +223,7 @@ public function __construct() {
include_once $dir . '/includes/enqueue.php';

include_once $dir . '/includes/set_max_min_quantity.php';
$saful = new WC_MMQ\Includes\Min_Max_Controller();
// var_dump($saful);
new WC_MMQ\Includes\Min_Max_Controller();
}

/**
Expand Down

0 comments on commit 9245d0a

Please sign in to comment.