get_all_legacy_options();
include_view( 'admin/common/templates/legacy.php', array( 'options' => $args ) );
}
private function get_all_legacy_options() {
$options = array();
foreach ( $this->options as $option ) {
$option_value = get_option( $option );
if ( ! empty( $option_value ) ) {
$options[ $option ] = $option_value;
}
}
return $options;
}
public static function get_legacy_option( $option, $value ) {
if ( is_array( $value ) ) {
if ( $option === 'cookiebot-tcf-disallowed' ) {
return self::get_tcf_disallowed_legacy( $value );
} elseif ( $option === 'cookiebot-multiple-banners' ) {
return self::get_multiple_banners_legacy( $value );
} else {
$html = '';
foreach ( $value as $key => $value ) {
$html .= '';
}
return $html;
}
} else {
return '';
}
}
private static function get_tcf_disallowed_legacy( $value ) {
$html = '';
foreach ( $value as $vendor => $restrictions ) {
foreach ( $restrictions['purposes'] as $key => $purpose ) {
$html .= '';
}
}
return $html;
}
private static function get_multiple_banners_legacy( $value ) {
$html = '';
foreach ( $value as $key => $settings ) {
$html .= '';
$html .= '';
}
return $html;
}
}