Changeset 1430087
- Timestamp:
- 06/03/2016 06:01:39 PM (10 years ago)
- Location:
- tajer/trunk
- Files:
-
- 7 edited
-
classes/admin/class-tajer-addons.php (modified) (1 diff)
-
classes/admin/class-tajer-downloads-tcpdf.php (modified) (1 diff)
-
classes/admin/class-tajer-sales-tcpdf.php (modified) (1 diff)
-
includes/tajer-functions.php (modified) (4 diffs)
-
languages/tajer.pot (modified) (11 diffs)
-
readme.txt (modified) (5 diffs)
-
tajer.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
tajer/trunk/classes/admin/class-tajer-addons.php
r1341165 r1430087 24 24 global $submenu; 25 25 26 if ( ! is_array( $submenu['edit.php?post_type=tajer_products'] ) ) { 27 return; 28 } 29 26 30 $last_key = key( array_slice( $submenu['edit.php?post_type=tajer_products'], - 1, 1, true ) ); 27 31 -
tajer/trunk/classes/admin/class-tajer-downloads-tcpdf.php
r1341165 r1430087 11 11 //Page header 12 12 public function Header() { 13 global $current_user; 14 get_currentuserinfo(); 13 $current_user = wp_get_current_user(); 15 14 // Set font 16 15 $this->SetFont( 'helvetica', 'B', 20 ); -
tajer/trunk/classes/admin/class-tajer-sales-tcpdf.php
r1341165 r1430087 16 16 //Page header 17 17 public function Header() { 18 global $current_user; 19 get_currentuserinfo(); 18 $current_user = wp_get_current_user(); 20 19 // Set font 21 20 $this->SetFont( 'helvetica', 'B', 20 ); -
tajer/trunk/includes/tajer-functions.php
r1363903 r1430087 206 206 207 207 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'] ); 209 212 } 210 213 … … 1287 1290 $user = get_user_by( 'id', $user_id );//todo Mohammed urgent is this will return everything below 1288 1291 } else { 1289 global $current_user; 1290 get_currentuserinfo(); 1291 $user = $current_user; 1292 $current_user = wp_get_current_user(); 1293 $user = $current_user; 1292 1294 } 1293 1295 … … 1864 1866 function tajer_is_trial_possible( $period, $product_id, $product_sub_id ) { 1865 1867 1866 global $current_user; 1867 get_currentuserinfo(); 1868 $current_user = wp_get_current_user(); 1868 1869 1869 1870 //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 … … 1925 1926 1926 1927 function tajer_insert_trial_record( $product_id, $product_sub_id ) { 1927 global $current_user; 1928 get_currentuserinfo(); 1928 $current_user = wp_get_current_user(); 1929 1929 1930 1930 $data = array( -
tajer/trunk/languages/tajer.pot
r1363903 r1430087 3 3 msgid "" 4 4 msgstr "" 5 "Project-Id-Version: Tajer 1.0. 3\n"5 "Project-Id-Version: Tajer 1.0.4\n" 6 6 "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/tajer\n" 7 "POT-Creation-Date: 2016-0 3-03 11:21:48+00:00\n"7 "POT-Creation-Date: 2016-06-01 21:29:14+00:00\n" 8 8 "MIME-Version: 1.0\n" 9 9 "Content-Type: text/plain; charset=utf-8\n" … … 113 113 msgstr "" 114 114 115 #: classes/admin/class-tajer-downloads-tcpdf.php:17 116 msgid "Downloads Report" 117 msgstr "" 118 115 119 #: classes/admin/class-tajer-downloads-tcpdf.php:18 116 msgid "Downloads Report" 120 #: classes/admin/class-tajer-sales-tcpdf.php:23 121 msgid "Report Creation Date: " 117 122 msgstr "" 118 123 119 124 #: classes/admin/class-tajer-downloads-tcpdf.php:19 120 125 #: classes/admin/class-tajer-sales-tcpdf.php:24 121 msgid " Report Creation Date: "126 msgid "Created By: " 122 127 msgstr "" 123 128 124 129 #: classes/admin/class-tajer-downloads-tcpdf.php:20 125 130 #: classes/admin/class-tajer-sales-tcpdf.php:25 126 msgid " Created By: "131 msgid "For Period From: " 127 132 msgstr "" 128 133 129 134 #: classes/admin/class-tajer-downloads-tcpdf.php:21 130 135 #: classes/admin/class-tajer-sales-tcpdf.php:26 131 msgid "For Period From: "132 msgstr ""133 134 #: classes/admin/class-tajer-downloads-tcpdf.php:22135 #: classes/admin/class-tajer-sales-tcpdf.php:27136 136 msgid "To: " 137 137 msgstr "" … … 549 549 msgstr "" 550 550 551 #: classes/admin/class-tajer-sales-tcpdf.php:2 3551 #: classes/admin/class-tajer-sales-tcpdf.php:22 552 552 msgid "Statistics Report" 553 553 msgstr "" 554 554 555 #: classes/admin/class-tajer-sales-tcpdf.php:3 8555 #: classes/admin/class-tajer-sales-tcpdf.php:37 556 556 msgid "Copyright © " 557 557 msgstr "" 558 558 559 #: classes/admin/class-tajer-sales-tcpdf.php:3 8559 #: classes/admin/class-tajer-sales-tcpdf.php:37 560 560 msgid ". All rights reserved." 561 561 msgstr "" … … 984 984 msgstr "" 985 985 986 #: classes/admin/class-tajer-thickbox.php:96 includes/tajer-functions.php:12 62986 #: classes/admin/class-tajer-thickbox.php:96 includes/tajer-functions.php:1280 987 987 #: templates/dashboard.php:125 988 988 msgid "Buy Now" … … 1231 1231 #: classes/frontend/class-tajer-cart-page.php:438 1232 1232 #: classes/frontend/class-tajer-cart-page.php:443 1233 #: includes/tajer-functions.php:15 66 includes/tajer-functions.php:15711233 #: includes/tajer-functions.php:1583 includes/tajer-functions.php:1588 1234 1234 msgid "The trial version of this product has been activated for you!" 1235 1235 msgstr "" … … 1242 1242 1243 1243 #: classes/frontend/class-tajer-cart-page.php:486 1244 #: includes/tajer-functions.php:16 451244 #: includes/tajer-functions.php:1662 1245 1245 msgid " - includes " 1246 1246 msgstr "" … … 1249 1249 #: classes/frontend/class-tajer-frontend-product.php:71 1250 1250 #: classes/frontend/class-tajer-frontend-product.php:73 1251 #: includes/tajer-functions.php:16 451251 #: includes/tajer-functions.php:1662 1252 1252 msgid "% tax" 1253 1253 msgstr "" 1254 1254 1255 1255 #: classes/frontend/class-tajer-cart-page.php:486 1256 #: includes/tajer-functions.php:16 451256 #: includes/tajer-functions.php:1662 1257 1257 msgid " - excludes " 1258 1258 msgstr "" … … 1279 1279 #: classes/frontend/class-tajer-content-seller.php:98 1280 1280 #: classes/frontend/class-tajer-content-seller.php:174 1281 #: classes/frontend/class-tajer-dashboard.php:20 21281 #: classes/frontend/class-tajer-dashboard.php:204 1282 1282 msgid "Error contact website admin!" 1283 1283 msgstr "" … … 1305 1305 #: classes/frontend/class-tajer-dashboard.php:53 1306 1306 #: classes/frontend/class-tajer-frontend-product.php:192 1307 #: includes/tajer-functions.php:15 221307 #: includes/tajer-functions.php:1539 1308 1308 msgid "Cant Remove The Product!" 1309 1309 msgstr "" … … 1314 1314 1315 1315 #: classes/frontend/class-tajer-dashboard.php:114 1316 msgid " You haven't purchased this products."1316 msgid "Unfortunately you can't download this file!" 1317 1317 msgstr "" 1318 1318 … … 1557 1557 msgstr "" 1558 1558 1559 #: includes/tajer-functions.php:102 41559 #: includes/tajer-functions.php:1027 1560 1560 msgid "This discount is invalid." 1561 1561 msgstr "" 1562 1562 1563 #: includes/tajer-functions.php:10 291563 #: includes/tajer-functions.php:1032 1564 1564 msgid "This discount is not effective yet." 1565 1565 msgstr "" 1566 1566 1567 #: includes/tajer-functions.php:103 41567 #: includes/tajer-functions.php:1037 1568 1568 msgid "This discount is expired." 1569 1569 msgstr "" 1570 1570 1571 #: includes/tajer-functions.php:10 391571 #: includes/tajer-functions.php:1042 1572 1572 msgid "This discount is inactive." 1573 1573 msgstr "" 1574 1574 1575 #: includes/tajer-functions.php:104 41575 #: includes/tajer-functions.php:1047 1576 1576 msgid "This discount has reached the maximum number of coupons." 1577 1577 msgstr "" 1578 1578 1579 #: includes/tajer-functions.php:10 491579 #: includes/tajer-functions.php:1052 1580 1580 msgid "Sorry, this coupon is only available for purchases over " 1581 1581 msgstr "" 1582 1582 1583 #: includes/tajer-functions.php:1 4951583 #: includes/tajer-functions.php:1512 1584 1584 msgid "Please login first!" 1585 1585 msgstr "" 1586 1586 1587 #: includes/tajer-functions.php:15 191587 #: includes/tajer-functions.php:1536 1588 1588 msgid "Product Removed From Cart!" 1589 1589 msgstr "" 1590 1590 1591 #: includes/tajer-functions.php:15 591591 #: includes/tajer-functions.php:1576 1592 1592 msgid "Something wrong happen please contact the website admin" 1593 1593 msgstr "" -
tajer/trunk/readme.txt
r1363903 r1430087 6 6 Tags: 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 7 7 Requires at least: 4.0 8 Tested up to: 4. 4.29 Stable tag: 1.0. 48 Tested up to: 4.5.2 9 Stable tag: 1.0.5 10 10 11 11 License: GNU Version 2 or Any Later Version … … 18 18 You can sell any kind of digital goods: downloads, articles, a piece of content or any kind of content or virtual products. 19 19 20 It s very easy yet powerful within justfew clicks your product will be ready to sell!20 It's very easy yet powerful within just a few clicks your product will be ready to sell! 21 21 22 You want to see this live? go ahead and visit [Tajer’s demo website](http://demo.mostasharoon.org/tajer/).22 Do you want to see this live? go ahead and visit [Tajer’s demo website](http://demo.mostasharoon.org/tajer/). 23 23 24 24 25 25 Some of Tajer features include: 26 26 27 * Upgrades: allow your users to upgrade their products to another products.27 * Upgrades: allow your users to upgrade their products to other products. 28 28 * 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.). 30 30 * Downloads Manager: you can use Tajer as a download manager to manage all your digital downloadable products. 31 31 * 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. … … 37 37 * Multilingual: multilingual ready. 38 38 * 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. 40 40 * 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. 41 41 * 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. … … 45 45 * [Well Documented](https://mostasharoon.org/tajer-documentation/). 46 46 * 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. 48 48 49 49 **Important Links** … … 80 80 == Changelog == 81 81 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 82 89 = 1.0.4, March 4, 2016 = 83 90 -
tajer/trunk/tajer.php
r1363903 r1430087 7 7 Plugin URI: https://mostasharoon.org/tajer/ 8 8 Description: Tajer is an electronic merchant that can sell your digital products instead of you. 9 Version: 1.0. 49 Version: 1.0.5 10 10 Author: Mohammed Thaer 11 11 Author URI: https://mostasharoon.org … … 13 13 */ 14 14 15 define( 'TAJER_VERSION', '1.0. 4' );15 define( 'TAJER_VERSION', '1.0.5' ); 16 16 // Dir to the plugin 17 17 define( 'Tajer_DIR', plugin_dir_path( __FILE__ ) );
Note: See TracChangeset
for help on using the changeset viewer.