diff --git a/admin/theme-options.php b/admin/theme-options.php index 0a60a61..3e8a97b 100755 --- a/admin/theme-options.php +++ b/admin/theme-options.php @@ -174,6 +174,18 @@ function of_options(){ "std" => "1", "type" => "checkbox"); +$of_options[] = array( "name" => __("Show image title", 'dsframework'), + "desc" => __("Show the media title on top-left of gallery area."), + "id" => "show_image_title", + "std" => "1", + "type" => "checkbox"); + +$of_options[] = array( "name" => __("Show image description", 'dsframework'), + "desc" => __("Show the media description on top-left of gallery area."), + "id" => "show_image_desc", + "std" => "1", + "type" => "checkbox"); + } diff --git a/content-ds-gallery.php b/content-ds-gallery.php old mode 100644 new mode 100755 index 4049156..c1a4113 --- a/content-ds-gallery.php +++ b/content-ds-gallery.php @@ -137,14 +137,14 @@ $img_scale = ''; } - $desc = get_post( $attachment_id_item )->post_content; - + $desc = get_ds_option('show_image_desc')==1 ? get_post( $attachment_id_item )->post_content : null; + $title = get_ds_option('show_image_title')==1 ? get_post( $attachment_id_item )->post_title : null; if(!$alt_attr) $alt_attr = $image_urls[$j]; - $album_data .= "\t\t