Plugin Directory

Changeset 1652732


Ignore:
Timestamp:
05/08/2017 01:23:52 PM (9 years ago)
Author:
RightPress
Message:

Version 1.0.3

Location:
decorator-woocommerce-email-customizer/trunk
Files:
7 edited

Legend:

Unmodified
Added
Removed
  • decorator-woocommerce-email-customizer/trunk/changelog

    r1603451 r1652732  
     1Version 1.0.3, 8 May 2017
     2------------------------------------------------------------------------------------
     3* Fix - Warning related to second parameter of date()
     4* Dev - New filter hook rp_decorator_option_value to override any value
     5
     6Version 1.0.2, 4 April 2017
     7------------------------------------------------------------------------------------
     8* Fix - Styles are not always applied to order items table
     9
    110Version 1.0.1, 25 February 2017
    211------------------------------------------------------------------------------------
  • decorator-woocommerce-email-customizer/trunk/decorator.php

    r1603451 r1652732  
    55 * Plugin URI: http://www.rightpress.net/decorator
    66 * Description: Use native WordPress Customizer to make WooCommerce emails match your brand
    7  * Version: 1.0.1
     7 * Version: 1.0.3
    88 * Author: RightPress
    99 * Author URI: http://www.rightpress.net
     
    4242define('RP_DECORATOR_PLUGIN_PATH', plugin_dir_path(__FILE__));
    4343define('RP_DECORATOR_PLUGIN_URL', plugins_url(basename(plugin_dir_path(__FILE__)), basename(__FILE__)));
    44 define('RP_DECORATOR_VERSION', '1.0.1');
     44define('RP_DECORATOR_VERSION', '1.0.3');
    4545define('RP_DECORATOR_SUPPORT_PHP', '5.3');
    4646define('RP_DECORATOR_SUPPORT_WP', '4.4');
  • decorator-woocommerce-email-customizer/trunk/includes/classes/rp-decorator-customizer.class.php

    r1556452 r1652732  
    504504    public static function opt($key, $selector = null)
    505505    {
    506         return RP_Decorator_Customizer::prepare($key, RP_Decorator_Customizer::get_stored_value($key, RP_Decorator_Settings::get_default_value($key)), $selector);
     506        // Get raw value
     507        $stored_value = RP_Decorator_Customizer::get_stored_value($key, RP_Decorator_Settings::get_default_value($key));
     508
     509        // Prepare value
     510        $value = RP_Decorator_Customizer::prepare($key, $stored_value, $selector);
     511
     512        // Allow developers to override
     513        return apply_filters('rp_decorator_option_value', $value, $key, $selector, $stored_value);
    507514    }
    508515
  • decorator-woocommerce-email-customizer/trunk/includes/classes/rp-decorator-preview.class.php

    r1603451 r1652732  
    135135        $email->find['order-date']      = '{order_date}';
    136136        $email->find['order-number']    = '{order_number}';
    137         $email->replace['order-date']   = date_i18n(wc_date_format(), (method_exists($email->object, 'get_date_created') ? $email->object->get_date_created() : strtotime($email->object->order_date)));
     137        $email->replace['order-date']   = method_exists($email->object, 'get_date_created') ? wc_format_datetime($email->object->get_date_created()) : date_i18n(wc_date_format(), strtotime($email->object->order_date));
    138138        $email->replace['order-number'] = $email->object->get_order_number();
    139139
  • decorator-woocommerce-email-customizer/trunk/includes/classes/rp-decorator-settings.class.php

    r1556452 r1652732  
    12591259                    'selectors'     => array(
    12601260                        '#body_content_inner > table.td' => array('background-color'),
     1261                        '#body_content_inner > div#rp_wcec_email_content > table.td' => array('background-color'),
    12611262                    ),
    12621263                ),
     
    12711272                    'selectors'     => array(
    12721273                        '#body_content_inner > table.td th' => array('padding'),
     1274                        '#body_content_inner > div#rp_wcec_email_content > table.td th' => array('padding'),
    12731275                        '#body_content_inner > table.td td' => array('padding'),
     1276                        '#body_content_inner > div#rp_wcec_email_content > table.td td' => array('padding'),
    12741277                    ),
    12751278                    'input_attrs' => array(
     
    12891292                    'selectors'     => array(
    12901293                        '#body_content_inner > table.td'        => array('border-width'),
     1294                        '#body_content_inner > div#rp_wcec_email_content > table.td'        => array('border-width'),
    12911295                        '#body_content_inner > table.td .td'    => array('border-width'),
     1296                        '#body_content_inner > div#rp_wcec_email_content > table.td .td'    => array('border-width'),
    12921297                        '.rp_decorator_order_refund_line .td'        => array('border-width'),
    12931298                    ),
     
    13081313                    'selectors'     => array(
    13091314                        '#body_content_inner > table.td'        => array('border-color'),
     1315                        '#body_content_inner > div#rp_wcec_email_content > table.td'        => array('border-color'),
    13101316                        '#body_content_inner > table.td td.td'    => array('border-color'),
     1317                        '#body_content_inner > div#rp_wcec_email_content > table.td td.td'    => array('border-color'),
    13111318                        '#body_content_inner > table.td .td'    => array('border-color'),
     1319                        '#body_content_inner > div#rp_wcec_email_content > table.td .td'    => array('border-color'),
    13121320                    ),
    13131321                ),
     
    13221330                    'selectors'     => array(
    13231331                        '#body_content_inner > table.td > tbody' => array('border-bottom-width'),
     1332                        '#body_content_inner > div#rp_wcec_email_content > table.td > tbody' => array('border-bottom-width'),
    13241333                    ),
    13251334                    'input_attrs' => array(
     
    13391348                    'selectors'     => array(
    13401349                        '#body_content_inner > table.td > tbody' => array('border-bottom-color'),
     1350                        '#body_content_inner > div#rp_wcec_email_content > table.td > tbody' => array('border-bottom-color'),
    13411351                    ),
    13421352                ),
  • decorator-woocommerce-email-customizer/trunk/languages/rp_decorator.pot

    r1556452 r1652732  
    44"Plural-Forms: nplurals=INTEGER; plural=EXPRESSION;\n"
    55"Project-Id-Version: Decorator\n"
    6 "POT-Creation-Date: 2016-12-14 15:36+0200\n"
     6"POT-Creation-Date: 2017-05-08 15:49+0300\n"
    77"PO-Revision-Date: 2016-12-13 00:41+0200\n"
    88"Last-Translator: \n"
     
    199199#: includes/classes/rp-decorator-settings.class.php:287
    200200#: includes/classes/rp-decorator-settings.class.php:533
    201 #: includes/classes/rp-decorator-settings.class.php:1266
     201#: includes/classes/rp-decorator-settings.class.php:1267
    202202msgid "Padding"
    203203msgstr ""
     
    318318msgstr ""
    319319
    320 #: includes/classes/rp-decorator-settings.class.php:1284
     320#: includes/classes/rp-decorator-settings.class.php:1287
    321321msgid "Border width"
    322322msgstr ""
    323323
    324 #: includes/classes/rp-decorator-settings.class.php:1303
     324#: includes/classes/rp-decorator-settings.class.php:1308
    325325msgid "Border color"
    326326msgstr ""
    327327
    328 #: includes/classes/rp-decorator-settings.class.php:1317
     328#: includes/classes/rp-decorator-settings.class.php:1325
    329329msgid "Totals separator width"
    330330msgstr ""
    331331
    332 #: includes/classes/rp-decorator-settings.class.php:1334
     332#: includes/classes/rp-decorator-settings.class.php:1343
    333333msgid "Totals separator color"
    334334msgstr ""
    335335
    336 #: includes/classes/rp-decorator-settings.class.php:1467
     336#: includes/classes/rp-decorator-settings.class.php:1477
    337337msgid "none"
    338338msgstr ""
    339339
    340 #: includes/classes/rp-decorator-settings.class.php:1468
     340#: includes/classes/rp-decorator-settings.class.php:1478
    341341msgid "hidden"
    342342msgstr ""
    343343
    344 #: includes/classes/rp-decorator-settings.class.php:1469
     344#: includes/classes/rp-decorator-settings.class.php:1479
    345345msgid "dotted"
    346346msgstr ""
    347347
    348 #: includes/classes/rp-decorator-settings.class.php:1470
     348#: includes/classes/rp-decorator-settings.class.php:1480
    349349msgid "dashed"
    350350msgstr ""
    351351
    352 #: includes/classes/rp-decorator-settings.class.php:1471
     352#: includes/classes/rp-decorator-settings.class.php:1481
    353353msgid "solid"
    354354msgstr ""
    355355
    356 #: includes/classes/rp-decorator-settings.class.php:1472
     356#: includes/classes/rp-decorator-settings.class.php:1482
    357357msgid "double"
    358358msgstr ""
    359359
    360 #: includes/classes/rp-decorator-settings.class.php:1473
     360#: includes/classes/rp-decorator-settings.class.php:1483
    361361msgid "groove"
    362362msgstr ""
    363363
    364 #: includes/classes/rp-decorator-settings.class.php:1474
     364#: includes/classes/rp-decorator-settings.class.php:1484
    365365msgid "ridge"
    366366msgstr ""
    367367
    368 #: includes/classes/rp-decorator-settings.class.php:1475
     368#: includes/classes/rp-decorator-settings.class.php:1485
    369369msgid "inset"
    370370msgstr ""
    371371
    372 #: includes/classes/rp-decorator-settings.class.php:1476
     372#: includes/classes/rp-decorator-settings.class.php:1486
    373373msgid "outset"
    374374msgstr ""
    375375
    376 #: includes/classes/rp-decorator-settings.class.php:1489
     376#: includes/classes/rp-decorator-settings.class.php:1499
    377377msgid "left"
    378378msgstr ""
    379379
    380 #: includes/classes/rp-decorator-settings.class.php:1490
     380#: includes/classes/rp-decorator-settings.class.php:1500
    381381msgid "center"
    382382msgstr ""
    383383
    384 #: includes/classes/rp-decorator-settings.class.php:1491
     384#: includes/classes/rp-decorator-settings.class.php:1501
    385385msgid "right"
    386386msgstr ""
    387387
    388 #: includes/classes/rp-decorator-settings.class.php:1492
     388#: includes/classes/rp-decorator-settings.class.php:1502
    389389msgid "justify"
    390390msgstr ""
    391391
    392 #: includes/classes/rp-decorator-settings.class.php:1505
     392#: includes/classes/rp-decorator-settings.class.php:1515
    393393msgid "Arial"
    394394msgstr ""
    395395
    396 #: includes/classes/rp-decorator-settings.class.php:1506
     396#: includes/classes/rp-decorator-settings.class.php:1516
    397397msgid "Arial Black"
    398398msgstr ""
    399399
    400 #: includes/classes/rp-decorator-settings.class.php:1507
     400#: includes/classes/rp-decorator-settings.class.php:1517
    401401msgid "Courier New"
    402402msgstr ""
    403403
    404 #: includes/classes/rp-decorator-settings.class.php:1509
     404#: includes/classes/rp-decorator-settings.class.php:1519
    405405msgid "Helvetica"
    406406msgstr ""
    407407
    408 #: includes/classes/rp-decorator-settings.class.php:1510
     408#: includes/classes/rp-decorator-settings.class.php:1520
    409409msgid "Impact"
    410410msgstr ""
    411411
    412 #: includes/classes/rp-decorator-settings.class.php:1511
     412#: includes/classes/rp-decorator-settings.class.php:1521
    413413msgid "Lucida"
    414414msgstr ""
    415415
    416 #: includes/classes/rp-decorator-settings.class.php:1512
     416#: includes/classes/rp-decorator-settings.class.php:1522
    417417msgid "Palatino"
    418418msgstr ""
  • decorator-woocommerce-email-customizer/trunk/readme.txt

    r1603455 r1652732  
    55Requires at least: 4.4
    66Tested up to: 4.7
    7 Stable tag: 1.0.1
     7Stable tag: 1.0.3
    88License: GPLv3 or later
    99License URI: http://www.gnu.org/licenses/gpl-3.0.html
     
    2929
    3030== Changelog ==
     31= Version 1.0.3, 8 May 2017 =
     32* Fix - Warning related to second parameter of date()
     33* Dev - New filter hook rp_decorator_option_value to override any value
     34
     35= Version 1.0.2, 4 April 2017 =
     36* Fix - Styles are not always applied to order items table
     37
     38= Version 1.0.1, 25 February 2017 =
     39* Tweak - Improved compatibility with WooCommerce 2.7
     40
    3141= Version 1.0, 12 December 2016 =
    3242* Initial release
Note: See TracChangeset for help on using the changeset viewer.