PluginProbe
Insert Html Snippet / 1.2.3
Insert Html Snippet v1.2.3
1.4.6 trunk 1.0 1.0.1 1.1 1.1.1 1.2 1.2.1 1.2.2 1.2.3 1.2.4 1.2.5 1.3 1.3.1 1.3.2 1.3.3 1.3.4 1.3.5 1.3.6 1.3.7 1.3.8 1.4 1.4.1 1.4.2 1.4.3 All 27 releases
insert-html-snippet / xyz-functions.php

xyz-functions.php in Insert Html Snippet 1.2.3, at xyz-functions.php

53 lines 1.5 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 if ( ! defined( 'ABSPATH' ) )
3 exit;
4
5 if(!function_exists('xyz_ihs_plugin_get_version'))
6 {
7 function xyz_ihs_plugin_get_version()
8 {
9 if ( ! function_exists( 'get_plugins' ) )
10 require_once( ABSPATH . 'wp-admin/includes/plugin.php' );
11 $plugin_folder = get_plugins( '/' . plugin_basename( dirname( XYZ_INSERT_HTML_PLUGIN_FILE ) ) );
12 return $plugin_folder['insert-html-snippet.php']['Version'];
13 }
14 }
15
16 if(!function_exists('xyz_trim_deep'))
17 {
18
19 function xyz_trim_deep($value) {
20 if ( is_array($value) ) {
21 $value = array_map('xyz_trim_deep', $value);
22 } elseif ( is_object($value) ) {
23 $vars = get_object_vars( $value );
24 foreach ($vars as $key=>$data) {
25 $value->{$key} = xyz_trim_deep( $data );
26 }
27 } else {
28 $value = trim($value);
29 }
30
31 return $value;
32 }
33
34 }
35
36
37 if(!function_exists('xyz_ihs_links')){
38 function xyz_ihs_links($links, $file) {
39 $base = plugin_basename(XYZ_INSERT_HTML_PLUGIN_FILE);
40 if ($file == $base) {
41
42 $links[] = '<a href="https://xyzscripts.com/support/" class="xyz_support" title="Support"></a>';
43 $links[] = '<a href="https://twitter.com/xyzscripts" class="xyz_twitt" title="Follow us on Twitter"></a>';
44 $links[] = '<a href="https://www.facebook.com/xyzscripts" class="xyz_fbook" title="Like us on Facebook"></a>';
45 $links[] = '<a href="https://plus.google.com/+Xyzscripts/" class="xyz_gplus" title="+1 us on Google+"></a>';
46 $links[] = '<a href="https://www.linkedin.com/company/xyzscripts" class="xyz_linkedin" title="Follow us on LinkedIn"></a>';
47 }
48 return $links;
49 }
50 }
51 add_filter( 'plugin_row_meta','xyz_ihs_links',10,2);
52
53 ?>