forked from graphpaperpress/Sell-Media
/
settings.php
713 lines (691 loc) · 23.9 KB
/
settings.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
<?php
/**
* Settings
*
* @package Sell Media
* @author Thad Allender <support@graphpaperpress.com>
*/
/**
* Init our settings
* @since 1.8.5
*/
function sell_media_init_settings() {
$settings = sell_media_get_plugin_options();
/**
* Define the Tabs appearing on the Theme Options page
* Tabs contains sections
* Options are assigned to both Tabs and Sections
* See README.md for a full list of option types
*/
// General Tab
$general_settings_tab = array(
"name" => "sell_media_general_settings",
"title" => __( "General", "sell_media" ),
"sections" => array(
"general_plugin_section_1" => array(
"name" => "general_plugin_section_1",
"title" => __( "General", "sell_media" ),
"description" => ""
)
)
);
sell_media_register_plugin_option_tab( apply_filters( 'sell_media_general_tab', $general_settings_tab ) );
// Size & Price Tab
$size_price_tab = array(
"name" => "sell_media_size_settings",
"title" => __( "Pricing", "sell_media" ),
"sections" => array(
"size_price_plugin_section_1" => array(
"name" => "size_price_plugin_section_1",
"title" => __( "Pricing", "sell_media" ),
"description" => ""
)
)
);
sell_media_register_plugin_option_tab( apply_filters('sell_media_size_price_tab', $size_price_tab) );
// Payment Tab
$payment_tab = array(
"name" => "sell_media_payment_settings",
"title" => __("Payment","sell_media"),
"sections" => array(
"payment_section_1" => array(
"name" => "payment_section_1",
"title" => __("Payment","sell_media"),
"description" => ""
)
)
);
sell_media_register_plugin_option_tab( apply_filters('sell_media_payment_tab', $payment_tab) );
// Email Tab
$email_tab = array(
"name" => "email_plugin_tab",
"title" => __("Email","sell_media"),
"sections" => array(
"email_section_1" => array(
"name" => "email_section_1",
"title" => __("Email Settings","sell_media"),
"description" => ""
)
)
);
sell_media_register_plugin_option_tab( $email_tab );
// Misc Tab
$misc_tab = array(
"name" => "misc_plugin_tab",
"title" => __("Misc","sell_media"),
"sections" => array(
"misc_section_1" => array(
"name" => "misc_section_1",
"title" => __("Misc","sell_media"),
"description" => ""
)
)
);
sell_media_register_plugin_option_tab( apply_filters( 'sell_media_misc_tab', $misc_tab ) );
/**
* The following example shows you how to register theme options and assign them to tabs and sections:
*/
$options = array(
// General Tab
"test_mode" => array(
"tab" => "sell_media_general_settings",
"name" => "test_mode",
"title" => __( "Mode","sell_media" ),
"description" => sprintf( __( "Select Live Mode to accept real transactions. Select Test Mode to accept test transactions (%s).", "sell_media" ), "<a href='https://developer.paypal.com/' target='_blank'>PayPal sandbox account required</a>" ),
"section" => "general_plugin_section_1",
"since" => "1.0",
"id" => "general_plugin_section_1",
"type" => "select",
"default" => 1,
"valid_options" => array(
1 => array(
'name' => 1,
'title' => __( 'Test Mode', 'sell_media' ),
),
0 => array(
'name' => 0,
'title' => __( 'Live Mode', 'sell_media' )
)
)
),
"checkout_page" => array(
"tab" => "sell_media_general_settings",
"name" => "checkout_page",
"title" => __("Checkout Page","sell_media"),
"description" => __( "Select the page that contains the checkout shortcode <code>[sell_media_checkout]</code>", "sell_media" ),
"section" => "general_plugin_section_1",
"since" => "1.0",
"id" => "general_plugin_section_1",
"type" => "select",
"default" => '',
"valid_options" => sell_media_pages_options()
),
"thanks_page" => array(
"tab" => "sell_media_general_settings",
"name" => "thanks_page",
"title" => __("Thanks Page","sell_media"),
"description" => __( "Select the page that contains the thanks shortcode <code>[sell_media_thanks]</code>", "sell_media" ),
"section" => "general_plugin_section_1",
"since" => "1.0",
"id" => "general_plugin_section_1",
"type" => "select",
"default" => '',
"valid_options" => sell_media_pages_options()
),
"dashboard_page" => array(
"tab" => "sell_media_general_settings",
"name" => "dashboard_page",
"title" => __("Dashboard Page","sell_media"),
"description" => __( "Select the page that contains the dashboard shortcode<code>[sell_media_download_list]</code>", "sell_media" ),
"section" => "general_plugin_section_1",
"since" => "1.0",
"id" => "general_plugin_section_1",
"type" => "select",
"default" => '',
"valid_options" => sell_media_pages_options()
),
"login_page" => array(
"tab" => "sell_media_general_settings",
"name" => "login_page",
"title" => __("Login Page","sell_media"),
"description" => __( "Select the page that contains the login shortcode <code>[sell_media_login_form]</code>", "sell_media" ),
"section" => "general_plugin_section_1",
"since" => "1.0",
"id" => "general_plugin_section_1",
"type" => "select",
"default" => '',
"valid_options" => sell_media_pages_options()
),
"search_page" => array(
"tab" => "sell_media_general_settings",
"name" => "search_page",
"title" => __("Search Page","sell_media"),
"description" => __( "Select the page that contains the search shortcode <code>[sell_media_searchform]</code>", "sell_media" ),
"section" => "general_plugin_section_1",
"since" => "1.0",
"id" => "general_plugin_section_1",
"type" => "select",
"default" => '',
"valid_options" => sell_media_pages_options()
),
"lightbox_page" => array(
"tab" => "sell_media_general_settings",
"name" => "lightbox_page",
"title" => __("Lightbox Page","sell_media"),
"description" => __( "Select the page that contains the lightbox shortcode <code>[sell_media_lightbox]</code> or select \"None\" to disable the lightbox functionality altogether.", "sell_media" ),
"section" => "general_plugin_section_1",
"since" => "1.0",
"id" => "general_plugin_section_1",
"type" => "select",
"default" => '',
"valid_options" => sell_media_pages_options()
),
"customer_notification" => array(
"tab" => "sell_media_general_settings",
"name" => "customer_notification",
"title" => __("Customer Notification","sell_media"),
"description" => __( "Notify the customer of their site registration.", "sell_media" ),
"section" => "general_plugin_section_1",
"since" => "1.0",
"id" => "general_plugin_section_1",
"type" => "select",
"default" => 1,
"valid_options" => array(
0 => array(
"name" => 0,
"title" => __("No","sell_media")
),
1 => array(
"name" => 1,
"title" => __("Yes","sell_media"),
)
)
),
"style" => array(
"tab" => "sell_media_general_settings",
"name" => "style",
"title" => __("Style","sell_media"),
"description" => __( "Choose the style of your theme. Sell Media will load styles to match your theme.", "sell_media" ),
"section" => "general_plugin_section_1",
"since" => "1.0",
"id" => "general_plugin_section_1",
"type" => "select",
"default" => "light",
"valid_options" => array(
"dark" => array(
"name" => "dark",
"title" => __("Dark","sell_media")
),
"light" => array(
"name" => "light",
"title" => __("Light","sell_media")
)
)
),
"layout" => array(
"tab" => "sell_media_general_settings",
"name" => "layout",
"title" => __("Page Layout","sell_media"),
"description" => __("Select your layout preference for single Sell Media entries. If your theme already has a sidebar, you probably want to select the 'One column' option.", "sell_media" ),
"section" => "general_plugin_section_1",
"since" => "1.0",
"id" => "general_plugin_section_1",
"type" => "select",
"default" => "sell-media-single-one-col",
"valid_options" => array(
"two_col" => array(
"name" => "sell-media-single-two-col",
"title" => __( "Two columns", "sell_media" ),
),
"one_col" => array(
"name" => "sell-media-single-one-col",
"title" => __( "One column", "sell_media" ),
)
)
),
"thumbnail_crop" => array(
"tab" => "sell_media_general_settings",
"name" => "thumbnail_crop",
"title" => __("Thumbnail Crop","sell_media"),
"description" => __("Select the crop for thumbnails appearing on archives and galleries. If you select 'Square Crop,' you might need to use the Regenerate Thumbnails plugin to resize previously uploaded images.", "sell_media" ),
"section" => "general_plugin_section_1",
"since" => "2.1.2",
"id" => "general_plugin_section_1",
"type" => "select",
"default" => "medium",
"valid_options" => array(
"medium" => array(
"name" => "medium",
"title" => __( "No Crop", "sell_media" ),
),
"sell_media_square" => array(
"name" => "sell_media_square",
"title" => __( "Square Crop", "sell_media" ),
)
)
),
"thumbnail_layout" => array(
"tab" => "sell_media_general_settings",
"name" => "thumbnail_layout",
"title" => __("Thumbnail Layout","sell_media"),
"description" => __("Select the layout preferences for thumbnails appearing on archives and in galleries.", "sell_media" ),
"section" => "general_plugin_section_1",
"since" => "2.1.2",
"id" => "general_plugin_section_1",
"type" => "select",
"default" => "sell-media-three-col",
"valid_options" => array(
"sell-media-one-col" => array(
"name" => "sell-media-one-col",
"title" => __( "One Column", "sell_media" ),
),
"sell-media-two-col" => array(
"name" => "sell-media-two-col",
"title" => __( "Two Columns", "sell_media" ),
),
"sell-media-three-col" => array(
"name" => "sell-media-three-col",
"title" => __( "Three Columns", "sell_media" ),
),
"sell-media-four-col" => array(
"name" => "sell-media-four-col",
"title" => __( "Four Columns", "sell_media" ),
),
"sell-media-five-col" => array(
"name" => "sell-media-five-col",
"title" => __( "Five Columns", "sell_media" ),
),
"sell-media-masonry" => array(
"name" => "sell-media-masonry",
"title" => __( "Masonry Layout", "sell_media" ),
),
"sell-media-horizontal-masonry" => array(
"name" => "sell-media-horizontal-masonry",
"title" => __( "Horizontal Masonry Layout", "sell_media" ),
),
)
),
"titles" => array(
"tab" => "sell_media_general_settings",
"name" => "titles",
"title" => __("Titles","sell_media"),
"description" => __( "Show product titles on archives.", "sell_media" ),
"section" => "general_plugin_section_1",
"since" => "1.0",
"id" => "general_plugin_section_1",
"type" => "select",
"default" => 0,
"valid_options" => array(
0 => array(
"name" => 0,
"title" => __("No","sell_media")
),
1 => array(
"name" => 1,
"title" => __("Yes","sell_media"),
)
)
),
"breadcrumbs" => array(
"tab" => "sell_media_general_settings",
"name" => "breadcrumbs",
"title" => __("Breadcrumbs","sell_media"),
"description" => __( "Show breadcrumb navigation on single entries.", "sell_media" ),
"section" => "general_plugin_section_1",
"since" => "1.0",
"id" => "general_plugin_section_1",
"type" => "select",
"default" => 1,
"valid_options" => array(
0 => array(
"name" => 0,
"title" => __("No","sell_media")
),
1 => array(
"name" => 1,
"title" => __("Yes","sell_media"),
)
)
),
"quick_view" => array(
"tab" => "sell_media_general_settings",
"name" => "quick_view",
"title" => __("Quick View","sell_media"),
"description" => __( "Show a quick view image overlay on archives.", "sell_media" ),
"section" => "general_plugin_section_1",
"since" => "1.0",
"id" => "general_plugin_section_1",
"type" => "select",
"default" => 1,
"valid_options" => array(
0 => array(
"name" => 0,
"title" => __("No","sell_media")
),
1 => array(
"name" => 1,
"title" => __("Yes","sell_media"),
)
)
),
"file_info" => array(
"tab" => "sell_media_general_settings",
"name" => "file_info",
"title" => __("File Info","sell_media"),
"description" => __( "Show file information (file size, file type, dimensions, keywords, etc.) on single entries.", "sell_media" ),
"section" => "general_plugin_section_1",
"since" => "1.0",
"id" => "general_plugin_section_1",
"type" => "select",
"default" => 0,
"valid_options" => array(
0 => array(
"name" => 0,
"title" => __("No","sell_media")
),
1 => array(
"name" => 1,
"title" => __("Yes","sell_media"),
)
)
),
"plugin_credit" => array(
"tab" => "sell_media_general_settings",
"name" => "plugin_credit",
"title" => __("Plugin Credit","sell_media"),
"description" => __( "Let your site visitors know you are using the Sell Media plugin?", "sell_media" ),
"section" => "general_plugin_section_1",
"since" => "1.0",
"id" => "general_plugin_section_1",
"type" => "select",
"default" => 0,
"valid_options" => array(
0 => array(
"name" => 0,
"title" => __("No","sell_media")
),
1 => array(
"name" => 1,
"title" => __("Yes","sell_media"),
)
)
),
"post_type_slug" => array(
"tab" => "sell_media_general_settings",
"name" => "post_type_slug",
"title" => __("Post Type Slug","sell_media"),
'description' => sprintf( esc_html__( 'The post type slug creates the archive page that contains all of your products. You can change the slug here to whatever is most relevant to your store (for example "photos" or "videos"). By default, the slug is set to "items." Add this URL to your menu to create a link to your store. Currently, your products will appear at this url: %s', 'sell_media' ), '<a href="' . esc_url( get_post_type_archive_link( 'sell_media_item' ) ) . '" target="_blank">' . esc_url( get_post_type_archive_link( 'sell_media_item' ) ) . '</a>' ),
"section" => "general_plugin_section_1",
"since" => "1.0",
"id" => "general_plugin_section_1",
"type" => "text",
"default" => "",
"sanitize" => "slug"
),
"order_by" => array(
"tab" => "sell_media_general_settings",
"name" => "order_by",
"title" => __("Order By","sell_media"),
"description" => __( "Choose the order of items for the archive pages.", "sell_media" ),
"section" => "general_plugin_section_1",
"since" => "1.0",
"id" => "general_plugin_section_1",
"type" => "select",
"default" => "date-desc",
"valid_options" => array(
"date-desc" => array(
"name" => "date-desc",
"title" => "Date Desc"
),
"date-asc" => array(
"name" => "date-asc",
"title" => "Date ASC",
),
"title-asc" => array(
"name" => "title-asc",
"title" => "Title ASC",
),
"title-desc" => array(
"name" => "title-desc",
"title" => "Title Desc",
)
)
),
"terms_and_conditions" => array(
"tab" => "sell_media_general_settings",
"name" => "terms_and_conditions",
"title" => __("Terms and Conditions","sell_media"),
"description" => __( "These "Terms and Conditions" will show up on the checkout page. Users must agree to these terms before completing their purchase.", "sell_media" ),
"section" => "general_plugin_section_1",
"since" => "1.0",
"id" => "general_plugin_section_1",
"sanitize" => "html",
"type" => "textarea",
"default" => ""
),
"admin_columns" => array(
"tab" => "sell_media_general_settings",
"name" => "admin_columns",
"title" => __("Show Columns","sell_media"),
"description" => __( "Select the columns to show on the admin page "All Products" page.", "sell_media" ),
"section" => "general_plugin_section_1",
"since" => "1.0",
"id" => "general_plugin_section_1",
"type" => "checkbox",
"default" => '',
"valid_options" => array(
"show_collection" => array(
"name" => "show_collection",
"title" => "Collections"
),
"show_license" => array(
"name" => "show_license",
"title" => "Licenses"
),
"show_creators" => array(
"name" => "show_creators",
"title" => "Creators"
)
)
),
);
$options['default_price'] = array(
"tab" => "sell_media_size_settings",
"name" => "default_price",
"title" => __("Original Price","sell_media"),
"description" => __( "The original price of new items and bulk uploads. You can set unique prices by editing each individual item.", "sell_media" ),
"section" => "size_price_plugin_section_1",
"since" => "1.0",
"id" => "size_price_plugin_section_1",
"default" => "1",
"sanitize" => "html",
"type" => "text"
);
$options['hide_original_price'] = array(
"tab" => "sell_media_size_settings",
"name" => "hide_original_price",
"title" => __("Hide Original Price","sell_media"),
"description" => __( "Select 'Yes' to hide the original price above and rely solely on Price Groups (See below. Price Groups can only be used when selling images). Select 'No' if you're selling single file downloads or if you want to list the original price for each product. You can override this setting on a per-item basis.", "sell_media" ),
"section" => "size_price_plugin_section_1",
"since" => "1.0",
"id" => "size_price_plugin_section_1",
"type" => "select",
"default" => "no",
"valid_options" => array(
"no" => array(
"name" => "no",
"title" => __("No","sell_media")
),
"yes" => array(
"name" => "yes",
"title" => __("Yes","sell_media"),
)
)
);
$other_options = array(
"default_price_group" => array(
"tab" => "sell_media_size_settings",
"name" => "default_price_group",
"title" => __("Default Image Price Group", "sell_media"),
"description" => "This is the default price group that will be assigned to all newly uploaded images for sale. You can override this setting on a per-item basis.",
"id" => "size_price_plugin_section_1",
"section" => "size_price_plugin_section_1",
"type" => "select",
"default" => "",
"valid_options" => sell_media_settings_price_group('price-group')
),
// Payment Tab
"paypal_email" => array(
"tab" => "sell_media_payment_settings",
"name" => "paypal_email",
"title" => __("PayPal Email Address", "sell_media"),
'description' => __( 'Add the email address associated with your PayPal account above.', 'sell_media' ),
"default" => "",
"section" => "payment_section_1",
"since" => "1.0",
"default" => "",
"id" => "payment_section_1",
"type" => "text",
"sanitize" => "html"
),
"currency" => array(
"tab" => "sell_media_payment_settings",
"name" => "currency",
"title" => __("Currency","sell_media"),
"description" => __("The currency in which you accept payment.", "sell_media"),
"section" => "payment_section_1",
"since" => "1.0.",
"id" => "payment_section_1",
"type" => "select",
"default" => "USD",
"valid_options" => sell_media_currencies()
),
"paypal_additional_test_email" => array(
"tab" => "sell_media_payment_settings",
"name" => "paypal_additional_test_email",
"title" => __("PayPal Additional Test Emails","sell_media"),
"description" => __("This is useful when debugging PayPal. Enter a comma separated list of emails, and when a purchase is made the same email that is sent to the buyer will be sent to the recipients in the above list.","sell_media"),
"default" => "",
"section" => "payment_section_1",
"since" => "1.0.",
"id" => "payment_section_1",
"type" => "text",
"sanitize" => "html"
),
"tax" => array(
"tab" => "sell_media_payment_settings",
"name" => "tax",
"title" => __("Tax","sell_media"),
"description" => "Check to charge tax. You must set your tax rates below.",
"section" => "payment_section_1",
"since" => "1.0",
"id" => "payment_section_1",
"default" => "",
"type" => "checkbox",
"valid_options" => array(
"yes" => array(
"name" => "yes",
"title" => __("Yes, charge tax","sell_media")
)
)
),
"tax_display" => array(
"tab" => "sell_media_payment_settings",
"name" => "tax_display",
"title" => __( "Tax Display", "sell_media" ),
"description" => __( "Select how you want to display taxes. Most users can leave this set to \"Exclusive\". Tax laws in certain countries, like Austrailia, require that prices of items are displayed with taxes included. If this scenerio applies to you, then select \"Inclusive\".", "sell_media" ),
"section" => "payment_section_1",
"since" => "1.0",
"id" => "payment_section_1",
"type" => "select",
"default" => "exclusive",
"valid_options" => array(
"exclusive" => array(
"name" => "exclusive",
"title" => __( "Exclusive - Added at checkout", "sell_media" )
),
"inclusive" => array(
"name" => "inclusive",
"title" => __( "Inclusive - Added to item prices", "sell_media" )
)
)
),
"tax_rate" => array(
"tab" => "sell_media_payment_settings",
"name" => "tax_rate",
"title" => __("Tax Rate","sell_media"),
"description" => "Set your tax rates. This tax rate will be applied to all cart orders (use .05 for 5 percent, .10 for 10 percent, etc)",
"section" => "payment_section_1",
"since" => "1.0",
"id" => "payment_section_1",
"default" =>"",
"type" => "text",
"sanitize" => "html"
),
// Email
"from_name" => array(
"tab" => "email_plugin_tab",
"name" => "from_name",
"title" => __("From Name","sell_media"),
"description" => __("The name associated with all outgoing email.","sell_media"),
"section" => "email_section_1",
"since" => "1.0.",
"id" => "email_section_1",
"type" => "text",
"sanitize" => "html",
"default" => get_option("blogname")
),
"from_email" => array(
"tab" => "email_plugin_tab",
"name" => "from_email",
"title" => __("From Email","sell_media"),
"description" => __("The email address used for all outgoing email.","sell_media"),
"section" => "email_section_1",
"since" => "1.0.",
"id" => "email_section_1",
"type" => "text",
"sanitize" => "html",
"default" => get_option("admin_email")
),
"success_email_subject" => array(
"tab" => "email_plugin_tab",
"name" => "success_email_subject",
"title" => __("Email Subject","sell_media"),
"description" => __("The email subject on successful purchase emails.","sell_media"),
"section" => "email_section_1",
"since" => "1.0.",
"id" => "email_section_1",
"type" => "text",
"sanitize" => "html",
"default" => __("Your Purchase","sell_media")
),
"success_email_body" => array(
"tab" => "email_plugin_tab",
"name" => "success_email_body",
"title" => __("Email Body","sell_media"),
"description" => __("This e-mail message is sent to your customers in case of successful and cleared payment. You can use the following email tags: {first_name}, {last_name}, {payer_email}, {download_links}, {payment_id}. These tags are replaced with the real data associated with each payment. Be sure to include the {download_links} tag, otherwise your buyers won't receive their download purchases. The {payment_id} tag can be used to display an invoice number.","sell_media"),
"section" => "email_section_1",
"since" => "1.0.",
"id" => "email_section_1",
"type" => "textarea",
"sanitize" => "html",
"default" => "Hi {first_name} {last_name},\n\nThanks for purchasing from my site. Here are your download links:\n\n{download_links}\n\nThanks!"
),
// Misc.
"misc" => array(
"tab" => "misc_plugin_tab",
"name" => "misc",
"title" => __( "Miscellaneous Settings", "sell_media" ),
"description" => sprintf( __( "Settings for some of our %s will be shown here if active.", "sell_media" ), "<a href='https://graphpaperpress.com/extensions/sell-media/' target='_blank'>premium extensions</a>" ),
"default" => "",
"section" => "misc_section_1",
"since" => "1.0.",
"id" => "misc_section_1",
"type" => "html",
"valid_options" => ''
)
);
$options = wp_parse_args( $other_options, $options );
sell_media_register_plugin_options( apply_filters( 'sell_media_options', $options ) );
}
add_action( 'init', 'sell_media_init_settings' );