Plugin Directory

Changeset 3155101


Ignore:
Timestamp:
09/20/2024 09:58:24 AM (17 months ago)
Author:
Persianscript
Message:

v 7.0.0 update

Location:
persian-woocommerce-sms
Files:
519 added
1 deleted
3 edited

Legend:

Unmodified
Added
Removed
  • persian-woocommerce-sms/trunk/WoocommerceIR_SMS.php

    r3005038 r3155101  
    44 * Plugin URI: https://woosupport.ir
    55 * Description: افزونه کامل و حرفه ای برای اطلاع رسانی پیامکی سفارشات و رویداد های محصولات ووکامرس. تمامی حقوق این افزونه متعلق به <a href="http://woosupport.ir" target="_blank">تیم ووکامرس پارسی</a> می باشد و هر گونه کپی برداری، فروش آن غیر مجاز می باشد.
    6  * Version: 6.1.0
     6 * Version: 7.0.0
    77 * Author: ووکامرس فارسی
    88 * Author URI: https://woosupport.ir
    99 * WC requires at least: 6.0.0
    10  * WC tested up to: 8.3.1
     10 * WC tested up to: 9.3.2
    1111 */
    1212
     
    1616}
    1717
    18 if ( ! defined( 'PWOOSMS_VERSION' ) ) {
    19     define( 'PWOOSMS_VERSION', '6.1.0' );
     18require_once 'vendor/autoload.php';
     19
     20if ( ! defined( 'PWSMS_VERSION' ) ) {
     21    define( 'PWSMS_VERSION', '7.0.0' );
    2022}
    2123
    22 if ( ! defined( 'PWOOSMS_URL' ) ) {
    23     define( 'PWOOSMS_URL', plugins_url( '', __FILE__ ) );
     24if ( ! defined( 'PWSMS_URL' ) ) {
     25    define( 'PWSMS_URL', plugins_url( '', __FILE__ ) );
    2426}
    2527
    26 if ( ! defined( 'PWOOSMS_INCLUDE_DIR' ) ) {
    27     define( 'PWOOSMS_INCLUDE_DIR', dirname( __FILE__ ) . '/includes' );
     28if ( ! defined( 'PWSMS_DIR' ) ) {
     29    define( 'PWSMS_DIR', dirname( __FILE__ ) );
    2830}
    2931
    30 register_activation_hook( __FILE__, 'WoocommerceIR_SMS_Register' );
    31 register_deactivation_hook( __FILE__, 'WoocommerceIR_SMS_Register' );
     32if ( ! defined( 'PWSMS_LOG_FILE' ) ) {
     33    define( 'PWSMS_LOG_FILE', wp_upload_dir()['basedir'] . '/wc-logs/pwsms.log' );
     34}
    3235
    33 function WoocommerceIR_SMS_Register() {
     36register_activation_hook( __FILE__, 'PWSMS_REGISTER' );
     37register_deactivation_hook( __FILE__, 'PWSMS_REGISTER' );
     38
     39function PWSMS_REGISTER() {
    3440    delete_option( 'pwoosms_table_archive' );
    3541    delete_option( 'pwoosms_table_contacts' );
     
    3844}
    3945
    40 require_once 'includes/class-gateways.php';
    41 require_once 'includes/class-settings-api.php';
    42 require_once 'includes/class-settings.php';
    43 require_once 'includes/class-helper.php';
    44 require_once 'includes/class-bulk.php';
    45 require_once 'includes/class-about.php';
    46 require_once 'includes/class-ads.php';
    47 require_once 'includes/class-notice.php';
     46/*
     47 * Rewrite SoapClient as a null class
     48 * This plugin depends on the SOAP php module
     49 * If the soap is not enabled, There will be an empty SoapClient class
     50*/
     51if ( ! class_exists( 'SoapClient' ) ) {
     52    class SoapClient {
     53        public function __construct( $wsdl, $options = [] ) {
     54        }
    4855
    49 require_once 'includes/class-metabox.php';
    50 require_once 'includes/class-subscription.php';
    51 require_once 'includes/class-product-tab.php';
    52 require_once 'includes/class-product-events.php';
    53 require_once 'includes/class-orders.php';
    54 require_once 'includes/class-archive.php';
    55 require_once 'includes/class-contacts.php';
    56 require_once 'includes/class-functions.php';
     56        public function __call( $name, $arguments ) {
     57            throw new Exception( "عملکرد با اشکال مواجه شد، لطفا اکستنشن SOAP را در PHP فعال کنید." );
     58        }
     59    }
    5760
    58 require_once 'includes/class-deprecateds.php';
    59 
    60 add_action( 'admin_enqueue_scripts', 'load_woo_sms_admin_style' );
    61 
    62 function load_woo_sms_admin_style() {
    63     wp_enqueue_style( 'persian_woo_admin_style', plugin_dir_url( __FILE__ ) . 'assets/css/admin-style.css' );
     61    add_action( 'admin_notices', function () {
     62        ?>
     63        <div class="notice notice-error is-dismissible">
     64            <p><?php _e( ' برای عملکرد صحیح افزونه <b>پیامک حرفه ای ووکامرس</b>، اکستنشن <b>SOAP</b> را در PHP فعال کنید.' ); ?></p>
     65        </div>
     66        <?php
     67    } );
    6468}
    6569
    66 add_action( 'before_woocommerce_init', function() {
    67     if ( class_exists( \Automattic\WooCommerce\Utilities\FeaturesUtil::class ) ) {
    68         \Automattic\WooCommerce\Utilities\FeaturesUtil::declare_compatibility( 'custom_order_tables', __FILE__, true );
     70
     71add_action( 'before_woocommerce_init', function () {
     72    if ( class_exists( Automattic\WooCommerce\Utilities\FeaturesUtil::class ) ) {
     73        Automattic\WooCommerce\Utilities\FeaturesUtil::declare_compatibility( 'custom_order_tables', __FILE__, true );
    6974    }
    7075} );
     76
     77add_filter( 'plugin_row_meta', function ( $links, $file ) {
     78    if ( strpos( $file, basename( __FILE__ ) ) ) {
     79        $links[] = '<a style="font-weight:bold;color:red;" href="https://hits.ir/sms-pro" target="_blank" title="پشیتبانی افزونه"> پشتیبانی PRO </a>';
     80        $links[] = '<a style="font-weight:bold;color:blue;" href="https://profiles.wordpress.org/persianscript/#content-plugins" target="_blank" title="مخزن وردپرس"><strong>سایر افزونه ها</strong></a>';
     81    }
     82
     83    return $links;
     84}, 10, 2 );
     85
     86/**
     87 * Rollback support for general shortcode function
     88 */
     89if ( ! function_exists( 'pwsms_shortcode' ) ) {
     90    function pwsms_shortcode( $get = false, $strip_brackets = false ) {
     91        if ( $get ) {
     92            return PW\PWSMS\Shortcode::shortcode( $get, $strip_brackets );
     93        }
     94        PW\PWSMS\Shortcode::shortcode( $get, $strip_brackets );
     95    }
     96}
     97
     98/**
     99 * Helper instance is the whole functions to interact with core or gateways
     100 *
     101 * @return PW\PWSMS\Helper
     102 * */
     103if ( ! function_exists( 'PWSMS' ) ) {
     104    function PWSMS() {
     105        return PW\PWSMS\Helper::instance();
     106    }
     107}
     108
     109/**
     110 * Rollback support for PWSMS function,
     111 * This function is used in other plugins
     112 *
     113 * @return PW\PWSMS\Helper
     114 */
     115if ( ! function_exists( 'PWooSMS' ) ) {
     116    function PWooSMS() {
     117        return PWSMS();
     118    }
     119}
     120
     121/**
     122 * Run whole system
     123 */
     124if ( class_exists( '\PW\PWSMS\PWSMS' ) ) {
     125    PW\PWSMS\PWSMS::instance();
     126}
  • persian-woocommerce-sms/trunk/assets/css/admin-style.css

    r2792047 r3155101  
    11@font-face {
    2   font-family: 'Vazirmatn';
    3   src: url('fonts/webfonts/Vazirmatn[wght].woff2') format('woff2 supports variations'),
    4        url('fonts/webfonts/Vazirmatn[wght].woff2') format('woff2-variations');
    5   font-weight: 100 900;
    6   font-style: normal;
    7   font-display: swap;
     2    font-family: 'Vazirmatn';
     3    src: url('fonts/webfonts/Vazirmatn[wght].woff2') format('woff2 supports variations'),
     4    url('fonts/webfonts/Vazirmatn[wght].woff2') format('woff2-variations');
     5    font-weight: 100 900;
     6    font-style: normal;
     7    font-display: swap;
    88}
    99
    10 .persian_woocommerce_sms{
    11     background:#fff;
    12     font-family:Vazirmatn;
    13     padding:15px;
    14     margin:15px;
    15     border-radius:8px;
    16     box-shadow: 0 0 30px #ddd;
    17     -webkit-box-shadow: 0 0 30px #ddd;
    18     -moz-box-shadow: 0 0 30px #ddd;
    19     border:1px solid #e4e4e4;
     10.persian_woocommerce_sms {
     11    background: #fff;
     12    font-family: Vazirmatn;
     13    padding: 15px;
     14    margin: 15px;
     15    border-radius: 8px;
     16    box-shadow: 0 0 30px #ddd;
     17    -webkit-box-shadow: 0 0 30px #ddd;
     18    -moz-box-shadow: 0 0 30px #ddd;
     19    border: 1px solid #e4e4e4;
    2020}
    21 .persian-woocommerce-sms h1,.persian-woocommerce-sms  h2,.persian-woocommerce-sms h3,.persian-woocommerce-sms h4,.persian-woocommerce-sms h5,.persian-woocommerce-sms h6{
    22     font-family:Vazirmatn!important;
     21
     22.persian-woocommerce-sms h1, .persian-woocommerce-sms h2, .persian-woocommerce-sms h3, .persian-woocommerce-sms h4, .persian-woocommerce-sms h5, .persian-woocommerce-sms h6 {
     23    font-family: Vazirmatn !important;
    2324}
    2425
    2526
    26 .persian-woocommerce-sms img.logo{
    27     padding:5px;
    28     margin:15px 0;
     27.persian-woocommerce-sms img.logo {
     28    padding: 5px;
     29    margin: 15px 0;
    2930}
    3031
    31 .persian-woocommerce-sms .clear{
    32     clear:both;
     32.persian-woocommerce-sms .clear {
     33    clear: both;
    3334}
    3435
    35 .persian-woocommerce-sms hr.pwoo_line{
    36     border-top: 1px dashed #8c8b8b;
    37     border-bottom: 1px dashed #fff;
     36.persian-woocommerce-sms hr.pwoo_line {
     37    border-top: 1px dashed #8c8b8b;
     38    border-bottom: 1px dashed #fff;
    3839}
    3940
    40 .persian_woocommerce_sms .float-left-buttons{
    41     float:left;
     41.persian_woocommerce_sms .float-left-buttons {
     42    float: left;
    4243}
    4344
    44 .persian_woocommerce_sms .nav-tab{
    45     border-radius:9px;
    46     border-bottom: 3px solid #080809!important;
    47     background: #f4f4fb!important;
    48 }
    49 .persian_woocommerce_sms .nav-tab-active{
    50     border-bottom: 3px solid #080809!important;
    51     background: #6666c8!important;
    52     color: #fff!important;
    53     border-radius:9px;
     45.persian_woocommerce_sms .nav-tab {
     46    border-radius: 9px;
     47    border-bottom: 3px solid #080809 !important;
     48    background: #f4f4fb !important;
    5449}
    5550
    56 .persian_woocommerce_sms .nav-tab-wrapper{
    57     border-bottom: none!important;
     51.persian_woocommerce_sms .nav-tab-active {
     52    border-bottom: 3px solid #080809 !important;
     53    background: #6666c8 !important;
     54    color: #fff !important;
     55    border-radius: 9px;
    5856}
    5957
    60 .right-side-pwoo{
    61     display:none;
     58.persian_woocommerce_sms .nav-tab-wrapper {
     59    border-bottom: none !important;
     60    display: flex;
     61    flex-wrap: wrap;
     62    gap: 5px;
     63    justify-content: start;
     64    align-items: center;
     65}
     66
     67.right-side-pwoo {
     68    display: none;
    6269}
    6370
    6471@media only screen and (min-width: 768px) {
    65   .persian_woocommerce_sms {
    66     width:65%;
    67     float:right;
    68   }
    69   .right-side-pwoo{
    70     width:27%;
    71     display:inline;
    72     float:right;
    73     padding:5px;
    74     font-family:Vazirmatn;
    75    
    76    
    77     }
    78    
    79     .right-side-pwoo h3{
    80         font-family:Vazirmatn;
    81         margin:none;
    82         margin-top:12px;
    83     }
    84    
    85     .right-side-pwoo img.tblq{
    86         max-width:400px;
    87         border-radius:8px;
    88         margin:0 auto;
    89         margin-top:18px;
    90         display:block;
    91         border:1px solid #e4e4e4;
    92     }
     72    .persian_woocommerce_sms {
     73        /*width: 65%;*/
     74        /*float: right;*/
     75    }
     76
     77    .right-side-pwoo {
     78        display: flex;
     79        flex-wrap: wrap;
     80        gap: 5px;
     81        flex-direction: row;
     82        justify-content: center;
     83        align-items: center;
     84        /*width:27%;*/
     85        /*display:inline;*/
     86        /*float:right;*/
     87        padding: 5px;
     88        font-family: Vazirmatn;
     89    }
     90
     91    .right-side-pwoo .notice {
     92        flex: 0 0 100%;
     93        box-sizing: border-box;
     94        margin: 0;
     95    }
     96
     97    .right-side-pwoo *:not(.notice) {
     98        flex: 0 1 30%;
     99        box-sizing: border-box;
     100
     101    }
     102
     103    .right-side-pwoo h3 {
     104        font-family: Vazirmatn;
     105        margin: unset;
     106        margin-top: 12px;
     107    }
     108
     109    .right-side-pwoo img.tblq {
     110        max-width: 400px;
     111        border-radius: 8px;
     112        margin: 0 auto;
     113        margin-top: 18px;
     114        display: block;
     115        border: 1px solid #e4e4e4;
     116    }
    93117}
    94118
    95119
    96 .col{
    97     width:45%;
     120.col {
     121    width: 45%;
    98122}
    99123
    100 .two-col{
    101     clear:both;
     124.two-col {
     125    clear: both;
    102126}
    103127
    104 .two-col .col{
    105     width:45%;
    106     float:right;
    107     padding: 1%;
     128.two-col .col {
     129    width: 45%;
     130    float: right;
     131    padding: 1%;
    108132}
    109133
    110 .feature-section ,.changelog {
    111     clear:both;
     134.feature-section, .changelog {
     135    clear: both;
    112136}
    113137
    114 .persian_woocommerce_sms .about-wrap h1,.persian_woocommerce_sms .about-wrap h2,.persian_woocommerce_sms .about-wrap h3,.persian_woocommerce_sms .about-wrap h4,.persian_woocommerce_sms .about-wrap h5{
    115     font-family:Vazirmatn!important;
     138.persian_woocommerce_sms .about-wrap h1, .persian_woocommerce_sms .about-wrap h2, .persian_woocommerce_sms .about-wrap h3, .persian_woocommerce_sms .about-wrap h4, .persian_woocommerce_sms .about-wrap h5 {
     139    font-family: Vazirmatn !important;
    116140}
    117141
    118 .about-wrap img{
    119     width: auto;
    120 }
    121 .persian_woocommerce_sms ul{
    122    
    123   list-style: square;
     142.about-wrap img {
     143    width: auto;
    124144}
    125145
    126 .persian_woocommerce_sms form .notice{display:none!important}
     146.persian_woocommerce_sms ul {
     147
     148    list-style: square;
     149}
     150
     151.persian_woocommerce_sms form .notice {
     152    display: none !important
     153}
    127154
    128155
    129156.promote_hosting {
    130   padding: 24px 16px;
    131   border-radius: 4px;
    132   color: #fff;
    133   text-align: center;
    134   background: #6666c8;
    135   margin: 5px 15px 2px;
     157    padding: 24px 16px;
     158    border-radius: 4px;
     159    color: #fff;
     160    text-align: center;
     161    background: #6666c8;
     162    margin: 5px 15px 2px;
    136163}
    137164
    138165.promote_hosting .promote-hosting {
    139   display: contents;
    140   font-size: 3.25rem;
    141   line-height: 1;
    142   margin-bottom: 8px;
     166    display: contents;
     167    font-size: 3.25rem;
     168    line-height: 1;
     169    margin-bottom: 8px;
    143170}
    144171
    145 .promote_hosting h3{color:#fff;}
    146 .right-side-pwoo .notice img{
    147     vertical-align:bottom;
     172.promote_hosting h3 {
     173    color: #fff;
    148174}
     175
     176.right-side-pwoo .notice img {
     177    vertical-align: bottom;
     178}
     179
     180.sms_archive_delete_form {
     181    margin-top: 17px;
     182}
  • persian-woocommerce-sms/trunk/readme.txt

    r3011822 r3155101  
    22author: ووکامرس فارسی
    33Contributors: Persianscript
    4 author URI: https://www.woosupport.ir
    5 Donate link: https://www.woosupport.ir
     4author URI: https://woosupport.ir
     5Donate link: https://woosupport.ir
    66plugin URI: https://woosupport.ir
    77Tags: sms,ووکامرس فارسی,woocommerce,persian woocommerce,پیامک
    88Requires at least: 5.8
    9 Tested up to: 6.3.2
     9Tested up to: 6.6.2
    1010Requires PHP: 7.4
    11 Stable tag: 6.1.0
     11Stable tag: 7.0.0
    1212
    1313افزونه کامل و حرفه ای برای اطلاع رسانی پیامکی سفارشات و رویداد های محصولات ووکامرس
     
    122122 * Arad ITC
    123123 * SMSNegar.ir
     124 * MAX-SMS.co (IPPANEL.co)
    124125 
    125 
    126 = پشتیبانی =
    127 *  [پشتیبانی در ووکامرس فارسی](http://forum.persianscript.ir/topic/25199-%D8%AA%D8%A7%D9%BE%DB%8C%DA%A9-%D9%BE%D8%B4%D8%AA%DB%8C%D8%A8%D8%A7%D9%86%DB%8C-%D8%A7%D9%81%D8%B2%D9%88%D9%86%D9%87-%D9%BE%DB%8C%D8%A7%D9%85%DA%A9-%D9%88%D9%88%DA%A9%D8%A7%D9%85%D8%B1%D8%B3/?tab=comments#comment-129964/)
    128126
    129127== Installation ==
     
    149147
    150148== Changelog ==
     149= 7.0.0 =
     150* بازنویسی کامل افزونه
     151* سازگاری با PHP 8.1
     152* رفع خطا در هنگام ویرایش محصول
     153* رفع مشکل ارسال پیامک تکراری در خبرنامه مشتریان (NEW)
     154* قابلیت دریافت خروجی اکسل از شماره مشتریان (NEW)
     155* امکان پاکسازی گزارش ارسال پیامک (NEW)
     156* افزودن وبسرویس مکث اس ام اس - IPPANEL.CO (NEW)
    151157= 6.1.0 =
    152158* سازگاری با HPOS
     
    365371
    366372== Upgrade Notice ==
    367 = 6.0.0 =
    368 * بهبود دیتابیس و افزودن چند پنل پیامک
     373= 7.0.0 =
     374* هشدار: حتما افزونه مکمل پیامکippanel را غیرفعال کنید. در غیر اینصورت احتمال بروز خطا وجود دارد!
Note: See TracChangeset for help on using the changeset viewer.