Current Path : /storage/v11800/affypharma/public_html/wp-content/plugins/ninja-tables/app/Views/public/ |
Linux v11800 5.3.0-1023-aws #25~18.04.1-Ubuntu SMP Fri Jun 5 15:19:18 UTC 2020 aarch64
|
Current File : /storage/v11800/affypharma/public_html/wp-content/plugins/ninja-tables/app/Views/public/drag-and-drop-html.php |
<?php
$max_width = "";
if (isset($setting['general']['options']['container_max_width_switch']['value']) && $setting['general']['options']['container_max_width_switch']['value'] == 'true') {
$max_width = $setting['general']['options']['container_max_width_switch']['childs']['container_max_width']['value'];
$tableAlignment = $setting['general']['options']['table_alignment']['value'];
$alignment = '';
if ($tableAlignment === 'left') {
$alignment = 'margin-right: auto';
} else {
if ($tableAlignment === 'right') {
$alignment = 'margin-left: auto';
} else {
if ($tableAlignment === 'center') {
$alignment = 'margin-left: auto; margin-right: auto';
}
}
}
}
$max_height = "500";
if (isset($setting['general']['options']['container_max_height']['value'])) {
$max_height = $setting['general']['options']['container_max_height']['value'];
}
?>
<div class="ntb_table_wrapper" data-responsive='<?php esc_attr_e(json_encode($responsive)); ?>'
id='ninja_table_builder_<?php esc_attr_e($table_id); ?>'
style="
<?php esc_attr_e("max-height:$max_height" . "px"); ?>;
<?php esc_attr_e($max_width != '' ? "max-width: $max_width" . "px;" . $alignment : 'max-width: 1160px'); ?>;">
<?php
ninjaTablesPrintSafeVar($ninja_table_builder_html);
?>
</div>
<?php
do_action('ninja_tables_drag_and_drop_after_table_print', $table_id);
?>
<?php
if (is_user_logged_in() && ninja_table_admin_role()): ?>
<a href="<?php echo admin_url('admin.php?page=ninja_tables#/table_builder_edit_table/' . $table_id); ?>"
class="ntb_edit_table_class_<?php echo $table_id ?>"><?php _e('Edit Table', 'ninja-tables') ?></a>
<?php endif; ?>