Photo Gallery by WD – Responsive Photo Gallery - Version 1.5.8

Version Description

  • Added: Notification to install 10WEB Manager plugin.
Download this release

Release Info

Developer webdorado
Plugin Icon 128x128 Photo Gallery by WD – Responsive Photo Gallery
Version 1.5.8
Comparing to
See all releases

Code changes from version 1.5.7 to 1.5.8

css/bwg_frontend.css CHANGED
@@ -50,9 +50,10 @@ div[id^="bwg_container"] .SumoSelect.open > .CaptionCont {
50
 
51
  #spider_popup_wrap a {
52
  border: none;
 
53
  }
54
 
55
- div[id^="bwg_container"] .bwg-container a {
56
  border: none;
57
  box-shadow: none !important;
58
  outline: none;
50
 
51
  #spider_popup_wrap a {
52
  border: none;
53
+ box-shadow: none;
54
  }
55
 
56
+ div[id^="bwg_container"].bwg_container a {
57
  border: none;
58
  box-shadow: none !important;
59
  outline: none;
css/bwg_tables.css CHANGED
@@ -2143,3 +2143,7 @@ li.tabs {
2143
  width: 360px;
2144
  }
2145
  }
 
 
 
 
2143
  width: 360px;
2144
  }
2145
  }
2146
+
2147
+ #wd_tenweb_logo_notice {
2148
+ display: block!important;
2149
+ }
framework/WDWLibrary.php CHANGED
@@ -2491,53 +2491,53 @@ class WDWLibrary {
2491
  public static function topbar() {
2492
  $page = isset($_GET['page']) ? esc_html($_GET['page']) : '';
2493
  $taxonomy = isset($_GET['taxonomy']) ? esc_html($_GET['taxonomy']) : '';
2494
- $user_guide_link = 'https://docs.10web.io/docs/photo-gallery/';
2495
  $show_content = true;
2496
  $show_guide_link = true;
2497
  $show_head = false;
2498
  if ('bwg_tag' == $taxonomy) {
2499
- $user_guide_link .= 'image-tags';
2500
  }
2501
  else {
2502
  switch ( $page ) {
2503
  case 'galleries_bwg':
2504
  {
2505
- $user_guide_link .= 'adding-galleries/creating-galleries.html';
2506
  break;
2507
  }
2508
  case 'albums_bwg':
2509
  {
2510
- $user_guide_link .= 'gallery-groups';
2511
  break;
2512
  }
2513
  case 'tags_bwg':
2514
  {
2515
- $user_guide_link .= 'image-tags';
2516
  break;
2517
  }
2518
  case 'options_bwg':
2519
  {
2520
- $user_guide_link .= 'photo-gallery-options';
2521
  break;
2522
  }
2523
  case 'themes_bwg':
2524
  {
2525
- $user_guide_link .= 'photo-gallery-themes';
2526
  break;
2527
  }
2528
  case 'comments_bwg':
2529
  {
2530
- $user_guide_link .= 'comments-ratings';
2531
  break;
2532
  }
2533
  case 'ratings_bwg':
2534
  {
2535
- $user_guide_link .= 'comments-ratings';
2536
  break;
2537
  }
2538
  case 'licensing_bwg':
2539
  {
2540
- $user_guide_link .= 'adding-galleries/creating-galleries.html';
2541
  break;
2542
  }
2543
  default:
2491
  public static function topbar() {
2492
  $page = isset($_GET['page']) ? esc_html($_GET['page']) : '';
2493
  $taxonomy = isset($_GET['taxonomy']) ? esc_html($_GET['taxonomy']) : '';
2494
+ $user_guide_link = 'https://help.10web.io/hc/en-us/articles/';
2495
  $show_content = true;
2496
  $show_guide_link = true;
2497
  $show_head = false;
2498
  if ('bwg_tag' == $taxonomy) {
2499
+ $user_guide_link .= '360016080271-Creating-and-Applying-Image-Tags';
2500
  }
2501
  else {
2502
  switch ( $page ) {
2503
  case 'galleries_bwg':
2504
  {
2505
+ $user_guide_link .= '360016079391-Creating-Galleries';
2506
  break;
2507
  }
2508
  case 'albums_bwg':
2509
  {
2510
+ $user_guide_link .= '360015860512-Creating-Gallery-Groups';
2511
  break;
2512
  }
2513
  case 'tags_bwg':
2514
  {
2515
+ $user_guide_link .= '360016080271-Creating-and-Applying-Image-Tags';
2516
  break;
2517
  }
2518
  case 'options_bwg':
2519
  {
2520
+ $user_guide_link .= '360015860912-Configuring-Photo-Gallery-Options';
2521
  break;
2522
  }
2523
  case 'themes_bwg':
2524
  {
2525
+ $user_guide_link .= '360016082231-Editing-Photo-Gallery-Themes';
2526
  break;
2527
  }
2528
  case 'comments_bwg':
2529
  {
2530
+ $user_guide_link .= '360016082451-Managing-Image-Comments-and-Ratings';
2531
  break;
2532
  }
2533
  case 'ratings_bwg':
2534
  {
2535
+ $user_guide_link .= '360016082451-Managing-Image-Comments-and-Ratings';
2536
  break;
2537
  }
2538
  case 'licensing_bwg':
2539
  {
2540
+ $user_guide_link .= '360016079391-Creating-Galleries';
2541
  break;
2542
  }
2543
  default:
frontend/views/BWGViewGalleryBox.php CHANGED
@@ -1054,9 +1054,9 @@ class BWGViewGalleryBox {
1054
  }
1055
  $has_embed = $has_embed || preg_match('/EMBED/',$image_row->filetype) == 1;
1056
  if ( BWG()->is_pro ) {
1057
- $current_pricelist_id = $this->model->get_image_pricelist($image_row->id) ? $this->model->get_image_pricelist($image_row->id) : 0;
1058
- $_pricelist_data = $this->model->get_image_pricelists($current_pricelist_id);
1059
- $_pricelist = $_pricelist_data["pricelist"];
1060
  }
1061
  ?>
1062
  data["<?php echo $key; ?>"] = [];
1054
  }
1055
  $has_embed = $has_embed || preg_match('/EMBED/',$image_row->filetype) == 1;
1056
  if ( BWG()->is_pro ) {
1057
+ $current_pricelist_id = $this->model->get_image_pricelist($image_row->id);
1058
+ $current_pricelist_id = $current_pricelist_id ? $current_pricelist_id : 0;
1059
+ $_pricelist = $pricelist_data["pricelist"];
1060
  }
1061
  ?>
1062
  data["<?php echo $key; ?>"] = [];
images/tenweb/10web-logo.svg ADDED
@@ -0,0 +1,24 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 182.84 50">
2
+ <defs>
3
+ <style>
4
+ .cls-1 {
5
+ fill: #333b46;
6
+ }
7
+ </style>
8
+ </defs>
9
+ <g id="Group_164" data-name="Group 164" transform="translate(-1682.75 -377.15)">
10
+ <g id="Group_162" data-name="Group 162" transform="translate(1744.58 384.252)">
11
+ <path id="Path_73" data-name="Path 73" class="cls-1" d="M1715.4,388.192c.758-.189,1.515-.758,2.272-.947.757-.379,1.515-.758,2.462-1.326a15.767,15.767,0,0,0,2.273-1.515,17.051,17.051,0,0,0,1.894-1.7h4.166v26.894h-5.87V390.086a15.657,15.657,0,0,1-2.462,1.326l-2.84,1.136Z" transform="translate(-1715.4 -379.291)"/>
12
+ <path id="Path_74" data-name="Path 74" class="cls-1" d="M1745.537,396.126c0,4.545-.758,7.955-2.462,10.417a8.621,8.621,0,0,1-14.013,0c-1.7-2.462-2.462-5.871-2.462-10.417a18.419,18.419,0,0,1,.757-5.871,23.189,23.189,0,0,1,1.894-4.356,8.108,8.108,0,0,1,3.03-2.652,8.8,8.8,0,0,1,3.977-.947,7.921,7.921,0,0,1,7.007,3.6C1744.78,387.982,1745.537,391.77,1745.537,396.126Zm-6.06,0a21.769,21.769,0,0,0-.189-3.6,12.548,12.548,0,0,0-.568-2.841,6.305,6.305,0,0,0-1.136-1.894,2.893,2.893,0,0,0-1.894-.758,2.431,2.431,0,0,0-1.894.758,5.469,5.469,0,0,0-1.136,1.894,10.726,10.726,0,0,0-.569,2.841,34.357,34.357,0,0,0,0,7.2,10.715,10.715,0,0,0,.569,2.841,6.3,6.3,0,0,0,1.136,1.894,2.891,2.891,0,0,0,1.894.758,2.432,2.432,0,0,0,1.894-.758,5.476,5.476,0,0,0,1.136-1.894q.284-1.136.568-2.841A19.559,19.559,0,0,0,1739.477,396.126Z" transform="translate(-1705.391 -379.648)"/>
13
+ <path id="Path_75" data-name="Path 75" class="cls-1" d="M1757.964,385.351c.189.947.757,2.273.946,3.6.379,1.326.757,2.651,1.136,4.167a35.376,35.376,0,0,0,1.326,4.167c.568,1.326.757,2.652,1.326,3.977.189-1.326.757-2.651.947-4.167s.757-3.03.947-4.735.568-3.22.757-4.924.568-3.22.757-4.735h6.25c-.757,4.545-1.893,9.091-3.03,13.636-1.136,4.735-2.462,8.9-3.787,13.258h-5.492c-.757-2.462-1.894-5.114-2.651-7.765s-1.7-5.3-2.462-8.144c-.757,2.652-1.7,5.3-2.462,8.144s-1.7,5.3-2.462,7.765h-5.492c-1.326-4.167-2.651-8.523-3.787-13.258s-2.273-9.28-3.03-13.636h6.438c.189,1.515.569,3.03.758,4.735a45.231,45.231,0,0,0,.947,4.924c.189,1.7.757,3.22.947,4.735a22.01,22.01,0,0,0,1.136,4.167c.379-1.326.758-2.462,1.326-3.977a35.261,35.261,0,0,1,1.326-4.167,34.047,34.047,0,0,0,1.136-4.167c.189-1.326.758-2.462.947-3.6Z" transform="translate(-1695.471 -379.291)"/>
14
+ <path id="Path_76" data-name="Path 76" class="cls-1" d="M1756.9,396.6a11.829,11.829,0,0,1,.758-4.735,14.843,14.843,0,0,1,2.083-3.409,8.246,8.246,0,0,1,3.03-1.894,12.223,12.223,0,0,1,3.6-.758c2.841,0,5.113.758,6.818,2.652,1.7,1.7,2.462,4.356,2.462,7.765v1.136a2.4,2.4,0,0,1-.19,1.136h-13.066a4.49,4.49,0,0,0,1.7,2.841,6.215,6.215,0,0,0,3.977.947c.947,0,2.083-.189,3.03-.189a4.739,4.739,0,0,0,2.462-.758l.757,4.735c-.189.189-.757.189-1.326.379s-1.136.189-1.7.379a6.435,6.435,0,0,1-1.893.189,7.77,7.77,0,0,1-2.083.189,11.833,11.833,0,0,1-4.734-.758,10.743,10.743,0,0,1-3.409-2.273,8.437,8.437,0,0,1-1.894-3.409A16.251,16.251,0,0,1,1756.9,396.6Zm13.445-2.273c0-.379-.19-.947-.19-1.326a10.86,10.86,0,0,0-.758-1.326,1.557,1.557,0,0,0-1.136-.758,4.2,4.2,0,0,0-1.7-.189c-.757,0-1.136.189-1.7.189-.378.189-.758.568-1.136.758a8.259,8.259,0,0,0-.758,1.326,12.061,12.061,0,0,1-.378,1.326Z" transform="translate(-1678.311 -376.52)"/>
15
+ <path id="Path_77" data-name="Path 77" class="cls-1" d="M1788.237,400.786a11.109,11.109,0,0,1-.757,4.356,7.925,7.925,0,0,1-2.083,3.409,7.3,7.3,0,0,1-3.219,2.083,16.275,16.275,0,0,1-4.545.758,7.767,7.767,0,0,1-2.083-.189,9.219,9.219,0,0,0-2.272-.189c-.757-.189-1.326-.189-2.083-.379s-1.325-.189-1.894-.379V381.847l5.87-.947v10.038a19.613,19.613,0,0,0,1.894-.758,7.8,7.8,0,0,1,2.273-.189,8.479,8.479,0,0,1,3.787.758,15.683,15.683,0,0,1,2.841,2.083,8.254,8.254,0,0,1,1.7,3.409A17.615,17.615,0,0,1,1788.237,400.786Zm-5.871-.189c0-3.6-1.325-5.492-4.166-5.492-.568,0-1.136.189-1.7.189a1.719,1.719,0,0,0-1.325.568v10.417c.189,0,.757.189,1.136.189h1.326a4.848,4.848,0,0,0,3.6-1.515A7.844,7.844,0,0,0,1782.367,400.6Z" transform="translate(-1667.229 -380.9)"/>
16
+ </g>
17
+ <g id="Group_163" data-name="Group 163" transform="translate(1682.75 377.15)">
18
+ <path id="Path_78" data-name="Path 78" class="cls-1" d="M1686.879,394.1l16.665-16.667a1.152,1.152,0,0,1,1.515,0l24.05,24.242a1.152,1.152,0,0,1,0,1.515l-.189.189a5.268,5.268,0,0,1-7.2,0l-17.043-17.046a1.152,1.152,0,0,0-1.515,0l-9.468,9.47a5.267,5.267,0,0,1-7.2,0h0A2.547,2.547,0,0,1,1686.879,394.1Z" transform="translate(-1679.399 -377.15)"/>
19
+ <path id="Path_79" data-name="Path 79" class="cls-1" d="M1725.453,399.561l-16.665,16.667a1.152,1.152,0,0,1-1.515,0l-24.24-24.242a1.153,1.153,0,0,1,0-1.515h0a5.268,5.268,0,0,1,7.2,0l16.854,16.856a1.152,1.152,0,0,0,1.515,0l9.469-9.47a5.267,5.267,0,0,1,7.2,0h0A1.217,1.217,0,0,1,1725.453,399.561Z" transform="translate(-1682.75 -366.512)"/>
20
+ <path id="Path_80" data-name="Path 80" class="cls-1" d="M1699.268,394.681l-4.166-4.167a3.207,3.207,0,0,1,0-4.356l.189-.189a2.882,2.882,0,0,1,4.356,0l8.522,8.523a1.152,1.152,0,0,1,0,1.515l-8.143,8.144a2.882,2.882,0,0,1-4.356,0h0a2.883,2.883,0,0,1,0-4.356l3.787-3.788A1.2,1.2,0,0,0,1699.268,394.681Z" transform="translate(-1672.472 -370.155)"/>
21
+ <path id="Path_81" data-name="Path 81" class="cls-1" d="M1697.284,390.9l-1.326-1.326a2.882,2.882,0,0,0-4.355,0h0a3.207,3.207,0,0,0,0,4.356h0a2.882,2.882,0,0,0,4.355,0l1.326-1.326A1.065,1.065,0,0,0,1697.284,390.9Z" transform="translate(-1675.6 -366.937)"/>
22
+ </g>
23
+ </g>
24
+ </svg>
images/tenweb/Group 53914.svg ADDED
@@ -0,0 +1,29 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 28.213 28">
2
+ <defs>
3
+ <style>
4
+ .cls-1, .cls-2 {
5
+ fill: #f8c332;
6
+ }
7
+
8
+ .cls-1 {
9
+ opacity: 0.2;
10
+ }
11
+
12
+ .cls-3 {
13
+ fill: none;
14
+ }
15
+
16
+ .cls-4 {
17
+ fill: #fff;
18
+ }
19
+ </style>
20
+ </defs>
21
+ <g id="Group_53914" data-name="Group 53914" transform="translate(-1079 -255)">
22
+ <path id="Path_107465" data-name="Path 107465" class="cls-1" d="M9.4,0h6.84a9.4,9.4,0,0,1,9.4,9.4v6.84a9.4,9.4,0,0,1-9.4,9.4H9.4a9.4,9.4,0,0,1-9.4-9.4V9.4A9.4,9.4,0,0,1,9.4,0Z" transform="translate(1081.565 255)"/>
23
+ <path id="Path_107464" data-name="Path 107464" class="cls-2" d="M9.4,0h6.84a9.4,9.4,0,0,1,9.4,9.4v6.84a9.4,9.4,0,0,1-9.4,9.4H9.4a9.4,9.4,0,0,1-9.4-9.4V9.4A9.4,9.4,0,0,1,9.4,0Z" transform="translate(1079 257.351)"/>
24
+ <g id="Group_56213" data-name="Group 56213" transform="translate(704.992 -4392)">
25
+ <path id="Rectangle_2064" data-name="Rectangle 2064" class="cls-3" d="M0,0H15V15H0Z" transform="translate(379.034 4655)"/>
26
+ <path id="Union_50" data-name="Union 50" class="cls-4" d="M-13950.83,12.176a.833.833,0,0,1-.833-.834V.834a.833.833,0,0,1,.833-.834h1.965a.828.828,0,0,1,.589.244.832.832,0,0,1,.246.59l0,10.511a.822.822,0,0,1-.244.59.828.828,0,0,1-.589.244Zm-5.683,0a.833.833,0,0,1-.833-.834V4.084a.833.833,0,0,1,.833-.834h1.965a.833.833,0,0,1,.833.834v7.266a.833.833,0,0,1-.833.834Zm-5.684,0a.835.835,0,0,1-.591-.244.838.838,0,0,1-.243-.59l0-4.016a.828.828,0,0,1,.241-.59.835.835,0,0,1,.591-.244h1.966a.834.834,0,0,1,.834.834v4.018a.832.832,0,0,1-.831.834Z" transform="translate(14342.037 4656.416)"/>
27
+ </g>
28
+ </g>
29
+ </svg>
images/tenweb/Group 53915.svg ADDED
@@ -0,0 +1,32 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 28 28">
2
+ <defs>
3
+ <style>
4
+ .cls-1, .cls-2 {
5
+ fill: #f8c332;
6
+ }
7
+
8
+ .cls-1 {
9
+ opacity: 0.2;
10
+ }
11
+
12
+ .cls-3, .cls-4 {
13
+ fill: #fff;
14
+ }
15
+
16
+ .cls-3 {
17
+ stroke: #fff;
18
+ stroke-width: 0.5px;
19
+ }
20
+ </style>
21
+ </defs>
22
+ <g id="Group_53915" data-name="Group 53915" transform="translate(-1079 -293)">
23
+ <path id="Path_107461" data-name="Path 107461" class="cls-1" d="M9.333,0h6.788a9.333,9.333,0,0,1,9.333,9.333v6.559a9.333,9.333,0,0,1-9.333,9.333H9.333A9.333,9.333,0,0,1,0,15.892V9.333A9.333,9.333,0,0,1,9.333,0Z" transform="translate(1081.545 293)"/>
24
+ <path id="Path_107460" data-name="Path 107460" class="cls-2" d="M9.333,0h6.788a9.333,9.333,0,0,1,9.333,9.333v6.559a9.333,9.333,0,0,1-9.333,9.333H9.333A9.333,9.333,0,0,1,0,15.892V9.333A9.333,9.333,0,0,1,9.333,0Z" transform="translate(1079 295.774)"/>
25
+ <g id="Group_53597" data-name="Group 53597" transform="translate(1085.02 302.225)">
26
+ <g id="Group_53596" data-name="Group 53596">
27
+ <path id="Path_104710" data-name="Path 104710" class="cls-3" d="M-195.229,92.687l-.145-.144a6.6,6.6,0,0,1-1.848-5.216c.048-.272.064-.576.129-.848l.1-.416.145-.4a2.968,2.968,0,0,1,.161-.4c.064-.128.129-.272.193-.4a5.91,5.91,0,0,1,.466-.752,6.714,6.714,0,0,1,2.684-2.224c.257-.112.53-.208.771-.3a6.789,6.789,0,0,1,.771-.192,4.068,4.068,0,0,1,.755-.1,5.275,5.275,0,0,1,.707-.016,6.719,6.719,0,0,1,2.941.736.588.588,0,0,1,.273.784.593.593,0,0,1-.787.272l-.016-.016-.016-.016-.161-.08a6.772,6.772,0,0,0-1.237-.464,7.623,7.623,0,0,0-1.029-.16c-.209-.016-.4,0-.611,0a4.6,4.6,0,0,0-.643.064,5.688,5.688,0,0,0-.675.144,6.163,6.163,0,0,0-1.977.976,5.488,5.488,0,0,0-1.093,1.1c-.177.192-.289.432-.45.64-.064.112-.113.224-.177.352a2.355,2.355,0,0,0-.161.352l-.145.368-.1.368a5.717,5.717,0,0,0-.145.72,5.651,5.651,0,0,0,.257,2.688,5.772,5.772,0,0,0,1.254,2.112l.129.144a.27.27,0,0,1-.016.368.256.256,0,0,1-.305-.048Z" transform="translate(197.249 -81.272)"/>
28
+ </g>
29
+ <path id="Path_107101" data-name="Path 107101" class="cls-4" d="M-147.991,106.669a.351.351,0,0,1-.482,0l-.723-.72a.347.347,0,0,1,0-.48.351.351,0,0,1,.482,0l.723.72a.347.347,0,0,1,0,.48Zm1.141-1.472a.345.345,0,0,1-.466.128h0l-.884-.512a.341.341,0,0,1-.129-.464.345.345,0,0,1,.466-.128l.884.512a.357.357,0,0,1,.129.464Zm.707-1.712a.348.348,0,0,1-.418.24h0l-1-.256a.346.346,0,0,1-.241-.416.348.348,0,0,1,.418-.24l1,.272a.309.309,0,0,1,.241.4Zm.241-1.856a.339.339,0,0,1-.338.336h-1.029a.339.339,0,0,1-.338-.336.35.35,0,0,1,.338-.336h1.029A.329.329,0,0,1-145.9,101.629Zm-.241-1.856a.346.346,0,0,1-.241.416h0l-1,.272a.348.348,0,0,1-.418-.24.346.346,0,0,1,.241-.416h0l1-.256A.339.339,0,0,1-146.142,99.773Zm-.723-1.712a.328.328,0,0,1-.129.464h0l-.884.512a.345.345,0,0,1-.466-.128.341.341,0,0,1,.129-.464l.884-.512a.337.337,0,0,1,.466.128Zm-6.768,3.008,5.385-4.736a.36.36,0,0,1,.514,0,.356.356,0,0,1,0,.512h0l-4.758,5.36a.814.814,0,0,1-1.141-.048A.79.79,0,0,1-153.633,101.069Z" transform="translate(159.577 -94.855)"/>
30
+ </g>
31
+ </g>
32
+ </svg>
images/tenweb/Group 53916.svg ADDED
@@ -0,0 +1,34 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 28.213 28">
2
+ <defs>
3
+ <style>
4
+ .cls-1, .cls-2 {
5
+ fill: #f8c332;
6
+ }
7
+
8
+ .cls-1 {
9
+ opacity: 0.2;
10
+ }
11
+
12
+ .cls-3 {
13
+ fill: #fff;
14
+ }
15
+ </style>
16
+ </defs>
17
+ <g id="Group_53916" data-name="Group 53916" transform="translate(-1269 -201)">
18
+ <path id="Path_107465" data-name="Path 107465" class="cls-1" d="M9.4,0h6.84a9.4,9.4,0,0,1,9.4,9.4v6.84a9.4,9.4,0,0,1-9.4,9.4H9.4a9.4,9.4,0,0,1-9.4-9.4V9.4A9.4,9.4,0,0,1,9.4,0Z" transform="translate(1271.565 201)"/>
19
+ <path id="Path_107464" data-name="Path 107464" class="cls-2" d="M9.4,0h6.84a9.4,9.4,0,0,1,9.4,9.4v6.84a9.4,9.4,0,0,1-9.4,9.4H9.4a9.4,9.4,0,0,1-9.4-9.4V9.4A9.4,9.4,0,0,1,9.4,0Z" transform="translate(1269 203.351)"/>
20
+ <g id="calendar" transform="translate(1274.999 209)">
21
+ <g id="Group_53574" data-name="Group 53574">
22
+ <path id="Path_107055" data-name="Path 107055" class="cls-3" d="M119.107,258.619a.377.377,0,0,0-.377-.377h-1.317a.377.377,0,0,0-.377.377v1.317a.377.377,0,0,0,.377.377h1.317a.377.377,0,0,0,.377-.377v-1.317Z" transform="translate(-113.937 -251.034)"/>
23
+ <path id="Path_107056" data-name="Path 107056" class="cls-3" d="M215.741,258.619a.377.377,0,0,0-.377-.377h-1.317a.377.377,0,0,0-.377.377v1.317a.377.377,0,0,0,.377.377h1.317a.377.377,0,0,0,.377-.377Z" transform="translate(-207.89 -251.034)"/>
24
+ <path id="Path_107057" data-name="Path 107057" class="cls-3" d="M312.37,258.619a.377.377,0,0,0-.377-.377h-1.317a.377.377,0,0,0-.377.377v1.317a.377.377,0,0,0,.377.377h1.317a.377.377,0,0,0,.377-.377Z" transform="translate(-301.836 -251.034)"/>
25
+ <path id="Path_107058" data-name="Path 107058" class="cls-3" d="M119.107,355.252a.377.377,0,0,0-.377-.377h-1.317a.377.377,0,0,0-.377.377v1.317a.377.377,0,0,0,.377.377h1.317a.377.377,0,0,0,.377-.377v-1.317Z" transform="translate(-113.937 -345.17)"/>
26
+ <path id="Path_107059" data-name="Path 107059" class="cls-3" d="M215.741,355.252a.377.377,0,0,0-.377-.377h-1.317a.377.377,0,0,0-.377.377v1.317a.377.377,0,0,0,.377.377h1.317a.377.377,0,0,0,.377-.377Z" transform="translate(-207.89 -345.17)"/>
27
+ <path id="Path_107060" data-name="Path 107060" class="cls-3" d="M312.37,355.252a.377.377,0,0,0-.377-.377h-1.317a.377.377,0,0,0-.377.377v1.317a.377.377,0,0,0,.377.377h1.317a.377.377,0,0,0,.377-.377v-1.317Z" transform="translate(-301.836 -345.17)"/>
28
+ <path id="Path_107061" data-name="Path 107061" class="cls-3" d="M17.829,54.148V55.8a1.364,1.364,0,0,1-1.38,1.35h-.871a1.371,1.371,0,0,1-1.389-1.35v-1.66H10.264V55.8a1.371,1.371,0,0,1-1.389,1.35H8a1.364,1.364,0,0,1-1.38-1.35V54.148a1.243,1.243,0,0,0-1.213,1.225v9.692A1.244,1.244,0,0,0,6.661,66.3H17.793a1.245,1.245,0,0,0,1.25-1.233V55.373A1.243,1.243,0,0,0,17.829,54.148Zm-.4,10.314a.535.535,0,0,1-.54.53H7.545a.535.535,0,0,1-.54-.53V59.455a.535.535,0,0,1,.54-.53h9.339a.535.535,0,0,1,.54.53v5.007Z" transform="translate(-5.411 -52.298)"/>
29
+ <path id="Path_107062" data-name="Path 107062" class="cls-3" d="M80.115,4.426h1.027a.564.564,0,0,0,.565-.564V.565A.565.565,0,0,0,81.142,0H80.115a.565.565,0,0,0-.565.565v3.3A.564.564,0,0,0,80.115,4.426Z" transform="translate(-77.495)"/>
30
+ <path id="Path_107063" data-name="Path 107063" class="cls-3" d="M345.023,4.426h1.027a.564.564,0,0,0,.564-.564V.565A.564.564,0,0,0,346.05,0h-1.027a.565.565,0,0,0-.565.565v3.3A.564.564,0,0,0,345.023,4.426Z" transform="translate(-335.061)"/>
31
+ </g>
32
+ </g>
33
+ </g>
34
+ </svg>
images/tenweb/Group 53917.svg ADDED
@@ -0,0 +1,22 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 28.213 28">
2
+ <defs>
3
+ <style>
4
+ .cls-1, .cls-2 {
5
+ fill: #f8c332;
6
+ }
7
+
8
+ .cls-1 {
9
+ opacity: 0.2;
10
+ }
11
+
12
+ .cls-3 {
13
+ fill: #fff;
14
+ }
15
+ </style>
16
+ </defs>
17
+ <g id="Group_53917" data-name="Group 53917" transform="translate(-1268 -255)">
18
+ <path id="Path_107465" data-name="Path 107465" class="cls-1" d="M9.4,0h6.84a9.4,9.4,0,0,1,9.4,9.4v6.84a9.4,9.4,0,0,1-9.4,9.4H9.4a9.4,9.4,0,0,1-9.4-9.4V9.4A9.4,9.4,0,0,1,9.4,0Z" transform="translate(1270.565 255)"/>
19
+ <path id="Path_107464" data-name="Path 107464" class="cls-2" d="M9.4,0h6.84a9.4,9.4,0,0,1,9.4,9.4v6.84a9.4,9.4,0,0,1-9.4,9.4H9.4a9.4,9.4,0,0,1-9.4-9.4V9.4A9.4,9.4,0,0,1,9.4,0Z" transform="translate(1268 257.351)"/>
20
+ <path id="secure" class="cls-3" d="M23.607,1.139a.42.42,0,0,0-.3-.35,8.873,8.873,0,0,1-2.638-.882,21.242,21.242,0,0,1-2.636-1.722A21.135,21.135,0,0,1,15.312-.092a9.918,9.918,0,0,1-2.557.884.42.42,0,0,0-.3.35c-.03.213-.714,5.3,1.036,7.832a8.243,8.243,0,0,0,4.44,3.2.42.42,0,0,0,.2,0,8.243,8.243,0,0,0,4.443-3.2C24.319,6.439,23.607,1.139,23.607,1.139ZM21.358,4.107,17.837,7.627a.42.42,0,0,1-.593,0L15.067,5.45a.42.42,0,0,1,0-.593l.432-.432a.42.42,0,0,1,.593,0l1.448,1.45,2.792-2.792a.42.42,0,0,1,.593,0l.432.432a.42.42,0,0,1,0,.591Z" transform="translate(1262.703 264.814)"/>
21
+ </g>
22
+ </svg>
images/tenweb/Group 58983.svg ADDED
@@ -0,0 +1,24 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 28 27.999">
2
+ <defs>
3
+ <style>
4
+ .cls-1, .cls-2 {
5
+ fill: #f8c332;
6
+ }
7
+
8
+ .cls-1 {
9
+ opacity: 0.2;
10
+ }
11
+
12
+ .cls-3 {
13
+ fill: #fff;
14
+ }
15
+ </style>
16
+ </defs>
17
+ <g id="Group_58983" data-name="Group 58983" transform="translate(-1104 -213)">
18
+ <path id="Path_107465" data-name="Path 107465" class="cls-1" d="M9.333,0h6.788a9.333,9.333,0,0,1,9.333,9.333v6.788a9.333,9.333,0,0,1-9.333,9.333H9.333A9.333,9.333,0,0,1,0,16.121V9.333A9.333,9.333,0,0,1,9.333,0Z" transform="translate(1106.545 213)"/>
19
+ <path id="Path_107464" data-name="Path 107464" class="cls-2" d="M9.333,0h6.788a9.333,9.333,0,0,1,9.333,9.333v6.788a9.333,9.333,0,0,1-9.333,9.333H9.333A9.333,9.333,0,0,1,0,16.121V9.333A9.333,9.333,0,0,1,9.333,0Z" transform="translate(1103.999 215.545)"/>
20
+ <g id="Group_53590" data-name="Group 53590" transform="translate(1109.999 222.001)">
21
+ <path id="Path_107100" data-name="Path 107100" class="cls-3" d="M-63.96.583A1.814,1.814,0,0,1-62.6,0a1.911,1.911,0,0,1,1.361.551A1.937,1.937,0,0,1-61.2,3.274a1.814,1.814,0,0,1-1.361.583,1.944,1.944,0,0,1-1.945-1.912A1.785,1.785,0,0,1-63.96.583Zm3.663,11.9a.55.55,0,0,1-.519.292h-2.01l-9.95-.065a.55.55,0,0,1-.519-.292.4.4,0,0,1,.032-.421l5.153-7.26,2.82,4.051,1.361-1.88,3.63,5.153A.481.481,0,0,1-60.3,12.479Z" transform="translate(73.339)"/>
22
+ </g>
23
+ </g>
24
+ </svg>
images/tenweb/notice_bg.png ADDED
Binary file
js/bwg_frontend.js CHANGED
@@ -52,14 +52,29 @@ jQuery(document).ajaxComplete(function () {
52
  });
53
 
54
  jQuery(document).ready(function () {
55
- /* To bind only visible containers.*/
56
- jQuery(".bwg_container").each(function() {
57
- bwg_main_ready();
58
- jQuery(this).hideShow(function(event, visibility) {
59
- if ( visibility == 'shown' ) {
60
- bwg_main_ready();
61
  }
62
  });
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
63
  });
64
  });
65
 
@@ -120,32 +135,6 @@ jQuery(window).on("resize", function () {
120
  bwg_resize_search_line();
121
  });
122
 
123
- jQuery(window).on('focus', function () {
124
- var bwg_error = false;
125
- /* If there is error (empty gallery).*/
126
- jQuery(".bwg_container").each(function () {
127
- if ( jQuery(this).find(".wd_error").length > 0 ) {
128
- bwg_error = true;
129
- }
130
- });
131
- if ( !bwg_error ) {
132
- bwg_slideshow_focus();
133
- }
134
- });
135
-
136
- jQuery(window).on('blur', function () {
137
- var bwg_error = false;
138
- /* If there is error (empty gallery).*/
139
- jQuery(".bwg_container").each(function () {
140
- if ( jQuery(this).find(".wd_error").length > 0 ) {
141
- bwg_error = true;
142
- }
143
- });
144
- if ( !bwg_error ) {
145
- bwg_slideshow_blur();
146
- }
147
- });
148
-
149
  jQuery(window).on("load", function () {
150
  var bwg_error = false;
151
  /* If there is error (empty gallery).*/
@@ -285,17 +274,10 @@ function bwg_slideshow_focus() {
285
  if ( jQuery("#bwg_slideshow_image_container_" + bwg).length ) {
286
  bwg_params[bwg] = JSON.parse(jQuery("#bwg_slideshow_image_container_" + bwg).attr("data-params"));
287
  bwg_params[bwg]['event_stack'] = [];
288
- window.clearInterval(bwg_params[bwg]['bwg_playInterval']);
289
- if (!jQuery(".bwg_ctrl_btn_" + bwg).hasClass("fa-play") && bwg_params[bwg]['enable_slideshow_autoplay'] != 0) {
290
  bwg_play(bwg_params[bwg]['data'], bwg);
291
  }
292
- var i = 0;
293
- jQuery(".bwg_slider_" + bwg).children("span").each(function () {
294
- if (jQuery(this).css('opacity') == 1) {
295
- jQuery("#bwg_current_image_key_" + bwg).val(i);
296
- }
297
- i++;
298
- });
299
  }
300
  });
301
  }
@@ -306,7 +288,7 @@ function bwg_slideshow_blur() {
306
  if ( jQuery("#bwg_slideshow_image_container_" + bwg).length ) {
307
  bwg_params[bwg] = JSON.parse(jQuery("#bwg_slideshow_image_container_" + bwg).attr("data-params"));
308
  bwg_params[bwg]['event_stack'] = [];
309
- window.clearInterval(bwg_params[bwg]['bwg_playInterval']);
310
  }
311
  });
312
  }
@@ -712,7 +694,7 @@ function bwg_slideshow_ready() {
712
  bwg_set_filmstrip_pos(jQuery(".bwg_slideshow_filmstrip_" + bwg).height(), bwg);
713
  }
714
  /* Play/pause.*/
715
- jQuery("#bwg_slideshow_play_pause_" + bwg).on(bwg_click, function () {
716
  if (jQuery(".bwg_ctrl_btn_" + bwg).hasClass("fa-play")) {
717
  bwg_play(bwg_params[bwg]['data'], bwg);
718
  jQuery(".bwg_slideshow_play_pause_" + bwg).attr("title", bwg_objectsL10n.pause);
@@ -723,7 +705,7 @@ function bwg_slideshow_ready() {
723
  }
724
  else {
725
  /* Pause.*/
726
- window.clearInterval(bwg_params[bwg]['bwg_playInterval']);
727
  jQuery(".bwg_slideshow_play_pause_" + bwg).attr("title", "Play");
728
  jQuery(".bwg_slideshow_play_pause_" + bwg).attr("class", "bwg_ctrl_btn_" + bwg + " bwg_slideshow_play_pause_" + bwg + " fa fa-play");
729
  if (bwg_params[bwg]['enable_slideshow_music'] == 1) {
@@ -2459,8 +2441,8 @@ function bwg_play( data, bwg ) {
2459
 
2460
  /* Play.*/
2461
  if ( typeof bwg != 'undefined' ) { /* SLIDESHOW */
2462
- window.clearInterval(bwg_params[bwg]['bwg_playInterval']);
2463
- bwg_params[bwg]['bwg_playInterval'] = setInterval(function () {
2464
  var iterator = 1;
2465
  if (bwg_params[bwg]['enable_slideshow_shuffle'] == 1) {
2466
  iterator = Math.floor((data.length - 1) * Math.random() + 1);
52
  });
53
 
54
  jQuery(document).ready(function () {
55
+ document.addEventListener("visibilitychange", function() {
56
+ var bwg_error = false;
57
+ /* If there is error (empty gallery).*/
58
+ jQuery(".bwg_container").each(function () {
59
+ if ( jQuery(this).find(".wd_error").length > 0 ) {
60
+ bwg_error = true;
61
  }
62
  });
63
+ if ( !bwg_error ) {
64
+ if (document.visibilityState == 'visible') {
65
+ bwg_slideshow_focus();
66
+ }
67
+ if (document.visibilityState == 'hidden') {
68
+ bwg_slideshow_blur();
69
+ }
70
+ }
71
+ });
72
+ /* To bind only visible containers.*/
73
+ bwg_main_ready();
74
+ jQuery(this).hideShow(function(event, visibility) {
75
+ if ( visibility == 'shown' ) {
76
+ bwg_main_ready();
77
+ }
78
  });
79
  });
80
 
135
  bwg_resize_search_line();
136
  });
137
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
138
  jQuery(window).on("load", function () {
139
  var bwg_error = false;
140
  /* If there is error (empty gallery).*/
274
  if ( jQuery("#bwg_slideshow_image_container_" + bwg).length ) {
275
  bwg_params[bwg] = JSON.parse(jQuery("#bwg_slideshow_image_container_" + bwg).attr("data-params"));
276
  bwg_params[bwg]['event_stack'] = [];
277
+ window.clearInterval(window['bwg_playInterval' + bwg]);
278
+ if (!jQuery(".bwg_ctrl_btn_" + bwg).hasClass("fa-play")) {
279
  bwg_play(bwg_params[bwg]['data'], bwg);
280
  }
 
 
 
 
 
 
 
281
  }
282
  });
283
  }
288
  if ( jQuery("#bwg_slideshow_image_container_" + bwg).length ) {
289
  bwg_params[bwg] = JSON.parse(jQuery("#bwg_slideshow_image_container_" + bwg).attr("data-params"));
290
  bwg_params[bwg]['event_stack'] = [];
291
+ window.clearInterval(window['bwg_playInterval' + bwg]);
292
  }
293
  });
294
  }
694
  bwg_set_filmstrip_pos(jQuery(".bwg_slideshow_filmstrip_" + bwg).height(), bwg);
695
  }
696
  /* Play/pause.*/
697
+ jQuery("#bwg_slideshow_play_pause_" + bwg).off(bwg_click).on(bwg_click, function () {
698
  if (jQuery(".bwg_ctrl_btn_" + bwg).hasClass("fa-play")) {
699
  bwg_play(bwg_params[bwg]['data'], bwg);
700
  jQuery(".bwg_slideshow_play_pause_" + bwg).attr("title", bwg_objectsL10n.pause);
705
  }
706
  else {
707
  /* Pause.*/
708
+ window.clearInterval(window['bwg_playInterval' + bwg]);
709
  jQuery(".bwg_slideshow_play_pause_" + bwg).attr("title", "Play");
710
  jQuery(".bwg_slideshow_play_pause_" + bwg).attr("class", "bwg_ctrl_btn_" + bwg + " bwg_slideshow_play_pause_" + bwg + " fa fa-play");
711
  if (bwg_params[bwg]['enable_slideshow_music'] == 1) {
2441
 
2442
  /* Play.*/
2443
  if ( typeof bwg != 'undefined' ) { /* SLIDESHOW */
2444
+ window.clearInterval(window['bwg_playInterval' + bwg]);
2445
+ window['bwg_playInterval' + bwg] = setInterval(function () {
2446
  var iterator = 1;
2447
  if (bwg_params[bwg]['enable_slideshow_shuffle'] == 1) {
2448
  iterator = Math.floor((data.length - 1) * Math.random() + 1);
photo-gallery.php CHANGED
@@ -3,7 +3,7 @@
3
  * Plugin Name: Photo Gallery
4
  * Plugin URI: https://10web.io/plugins/wordpress-photo-gallery/
5
  * Description: This plugin is a fully responsive gallery plugin with advanced functionality. It allows having different image galleries for your posts and pages. You can create unlimited number of galleries, combine them into albums, and provide descriptions and tags.
6
- * Version: 1.5.7
7
  * Author: Photo Gallery Team
8
  * Author URI: https://10web.io/pricing/
9
  * License: GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html
@@ -81,8 +81,8 @@ final class BWG {
81
  $this->plugin_dir = WP_PLUGIN_DIR . "/" . plugin_basename(dirname(__FILE__));
82
  $this->plugin_url = plugins_url(plugin_basename(dirname(__FILE__)));
83
  $this->main_file = plugin_basename(__FILE__);
84
- $this->plugin_version = '1.5.7';
85
- $this->db_version = '1.5.7';
86
  $this->prefix = 'bwg';
87
  $this->nicename = __('Photo Gallery', $this->prefix);
88
 
@@ -915,7 +915,7 @@ final class BWG {
915
  tb_click.call(this);
916
  bwg_create_loading_block();
917
  bwg_set_shortcode_popup_dimensions(); } return false;" href="<?php echo $url; ?>" class="bwg-shortcode-btn button" title="<?php _e('Insert Photo Gallery', $this->prefix); ?>">
918
- <span class="wp-media-buttons-icon" style="background: url('<?php echo $this->plugin_url; ?>/images/icons/bwg_edit_but.png') no-repeat scroll left top rgba(0, 0, 0, 0);"></span>
919
  <?php _e('Add Photo Gallery', $this->prefix); ?>
920
  </a>
921
  <?php
@@ -1573,7 +1573,7 @@ final class BWG {
1573
  "plugin_wd_url" => "https://10web.io/plugins/wordpress-photo-gallery/",
1574
  "plugin_wd_demo_link" => "https://demo.10web.io/photo-gallery/",
1575
  "plugin_wd_addons_link" => "https://10web.io/plugins/wordpress-photo-gallery/",
1576
- "plugin_wd_docs_link" => "http://docs.10web.io/docs/photo-gallery/",
1577
  "after_subscribe" => admin_url('admin.php?page=galleries_bwg'), // this can be plagin overview page or set up page
1578
  "plugin_wizard_link" => '',
1579
  "plugin_menu_title" => $this->nicename,
@@ -1855,9 +1855,9 @@ function photo_gallery( $id ) {
1855
  }
1856
 
1857
  /**
1858
- * Show notice to install Image Optimization plugin
1859
  */
1860
- function wdpg_io_install_notice() {
1861
  // Show notice only on plugin pages.
1862
  if ( !isset($_GET['page']) || strpos(esc_html($_GET['page']), '_bwg') === FALSE ) {
1863
  return '';
@@ -1866,57 +1866,76 @@ function wdpg_io_install_notice() {
1866
  wp_enqueue_script('bwg_admin', BWG()->plugin_url . '/js/bwg.js', array(), BWG()->plugin_version);
1867
 
1868
  // Remove old notice.
1869
- if ( get_option('wds_io_notice_status') !== FALSE ) {
1870
- update_option('wds_io_notice_status', '1', 'no');
1871
  }
1872
 
1873
- $meta_value = get_option('wds_io_notice_status');
1874
  if ( $meta_value === '' || $meta_value === FALSE ) {
1875
  ob_start();
1876
  $prefix = BWG()->prefix;
1877
  $nicename = BWG()->nicename;
1878
  $url = BWG()->plugin_url;
1879
- $dismiss_url = add_query_arg(array( 'action' => 'wd_io_dismiss' ), admin_url('admin-ajax.php'));
1880
 
1881
- $slug = 'image-optimizer-wd';
1882
  $install_url = esc_url(wp_nonce_url(self_admin_url('update.php?action=install-plugin&plugin=' . $slug), 'install-plugin_' . $slug));
1883
- $activation_url = na_action_link($slug.'/io-wd.php', 'activate');
1884
- $verify_url = add_query_arg( array ('action' => 'io_status'), admin_url('admin-ajax.php'));
 
1885
  ?>
1886
- <div class="notice notice-info" id="wd_io_notice_cont">
1887
- <p>
1888
- <img id="wd_io_logo_notice" src="<?php echo $url . '/images/iopLogo.png'; ?>" />
1889
- <?php echo sprintf(__("%s advises: Install brand new %s plugin to optimize your website images quickly and easily.", $prefix), $nicename, '<a href="https://wordpress.org/plugins/image-optimizer-wd/" title="' . __("More details", $prefix) . '" target="_blank">' . __("Image Optimizer WD", $prefix) . '</a>'); ?>
1890
- <?php
1891
- $plugin_dir = ABSPATH . 'wp-content/plugins/image-optimizer-wd/';
1892
- if ( is_dir($plugin_dir) && !is_plugin_active( 'image-optimizer-wd/io-wd.php' ) ) {
1893
- ?>
1894
- <a class="button button-primary io_activaion" id="activate_now" data-install-url="<?php echo $install_url; ?>" data-activate-url="<?php echo $activation_url; ?>"><?php _e("Activate", $prefix); ?></a>
1895
- <a class="button button-primary io_activaion hide" id="optimize_now" href="<?php echo add_query_arg(array( 'page' => 'iowd_settings', 'target' => 'wd_gallery'), admin_url('admin.php'));?>" target="_blank"><?php _e("Optimize now", $prefix); ?></a>
1896
- <span class="error_activate hide"><?php _e("Activation failed, please try again.", $prefix); ?></span>
 
 
 
 
 
 
 
 
 
1897
  <?php
1898
- } else if( ! is_dir($plugin_dir) ) {
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1899
  ?>
1900
- <a class="button button-primary io_activaion" id="install_now" data-install-url="<?php echo $install_url; ?>" data-activate-url="<?php echo $activation_url; ?>"><?php _e("Install", $prefix); ?></a>
1901
- <a class="button button-primary io_activaion hide" id="activate_now" data-install-url="<?php echo $install_url; ?>" data-activate-url="<?php echo $activation_url; ?>"><?php _e("Activation", $prefix); ?></a>
1902
- <a class="button button-primary io_activaion hide" id="optimize_now" href="<?php echo add_query_arg(array( 'page' => 'iowd_settings', 'target' => 'wd_gallery'), admin_url('admin.php'));?>" target="_blank"><?php _e("Optimize now", $prefix); ?></a>
1903
- <span class="error_install hide is_active"><?php _e("Installation failed, please try again.", $prefix); ?></span>
1904
- <?php
1905
- }
1906
- ?>
1907
- <span class="spinner" id="loading"></span>
1908
- </p>
1909
- <button type="button" class="wd_io_notice_dissmiss notice-dismiss" onclick="jQuery('#wd_io_notice_cont').hide(); jQuery.post('<?php echo $dismiss_url; ?>');"><span class="screen-reader-text"></span></button>
1910
  <div id="verifyUrl" data-url="<?php echo $verify_url ?>"></div>
 
1911
  </div>
1912
  <script>
1913
- var url = jQuery(".io_activaion").attr("data-install-url");
1914
- var activate_url = jQuery(".io_activaion").attr("data-activate-url");
1915
 
1916
- function install_io_plugin() {
1917
  jQuery("#loading").addClass('is-active');
1918
  jQuery(this).prop('disable',true);
1919
- var io_plugin_url = '<?php echo plugins_url('image-optimizer-wd/io-wd.php');?>'; // Getting image optimizer plugin url
1920
 
1921
  jQuery.ajax({
1922
  method: "POST",
@@ -1936,7 +1955,7 @@ function wdpg_io_install_notice() {
1936
  if(plStatus.status_install != 1) {
1937
  jQuery('#install_now').addClass('hide');
1938
  jQuery('#activate_now').removeClass('hide');
1939
- activate_io_plugin();
1940
  }
1941
  else {
1942
  jQuery("#loading").removeClass('is-active');
@@ -1945,15 +1964,15 @@ function wdpg_io_install_notice() {
1945
  }
1946
  });
1947
  })
1948
- .fail(function() {
1949
- //window.location = window.location.href;
1950
- jQuery("#loading").removeClass('is-active');
1951
- jQuery(".error_install").removeClass('hide');
1952
- });
1953
 
1954
  }
1955
 
1956
- function activate_io_plugin() {
1957
  jQuery("#loading").addClass('is-active');
1958
  jQuery.ajax({
1959
  method: "POST",
@@ -1974,8 +1993,11 @@ function wdpg_io_install_notice() {
1974
  var plStatus = JSON.parse(response);
1975
  if(plStatus.status_active == 1) {
1976
  jQuery('#install_now').addClass('hide');
1977
- jQuery('#activate_now').addClass('hide');
1978
- jQuery('#optimize_now').removeClass('hide');
 
 
 
1979
  jQuery.post('<?php echo $dismiss_url; ?>');
1980
 
1981
  }
@@ -1987,28 +2009,308 @@ function wdpg_io_install_notice() {
1987
  });
1988
 
1989
  })
1990
- .fail(function() {
1991
- //window.location = window.location.href;
1992
- jQuery("#loading").removeClass('is-active');
1993
- });
1994
  }
1995
 
1996
  jQuery("#install_now").on("click",function(){
1997
- install_io_plugin();
1998
  })
1999
  jQuery("#activate_now").on("click",function(){
2000
- activate_io_plugin()
2001
  })
2002
  </script>
2003
  <style>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2004
  @media only screen and (max-width: 500px) {
2005
  body #wd_backup_logo {
2006
  max-width: 100%;
2007
  }
2008
- body #wd_io_notice_cont p {
2009
- padding-right: 25px !important;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2010
  }
 
2011
  }
 
 
2012
  .hide {
2013
  display: none!important;
2014
  }
@@ -2021,21 +2323,21 @@ function wdpg_io_install_notice() {
2021
  float: none!important;
2022
  margin: 0 !important;
2023
  }
2024
- #wd_io_logo_notice {
2025
  height: 32px;
2026
  float: left;
2027
  margin-right: 10px;
2028
  }
2029
  .error_install, .error_activate {
2030
  color:red;
 
2031
  }
2032
- #wd_io_notice_cont {
2033
- position: relative;
2034
- }
2035
- #wd_io_notice_cont a {
2036
  margin: 0 5px;
2037
  }
2038
- #wd_io_notice_cont .dashicons-dismiss:before {
2039
  content: "\f153";
2040
  background: 0 0;
2041
  color: #72777c;
@@ -2048,7 +2350,7 @@ function wdpg_io_install_notice() {
2048
  -webkit-font-smoothing: antialiased;
2049
  -moz-osx-font-smoothing: grayscale;
2050
  }
2051
- .wd_io_notice_dissmiss {
2052
  margin-top: 5px;
2053
  }
2054
  </style>
@@ -2061,32 +2363,33 @@ if( !function_exists('is_plugin_active') ) {
2061
  include_once( ABSPATH . 'wp-admin/includes/plugin.php' );
2062
  }
2063
 
2064
- if( !is_plugin_active( 'image-optimizer-wd/io-wd.php' ) ) {
2065
- add_action('admin_notices', 'wdpg_io_install_notice');
2066
  }
2067
 
2068
- if ( !function_exists('wd_iops_install_notice_status') ) {
2069
  // Add usermeta to db.
2070
- function wd_iops_install_notice_status() {
2071
- update_option('wds_io_notice_status', '1', 'no');
2072
  }
2073
- add_action('wp_ajax_wd_io_dismiss', 'wd_iops_install_notice_status');
2074
  }
2075
 
2076
- //Check status image optimize install
2077
- function check_io_status(){
 
2078
  $status_install = 0;
2079
  $status_active = 0;
2080
- $plugin_dir = ABSPATH . 'wp-content/plugins/image-optimizer-wd/';
2081
  if ( !is_dir($plugin_dir)){
2082
  $status_install = 1;
2083
- }else if(is_plugin_active( 'image-optimizer-wd/io-wd.php' )) {
2084
  $status_active = 1;
2085
  }
2086
  $jsondata = array('status_install' => $status_install, 'status_active' => $status_active);
2087
  echo json_encode($jsondata); exit;
2088
  }
2089
- add_action('wp_ajax_io_status', 'check_io_status');
2090
 
2091
  /**
2092
  * Get activation or deactivation link of a plugin
3
  * Plugin Name: Photo Gallery
4
  * Plugin URI: https://10web.io/plugins/wordpress-photo-gallery/
5
  * Description: This plugin is a fully responsive gallery plugin with advanced functionality. It allows having different image galleries for your posts and pages. You can create unlimited number of galleries, combine them into albums, and provide descriptions and tags.
6
+ * Version: 1.5.8
7
  * Author: Photo Gallery Team
8
  * Author URI: https://10web.io/pricing/
9
  * License: GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html
81
  $this->plugin_dir = WP_PLUGIN_DIR . "/" . plugin_basename(dirname(__FILE__));
82
  $this->plugin_url = plugins_url(plugin_basename(dirname(__FILE__)));
83
  $this->main_file = plugin_basename(__FILE__);
84
+ $this->plugin_version = '1.5.8';
85
+ $this->db_version = '1.5.8';
86
  $this->prefix = 'bwg';
87
  $this->nicename = __('Photo Gallery', $this->prefix);
88
 
915
  tb_click.call(this);
916
  bwg_create_loading_block();
917
  bwg_set_shortcode_popup_dimensions(); } return false;" href="<?php echo $url; ?>" class="bwg-shortcode-btn button" title="<?php _e('Insert Photo Gallery', $this->prefix); ?>">
918
+ <span class="wp-media-buttons-icon" style="background: url(<?php echo $this->plugin_url; ?>/images/icons/bwg_edit_but.png) no-repeat scroll left top rgba(0, 0, 0, 0);"></span>
919
  <?php _e('Add Photo Gallery', $this->prefix); ?>
920
  </a>
921
  <?php
1573
  "plugin_wd_url" => "https://10web.io/plugins/wordpress-photo-gallery/",
1574
  "plugin_wd_demo_link" => "https://demo.10web.io/photo-gallery/",
1575
  "plugin_wd_addons_link" => "https://10web.io/plugins/wordpress-photo-gallery/",
1576
+ "plugin_wd_docs_link" => "https://help.10web.io/hc/en-us/sections/360002159111-Photo-Gallery/",
1577
  "after_subscribe" => admin_url('admin.php?page=galleries_bwg'), // this can be plagin overview page or set up page
1578
  "plugin_wizard_link" => '',
1579
  "plugin_menu_title" => $this->nicename,
1855
  }
1856
 
1857
  /**
1858
+ * Show notice to install 10web manager plugin
1859
  */
1860
+ function wdpg_tenweb_install_notice() {
1861
  // Show notice only on plugin pages.
1862
  if ( !isset($_GET['page']) || strpos(esc_html($_GET['page']), '_bwg') === FALSE ) {
1863
  return '';
1866
  wp_enqueue_script('bwg_admin', BWG()->plugin_url . '/js/bwg.js', array(), BWG()->plugin_version);
1867
 
1868
  // Remove old notice.
1869
+ if ( get_option('tenweb_notice_status') !== FALSE ) {
1870
+ update_option('tenweb_notice_status', '1', 'no');
1871
  }
1872
 
1873
+ $meta_value = get_option('tenweb_notice_status');
1874
  if ( $meta_value === '' || $meta_value === FALSE ) {
1875
  ob_start();
1876
  $prefix = BWG()->prefix;
1877
  $nicename = BWG()->nicename;
1878
  $url = BWG()->plugin_url;
1879
+ $dismiss_url = add_query_arg(array( 'action' => 'wd_tenweb_dismiss' ), admin_url('admin-ajax.php'));
1880
 
1881
+ $slug = '10web-manager';
1882
  $install_url = esc_url(wp_nonce_url(self_admin_url('update.php?action=install-plugin&plugin=' . $slug), 'install-plugin_' . $slug));
1883
+ $activation_url = na_action_link($slug.'/10web-manager.php', 'activate');
1884
+ $tenweb_url = admin_url( 'admin.php?page=tenweb_menu' );
1885
+ $verify_url = add_query_arg( array ('action' => 'tenweb_status'), admin_url('admin-ajax.php'));
1886
  ?>
1887
+ <div class="notice" id="wd_tenweb_notice_cont">
1888
+ <div class="tenweb_logo notice_col"><img style="display: none"; id="wd_tenweb_logo_notice" src="<?php echo $url . '/images/tenweb/10web-logo.svg'; ?>" /></div>
1889
+ <div class="tenweb_description notice_col">
1890
+ <div>
1891
+ <h1><?php _e("Hey There...", $prefix); ?></h1>
1892
+ <p><?php _e("Connect this website to 10Web dashboard to enable all the services for your magical photo website management experience:", $prefix); ?></p>
1893
+ </div>
1894
+ </div>
1895
+ <div class="tenweb_plugins_icons notice_col">
1896
+ <div id="tenweb_plugins_icons_cont">
1897
+ <span class="tenweb_plugins_icons_item"><img src="<?php echo $url . '/images/tenweb/Group 53914.svg'; ?>" /><span>Image optimizer</span></span>
1898
+ <span class="tenweb_plugins_icons_item"><img src="<?php echo $url . '/images/tenweb/Group 53915.svg'; ?>" /><span>SEO</span></span>
1899
+ <span class="tenweb_plugins_icons_item"><img src="<?php echo $url . '/images/tenweb/Group 53916.svg'; ?>" /><span>Automatic backup</span></span>
1900
+ <span class="tenweb_plugins_icons_item"><img src="<?php echo $url . '/images/tenweb/Group 53917.svg'; ?>" /><span>Performance Check</span></span>
1901
+ <span class="tenweb_plugins_icons_item"><img src="<?php echo $url . '/images/tenweb/Group 58983.svg'; ?>" /><span>Security</span></span>
1902
+ </div>
1903
+ </div>
1904
+ <div class="tenweb_action notice_col">
1905
+ <div>
1906
+ <p><?php _e("Just install this plugin, and signup for free.", $prefix); ?></p>
1907
  <?php
1908
+ $plugin_dir = ABSPATH . 'wp-content/plugins/10web-manager/';
1909
+ if ( is_dir($plugin_dir) && !is_plugin_active( '10web-manager/manager.php' ) ) {
1910
+ ?>
1911
+ <a class="button tenweb_activaion" id="activate_now" data-tenweb-url="<?php echo $tenweb_url; ?>" data-install-url="<?php echo $install_url; ?>" data-activate-url="<?php echo $activation_url; ?>"><?php _e("Activate", $prefix); ?></a>
1912
+ <span class="spinner" id="loading"></span>
1913
+ <span class="error_activate hide"><?php _e("Activation failed, please try again.", $prefix); ?></span>
1914
+ <?php
1915
+ } else if( ! is_dir($plugin_dir) ) {
1916
+ ?>
1917
+ <a class="button tenweb_activaion" id="install_now" data-install-url="<?php echo $install_url; ?>" data-activate-url="<?php echo $activation_url; ?>"><?php _e("Install", $prefix); ?></a>
1918
+ <a class="button tenweb_activaion hide" id="activate_now" data-tenweb-url="<?php echo $tenweb_url; ?>" data-install-url="<?php echo $install_url; ?>" data-activate-url="<?php echo $activation_url; ?>"><?php _e("Activation", $prefix); ?></a>
1919
+ <span class="spinner" id="loading"></span>
1920
+ <span class="error_install hide tenweb_active"><?php _e("Installation failed, please try again.", $prefix); ?></span>
1921
+ <?php
1922
+ }
1923
  ?>
1924
+
1925
+ </div>
1926
+ </div>
1927
+ <button type="button" class="wd_tenweb_notice_dissmiss notice-dismiss" onclick="jQuery('#wd_tenweb_notice_cont').hide(); jQuery.post('<?php echo $dismiss_url; ?>');"><span class="screen-reader-text"></span></button>
 
 
 
 
 
 
1928
  <div id="verifyUrl" data-url="<?php echo $verify_url ?>"></div>
1929
+
1930
  </div>
1931
  <script>
1932
+ var url = jQuery(".tenweb_activaion").attr("data-install-url");
1933
+ var activate_url = jQuery(".tenweb_activaion").attr("data-activate-url");
1934
 
1935
+ function install_tenweb_plugin() {
1936
  jQuery("#loading").addClass('is-active');
1937
  jQuery(this).prop('disable',true);
1938
+ var io_plugin_url = '<?php echo plugins_url('10web-manager/10web-manager.php');?>'; // Getting 10web manager plugin url
1939
 
1940
  jQuery.ajax({
1941
  method: "POST",
1955
  if(plStatus.status_install != 1) {
1956
  jQuery('#install_now').addClass('hide');
1957
  jQuery('#activate_now').removeClass('hide');
1958
+ activate_tenweb_plugin();
1959
  }
1960
  else {
1961
  jQuery("#loading").removeClass('is-active');
1964
  }
1965
  });
1966
  })
1967
+ .fail(function() {
1968
+ //window.location = window.location.href;
1969
+ jQuery("#loading").removeClass('is-active');
1970
+ jQuery(".error_install").removeClass('hide');
1971
+ });
1972
 
1973
  }
1974
 
1975
+ function activate_tenweb_plugin() {
1976
  jQuery("#loading").addClass('is-active');
1977
  jQuery.ajax({
1978
  method: "POST",
1993
  var plStatus = JSON.parse(response);
1994
  if(plStatus.status_active == 1) {
1995
  jQuery('#install_now').addClass('hide');
1996
+
1997
+ var data_tenweb_url = jQuery('#activate_now').attr('data-tenweb-url');
1998
+
1999
+ jQuery('#activate_now').attr('href',data_tenweb_url);
2000
+ jQuery('#activate_now').text("<?php _e('Go to 10WEB Manager', $prefix) ?>");
2001
  jQuery.post('<?php echo $dismiss_url; ?>');
2002
 
2003
  }
2009
  });
2010
 
2011
  })
2012
+ .fail(function() {
2013
+ //window.location = window.location.href;
2014
+ jQuery("#loading").removeClass('is-active');
2015
+ });
2016
  }
2017
 
2018
  jQuery("#install_now").on("click",function(){
2019
+ install_tenweb_plugin();
2020
  })
2021
  jQuery("#activate_now").on("click",function(){
2022
+ activate_tenweb_plugin()
2023
  })
2024
  </script>
2025
  <style>
2026
+ #wd_tenweb_notice_cont {
2027
+ height: 137px;
2028
+ border-radius: 10px;
2029
+ position: relative;
2030
+ background-image: url("<?php echo $url?>/images/tenweb/notice_bg.png");
2031
+ background-position: center center;
2032
+ display: inline-block;
2033
+ }
2034
+
2035
+ #wd_tenweb_notice_cont p {
2036
+ color: #333B46;
2037
+ }
2038
+
2039
+ #wd_tenweb_notice_cont .spinner {
2040
+ background: url("<?php echo $url?>/images/spinner.gif") no-repeat;
2041
+ background-size: 15px 15px;
2042
+ margin: 0px;
2043
+ position:absolute;
2044
+ width: 15px;
2045
+ height: 15px;
2046
+ bottom: 10px;
2047
+ right: 10px;
2048
+ }
2049
+
2050
+ .tenweb_action div {
2051
+ position: relative;
2052
+ }
2053
+
2054
+ .notice_col {
2055
+ display: flex;
2056
+ float: left;
2057
+ height: 140px;
2058
+ flex-direction: column;
2059
+ justify-content: center;
2060
+ align-items: center;
2061
+ }
2062
+
2063
+ #wd_tenweb_notice_cont .notice-dismiss {
2064
+ padding: 0px;
2065
+ margin: 5px;
2066
+ }
2067
+
2068
+ .tenweb_description {
2069
+ position: relative;
2070
+ }
2071
+
2072
+ .tenweb_description div {
2073
+ display: flex;
2074
+ height: 140px;
2075
+ flex-direction: column;
2076
+ justify-content: center;
2077
+ align-items: center;
2078
+ }
2079
+
2080
+ .tenweb_description h1 {
2081
+ font-size: 24px;
2082
+ font-weight: bold;
2083
+ width: 100%;
2084
+ }
2085
+ .tenweb_description p {
2086
+ font-size: 13px;
2087
+ }
2088
+
2089
+
2090
+ .tenweb_plugins_icons{
2091
+ position: relative;
2092
+ }
2093
+
2094
+ .tenweb_plugins_icons #tenweb_plugins_icons_cont {
2095
+ display: flex;
2096
+ height: 110px;
2097
+ justify-content: center;
2098
+ align-items: center;
2099
+ flex-wrap: wrap;
2100
+
2101
+ }
2102
+
2103
+ .tenweb_plugins_icons_item {
2104
+ float: left;
2105
+ line-height: 25px;
2106
+ margin-right: 25px;
2107
+ margin-bottom: 15px;
2108
+ }
2109
+
2110
+ .tenweb_plugins_icons_item:last-child {
2111
+ margin-right: 0;
2112
+ }
2113
+
2114
+ .tenweb_plugins_icons_item img {
2115
+ width: 25px;
2116
+ float: left;
2117
+ margin-right: 5px;
2118
+ }
2119
+
2120
+ .tenweb_plugins_icons_item span {
2121
+ line-height: 25px;
2122
+ font-size: 14px;
2123
+ font-weight: bold;
2124
+ }
2125
+
2126
+ .tenweb_action .tenweb_activaion {
2127
+ background-color: #323A45;
2128
+ width: 100%;
2129
+ text-align: center;
2130
+ color: #fff;
2131
+ border: 1px solid #323A45;
2132
+ border-radius: 15px;
2133
+ height: 30px;
2134
+ line-height: 30px;
2135
+ margin: 0px;
2136
+ font-weight: bold;
2137
+ }
2138
+
2139
+ .tenweb_action .tenweb_activaion:hover {
2140
+ background-color: #323A45;
2141
+ color:#ffffff
2142
+ }
2143
+
2144
+ .tenweb_logo{
2145
+ width: calc(12% - 10px);
2146
+ padding: 0 10px 0 0;
2147
+ display: flex;
2148
+ height: 140px;
2149
+ flex-direction: column;
2150
+ justify-content: center;
2151
+ align-items: center;
2152
+
2153
+
2154
+ }
2155
+ .tenweb_logo img {
2156
+ }
2157
+
2158
+ .tenweb_description {
2159
+ width: calc(30% - 20px);
2160
+ padding: 0 0 0 2%;
2161
+ }
2162
+
2163
+ .tenweb_plugins_icons {
2164
+ width: calc(41% - 20px);
2165
+ padding: 0 10px;
2166
+ }
2167
+
2168
+ .tenweb_action {
2169
+ width: calc(15% - 10px);
2170
+ margin-right: 1%;
2171
+ position: relative;
2172
+ }
2173
+
2174
+ .tenweb_action p {
2175
+ text-align: center;
2176
+ font-size: 14px;
2177
+ padding: 0px;
2178
+ }
2179
+
2180
+ @media only screen and (max-width: 1100px) {
2181
+
2182
+ #wd_tenweb_notice_cont #wd_tenweb_logo_notice {
2183
+ height: 25px;
2184
+ }
2185
+
2186
+ .tenweb_action p {
2187
+ padding: 0px;
2188
+ font-size: 12px;
2189
+ }
2190
+
2191
+ .tenweb_plugins_icons_item span {
2192
+ font-size: 12px;
2193
+ }
2194
+
2195
+ .tenweb_plugins_icons #tenweb_plugins_icons_cont {
2196
+ display: flex;
2197
+ height: 120px;
2198
+ justify-content: center;
2199
+ align-items: center;
2200
+ flex-wrap: wrap;
2201
+ }
2202
+
2203
+ .tenweb_plugins_icons_item {
2204
+ margin-bottom: 0px;
2205
+ }
2206
+ }
2207
+
2208
+ @media only screen and (max-width: 840px) {
2209
+ #wd_tenweb_notice_cont {
2210
+ width: calc(100% - 20px);
2211
+ height: auto;
2212
+ display: inline-block;
2213
+ }
2214
+ .notice_col {
2215
+ width:100%;
2216
+ min-height:50px;
2217
+ height: auto;
2218
+ margin: auto;
2219
+ text-align: center;
2220
+ padding: 0px;
2221
+ }
2222
+
2223
+ .tenweb_plugins_icons_item span {
2224
+ font-size: 13px;
2225
+ }
2226
+
2227
+ .tenweb_logo img {
2228
+ position: relative;
2229
+ float: inherit;
2230
+ text-align: center;
2231
+ }
2232
+
2233
+ #wd_tenweb_notice_cont #wd_tenweb_logo_notice {
2234
+ float: none;
2235
+ }
2236
+
2237
+ .tenweb_action {
2238
+ margin-bottom: 20px;
2239
+ }
2240
+
2241
+ .tenweb_action a.tenweb_activaion {
2242
+ width: 150px;
2243
+ height: 35px;
2244
+ padding: 0;
2245
+
2246
+ }
2247
+
2248
+ .tenweb_description div {
2249
+ height: auto;
2250
+ }
2251
+
2252
+ .tenweb_description h1 {
2253
+ font-size: 18px;
2254
+ font-weight: bold;
2255
+ padding-top: 0;
2256
+ margin-left: 10px;
2257
+ }
2258
+
2259
+ .tenweb_action p {
2260
+ font-size: 13px;
2261
+ }
2262
+
2263
+ .tenweb_description p {
2264
+ font-size: 15px;
2265
+ }
2266
+
2267
+ .tenweb_plugins_icons #tenweb_plugins_icons_cont {
2268
+ display: flex;
2269
+ height: 80px;
2270
+ justify-content: center;
2271
+ align-items: center;
2272
+ flex-wrap: wrap;
2273
+ }
2274
+
2275
+ #wd_tenweb_notice_cont .spinner {
2276
+ right: 80px;
2277
+ }
2278
+
2279
+
2280
+ }
2281
+
2282
+
2283
+
2284
  @media only screen and (max-width: 500px) {
2285
  body #wd_backup_logo {
2286
  max-width: 100%;
2287
  }
2288
+
2289
+ .tenweb_plugins_icons #tenweb_plugins_icons_cont {
2290
+ display: flex;
2291
+ height: 110px;
2292
+ justify-content: center;
2293
+ align-items: center;
2294
+ flex-wrap: wrap;
2295
+ margin: 15px 0;
2296
+ }
2297
+
2298
+ body #wd_tenweb_notice_cont p {
2299
+ padding-right: 0;
2300
+ }
2301
+
2302
+ .tenweb_plugins_icons_item {
2303
+ margin-right: 20px;
2304
+ margin-bottom: 0px;
2305
+ }
2306
+
2307
+ .tenweb_action .tenweb_activaion {
2308
+ width: 100%!important;
2309
  }
2310
+
2311
  }
2312
+
2313
+
2314
  .hide {
2315
  display: none!important;
2316
  }
2323
  float: none!important;
2324
  margin: 0 !important;
2325
  }
2326
+ #wd_tenweb_logo_notice {
2327
  height: 32px;
2328
  float: left;
2329
  margin-right: 10px;
2330
  }
2331
  .error_install, .error_activate {
2332
  color:red;
2333
+ font-size: 10px;
2334
  }
2335
+
2336
+
2337
+ #wd_tenweb_notice_cont a {
 
2338
  margin: 0 5px;
2339
  }
2340
+ #wd_tenweb_notice_cont .dashicons-dismiss:before {
2341
  content: "\f153";
2342
  background: 0 0;
2343
  color: #72777c;
2350
  -webkit-font-smoothing: antialiased;
2351
  -moz-osx-font-smoothing: grayscale;
2352
  }
2353
+ .wd_tenweb_notice_dissmiss {
2354
  margin-top: 5px;
2355
  }
2356
  </style>
2363
  include_once( ABSPATH . 'wp-admin/includes/plugin.php' );
2364
  }
2365
 
2366
+ if( !is_plugin_active( '10web-manager/10web-manager.php' ) ) {
2367
+ add_action('admin_notices', 'wdpg_tenweb_install_notice');
2368
  }
2369
 
2370
+ if ( !function_exists('wd_tenwebps_install_notice_status') ) {
2371
  // Add usermeta to db.
2372
+ function wd_tenwebps_install_notice_status() {
2373
+ update_option('tenweb_notice_status', '1', 'no');
2374
  }
2375
+ add_action('wp_ajax_wd_tenweb_dismiss', 'wd_tenwebps_install_notice_status');
2376
  }
2377
 
2378
+
2379
+ //Check status 10web manager install
2380
+ function check_tenweb_status(){
2381
  $status_install = 0;
2382
  $status_active = 0;
2383
+ $plugin_dir = ABSPATH . 'wp-content/plugins/10web-manager/';
2384
  if ( !is_dir($plugin_dir)){
2385
  $status_install = 1;
2386
+ }else if(is_plugin_active( '10web-manager/10web-manager.php' )) {
2387
  $status_active = 1;
2388
  }
2389
  $jsondata = array('status_install' => $status_install, 'status_active' => $status_active);
2390
  echo json_encode($jsondata); exit;
2391
  }
2392
+ add_action('wp_ajax_tenweb_status', 'check_tenweb_status');
2393
 
2394
  /**
2395
  * Get activation or deactivation link of a plugin
readme.txt CHANGED
@@ -3,7 +3,7 @@ Contributors: webdorado,wdsupport,photogallerysupport,10web
3
  Tags: gallery, photo gallery, image gallery, responsive gallery, wordpress gallery plugin, photo albums, gallery slider, gallery lightbox, wordpress photo gallery plugin, fullscreen gallery, watermarking, video gallery
4
  Requires at least: 3.4
5
  Tested up to: 4.9
6
- Stable tag: 1.5.7
7
  License: GPLv2 or later
8
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
9
 
@@ -17,7 +17,7 @@ https://www.youtube.com/watch?v=VDKtGHAJVpc
17
  [Special Offer for all Premium Plugins](https://10web.io/pricing/)
18
  [WordPress Photo Gallery](https://10web.io/plugins/wordpress-photo-gallery/)
19
  [Demo](https://demo.10web.io/photo-gallery/)
20
- [User Manual](https://docs.10web.io/docs/photo-gallery/introduction.html)
21
  [Support Forum](https://wordpress.org/support/plugin/photo-gallery)
22
 
23
 
@@ -279,6 +279,9 @@ Choose whether to display random or the first/last specific number of images.
279
 
280
  == Changelog ==
281
 
 
 
 
282
  = 1.5.7 =
283
  * Fixed: Link in gallery/gallery group description.
284
  * Fixed: Compatibility with Elementor tabs.
3
  Tags: gallery, photo gallery, image gallery, responsive gallery, wordpress gallery plugin, photo albums, gallery slider, gallery lightbox, wordpress photo gallery plugin, fullscreen gallery, watermarking, video gallery
4
  Requires at least: 3.4
5
  Tested up to: 4.9
6
+ Stable tag: 1.5.8
7
  License: GPLv2 or later
8
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
9
 
17
  [Special Offer for all Premium Plugins](https://10web.io/pricing/)
18
  [WordPress Photo Gallery](https://10web.io/plugins/wordpress-photo-gallery/)
19
  [Demo](https://demo.10web.io/photo-gallery/)
20
+ [User Manual](https://help.10web.io/hc/en-us/sections/360002159111-Photo-Gallery)
21
  [Support Forum](https://wordpress.org/support/plugin/photo-gallery)
22
 
23
 
279
 
280
  == Changelog ==
281
 
282
+ = 1.5.8 =
283
+ * Added: Notification to install 10WEB Manager plugin.
284
+
285
  = 1.5.7 =
286
  * Fixed: Link in gallery/gallery group description.
287
  * Fixed: Compatibility with Elementor tabs.