PluginProbe
Tiered Pricing Table for WooCommerce / 8.0.2
Tiered Pricing Table for WooCommerce v8.0.2
8.0.2 7.1.7 7.1.5 7.1.4 7.1.1 6.5.0 6.4.0 6.1.0 trunk 1.0 1.1 2.0 2.0.1 2.0.2 2.1 2.1.1 2.1.2 2.2.0 2.2.1 2.2.2 2.2.3 2.3.0 2.3.1 2.3.2 2.3.3 All 91 releases
← All changes | src/Addons/GlobalTieredPricing/CPT/Form/FormTab.php +47 -4 6.1.0 → 8.0.2 View file →
@@ -130,19 +130,19 @@
130 130 ?>
131 131 <a href="<?php echo esc_attr( tpt_fs_activation_url() ); ?>" target="_blank" style="text-decoration: none; margin-left: 5px;
132 132 vertical-align: text-top;">
133 133 <span style="
134 - background: #d63638;
135 - color: #fff;
134 + border: 1px solid #d63638;
135 + color: #d63638;
136 136 padding: 3px 8px;
137 137 border-radius: 3px;
138 138 letter-spacing: normal;
139 139 font-weight: 500;
140 - font-size: 10px;">
140 + font-size: 12px;">
141 141 <?php esc_html_e( 'Premium feature', 'tier-pricing-table' ); ?>
142 142 </span>
143 143 </a>
144 - <span style="margin-left:6px;">•</span>
144 + <span>•</span>
145 145 <a href="<?php echo esc_attr( tpt_fs_activation_url() ); ?>"
146 146 target="_blank"
147 147 style="letter-spacing: normal; font-weight: normal; font-size: 13px;">
148 148 <?php esc_html_e( 'Upgrade plan', 'tier-pricing-table' ); ?>
@@ -148,9 +148,52 @@
148 148 <?php esc_html_e( 'Upgrade plan', 'tier-pricing-table' ); ?>
149 149 </a>
150 150 <?php
151 151 }
152 +
153 + if ( isset( $args['subtitle'] ) ) {
154 + ?>
155 + <div style="font-size: 12px; color: #666; margin-top: 5px;">
156 + <?php echo esc_html( $args['subtitle'] ); ?>
157 + </div>
158 + <?php
159 + }
152 160 ?>
161 + </div>
162 + <?php
163 + }
164 +
165 + public function renderSelect( $args = array() ) {
166 +
167 + $args = wp_parse_args( $args, array(
168 + 'title' => '',
169 + 'id' => '',
170 + 'value' => '',
171 + 'options' => array(),
172 + 'description' => '',
173 + 'disabled' => false,
174 + ) );
175 +
176 + ?>
177 + <div class="tiered-pricing-form-block">
178 + <label for="<?php echo esc_attr( $args['id'] ); ?>">
179 + <?php echo esc_html( $args['title'] ); ?>
180 + </label>
181 + <div style="min-height: 25px">
182 + <select name="<?php echo esc_attr( $args['id'] ); ?>" id="<?php echo esc_attr( $args['id'] ); ?>" <?php disabled( $args['disabled'] ); ?>>
183 + <?php foreach ( $args['options'] as $optionValue => $optionLabel ) : ?>
184 + <option value="<?php echo esc_attr( $optionValue ); ?>" <?php selected( $args['value'], $optionValue ); ?>>
185 + <?php echo esc_html( $optionLabel ); ?>
186 + </option>
187 + <?php endforeach; ?>
188 + </select>
189 + </div>
190 +
191 + <?php if ( $args['description'] ) : ?>
192 + <p class="description" style="margin:0">
193 + <?php echo esc_html( $args['description'] ); ?>
194 + </p>
195 + <?php endif; ?>
153 196 </div>
154 197 <?php
155 198 }
156 199