Version Description
Download this release
Release Info
Developer | contact-banker |
Plugin | Contact Bank: WordPress Form Builder for Contact Forms |
Version | 2.1.20 |
Comparing to | |
See all releases |
Code changes from version 2.1.19 to 2.1.20
- contact-bank.php +2 -2
- readme.txt +1 -1
- views/contact_bank_layout_settings.php +2 -2
- views/header.php +7 -7
- views/other-services.php +4 -4
- views/purchase_pro_version.php +2 -2
- views/recommended-plugins.php +24 -24
contact-bank.php
CHANGED
@@ -4,7 +4,7 @@ Plugin Name: Contact Bank Lite Edition
|
|
4 |
Plugin URI: http://tech-banker.com
|
5 |
Description: Build Complex, Powerful Contact Forms in Just Seconds. No Programming Knowledge Required! Yeah, It's Really That Easy.
|
6 |
Author: Tech Banker
|
7 |
-
Version: 2.1.
|
8 |
Author URI: http://tech-banker.com
|
9 |
License: GPLv3 or later
|
10 |
*/
|
@@ -948,7 +948,7 @@ if(!function_exists("add_contact_bank_icon"))
|
|
948 |
));
|
949 |
$wp_admin_bar->add_menu( array(
|
950 |
"parent" => "contact_bank_links",
|
951 |
-
"id" => "
|
952 |
"href" => site_url() ."/wp-admin/admin.php?page=contact_dashboard",
|
953 |
"title" => __( "Dashboard", contact_bank) ) /* set the sub-menu name */
|
954 |
);
|
4 |
Plugin URI: http://tech-banker.com
|
5 |
Description: Build Complex, Powerful Contact Forms in Just Seconds. No Programming Knowledge Required! Yeah, It's Really That Easy.
|
6 |
Author: Tech Banker
|
7 |
+
Version: 2.1.20
|
8 |
Author URI: http://tech-banker.com
|
9 |
License: GPLv3 or later
|
10 |
*/
|
948 |
));
|
949 |
$wp_admin_bar->add_menu( array(
|
950 |
"parent" => "contact_bank_links",
|
951 |
+
"id" => "cb_dashboard_links",
|
952 |
"href" => site_url() ."/wp-admin/admin.php?page=contact_dashboard",
|
953 |
"title" => __( "Dashboard", contact_bank) ) /* set the sub-menu name */
|
954 |
);
|
readme.txt
CHANGED
@@ -3,7 +3,7 @@ Contributors: contact-banker, Gallery-Bank
|
|
3 |
Tags: admin, advanced form, best contact form plugin, contact, contact button, contact form, contact form builder, Contact Form Builder with recaptcha, contact form plugin, contact forms, contact forms plugin, contact manager, contact us, contact us form, contacts form plugin, custom form, feedback, feedback form, feedback forms, form, forms, forms plugin, post feedback, web form, wordpress contact form, web forms
|
4 |
Requires at least: 3.1
|
5 |
Tested up to: 4.5.3
|
6 |
-
Stable tag: 2.1.
|
7 |
License: GPLv3 or later
|
8 |
License URI: http://www.gnu.org/licenses/gpl-3.0.html
|
9 |
|
3 |
Tags: admin, advanced form, best contact form plugin, contact, contact button, contact form, contact form builder, Contact Form Builder with recaptcha, contact form plugin, contact forms, contact forms plugin, contact manager, contact us, contact us form, contacts form plugin, custom form, feedback, feedback form, feedback forms, form, forms, forms plugin, post feedback, web form, wordpress contact form, web forms
|
4 |
Requires at least: 3.1
|
5 |
Tested up to: 4.5.3
|
6 |
+
Stable tag: 2.1.20
|
7 |
License: GPLv3 or later
|
8 |
License URI: http://www.gnu.org/licenses/gpl-3.0.html
|
9 |
|
views/contact_bank_layout_settings.php
CHANGED
@@ -26,7 +26,7 @@ else
|
|
26 |
<div id="advanced" class="meta-box-sortables">
|
27 |
<div id="contact_bank_get_started" class="postbox" >
|
28 |
<div class="handlediv" data-target="#ux_form_email_div" title="Click to toggle" data-toggle="collapse"><br></div>
|
29 |
-
<h3 class="hndle"><span><?php _e( "Global Settings", contact_bank ); ?></span
|
30 |
<div class="inside">
|
31 |
<div id="ux_form_email_div" class="contact_bank_layout">
|
32 |
<a class="btn btn-info" href="admin.php?page=contact_dashboard"><?php _e("Back to Dashboard", contact_bank);?></a>
|
@@ -944,7 +944,7 @@ if (typeof(ux_button_pro_version) != "function")
|
|
944 |
{
|
945 |
function ux_button_pro_version()
|
946 |
{
|
947 |
-
alert("<?php _e( "
|
948 |
}
|
949 |
}
|
950 |
if (typeof(ux_clr_font_color_label_setting) != "function")
|
26 |
<div id="advanced" class="meta-box-sortables">
|
27 |
<div id="contact_bank_get_started" class="postbox" >
|
28 |
<div class="handlediv" data-target="#ux_form_email_div" title="Click to toggle" data-toggle="collapse"><br></div>
|
29 |
+
<h3 class="hndle"><span><?php _e( "Global Settings", contact_bank ); ?></span></h4> </h3>
|
30 |
<div class="inside">
|
31 |
<div id="ux_form_email_div" class="contact_bank_layout">
|
32 |
<a class="btn btn-info" href="admin.php?page=contact_dashboard"><?php _e("Back to Dashboard", contact_bank);?></a>
|
944 |
{
|
945 |
function ux_button_pro_version()
|
946 |
{
|
947 |
+
alert("<?php _e( "These Feature are only available in Premium Edition!", contact_bank ); ?>");
|
948 |
}
|
949 |
}
|
950 |
if (typeof(ux_clr_font_color_label_setting) != "function")
|
views/header.php
CHANGED
@@ -24,7 +24,7 @@ jQuery(document).ready(function()
|
|
24 |
<a class="button button-primary button-hero" target="_blank" href="http://vimeo.com/92488992">
|
25 |
<?php _e("Watch Contact Video!", contact_bank); ?>
|
26 |
</a>
|
27 |
-
<p>or,
|
28 |
<a target="_blank" href="http://tech-banker.com/products/wp-contact-bank/knowledge-base/">
|
29 |
<?php _e("read documentation here", contact_bank); ?>
|
30 |
</a>
|
@@ -45,7 +45,7 @@ jQuery(document).ready(function()
|
|
45 |
</li>
|
46 |
<li>
|
47 |
<a href="http://tech-banker.com/products/wp-contact-bank/pricing/" target="_blank" class="welcome-icon">
|
48 |
-
<?php _e("
|
49 |
</a>
|
50 |
</li>
|
51 |
</ul>
|
@@ -66,8 +66,8 @@ jQuery(document).ready(function()
|
|
66 |
</a>
|
67 |
</li>
|
68 |
<li>
|
69 |
-
<a href="http://tech-banker.com/products/wp-contact-bank/" target="_blank" class="welcome-icon">
|
70 |
-
<?php _e("
|
71 |
</a>
|
72 |
</li>
|
73 |
</ul>
|
@@ -157,7 +157,7 @@ if($_REQUEST["page"] != "contact_feature_request")
|
|
157 |
?>
|
158 |
<div class="custom-message green" style="display: block;margin-top:30px">
|
159 |
<div style="padding: 4px 0;">
|
160 |
-
<p style="font:12px/1.0em Arial !important;font-weight:bold;">If you don't find any features you were looking for in this Plugin,
|
161 |
please write us <a target="_self" href="admin.php?page=contact_feature_request">here</a> and we shall try to implement this for you as soon as possible! We are looking forward for your valuable <a target="_self" href="admin.php?page=contact_feature_request">Feedback</a></p>
|
162 |
</div>
|
163 |
</div>
|
@@ -186,11 +186,11 @@ elseif(!(in_array($cb_language, $cb_lang_translated_languages)) && !(in_array($c
|
|
186 |
</strong>
|
187 |
</span>
|
188 |
</div>
|
189 |
-
<?php
|
190 |
}
|
191 |
?>
|
192 |
<div class="custom-message red" style="display: block;margin-top:10px;">
|
193 |
<span>
|
194 |
<strong>You will be only allowed to add 2 Forms. Kindly purchase Premium Edition for full access.</strong>
|
195 |
</span>
|
196 |
-
</div>
|
24 |
<a class="button button-primary button-hero" target="_blank" href="http://vimeo.com/92488992">
|
25 |
<?php _e("Watch Contact Video!", contact_bank); ?>
|
26 |
</a>
|
27 |
+
<p>or,
|
28 |
<a target="_blank" href="http://tech-banker.com/products/wp-contact-bank/knowledge-base/">
|
29 |
<?php _e("read documentation here", contact_bank); ?>
|
30 |
</a>
|
45 |
</li>
|
46 |
<li>
|
47 |
<a href="http://tech-banker.com/products/wp-contact-bank/pricing/" target="_blank" class="welcome-icon">
|
48 |
+
<?php _e("Pricing Plans", contact_bank); ?>
|
49 |
</a>
|
50 |
</li>
|
51 |
</ul>
|
66 |
</a>
|
67 |
</li>
|
68 |
<li>
|
69 |
+
<a href="http://tech-banker.com/products/renew-premium-support-wp-contact-bank/" target="_blank" class="welcome-icon">
|
70 |
+
<?php _e("Renew Premium Support", contact_bank); ?>
|
71 |
</a>
|
72 |
</li>
|
73 |
</ul>
|
157 |
?>
|
158 |
<div class="custom-message green" style="display: block;margin-top:30px">
|
159 |
<div style="padding: 4px 0;">
|
160 |
+
<p style="font:12px/1.0em Arial !important;font-weight:bold;">If you don't find any features you were looking for in this Plugin,
|
161 |
please write us <a target="_self" href="admin.php?page=contact_feature_request">here</a> and we shall try to implement this for you as soon as possible! We are looking forward for your valuable <a target="_self" href="admin.php?page=contact_feature_request">Feedback</a></p>
|
162 |
</div>
|
163 |
</div>
|
186 |
</strong>
|
187 |
</span>
|
188 |
</div>
|
189 |
+
<?php
|
190 |
}
|
191 |
?>
|
192 |
<div class="custom-message red" style="display: block;margin-top:10px;">
|
193 |
<span>
|
194 |
<strong>You will be only allowed to add 2 Forms. Kindly purchase Premium Edition for full access.</strong>
|
195 |
</span>
|
196 |
+
</div>
|
views/other-services.php
CHANGED
@@ -55,7 +55,7 @@ else
|
|
55 |
<div class="service-div-inner-content">
|
56 |
<div class="name column-name">
|
57 |
<h3>
|
58 |
-
<?php _e("WordPress Theme Installation & Demo Setup (
|
59 |
</h3>
|
60 |
</div>
|
61 |
<div class="desc column-description">
|
@@ -100,7 +100,7 @@ else
|
|
100 |
<li>
|
101 |
<a class="plugin-div-button btn btn-success" href="http://tech-banker.com/contact-us/" target="_blank"><?php _e("Send Enquiry", tech_bank); ?>
|
102 |
</a>
|
103 |
-
<a class="plugin-div-button btn btn-danger" href="http://tech-banker.com/shop/wordpress/wordpress-migration-
|
104 |
</a>
|
105 |
</li>
|
106 |
</ul>
|
@@ -428,7 +428,7 @@ else
|
|
428 |
<ul class="plugin-action-buttons-custom">
|
429 |
<li>
|
430 |
<a class="plugin-div-button btn btn-success" href="http://tech-banker.com/contact-us/" target="_blank"><?php _e("Send Enquiry", tech_bank); ?></a>
|
431 |
-
<a class="plugin-div-button btn btn-danger" href="http://tech-banker.com/shop/design-and-graphics/photo-customization/" target="_blank"><?php _e("
|
432 |
</li>
|
433 |
</ul>
|
434 |
</div>
|
@@ -568,7 +568,7 @@ else
|
|
568 |
<ul class="plugin-action-buttons-custom">
|
569 |
<li>
|
570 |
<a class="plugin-div-button btn btn-success" href="http://tech-banker.com/contact-us/" target="_blank"><?php _e("Send Enquiry", tech_bank); ?></a>
|
571 |
-
<a class="plugin-div-button btn btn-danger" href="http://tech-banker.com/shop/design-and-graphics/banner-design-customization/" target="_blank"><?php _e("
|
572 |
</li>
|
573 |
</ul>
|
574 |
</div>
|
55 |
<div class="service-div-inner-content">
|
56 |
<div class="name column-name">
|
57 |
<h3>
|
58 |
+
<?php _e("WordPress Theme Installation & Demo Setup (Logo + Plugins + Optimization + Security)", tech_bank); ?>
|
59 |
</h3>
|
60 |
</div>
|
61 |
<div class="desc column-description">
|
100 |
<li>
|
101 |
<a class="plugin-div-button btn btn-success" href="http://tech-banker.com/contact-us/" target="_blank"><?php _e("Send Enquiry", tech_bank); ?>
|
102 |
</a>
|
103 |
+
<a class="plugin-div-button btn btn-danger" href="http://tech-banker.com/shop/wordpress/wordpress-website-migration-backup-and-restore/" target="_blank"><?php _e("Read More", tech_bank); ?>
|
104 |
</a>
|
105 |
</li>
|
106 |
</ul>
|
428 |
<ul class="plugin-action-buttons-custom">
|
429 |
<li>
|
430 |
<a class="plugin-div-button btn btn-success" href="http://tech-banker.com/contact-us/" target="_blank"><?php _e("Send Enquiry", tech_bank); ?></a>
|
431 |
+
<a class="plugin-div-button btn btn-danger" href="http://tech-banker.com/shop/design-and-graphics/photo-customization/" target="_blank"><?php _e("Read More", tech_bank); ?></a>
|
432 |
</li>
|
433 |
</ul>
|
434 |
</div>
|
568 |
<ul class="plugin-action-buttons-custom">
|
569 |
<li>
|
570 |
<a class="plugin-div-button btn btn-success" href="http://tech-banker.com/contact-us/" target="_blank"><?php _e("Send Enquiry", tech_bank); ?></a>
|
571 |
+
<a class="plugin-div-button btn btn-danger" href="http://tech-banker.com/shop/design-and-graphics/banner-design-customization/" target="_blank"><?php _e("Read More", tech_bank); ?></a>
|
572 |
</li>
|
573 |
</ul>
|
574 |
</div>
|
views/purchase_pro_version.php
CHANGED
@@ -41,7 +41,7 @@ else
|
|
41 |
<?php _e("WP Contact Bank is an one time Investment. Its Worth it!", contact_bank); ?>
|
42 |
</h1>
|
43 |
<div id="contact_bank_pricing"
|
44 |
-
class="p_table_responsive p_table_hide_caption_column p_table_1 p_table_1_1 css3_grid_clearfix">
|
45 |
<div class="caption_column column_0_responsive"
|
46 |
style="width: 20%;">
|
47 |
<ul>
|
@@ -658,7 +658,7 @@ else
|
|
658 |
class="sign_up sign_up_orange radius3">Order Now!</a></span></span></li>
|
659 |
</ul>
|
660 |
</div>
|
661 |
-
<div class="column_3
|
662 |
style="width: 16%;">
|
663 |
<div class="column_ribbon ribbon_style2_best"></div>
|
664 |
<ul>
|
41 |
<?php _e("WP Contact Bank is an one time Investment. Its Worth it!", contact_bank); ?>
|
42 |
</h1>
|
43 |
<div id="contact_bank_pricing"
|
44 |
+
class="p_table_responsive p_table_hide_caption_column p_table_1 p_table_1_1 css3_grid_clearfix p_table_hover_disabled">
|
45 |
<div class="caption_column column_0_responsive"
|
46 |
style="width: 20%;">
|
47 |
<ul>
|
658 |
class="sign_up sign_up_orange radius3">Order Now!</a></span></span></li>
|
659 |
</ul>
|
660 |
</div>
|
661 |
+
<div class="column_3 column_3_responsive"
|
662 |
style="width: 16%;">
|
663 |
<div class="column_ribbon ribbon_style2_best"></div>
|
664 |
<ul>
|
views/recommended-plugins.php
CHANGED
@@ -1,4 +1,4 @@
|
|
1 |
-
<?php
|
2 |
switch($cb_role)
|
3 |
{
|
4 |
case "administrator":
|
@@ -14,7 +14,7 @@ switch($cb_role)
|
|
14 |
if (!current_user_can($user_role_permission))
|
15 |
{
|
16 |
return;
|
17 |
-
}
|
18 |
else
|
19 |
{
|
20 |
include( ABSPATH . "wp-admin/includes/plugin-install.php" );
|
@@ -43,20 +43,20 @@ else
|
|
43 |
'number' => 0,
|
44 |
);
|
45 |
$r = wp_parse_args( $args, $defaults );
|
46 |
-
|
47 |
// Non-english decimal places when the $rating is coming from a string
|
48 |
$rating = str_replace( ',', '.', $r['rating'] );
|
49 |
-
|
50 |
// Convert Percentage to star rating, 0..5 in .5 increments
|
51 |
if ( 'percent' == $r['type'] ) {
|
52 |
$rating = round( $rating / 10, 0 ) / 2;
|
53 |
}
|
54 |
-
|
55 |
// Calculate the number of each type of star needed
|
56 |
$full_stars = floor( $rating );
|
57 |
$half_stars = ceil( $rating - $full_stars );
|
58 |
$empty_stars = 5 - $full_stars - $half_stars;
|
59 |
-
|
60 |
if ( $r['number'] ) {
|
61 |
/* translators: 1: The rating, 2: The number of ratings */
|
62 |
$format = _n( '%1$s rating based on %2$s rating', '%1$s rating based on %2$s ratings', $r['number'] );
|
@@ -65,7 +65,7 @@ else
|
|
65 |
/* translators: 1: The rating */
|
66 |
$title = sprintf( __( '%s rating' ), number_format_i18n( $rating, 1 ) );
|
67 |
}
|
68 |
-
|
69 |
echo '<div class="star-rating" title="' . esc_attr( $title ) . '">';
|
70 |
echo '<span class="screen-reader-text">' . $title . '</span>';
|
71 |
echo str_repeat( '<div class="star star-full"></div>', $full_stars );
|
@@ -91,8 +91,8 @@ else
|
|
91 |
<div class="layout-span12">
|
92 |
<div class="wp-list-table plugin-install">
|
93 |
<div id="the-list">
|
94 |
-
<?php
|
95 |
-
foreach ((array) $item as $plugin)
|
96 |
{
|
97 |
if (is_object( $plugin))
|
98 |
{
|
@@ -101,16 +101,16 @@ else
|
|
101 |
if (!empty($plugin["icons"]["svg"]))
|
102 |
{
|
103 |
$plugin_icon_url = $plugin["icons"]["svg"];
|
104 |
-
}
|
105 |
-
elseif (!empty( $plugin["icons"]["2x"]))
|
106 |
{
|
107 |
$plugin_icon_url = $plugin["icons"]["2x"];
|
108 |
-
}
|
109 |
elseif (!empty( $plugin["icons"]["1x"]))
|
110 |
{
|
111 |
$plugin_icon_url = $plugin["icons"]["1x"];
|
112 |
-
}
|
113 |
-
else
|
114 |
{
|
115 |
$plugin_icon_url = $plugin["icons"]["default"];
|
116 |
}
|
@@ -128,7 +128,7 @@ else
|
|
128 |
$name = strip_tags( $title . " " . $version );
|
129 |
$details_link = self_admin_url( "plugin-install.php?tab=plugin-information&plugin=" . $plugin["slug"] .
|
130 |
"&TB_iframe=true&width=600&height=550" );
|
131 |
-
|
132 |
/* translators: 1: Plugin name and version. */
|
133 |
$action_links[] = '<a href="' . esc_url( $details_link ) . '" class="thickbox" aria-label="' . esc_attr( sprintf("More information about %s", $name ) ) . '" data-title="' . esc_attr( $name ) . '">' . __( 'More Details' ) . '</a>';
|
134 |
$action_links = array();
|
@@ -188,7 +188,7 @@ else
|
|
188 |
{
|
189 |
echo implode("</li><li>", $action_links);
|
190 |
}
|
191 |
-
|
192 |
switch($plugin["slug"])
|
193 |
{
|
194 |
case "gallery-bank" :
|
@@ -219,7 +219,7 @@ else
|
|
219 |
<a class="plugin-div-button install-now button" href="http://tech-banker.com/products/wp-captcha-bank/" target="_blank" >
|
220 |
<?php _e("Visit Website", tech_bank); ?>
|
221 |
</a>
|
222 |
-
<?php
|
223 |
break;
|
224 |
case "wp-clean-up-optimizer" :
|
225 |
?>
|
@@ -229,7 +229,7 @@ else
|
|
229 |
<a class="plugin-div-button install-now button" href="http://tech-banker.com/products/wp-clean-up-optimizer/" target="_blank" >
|
230 |
<?php _e("Visit Website", tech_bank); ?>
|
231 |
</a>
|
232 |
-
<?php
|
233 |
break;
|
234 |
case "google-maps-bank" :
|
235 |
?>
|
@@ -239,7 +239,7 @@ else
|
|
239 |
<a class="plugin-div-button install-now button" href="http://tech-banker.com/products/wp-google-maps-bank/" target="_blank" >
|
240 |
<?php _e("Visit Website", tech_bank); ?>
|
241 |
</a>
|
242 |
-
<?php
|
243 |
break;
|
244 |
case "wp-backup-bank":
|
245 |
?>
|
@@ -277,11 +277,11 @@ else
|
|
277 |
if ( !empty($plugin["tested"]) && version_compare(substr($GLOBALS["wp_version"], 0, strlen($plugin["tested"])), $plugin["tested"], ">"))
|
278 |
{
|
279 |
echo '<span class="compatibility-untested">' . __( "<strong>Untested</strong> with your version of WordPress" ) . '</span>';
|
280 |
-
}
|
281 |
-
elseif (!empty($plugin["requires"]) && version_compare(substr($GLOBALS["wp_version"], 0, strlen($plugin["requires"])), $plugin["requires"], "<"))
|
282 |
{
|
283 |
echo '<span class="compatibility-incompatible">' . __("Incompatible with your version of WordPress") . '</span>';
|
284 |
-
}
|
285 |
else
|
286 |
{
|
287 |
echo '<span class="compatibility-compatible">' . __("Compatible with your version of WordPress") . '</span>';
|
@@ -305,6 +305,6 @@ else
|
|
305 |
</div>
|
306 |
</div>
|
307 |
</form>
|
308 |
-
<?php
|
309 |
}
|
310 |
-
?>
|
1 |
+
<?php
|
2 |
switch($cb_role)
|
3 |
{
|
4 |
case "administrator":
|
14 |
if (!current_user_can($user_role_permission))
|
15 |
{
|
16 |
return;
|
17 |
+
}
|
18 |
else
|
19 |
{
|
20 |
include( ABSPATH . "wp-admin/includes/plugin-install.php" );
|
43 |
'number' => 0,
|
44 |
);
|
45 |
$r = wp_parse_args( $args, $defaults );
|
46 |
+
|
47 |
// Non-english decimal places when the $rating is coming from a string
|
48 |
$rating = str_replace( ',', '.', $r['rating'] );
|
49 |
+
|
50 |
// Convert Percentage to star rating, 0..5 in .5 increments
|
51 |
if ( 'percent' == $r['type'] ) {
|
52 |
$rating = round( $rating / 10, 0 ) / 2;
|
53 |
}
|
54 |
+
|
55 |
// Calculate the number of each type of star needed
|
56 |
$full_stars = floor( $rating );
|
57 |
$half_stars = ceil( $rating - $full_stars );
|
58 |
$empty_stars = 5 - $full_stars - $half_stars;
|
59 |
+
|
60 |
if ( $r['number'] ) {
|
61 |
/* translators: 1: The rating, 2: The number of ratings */
|
62 |
$format = _n( '%1$s rating based on %2$s rating', '%1$s rating based on %2$s ratings', $r['number'] );
|
65 |
/* translators: 1: The rating */
|
66 |
$title = sprintf( __( '%s rating' ), number_format_i18n( $rating, 1 ) );
|
67 |
}
|
68 |
+
|
69 |
echo '<div class="star-rating" title="' . esc_attr( $title ) . '">';
|
70 |
echo '<span class="screen-reader-text">' . $title . '</span>';
|
71 |
echo str_repeat( '<div class="star star-full"></div>', $full_stars );
|
91 |
<div class="layout-span12">
|
92 |
<div class="wp-list-table plugin-install">
|
93 |
<div id="the-list">
|
94 |
+
<?php
|
95 |
+
foreach ((array) $item as $plugin)
|
96 |
{
|
97 |
if (is_object( $plugin))
|
98 |
{
|
101 |
if (!empty($plugin["icons"]["svg"]))
|
102 |
{
|
103 |
$plugin_icon_url = $plugin["icons"]["svg"];
|
104 |
+
}
|
105 |
+
elseif (!empty( $plugin["icons"]["2x"]))
|
106 |
{
|
107 |
$plugin_icon_url = $plugin["icons"]["2x"];
|
108 |
+
}
|
109 |
elseif (!empty( $plugin["icons"]["1x"]))
|
110 |
{
|
111 |
$plugin_icon_url = $plugin["icons"]["1x"];
|
112 |
+
}
|
113 |
+
else
|
114 |
{
|
115 |
$plugin_icon_url = $plugin["icons"]["default"];
|
116 |
}
|
128 |
$name = strip_tags( $title . " " . $version );
|
129 |
$details_link = self_admin_url( "plugin-install.php?tab=plugin-information&plugin=" . $plugin["slug"] .
|
130 |
"&TB_iframe=true&width=600&height=550" );
|
131 |
+
|
132 |
/* translators: 1: Plugin name and version. */
|
133 |
$action_links[] = '<a href="' . esc_url( $details_link ) . '" class="thickbox" aria-label="' . esc_attr( sprintf("More information about %s", $name ) ) . '" data-title="' . esc_attr( $name ) . '">' . __( 'More Details' ) . '</a>';
|
134 |
$action_links = array();
|
188 |
{
|
189 |
echo implode("</li><li>", $action_links);
|
190 |
}
|
191 |
+
|
192 |
switch($plugin["slug"])
|
193 |
{
|
194 |
case "gallery-bank" :
|
219 |
<a class="plugin-div-button install-now button" href="http://tech-banker.com/products/wp-captcha-bank/" target="_blank" >
|
220 |
<?php _e("Visit Website", tech_bank); ?>
|
221 |
</a>
|
222 |
+
<?php
|
223 |
break;
|
224 |
case "wp-clean-up-optimizer" :
|
225 |
?>
|
229 |
<a class="plugin-div-button install-now button" href="http://tech-banker.com/products/wp-clean-up-optimizer/" target="_blank" >
|
230 |
<?php _e("Visit Website", tech_bank); ?>
|
231 |
</a>
|
232 |
+
<?php
|
233 |
break;
|
234 |
case "google-maps-bank" :
|
235 |
?>
|
239 |
<a class="plugin-div-button install-now button" href="http://tech-banker.com/products/wp-google-maps-bank/" target="_blank" >
|
240 |
<?php _e("Visit Website", tech_bank); ?>
|
241 |
</a>
|
242 |
+
<?php
|
243 |
break;
|
244 |
case "wp-backup-bank":
|
245 |
?>
|
277 |
if ( !empty($plugin["tested"]) && version_compare(substr($GLOBALS["wp_version"], 0, strlen($plugin["tested"])), $plugin["tested"], ">"))
|
278 |
{
|
279 |
echo '<span class="compatibility-untested">' . __( "<strong>Untested</strong> with your version of WordPress" ) . '</span>';
|
280 |
+
}
|
281 |
+
elseif (!empty($plugin["requires"]) && version_compare(substr($GLOBALS["wp_version"], 0, strlen($plugin["requires"])), $plugin["requires"], "<"))
|
282 |
{
|
283 |
echo '<span class="compatibility-incompatible">' . __("Incompatible with your version of WordPress") . '</span>';
|
284 |
+
}
|
285 |
else
|
286 |
{
|
287 |
echo '<span class="compatibility-compatible">' . __("Compatible with your version of WordPress") . '</span>';
|
305 |
</div>
|
306 |
</div>
|
307 |
</form>
|
308 |
+
<?php
|
309 |
}
|
310 |
+
?>
|