PluginProbe
Visualizer – Tables & Charts Manager with Built-in AI Generator / 3.4.9
Visualizer – Tables & Charts Manager with Built-in AI Generator v3.4.9
4.0.8 4.0.7 4.0.6 4.0.5 4.0.4 4.0.3 3.0.5 3.0.6 3.0.7 3.0.8 3.0.9 3.1.0 3.1.1 3.1.2 3.1.3 3.10.0 3.10.1 3.10.10 3.10.11 3.10.12 3.10.13 3.10.14 3.10.15 3.10.2 3.10.3 All 149 releases
← All changes | vendor/codeinwp/themeisle-sdk/src/Modules/Recommendation.php +10 -13 3.10.13.4.9 View file →
@@ -63,9 +63,9 @@
63 63 * @param array $themes_list - list of useful themes (in slug => nicename format).
64 64 * @param array $strings - list of translated strings.
65 65 * @param array $preferences - list of preferences.
66 66 */
67 - public function render_products_box( $plugins_list, $themes_list, $strings, $preferences = array() ) {
67 + function render_products_box( $plugins_list, $themes_list, $strings, $preferences = array() ) {
68 68
69 69 if ( empty( $plugins_list ) && empty( $themes_list ) ) {
70 70 return;
71 71 }
@@ -89,9 +89,9 @@
89 89 echo '<div class="recommend-product">';
90 90
91 91 foreach ( $list as $theme ) {
92 92 echo '<div class="plugin_box">';
93 - echo ' <img class="theme-banner" src="' . esc_url( $theme->screenshot_url ) . '">';
93 + echo ' <img class="theme-banner" src="' . $theme->screenshot_url . '">';
94 94 echo ' <div class="title-action-wrapper">';
95 95 echo ' <span class="plugin-name">' . esc_html( $theme->custom_name ) . '</span>';
96 96 if ( ! isset( $preferences['description'] ) || ( isset( $preferences['description'] ) && $preferences['description'] ) ) {
97 97 echo '<span class="plugin-desc">' . esc_html( substr( $theme->description, 0, strpos( $theme->description, '.' ) ) ) . '.</span>';
@@ -117,9 +117,9 @@
117 117 echo '<div class="recommend-product">';
118 118
119 119 foreach ( $list as $current_plugin ) {
120 120 echo '<div class="plugin_box">';
121 - echo ' <img class="plugin-banner" src="' . esc_url( $current_plugin->custom_image ) . '">';
121 + echo ' <img class="plugin-banner" src="' . $current_plugin->custom_image . '">';
122 122 echo ' <div class="title-action-wrapper">';
123 123 echo ' <span class="plugin-name">' . esc_html( $current_plugin->custom_name ) . '</span>';
124 124 if ( ! isset( $preferences['description'] ) || ( isset( $preferences['description'] ) && $preferences['description'] ) ) {
125 125 echo '<span class="plugin-desc">' . esc_html( substr( $current_plugin->short_description, 0, strpos( $current_plugin->short_description, '.' ) ) ) . '. </span>';
@@ -184,9 +184,9 @@
184 184 if ( false !== $theme ) {
185 185 return $theme;
186 186 }
187 187
188 - $products = $this->safe_get(
188 + $products = wp_remote_get(
189 189 'https://api.wordpress.org/themes/info/1.1/?action=query_themes&request[theme]=' . $slug . '&request[per_page]=1'
190 190 );
191 191 $products = json_decode( wp_remote_retrieve_body( $products ) );
192 192 if ( is_object( $products ) ) {
@@ -245,9 +245,9 @@
245 245 *
246 246 * @return array|mixed|object
247 247 */
248 248 private function call_plugin_api( $slug ) {
249 - include_once ABSPATH . 'wp-admin/includes/plugin-install.php';
249 + include_once( ABSPATH . 'wp-admin/includes/plugin-install.php' );
250 250
251 251 $call_api = get_transient( 'ti_plugin_info_' . $slug );
252 252
253 253 if ( false === $call_api ) {
@@ -302,32 +302,29 @@
302 302 flex-wrap: wrap;
303 303 }
304 304
305 305 .recommend-product .theme-banner {
306 - width: 200px;
306 + width:200px;
307 307 margin: auto;
308 308 }
309 -
310 309 .recommend-product .plugin-banner {
311 310 width: 100px;
312 311 margin: auto;
313 312 }
314 313
315 - .recommend-product .plugin_box .button span {
314 + .recommend-product .plugin_box .button span{
316 315
317 316 margin-top: 2px;
318 317 margin-right: 7px;
319 318 }
320 -
321 - .recommend-product .plugin_box .button {
322 - margin-bottom: 10px;
319 + .recommend-product .plugin_box .button{
320 + margin-bottom:10px;
323 321 }
324 -
325 322 .recommend-product .plugin_box {
326 323 margin-bottom: 20px;
327 324 padding-top: 5px;
328 325 display: flex;
329 - box-shadow: 0px 0px 10px -5px rgba(0, 0, 0, 0.55);
326 + box-shadow: 0px 0px 10px -5px rgba(0,0,0,0.55);
330 327 background: #fff;
331 328 border-radius: 5px;
332 329 flex-direction: column;
333 330 justify-content: flex-start;