model = $model; } //////////////////////////////////////////////////////////////////////////////////////// // Public Methods // //////////////////////////////////////////////////////////////////////////////////////// public function display() { global $WD_BWG_UPLOAD_DIR; $rows_data = $this->model->get_rows_data(); $page_nav = $this->model->page_nav(); $search_value = ((isset($_POST['search_value'])) ? esc_html(stripslashes($_POST['search_value'])) : ''); $search_select_value = ((isset($_POST['search_select_value'])) ? (int) $_POST['search_select_value'] : 0); $asc_or_desc = ((isset($_POST['asc_or_desc'])) ? esc_html(stripslashes($_POST['asc_or_desc'])) : 'asc'); $order_by = (isset($_POST['order_by']) ? esc_html(stripslashes($_POST['order_by'])) : 'order'); $order_class = 'manage-column column-title sorted ' . $asc_or_desc; $ids_string = ''; $per_page = $this->model->per_page(); $pager = 0; $gallery_button_array = array( 'publish_all' => __('Publish', 'bwg_back'), 'unpublish_all' => __('Unpublish', 'bwg_back'), 'delete_all' => __('Delete', 'bwg_back') ); ?>
model->get_row_data($id); $option_row = WDWLibrary::get_options_row_data(); $page_title = (($id != 0) ? __('Edit gallery','bwg_back') . $row->name : __('Create new gallery','bwg_back')); $per_page = $this->model->per_page(); $images_count = $this->model->get_images_count($id); ?> model->get_image_rows_data($id); $page_nav = $this->model->image_page_nav($id); $option_row = WDWLibrary::get_options_row_data(); $search_value = ((isset($_POST['search_value'])) ? esc_html(stripslashes($_POST['search_value'])) : ''); $image_asc_or_desc = ((isset($_POST['image_asc_or_desc'])) ? esc_html(stripslashes($_POST['image_asc_or_desc'])) : ((isset($_COOKIE['bwg_image_asc_or_desc'])) ? esc_html(stripslashes($_COOKIE['bwg_image_asc_or_desc'])) : 'asc')); $image_order_by = ((isset($_POST['image_order_by'])) ? esc_html(stripslashes($_POST['image_order_by'])) : ((isset($_COOKIE['bwg_image_order_by'])) ? esc_html(stripslashes($_COOKIE['bwg_image_order_by'])) : 'order')); $order_class = 'manage-column column-title sorted ' . $image_asc_or_desc; $page_number = (isset($_POST['page_number']) ? esc_html(stripslashes($_POST['page_number'])) : 1); $ids_string = ''; $per_page = $this->model->per_page(); $pager = 0; $gallery_row = $this->model->get_row_data($id); $gallery_type = ($gallery_row->gallery_type == 'instagram' || $gallery_row->gallery_type == 'instagram_post') ? 'instagram' : ''; $image_array = array( 'image_set_watermark' => __('Set Watermark', 'bwg_back'), 'image_get_resize' => __('Resize', 'bwg_back'), 'resize_image_thumb' => __('Recreate Thumbnail', 'bwg_back'), 'rotate_left' => __('Rotate left', 'bwg_back'), 'rotate_right' => __('Rotate right', 'bwg_back'), 'image_recover_all' => __('Reset', 'bwg_back'), 'image_publish_all' => __('Publish', 'bwg_back'), 'image_unpublish_all' => __('Unpublish', 'bwg_back'), 'image_desc' => __('Edit', 'bwg_back'), 'image_delete_all' => __('Delete', 'bwg_back'), ); ?>| # |
thumb_click_action != 'open_lightbox') { ?> URL |
'addTags', 'width' => '650', 'height' => '500', 'bwg_items_per_page' => $per_page ), $query_url); ?> | filetype)==1 ? true :false; $alternate = (!isset($alternate) || $alternate == 'class="alternate"') ? '' : 'class="alternate"'; $rows_tag_data = $this->model->get_tag_rows_data($row_data->id); $published_image = (($row_data->published) ? 'publish-blue' : 'unpublish-red'); $published = (($row_data->published) ? 'unpublish' : 'publish'); $unpublish = ((!$row_data->published) ? 'Unpublish' : 'Publish'); ?> | |||||||
|---|---|---|---|---|---|---|---|---|---|---|
|
filetype) == 1 ? true :false;
$instagram_post_width = 0;
$instagram_post_height = 0;
if ($is_embed_instagram_post) {
$image_resolution = explode(' x ', $row_data->resolution);
if (is_array($image_resolution)) {
$instagram_post_width = $image_resolution[0];
$instagram_post_height = explode(' ', $image_resolution[1]);
$instagram_post_height = $instagram_post_height[0];
}
}
$query_url = add_query_arg(array('action' => 'editThumb', 'type' => 'display'/*thumb_display*/, 'image_id' => $row_data->id, 'width' => '800', 'height' => '500', 'instagram_post_width' => $instagram_post_width, 'instagram_post_height' => $instagram_post_height), admin_url('admin-ajax.php'));
$query_url = wp_nonce_url( $query_url, 'editThumb', 'bwg_nonce' );
$query_url = add_query_arg(array('TB_iframe' => '1'), $query_url);
$is_embed_instagram_post = preg_match('/INSTAGRAM_POST/',$row_data->filetype) == 1 ? true : false;
?>
|
" id="date_modified_id; ?>">date)); ?>
" id="fileresolution_id; ?>">resolution; ?>
" id="filesize_id; ?>">size; ?>
" id="filetype_id; ?>">filetype; ?>
'editThumb', 'type' => 'crop', 'image_id' => $row_data->id, 'width' => '800', 'height' => '500'), admin_url('admin-ajax.php'));
$query_url = wp_nonce_url( $query_url, 'editThumb', 'bwg_nonce' );
$query_url = add_query_arg(array('TB_iframe' => '1'), $query_url);
?>
|
'editThumb', 'type' => 'rotate', 'image_id' => $row_data->id, 'width' => '800', 'height' => '500'), admin_url('admin-ajax.php'));
$query_url = wp_nonce_url( $query_url, 'editThumb', 'bwg_nonce' );
$query_url = add_query_arg(array('TB_iframe' => '1'), $query_url);
?>
|
|
thumb_click_action != 'open_lightbox') { ?> | 'addTags', 'image_id' => $row_data->id, 'width' => '650', 'height' => '500', 'bwg_items_per_page' => $per_page, 'TB_iframe' => '1'), $query_url); ?> | ' onclick="if (confirm('')) { spider_set_input_value('ajax_task', 'image_delete'); spider_set_input_value('image_current_id', 'id; ?>'); spider_ajax_save('galleries_form'); } else { return false; }"> |