PluginProbe
Product Labels, Quick View, Buy Now, Pre-Orders, Frequently Bought Together & More for WooCommerce – Merchant / 2.3.2
Product Labels, Quick View, Buy Now, Pre-Orders, Frequently Bought Together & More for WooCommerce – Merchant v2.3.2
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 2.3.2, at inc/modules/product-navigation-links/admin/options.php

166 lines 5.1 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 — Option group definitions.
5 *
6 * Pure data file. Returns the option groups array
7 * consumed by init_option_groups().
8 *
9 * @package Merchant
10 */
11
12 if ( ! defined( 'ABSPATH' ) ) {
13 exit; // Exit if accessed directly
14 }
15
16 // Settings
17
18 return array(
19 array(
20 'module' => Merchant_Product_Navigation_Links::MODULE_ID,
21 'title' => esc_html__( 'Settings', 'merchant' ),
22 'fields' => array(
23 array(
24 'id' => 'text',
25 'type' => 'select',
26 'title' => esc_html__( 'Navigation text', 'merchant' ),
27 'options' => array(
28 'titles' => esc_html__( 'Show product titles', 'merchant' ),
29 'navigational' => esc_html__( 'Show \'Previous\' and \'Next\' ', 'merchant' ),
30 ),
31 'default' => 'titles',
32 ),
33
34 array(
35 'id' => 'product_navigation_mode',
36 'type' => 'select',
37 'title' => esc_html__( 'Navigation Mode', 'merchant' ),
38 'desc' => esc_html__( 'Choose to show navigation links in the default order (following Products > All Products) or within the same category or tag.', 'merchant' ),
39 'options' => array(
40 'default' => esc_html__( 'Default', 'merchant' ),
41 'category' => esc_html__( 'Category', 'merchant' ),
42 'tag' => esc_html__( 'Tag', 'merchant' ),
43 ),
44 'default' => 'default',
45 ),
46
47 array(
48 'id' => 'placement',
49 'type' => 'select',
50 'title' => esc_html__( 'Placement', 'merchant' ),
51 'options' => array(
52 'bottom' => esc_html__( 'Bottom of the page', 'merchant' ),
53 'top' => esc_html__( 'Top of the page', 'merchant' ),
54 'bottom-product-summary' => esc_html__( 'After product summary', 'merchant' ),
55 ),
56 'default' => 'bottom',
57 ),
58
59 array(
60 'id' => 'priority',
61 'type' => 'number',
62 'title' => esc_html__( 'Loading priority', 'merchant' ),
63 'default' => 30,
64 ),
65 array(
66 'id' => 'priority_info',
67 'type' => 'info',
68 'content' => esc_html__( 'This is a developer level feature. The product navigation links module 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. A lower number = a higher priority, so the module will appear higher on the page.', 'merchant' ),
69 ),
70
71 ),
72 ),
73 array(
74 'module' => Merchant_Product_Navigation_Links::MODULE_ID,
75 'title' => esc_html__( 'Style Settings', 'merchant' ),
76 'fields' => array(
77
78 array(
79 'id' => 'text_decoration',
80 'type' => 'buttons',
81 'title' => esc_html__( 'Text decoration', 'merchant' ),
82 'options' => array(
83 'none' => esc_html__( 'None', 'merchant' ),
84 'underline' => esc_html__( 'Underline', 'merchant' ),
85 'line-through' => esc_html__( 'Line-through', 'merchant' ),
86 'overline' => esc_html__( 'Overline', 'merchant' ),
87 ),
88 'default' => 'none',
89 ),
90
91
92 array(
93 'id' => 'text_color',
94 'type' => 'color',
95 'title' => esc_html__( 'Text color', 'merchant' ),
96 'default' => '#212121',
97 ),
98
99 array(
100 'id' => 'text_hover_color',
101 'type' => 'color',
102 'title' => esc_html__( 'Text hover color', 'merchant' ),
103 'default' => '#757575',
104 ),
105
106 array(
107 'id' => 'justify_content',
108 'type' => 'buttons',
109 'title' => esc_html__( 'Justify content', 'merchant' ),
110 'options' => array(
111 'space-between' => esc_html__( 'Space between', 'merchant' ),
112 'space-around' => esc_html__( 'Space around', 'merchant' ),
113 'space-evenly' => esc_html__( 'Space evenly', 'merchant' ),
114 ),
115 'default' => 'space-between',
116 ),
117
118 array(
119 'id' => 'margin_top',
120 'type' => 'range',
121 'title' => esc_html__( 'Margin top', 'merchant' ),
122 'min' => 0,
123 'max' => 250,
124 'step' => 1,
125 'default' => 20,
126 'unit' => 'px',
127 ),
128
129 array(
130 'id' => 'margin_bottom',
131 'type' => 'range',
132 'title' => esc_html__( 'Margin bottom', 'merchant' ),
133 'min' => 0,
134 'max' => 250,
135 'step' => 1,
136 'default' => 20,
137 'unit' => 'px',
138 ),
139 ),
140 ),
141 array(
142 'module' => Merchant_Product_Navigation_Links::MODULE_ID,
143 'title' => esc_html__( 'Use shortcode', 'merchant' ),
144 'fields' => array(
145 array(
146 'id' => 'use_shortcode',
147 'type' => 'switcher',
148 'title' => __( 'Use shortcode', 'merchant' ),
149 'default' => 0,
150 ),
151 array(
152 'type' => 'info',
153 'id' => 'shortcode_info',
154 'content' => esc_html__( 'If you are using a page builder or a theme that supports shortcodes, then you can output the module using the shortcode above. This might be useful if, for example, you find that you want to control the position of the module output more precisely than with the module settings. Note that the shortcodes can only be used on single product pages.', 'merchant' ),
155 ),
156 array(
157 'id' => 'shortcode_text',
158 'type' => 'text_readonly',
159 'title' => esc_html__( 'Shortcode text', 'merchant' ),
160 'default' => '[merchant_module_' . str_replace( '-', '_', Merchant_Product_Navigation_Links::MODULE_ID ) . ']',
161 'condition' => array( 'use_shortcode', '==', '1' ),
162 ),
163 ),
164 ),
165 );
166