Changeset 2951863
- Timestamp:
- 08/10/2023 10:24:26 PM (3 years ago)
- Location:
- acf-admin-flexible-content-collapse
- Files:
-
- 17 added
- 2 edited
-
tags/1.3.0/acf-admin-flexible-content-collapse.php (modified) (3 diffs)
-
tags/1.3.1 (added)
-
tags/1.3.1/acf-admin-flexible-content-collapse.php (added)
-
tags/1.3.1/assets (added)
-
tags/1.3.1/assets/css (added)
-
tags/1.3.1/assets/css/acf-admin-flexible-content-collapse.css (added)
-
tags/1.3.1/assets/font (added)
-
tags/1.3.1/assets/font/acf_flex_fold.eot (added)
-
tags/1.3.1/assets/font/acf_flex_fold.svg (added)
-
tags/1.3.1/assets/font/acf_flex_fold.ttf (added)
-
tags/1.3.1/assets/font/acf_flex_fold.woff (added)
-
tags/1.3.1/assets/js (added)
-
tags/1.3.1/assets/js/acf-admin-flexible-content-collapse.js (added)
-
tags/1.3.1/languages (added)
-
tags/1.3.1/languages/acf-admin-flex-collapse-de_DE.mo (added)
-
tags/1.3.1/languages/acf-admin-flex-collapse-de_DE.po (added)
-
tags/1.3.1/languages/acf-admin-flex-collapse.pot (added)
-
tags/1.3.1/readme.txt (added)
-
trunk/readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
acf-admin-flexible-content-collapse/tags/1.3.0/acf-admin-flexible-content-collapse.php
r2852267 r2951863 36 36 function __construct() { 37 37 38 if ( ! defined( 'DHZ_SHOW_DONATION_LINK' ) )39 define( 'DHZ_SHOW_DONATION_LINK', true );40 41 38 // vars 42 39 $this->settings = array( … … 60 57 // enqueue scripts and styles 61 58 add_action( 'acf/field_group/admin_head', array($this, 'acf_admin_flex_collapse_enqueue'), 11 ); 62 63 if ( DHZ_SHOW_DONATION_LINK == true ) {64 65 // add plugin to $plugins array for the metabox66 add_filter('_dhz_plugins_list', array($this, '_dhz_meta_box_data'));67 68 // metabox callback for plugins list and donation link69 add_action('add_meta_boxes_acf-field-group', array($this, '_dhz_plugins_list_meta_box') );70 71 }72 59 73 60 } … … 168 155 169 156 } 170 171 /*172 * Add plugin to $plugins array for the metabox173 */174 function _dhz_meta_box_data($plugins=array()) {175 if (apply_filters('remove_dhz_nag', false)) {176 return;177 }178 179 $plugins[] = array(180 'title' => $this->settings['plugin'],181 'screens' => array('acf-field-group'),182 'doc' => $this->settings['plugin_path']183 );184 return $plugins;185 186 } // end function meta_box187 188 /*189 * Add metabox for plugins list and donation link190 */191 function _dhz_plugins_list_meta_box() {192 if (apply_filters('remove_dhz_nag', false)) {193 return;194 }195 $plugins = apply_filters('_dhz_plugins_list', array());196 197 $id = 'plugins-by-dreihochzwo';198 $title = '<a style="text-decoration: none; font-size: 1em;" href="https://profiles.wordpress.org/tmconnect/#content-plugins" target="_blank">'.__("Plugins by dreihochzwo", "acf-admin-flex-collapse").'</a>';199 $callback = array($this, 'show_dhz_plugins_list_meta_box');200 $screens = array();201 foreach ($plugins as $plugin) {202 $screens = array_merge($screens, $plugin['screens']);203 }204 $context = 'side';205 $priority = 'default';206 add_meta_box($id, $title, $callback, $screens, $context, $priority);207 208 209 } // end function _dhz_plugins_list_meta_box210 211 /*212 * Metabox callback for plugins list and donation link213 */214 function show_dhz_plugins_list_meta_box() {215 216 $plugins = apply_filters('_dhz_plugins_list', array());217 ?>218 <p style="margin-bottom: 10px; font-weight:500"><?php _e("Thank you for using my plugins!", "acf-admin-flex-collapse") ?></p>219 <ul style="margin-top: 0; margin-left: 5px;">220 <?php221 foreach ($plugins as $plugin) {222 ?>223 <li style="list-style-type: disc; list-style-position:inside; text-indent:-13px; margin-left:13px">224 <?php225 echo $plugin['title']."<br/>";226 if ($plugin['doc']) {227 ?> <a style="font-size:12px" href="<?php echo $plugin['doc']; ?>" target="_blank"><?php _e("Documentation", "acf-admin-flex-collapse") ?></a><?php228 }229 ?>230 </li>231 <?php232 }233 ?>234 </ul>235 <div style="margin-left:-12px; margin-right:-12px; margin-bottom: -12px; background: #2a9bd9; padding:14px 12px">236 <p style="margin:0; text-align:center"><a style="color: #fff;" href="https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=XMLKD8H84HXB4&lc=US&item_name=Donation%20for%20WordPress%20Plugins&no_note=0&cn=Add%20a%20message%3a&no_shipping=1¤cy_code=EUR" target="_blank"><?php _e("Please consider making a small donation!", "acf-admin-flex-collapse") ?></a></p>237 </div>238 <?php239 }240 157 } 241 158 // initialize -
acf-admin-flexible-content-collapse/trunk/readme.txt
r2852263 r2951863 4 4 Tags: acf, acfpro, advanced custom fields, flexible content field, collapse, expand, 5 5 Requires at least: 4.7 6 Tested up to: 5.57 Stable tag: 1.3. 06 Tested up to: 6.3 7 Stable tag: 1.3.1 8 8 License: GPLv2 or later 9 9 License URI: https://www.gnu.org/licenses/gpl-2.0.html … … 44 44 == Changelog == 45 45 46 = v1.3.1 = 47 * PHP 8 Support 48 49 = v1.3.0 = 50 * Disabled ACF Pro V6 support 51 * Fixed bug where the duplicate button doesn't work 52 * Some JS improvements 53 * Some CSS changes 54 46 55 = v1.2.2 = 47 56 * Fixes for WP 5.5
Note: See TracChangeset
for help on using the changeset viewer.