Changeset 3195944
- Timestamp:
- 11/24/2024 04:44:01 PM (16 months ago)
- Location:
- solid-dynamics
- Files:
-
- 8 edited
- 1 copied
-
tags/1.6.2 (copied) (copied from solid-dynamics/trunk)
-
tags/1.6.2/readme.txt (modified) (4 diffs)
-
tags/1.6.2/settings/settings.php (modified) (1 diff)
-
tags/1.6.2/solid-dynamics.php (modified) (2 diffs)
-
tags/1.6.2/widget-usage/admin-page.php (modified) (5 diffs)
-
trunk/readme.txt (modified) (4 diffs)
-
trunk/settings/settings.php (modified) (1 diff)
-
trunk/solid-dynamics.php (modified) (2 diffs)
-
trunk/widget-usage/admin-page.php (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
solid-dynamics/tags/1.6.2/readme.txt
r3195679 r3195944 3 3 Tags: elementor, dynamic tags, jet engine, macros 4 4 Tested up to: 6.7.1 5 Stable tag: 1.6. 15 Stable tag: 1.6.2 6 6 Requires PHP: 7.0 7 7 License: GPLv2 … … 11 11 == Description == 12 12 13 This plugin provides an Admin Page called, "Widget Usage" that shows the individual posts in which a widget is used. 14 Currently, the Elementor Element Manager only shows the total number of usages of a widget. We're always wondering 15 where those widgets are being used, and "Widget Usage" is the answer to that question. 13 This plugin provides an Admin Page called, "Widget Usage" under the "Solid Dynamics" menu that shows the individual posts in which a widget is used. Currently, the Elementor Element Manager only shows the total number of usages of a widget. We're always wondering where those widgets are being used, and "Widget Usage" is the answer to that question. 16 14 17 Solid Dynamics also provides several dynamic tags under the "Solid Dynamics" section :15 Solid Dynamics also provides several dynamic tags under the "Solid Dynamics" section in Elementor: 18 16 19 17 - `Custom Callback`: Call any php function. The current post is passed as the first argument. … … 23 21 - `Post Field`: Retrieves custom post field by name. 24 22 25 This plugin also provides several general use and Elementor specific settings at Settings >Solid Dynamics. All settings have to be opted in to. Activating the plugin does not activate any of the settings. Activating the plugin does automatically make the dynamic tags listed above available.23 This plugin also provides several general use and Elementor specific settings under the menu Solid Dynamics. All settings have to be opted in to. Activating the plugin does not activate any of the settings. Activating the plugin does automatically make the dynamic tags listed above available. 26 24 27 25 General: … … 53 51 54 52 == Changelog == 53 54 = 1.6.2 = 55 2024-11-24 56 - Feature: Moving "Solid Dynamics" to its own menu page 57 - Patch: Ensuring "Widget Usage" menu option is visible 58 59 = 1.6.1 = 60 2024-11-23 61 - Patch: Changelog update 55 62 56 63 = 1.6.0 = -
solid-dynamics/tags/1.6.2/settings/settings.php
r2896069 r3195944 24 24 $this->wpsf->add_settings_page( 25 25 array( 26 'parent_slug' => 'options-general.php', 27 'page_title' => esc_html__( 'Solid Dynamics', 'solid-dynamics' ), 26 'page_title' => esc_html__( 'Settings', 'solid-dynamics' ), 28 27 'menu_title' => esc_html__( 'Solid Dynamics', 'solid-dynamics' ), 29 28 'capability' => 'manage_options', -
solid-dynamics/tags/1.6.2/solid-dynamics.php
r3195679 r3195944 4 4 * Plugin Name: Solid Dynamics 5 5 * Description: Helpful utilities for Elementor, Jet Engine, and beyond. 6 * Version: 1.6. 16 * Version: 1.6.2 7 7 * Author: Solid Digital 8 8 * Author URI: https://www.soliddigital.com … … 30 30 31 31 new Settings(); 32 33 require_once( __DIR__ . "/widget-usage/admin-page.php" ); -
solid-dynamics/tags/1.6.2/widget-usage/admin-page.php
r3195678 r3195944 4 4 // Hook to add the admin menu page 5 5 add_action('admin_menu', function () { 6 add_menu_page( 7 'Elementor Widget Usage', // Page title 8 'Widget Usage', // Menu title 6 add_submenu_page( 7 'solid-dynamics-settings', 8 __('Elementor Widget Usage', 'solid-dynamics'), // Page title 9 __('Widget Usage', 'solid-dynamics'), // Menu title 9 10 'manage_options', // Capability 10 11 'elementor-widget-usage', // Menu slug … … 21 22 <h1>Find Elementor Widget Usage</h1> 22 23 <form method="post" id="widget-usage-form"> 23 <label for="widget_name"> Select Widget:</label>24 <label for="widget_name"><?php echo __('Select Widget', 'solid-dynamics'); ?>:</label> 24 25 <select id="widget_name" name="widget_name" required> 25 <option value="">-- Select a Widget--</option>26 <option value="">-- <?php echo __('Select a Widget', 'solid-dynamics'); ?> --</option> 26 27 <?php foreach ($widgets as $widget) : ?> 27 28 <option value="<?php echo esc_attr($widget); ?>"> … … 30 31 <?php endforeach; ?> 31 32 </select> 32 <?php submit_button( 'Find Usage'); ?>33 <?php submit_button(__('Find Usage', 'solid-dynamics')); ?> 33 34 </form> 34 35 … … 46 47 $total_instances = array_sum(array_column($results, 'widget_count')); 47 48 48 echo '<h2> Results:</h2>';49 echo '<p> Total Instances Across All Posts: ' . $total_instances . '</p>';49 echo '<h2>' . __('Results', 'solid-dynamics') . ':</h2>'; 50 echo '<p>' . __('Total Instances Across All Posts', 'solid-dynamics') . ': ' . $total_instances . '</p>'; 50 51 echo '<table class="widefat fixed" cellspacing="0">'; 51 echo '<thead><tr><th>#</th><th> Title</th><th>Post Type</th><th>Status</th><th>Count</th></tr></thead>';52 echo '<thead><tr><th>#</th><th>' . __('Title', 'solid-dynamics') . '</th><th>' . __('Post Type', 'solid-dynamics') . '</th><th>' . __('Status', 'solid-dynamics') . '</th><th>' . __('Count', 'solid-dynamics') . '</th></tr></thead>'; 52 53 echo '<tbody>'; 53 54 … … 67 68 echo '</tbody></table>'; 68 69 } else { 69 echo '<p> No templates or posts contain this widget.</p>';70 echo '<p>' . __('No templates or posts contain this widget', 'solid-dynamics') . '.</p>'; 70 71 } 71 72 } -
solid-dynamics/trunk/readme.txt
r3195679 r3195944 3 3 Tags: elementor, dynamic tags, jet engine, macros 4 4 Tested up to: 6.7.1 5 Stable tag: 1.6. 15 Stable tag: 1.6.2 6 6 Requires PHP: 7.0 7 7 License: GPLv2 … … 11 11 == Description == 12 12 13 This plugin provides an Admin Page called, "Widget Usage" that shows the individual posts in which a widget is used. 14 Currently, the Elementor Element Manager only shows the total number of usages of a widget. We're always wondering 15 where those widgets are being used, and "Widget Usage" is the answer to that question. 13 This plugin provides an Admin Page called, "Widget Usage" under the "Solid Dynamics" menu that shows the individual posts in which a widget is used. Currently, the Elementor Element Manager only shows the total number of usages of a widget. We're always wondering where those widgets are being used, and "Widget Usage" is the answer to that question. 16 14 17 Solid Dynamics also provides several dynamic tags under the "Solid Dynamics" section :15 Solid Dynamics also provides several dynamic tags under the "Solid Dynamics" section in Elementor: 18 16 19 17 - `Custom Callback`: Call any php function. The current post is passed as the first argument. … … 23 21 - `Post Field`: Retrieves custom post field by name. 24 22 25 This plugin also provides several general use and Elementor specific settings at Settings >Solid Dynamics. All settings have to be opted in to. Activating the plugin does not activate any of the settings. Activating the plugin does automatically make the dynamic tags listed above available.23 This plugin also provides several general use and Elementor specific settings under the menu Solid Dynamics. All settings have to be opted in to. Activating the plugin does not activate any of the settings. Activating the plugin does automatically make the dynamic tags listed above available. 26 24 27 25 General: … … 53 51 54 52 == Changelog == 53 54 = 1.6.2 = 55 2024-11-24 56 - Feature: Moving "Solid Dynamics" to its own menu page 57 - Patch: Ensuring "Widget Usage" menu option is visible 58 59 = 1.6.1 = 60 2024-11-23 61 - Patch: Changelog update 55 62 56 63 = 1.6.0 = -
solid-dynamics/trunk/settings/settings.php
r2896069 r3195944 24 24 $this->wpsf->add_settings_page( 25 25 array( 26 'parent_slug' => 'options-general.php', 27 'page_title' => esc_html__( 'Solid Dynamics', 'solid-dynamics' ), 26 'page_title' => esc_html__( 'Settings', 'solid-dynamics' ), 28 27 'menu_title' => esc_html__( 'Solid Dynamics', 'solid-dynamics' ), 29 28 'capability' => 'manage_options', -
solid-dynamics/trunk/solid-dynamics.php
r3195679 r3195944 4 4 * Plugin Name: Solid Dynamics 5 5 * Description: Helpful utilities for Elementor, Jet Engine, and beyond. 6 * Version: 1.6. 16 * Version: 1.6.2 7 7 * Author: Solid Digital 8 8 * Author URI: https://www.soliddigital.com … … 30 30 31 31 new Settings(); 32 33 require_once( __DIR__ . "/widget-usage/admin-page.php" ); -
solid-dynamics/trunk/widget-usage/admin-page.php
r3195678 r3195944 4 4 // Hook to add the admin menu page 5 5 add_action('admin_menu', function () { 6 add_menu_page( 7 'Elementor Widget Usage', // Page title 8 'Widget Usage', // Menu title 6 add_submenu_page( 7 'solid-dynamics-settings', 8 __('Elementor Widget Usage', 'solid-dynamics'), // Page title 9 __('Widget Usage', 'solid-dynamics'), // Menu title 9 10 'manage_options', // Capability 10 11 'elementor-widget-usage', // Menu slug … … 21 22 <h1>Find Elementor Widget Usage</h1> 22 23 <form method="post" id="widget-usage-form"> 23 <label for="widget_name"> Select Widget:</label>24 <label for="widget_name"><?php echo __('Select Widget', 'solid-dynamics'); ?>:</label> 24 25 <select id="widget_name" name="widget_name" required> 25 <option value="">-- Select a Widget--</option>26 <option value="">-- <?php echo __('Select a Widget', 'solid-dynamics'); ?> --</option> 26 27 <?php foreach ($widgets as $widget) : ?> 27 28 <option value="<?php echo esc_attr($widget); ?>"> … … 30 31 <?php endforeach; ?> 31 32 </select> 32 <?php submit_button( 'Find Usage'); ?>33 <?php submit_button(__('Find Usage', 'solid-dynamics')); ?> 33 34 </form> 34 35 … … 46 47 $total_instances = array_sum(array_column($results, 'widget_count')); 47 48 48 echo '<h2> Results:</h2>';49 echo '<p> Total Instances Across All Posts: ' . $total_instances . '</p>';49 echo '<h2>' . __('Results', 'solid-dynamics') . ':</h2>'; 50 echo '<p>' . __('Total Instances Across All Posts', 'solid-dynamics') . ': ' . $total_instances . '</p>'; 50 51 echo '<table class="widefat fixed" cellspacing="0">'; 51 echo '<thead><tr><th>#</th><th> Title</th><th>Post Type</th><th>Status</th><th>Count</th></tr></thead>';52 echo '<thead><tr><th>#</th><th>' . __('Title', 'solid-dynamics') . '</th><th>' . __('Post Type', 'solid-dynamics') . '</th><th>' . __('Status', 'solid-dynamics') . '</th><th>' . __('Count', 'solid-dynamics') . '</th></tr></thead>'; 52 53 echo '<tbody>'; 53 54 … … 67 68 echo '</tbody></table>'; 68 69 } else { 69 echo '<p> No templates or posts contain this widget.</p>';70 echo '<p>' . __('No templates or posts contain this widget', 'solid-dynamics') . '.</p>'; 70 71 } 71 72 }
Note: See TracChangeset
for help on using the changeset viewer.