PluginProbe
Wp-Insert / trunk
Wp-Insert vtrunk
trunk 1.0 1.1 1.2 1.2.1 1.2.2 1.3.0 1.3.1 1.3.3 1.4 1.5.0 1.5.1 1.5.2 1.5.3 1.6.0 1.6.1 1.6.2 1.7 1.7.1 1.7.2 1.7.3 1.7.4 1.7.5 1.7.6 2.0 All 63 releases
wp-insert / includes / modules / core / units / adcode.php

adcode.php in Wp-Insert trunk, at includes/modules/core/units/adcode.php

48 lines 1.3 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 function wp_insert_form_accordion_tabs_adcode( $control, $identifier, $location ) {
3 echo '<h3>Ad Code</h3>';
4 echo '<div>';
5 $abtestingMode = get_option( 'wp_insert_abtesting_mode' );
6
7 $control->add_control(
8 [
9 'type' => 'textarea',
10 'style' => 'height: 220px;',
11 'optionName' => 'primary_ad_code',
12 ]
13 );
14 $control->create_section( 'Ad Code (Primary Network)' );
15 wp_insert_echo_html( $control->HTML );
16 $control->clear_controls();
17
18 $control->add_control(
19 [
20 'type' => 'textarea',
21 'style' => 'height: 220px;',
22 'optionName' => 'secondary_ad_code',
23 ]
24 );
25 $control->create_section( 'Ad Code (Secondary Network)' );
26 if ( $abtestingMode != '2' && $abtestingMode != '3' ) {
27 $control->set_HTML( '<div style="display: none;">' . $control->HTML . '</div>' );
28 }
29 wp_insert_echo_html( $control->HTML );
30 $control->clear_controls();
31
32 $control->add_control(
33 [
34 'type' => 'textarea',
35 'style' => 'height: 220px;',
36 'optionName' => 'tertiary_ad_code',
37 ]
38 );
39 $control->create_section( 'Ad Code (Tertiary Network)' );
40 if ( $abtestingMode != '3' ) {
41 $control->set_HTML( '<div style="display: none;">' . $control->HTML . '</div>' );
42 }
43 wp_insert_echo_html( $control->HTML );
44 $control->clear_controls();
45 echo '</div>';
46 return $control;
47 }
48