PluginProbe ʕ •ᴥ•ʔ
Advanced Custom Fields: Extended / 0.8.4
Advanced Custom Fields: Extended v0.8.4
0.9.2.6 0.9.2.5 0.8.6 0.8.6.1 0.8.6.3 0.8.6.5 0.8.6.6 0.8.6.7 0.8.6.8 0.8.6.9 0.8.7 0.8.7.1 0.8.7.2 0.8.7.3 0.8.7.4 0.8.7.5 0.8.7.6 0.8.8 0.8.8.1 0.8.8.10 0.8.8.11 0.8.8.2 0.8.8.3 0.8.8.4 0.8.8.5 0.8.8.6 0.8.8.7 0.8.8.8 0.8.8.9 0.8.9 0.8.9.1 0.8.9.2 0.8.9.3 0.8.9.4 0.8.9.5 0.9 0.9.0.1 0.9.0.2 0.9.0.3 0.9.0.4 0.9.0.5 0.9.0.6 0.9.0.7 0.9.0.8 0.9.0.9 0.9.1 0.9.1.1 0.9.2 0.9.2.1 0.9.2.2 0.9.2.3 0.9.2.4 trunk 0.5 0.5.1 0.5.2 0.5.2.1 0.5.2.3 0.5.5 0.5.5.1 0.5.8 0.5.8.1 0.6 0.6.0.1 0.6.0.2 0.6.1 0.6.3 0.6.5 0.6.7 0.6.7.2 0.7 0.7.0.3 0.7.5 0.7.5.5 0.7.8 0.7.9 0.7.9.3 0.7.9.4 0.7.9.9.8 0.7.9.9.9 0.8 0.8.1 0.8.2 0.8.3 0.8.3.1 0.8.4 0.8.4.1 0.8.4.5 0.8.4.6 0.8.5 0.8.5.5
acf-extended / init.php
acf-extended Last commit date
assets 6 years ago includes 6 years ago acf-extended.php 6 years ago init.php 6 years ago readme.txt 6 years ago
init.php
75 lines
1 <?php
2
3 if(!defined('ABSPATH'))
4 exit;
5
6 /**
7 * ACFE: Include
8 */
9 function acfe_include($filename = ''){
10
11 $file_path = ACFE_PATH . ltrim($filename, '/');
12
13 if(file_exists($file_path)){
14
15 include_once($file_path);
16
17 }
18
19 }
20
21 /**
22 * ACFE: Get URL
23 */
24 function acfe_get_url($filename = ''){
25
26 if(!defined('ACFE_URL')){
27
28 define('ACFE_URL', acf_get_setting('acfe/url'));
29
30 }
31
32 return ACFE_URL . ltrim($filename, '/');
33 }
34
35 /**
36 * ACFE: ACF Pro Check
37 */
38 add_action('after_plugin_row_' . ACFE_BASENAME, 'acfe_plugin_row', 5, 3);
39 function acfe_plugin_row($plugin_file, $plugin_data, $status){
40
41 if(acfe()->has_acf())
42 return;
43
44 ?>
45
46 <style>
47 .plugins tr[data-plugin='<?php echo ACFE_BASENAME; ?>'] th,
48 .plugins tr[data-plugin='<?php echo ACFE_BASENAME; ?>'] td{
49 box-shadow:none;
50 }
51
52 <?php if(isset($plugin_data['update']) && !empty($plugin_data['update'])){ ?>
53
54 .plugins tr.acfe-plugin-tr td{
55 box-shadow:none !important;
56 }
57
58 .plugins tr.acfe-plugin-tr .update-message{
59 margin-bottom:0;
60 }
61
62 <?php } ?>
63 </style>
64
65 <tr class="plugin-update-tr active acfe-plugin-tr">
66 <td colspan="3" class="plugin-update colspanchange">
67 <div class="update-message notice inline notice-error notice-alt">
68 <p><?php _e('ACF Extended requires Advanced Custom Fields PRO (minimum: 5.7.10).', 'acfe'); ?></p>
69 </div>
70 </td>
71 </tr>
72
73 <?php
74
75 }