PluginProbe
Product Labels, Quick View, Buy Now, Pre-Orders, Frequently Bought Together & More for WooCommerce – Merchant / 1.6
Product Labels, Quick View, Buy Now, Pre-Orders, Frequently Bought Together & More for WooCommerce – Merchant v1.6
2.3.2 2.3.1 2.3.0 2.2.8 2.2.7 trunk 1.10.0 1.10.1 1.10.2 1.10.3 1.10.4 1.10.5 1.11.0 1.11.1 1.11.2 1.6 1.7 1.8 1.8.1 1.8.2 1.8.3 1.9.0 1.9.1 1.9.10 1.9.11 All 60 releases
merchant / inc / modules / product-navigation-links / admin / options.php

options.php in Product Labels, Quick View, Buy Now, Pre-Orders, Frequently Bought Together & More for WooCommerce – Merchant 1.6, at inc/modules/product-navigation-links/admin/options.php

123 lines 3.4 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2
3 /**
4 * Product Navigation Links Options.
5 *
6 * @package Merchant
7 */
8
9 if ( ! defined( 'ABSPATH' ) ) {
10 exit; // Exit if accessed directly
11 }
12
13 // Settings
14 Merchant_Admin_Options::create( array(
15 'module' => Merchant_Product_Navigation_Links::MODULE_ID,
16 'title' => esc_html__( 'Settings', 'merchant' ),
17 'fields' => array(
18 array(
19 'id' => 'text',
20 'type' => 'select',
21 'title' => esc_html__( 'Navigation text', 'merchant' ),
22 'options' => array(
23 'titles' => esc_html__( 'Show product titles', 'merchant' ),
24 'navigational' => esc_html__( 'Show \'Previous\' and \'Next\' ', 'merchant' ),
25 ),
26 'default' => 'titles',
27 ),
28
29 array(
30 'id' => 'placement',
31 'type' => 'select',
32 'title' => esc_html__( 'Placement', 'merchant' ),
33 'options' => array(
34 'bottom' => esc_html__( 'Bottom of the page', 'merchant' ),
35 'top' => esc_html__( 'Top of the page', 'merchant' ),
36 'bottom-product-summary' => esc_html__( 'After product summary', 'merchant' ),
37 ),
38 'default' => 'bottom',
39 ),
40
41 array(
42 'id' => 'priority',
43 'type' => 'number',
44 'title' => esc_html__( 'Hook priority', 'merchant' ),
45 'desc' => esc_html__( 'The product navigation is "hooked" into a specific location on the page. Themes and other plugins might also add additional elements to the same location. By modifying the hook priority, you have the ability to customize the placement of this element on that particular location.', 'merchant' ),
46 'default' => 30,
47 ),
48
49 ),
50 ) );
51
52
53 // Settings
54 Merchant_Admin_Options::create( array(
55 'module' => Merchant_Product_Navigation_Links::MODULE_ID,
56 'title' => esc_html__( 'Style Settings', 'merchant' ),
57 'fields' => array(
58
59 array(
60 'id' => 'text_decoration',
61 'type' => 'buttons',
62 'title' => esc_html__( 'Text decoration', 'merchant' ),
63 'options' => array(
64 'none' => esc_html__( 'None', 'merchant' ),
65 'underline' => esc_html__( 'Underline', 'merchant' ),
66 'line-through' => esc_html__( 'Line-through', 'merchant' ),
67 'overline' => esc_html__( 'Overline', 'merchant' ),
68 ),
69 'default' => 'none',
70 ),
71
72
73 array(
74 'id' => 'text_color',
75 'type' => 'color',
76 'title' => esc_html__( 'Text color', 'merchant' ),
77 'default' => '#212121'
78 ),
79
80 array(
81 'id' => 'text_hover_color',
82 'type' => 'color',
83 'title' => esc_html__( 'Text hover color', 'merchant' ),
84 'default' => '#757575'
85 ),
86
87 array(
88 'id' => 'justify_content',
89 'type' => 'buttons',
90 'title' => esc_html__( 'Justify content', 'merchant' ),
91 'options' => array(
92 'space-between' => esc_html__( 'Space between', 'merchant' ),
93 'space-around' => esc_html__( 'Space around', 'merchant' ),
94 'space-evenly' => esc_html__( 'Space evenly', 'merchant' ),
95 ),
96 'default' => 'space-between',
97 ),
98
99 array(
100 'id' => 'margin_top',
101 'type' => 'range',
102 'title' => esc_html__( 'Margin top', 'merchant' ),
103 'min' => 0,
104 'max' => 250,
105 'step' => 1,
106 'default' => 20,
107 'unit' => 'px',
108 ),
109
110 array(
111 'id' => 'margin_bottom',
112 'type' => 'range',
113 'title' => esc_html__( 'Margin bottom', 'merchant' ),
114 'min' => 0,
115 'max' => 250,
116 'step' => 1,
117 'default' => 20,
118 'unit' => 'px',
119 ),
120
121 ),
122 ) );
123