Plugin Directory

Changeset 1430087


Ignore:
Timestamp:
06/03/2016 06:01:39 PM (10 years ago)
Author:
Engr.MTH
Message:

Committing version 1.0.5

Location:
tajer/trunk
Files:
7 edited

Legend:

Unmodified
Added
Removed
  • tajer/trunk/classes/admin/class-tajer-addons.php

    r1341165 r1430087  
    2424        global $submenu;
    2525
     26        if ( ! is_array( $submenu['edit.php?post_type=tajer_products'] ) ) {
     27            return;
     28        }
     29
    2630        $last_key = key( array_slice( $submenu['edit.php?post_type=tajer_products'], - 1, 1, true ) );
    2731
  • tajer/trunk/classes/admin/class-tajer-downloads-tcpdf.php

    r1341165 r1430087  
    1111    //Page header
    1212    public function Header() {
    13         global $current_user;
    14         get_currentuserinfo();
     13        $current_user = wp_get_current_user();
    1514        // Set font
    1615        $this->SetFont( 'helvetica', 'B', 20 );
  • tajer/trunk/classes/admin/class-tajer-sales-tcpdf.php

    r1341165 r1430087  
    1616    //Page header
    1717    public function Header() {
    18         global $current_user;
    19         get_currentuserinfo();
     18        $current_user = wp_get_current_user();
    2019        // Set font
    2120        $this->SetFont( 'helvetica', 'B', 20 );
  • tajer/trunk/includes/tajer-functions.php

    r1363903 r1430087  
    206206
    207207    foreach ( $trials as $trial ) {
    208         $product_sub_ids_that_have_trial = array_merge( $product_sub_ids_that_have_trial, $trial['prices'] );//todo Mohammed I think in case the trial is disabled $trial['prices'] is not array
     208        if ( ! is_array( $trial['prices'] ) ) {
     209            continue;
     210        }
     211        $product_sub_ids_that_have_trial = array_merge( $product_sub_ids_that_have_trial, $trial['prices'] );
    209212    }
    210213
     
    12871290        $user = get_user_by( 'id', $user_id );//todo Mohammed urgent is this will return everything below
    12881291    } else {
    1289         global $current_user;
    1290         get_currentuserinfo();
    1291         $user = $current_user;
     1292        $current_user = wp_get_current_user();
     1293        $user         = $current_user;
    12921294    }
    12931295
     
    18641866function tajer_is_trial_possible( $period, $product_id, $product_sub_id ) {
    18651867
    1866     global $current_user;
    1867     get_currentuserinfo();
     1868    $current_user = wp_get_current_user();
    18681869
    18691870    //check if the admin deny the user by ip or by email or both then get the ip and the user email and check them
     
    19251926
    19261927function tajer_insert_trial_record( $product_id, $product_sub_id ) {
    1927     global $current_user;
    1928     get_currentuserinfo();
     1928    $current_user = wp_get_current_user();
    19291929
    19301930    $data = array(
  • tajer/trunk/languages/tajer.pot

    r1363903 r1430087  
    33msgid ""
    44msgstr ""
    5 "Project-Id-Version: Tajer 1.0.3\n"
     5"Project-Id-Version: Tajer 1.0.4\n"
    66"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/tajer\n"
    7 "POT-Creation-Date: 2016-03-03 11:21:48+00:00\n"
     7"POT-Creation-Date: 2016-06-01 21:29:14+00:00\n"
    88"MIME-Version: 1.0\n"
    99"Content-Type: text/plain; charset=utf-8\n"
     
    113113msgstr ""
    114114
     115#: classes/admin/class-tajer-downloads-tcpdf.php:17
     116msgid "Downloads Report"
     117msgstr ""
     118
    115119#: classes/admin/class-tajer-downloads-tcpdf.php:18
    116 msgid "Downloads Report"
     120#: classes/admin/class-tajer-sales-tcpdf.php:23
     121msgid "Report Creation Date: "
    117122msgstr ""
    118123
    119124#: classes/admin/class-tajer-downloads-tcpdf.php:19
    120125#: classes/admin/class-tajer-sales-tcpdf.php:24
    121 msgid "Report Creation Date: "
     126msgid "Created By: "
    122127msgstr ""
    123128
    124129#: classes/admin/class-tajer-downloads-tcpdf.php:20
    125130#: classes/admin/class-tajer-sales-tcpdf.php:25
    126 msgid "Created By: "
     131msgid "For Period From: "
    127132msgstr ""
    128133
    129134#: classes/admin/class-tajer-downloads-tcpdf.php:21
    130135#: classes/admin/class-tajer-sales-tcpdf.php:26
    131 msgid "For Period From: "
    132 msgstr ""
    133 
    134 #: classes/admin/class-tajer-downloads-tcpdf.php:22
    135 #: classes/admin/class-tajer-sales-tcpdf.php:27
    136136msgid "To: "
    137137msgstr ""
     
    549549msgstr ""
    550550
    551 #: classes/admin/class-tajer-sales-tcpdf.php:23
     551#: classes/admin/class-tajer-sales-tcpdf.php:22
    552552msgid "Statistics Report"
    553553msgstr ""
    554554
    555 #: classes/admin/class-tajer-sales-tcpdf.php:38
     555#: classes/admin/class-tajer-sales-tcpdf.php:37
    556556msgid "Copyright © "
    557557msgstr ""
    558558
    559 #: classes/admin/class-tajer-sales-tcpdf.php:38
     559#: classes/admin/class-tajer-sales-tcpdf.php:37
    560560msgid ".  All rights reserved."
    561561msgstr ""
     
    984984msgstr ""
    985985
    986 #: classes/admin/class-tajer-thickbox.php:96 includes/tajer-functions.php:1262
     986#: classes/admin/class-tajer-thickbox.php:96 includes/tajer-functions.php:1280
    987987#: templates/dashboard.php:125
    988988msgid "Buy Now"
     
    12311231#: classes/frontend/class-tajer-cart-page.php:438
    12321232#: classes/frontend/class-tajer-cart-page.php:443
    1233 #: includes/tajer-functions.php:1566 includes/tajer-functions.php:1571
     1233#: includes/tajer-functions.php:1583 includes/tajer-functions.php:1588
    12341234msgid "The trial version of this product has been activated for you!"
    12351235msgstr ""
     
    12421242
    12431243#: classes/frontend/class-tajer-cart-page.php:486
    1244 #: includes/tajer-functions.php:1645
     1244#: includes/tajer-functions.php:1662
    12451245msgid " - includes "
    12461246msgstr ""
     
    12491249#: classes/frontend/class-tajer-frontend-product.php:71
    12501250#: classes/frontend/class-tajer-frontend-product.php:73
    1251 #: includes/tajer-functions.php:1645
     1251#: includes/tajer-functions.php:1662
    12521252msgid "% tax"
    12531253msgstr ""
    12541254
    12551255#: classes/frontend/class-tajer-cart-page.php:486
    1256 #: includes/tajer-functions.php:1645
     1256#: includes/tajer-functions.php:1662
    12571257msgid " - excludes "
    12581258msgstr ""
     
    12791279#: classes/frontend/class-tajer-content-seller.php:98
    12801280#: classes/frontend/class-tajer-content-seller.php:174
    1281 #: classes/frontend/class-tajer-dashboard.php:202
     1281#: classes/frontend/class-tajer-dashboard.php:204
    12821282msgid "Error contact website admin!"
    12831283msgstr ""
     
    13051305#: classes/frontend/class-tajer-dashboard.php:53
    13061306#: classes/frontend/class-tajer-frontend-product.php:192
    1307 #: includes/tajer-functions.php:1522
     1307#: includes/tajer-functions.php:1539
    13081308msgid "Cant Remove The Product!"
    13091309msgstr ""
     
    13141314
    13151315#: classes/frontend/class-tajer-dashboard.php:114
    1316 msgid "You haven't purchased this products."
     1316msgid "Unfortunately you can't download this file!"
    13171317msgstr ""
    13181318
     
    15571557msgstr ""
    15581558
    1559 #: includes/tajer-functions.php:1024
     1559#: includes/tajer-functions.php:1027
    15601560msgid "This discount is invalid."
    15611561msgstr ""
    15621562
    1563 #: includes/tajer-functions.php:1029
     1563#: includes/tajer-functions.php:1032
    15641564msgid "This discount is not effective yet."
    15651565msgstr ""
    15661566
    1567 #: includes/tajer-functions.php:1034
     1567#: includes/tajer-functions.php:1037
    15681568msgid "This discount is expired."
    15691569msgstr ""
    15701570
    1571 #: includes/tajer-functions.php:1039
     1571#: includes/tajer-functions.php:1042
    15721572msgid "This discount is inactive."
    15731573msgstr ""
    15741574
    1575 #: includes/tajer-functions.php:1044
     1575#: includes/tajer-functions.php:1047
    15761576msgid "This discount has reached the maximum number of coupons."
    15771577msgstr ""
    15781578
    1579 #: includes/tajer-functions.php:1049
     1579#: includes/tajer-functions.php:1052
    15801580msgid "Sorry, this coupon is only available for purchases over "
    15811581msgstr ""
    15821582
    1583 #: includes/tajer-functions.php:1495
     1583#: includes/tajer-functions.php:1512
    15841584msgid "Please login first!"
    15851585msgstr ""
    15861586
    1587 #: includes/tajer-functions.php:1519
     1587#: includes/tajer-functions.php:1536
    15881588msgid "Product Removed From Cart!"
    15891589msgstr ""
    15901590
    1591 #: includes/tajer-functions.php:1559
     1591#: includes/tajer-functions.php:1576
    15921592msgid "Something wrong happen please contact the website admin"
    15931593msgstr ""
  • tajer/trunk/readme.txt

    r1363903 r1430087  
    66Tags: market, marketplace, e-market, e-marketplace,download, downloads, e-store, shopping cart, eshop, digital downloads, e-downloads, ecommerce, e commerce, e-commerce, selling, wp-ecommerce, wp ecommerce, Mohammed Thaer, mohammedthaer, MOSTASHAROON
    77Requires at least: 4.0
    8 Tested up to: 4.4.2
    9 Stable tag: 1.0.4
     8Tested up to: 4.5.2
     9Stable tag: 1.0.5
    1010
    1111License: GNU Version 2 or Any Later Version
     
    1818You can sell any kind of digital goods: downloads, articles,  a piece of content or any kind of content or virtual products.
    1919
    20 Its very easy yet powerful within just few clicks your product will be ready to sell!
     20It's very easy yet powerful within just a few clicks your product will be ready to sell!
    2121
    22 You want to see this live? go ahead and visit [Tajer’s demo website](http://demo.mostasharoon.org/tajer/).
     22Do you want to see this live? go ahead and visit [Tajer’s demo website](http://demo.mostasharoon.org/tajer/).
    2323
    2424
    2525Some of Tajer features include:
    2626
    27 * Upgrades: allow your users to upgrade their products to another products.
     27* Upgrades: allow your users to upgrade their products to other products.
    2828* Trials: you can give your customers a free trial for any product!
    29 * Recurring(Subscription): create a single purchase subscription products and force your users to renew their subscription for any period of time(1 year, 2 months, 5 week, etc.).
     29* Recurring(Subscription): create a single purchase subscription products and force your users to renew their subscription for any period of time(1 year, 2 months, 5 weeks, etc.).
    3030* Downloads Manager: you can use Tajer as a download manager to manage all your digital downloadable products.
    3131* Memberships & Access Manager: restrict post, page, custom post type, widget, menu item, single word, single line, etc. access for buyers of a specific product(s), or offers free products(remember with Tajer you can turn any digital content to a product!) but forces your users to log in or have a specific role in order to access it.
     
    3737* Multilingual: multilingual ready.
    3838* 100+ Currencies: support by default more than 100 currencies and you can add more.
    39 * Taxes: you can charge taxes depending on country, county and state,etc.
     39* Taxes: you can charge taxes depending on the country, county and state, etc.
    4040* Templates & Styles: Tajer uses one of most modern and beautiful CSS/JS framework which is [Semantic UI](http://semantic-ui.com/) to style its elements, you can make more than 160 color combination, also building templates for Tajer is a very easy process.
    4141* Backend User Products Manager: do you want to add a product to a user manually?or do you want to deactivate or remove a user’s product manually? or you will maybe need to extend the expiration date for a specific product for a specific user and much more. The backend user products manager allows you achieve that.
     
    4545* [Well Documented](https://mostasharoon.org/tajer-documentation/).
    4646* Hooks: Tajer has about 500 hooks, this makes it very easy to modify its behavior or create add-ons or themes for it. Need more hooks? just tell us about them.
    47 * And much more . .
     47* And much more.
    4848
    4949**Important Links**
     
    8080== Changelog ==
    8181
     82= 1.0.5, June 3, 2016 =
     83
     84* Enhance: Update tajer.pot file.
     85* Enhance: remove get_currentuserinfo() deprecated function.
     86* Fix: Fix array_merge warning in tajer_is_trial function.
     87* Fix: Fix warning appear because null given in key() & array_slice() functions.
     88
    8289= 1.0.4, March 4, 2016 =
    8390
  • tajer/trunk/tajer.php

    r1363903 r1430087  
    77  Plugin URI: https://mostasharoon.org/tajer/
    88  Description: Tajer is an electronic merchant that can sell your digital products instead of you.
    9   Version: 1.0.4
     9  Version: 1.0.5
    1010  Author: Mohammed Thaer
    1111  Author URI: https://mostasharoon.org
     
    1313 */
    1414
    15 define( 'TAJER_VERSION', '1.0.4' );
     15define( 'TAJER_VERSION', '1.0.5' );
    1616// Dir to the plugin
    1717define( 'Tajer_DIR', plugin_dir_path( __FILE__ ) );
Note: See TracChangeset for help on using the changeset viewer.