Changeset 3298309
- Timestamp:
- 05/21/2025 08:29:19 PM (9 months ago)
- Location:
- docid
- Files:
-
- 11 edited
-
. (modified) (1 prop)
-
tags/1.0.0/README.txt (modified) (1 diff)
-
tags/1.0.0/docid.php (modified) (1 diff)
-
tags/1.0.0/languages/docid-de.po (modified) (1 diff)
-
tags/1.0.0/languages/docid.pot (modified) (1 diff)
-
trunk/README.txt (modified) (3 diffs)
-
trunk/admin/class-docid-admin.php (modified) (1 diff)
-
trunk/docid.php (modified) (1 diff)
-
trunk/includes/class-docid.php (modified) (1 diff)
-
trunk/languages/docid-de.po (modified) (1 diff)
-
trunk/languages/docid.pot (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
docid
-
Property
svn:ignore
set to
.DS_Store
.idea
*.swp
*.swo
*.bak
Thumbs.db
-
Property
svn:ignore
set to
-
docid/tags/1.0.0/README.txt
r3298301 r3298309 5 5 Requires PHP: 7.4 6 6 Tested up to: 6.8 7 Stable tag: 1.0. 07 Stable tag: 1.0.1 8 8 License: GPLv3 or later 9 9 License URI: https://www.gnu.org/licenses/gpl-3.0.html -
docid/tags/1.0.0/docid.php
r3298301 r3298309 14 14 * Plugin Name: DocID 15 15 * Description: The DocID plugin provides all the functionalities required for a secure and legally compliant authentication of healthcare professionals on your website. 16 * Version: 1.0. 016 * Version: 1.0.1 17 17 * Author: 8awake GmbH <[email protected]> 18 18 * Author URI: https://docid.de -
docid/tags/1.0.0/languages/docid-de.po
r3298300 r3298309 3 3 msgid "" 4 4 msgstr "" 5 "Project-Id-Version: DocID 1.0. 0\n"5 "Project-Id-Version: DocID 1.0.1\n" 6 6 "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/docid\n" 7 7 "POT-Creation-Date: 2025-05-20T20:09:15+00:00\n" -
docid/tags/1.0.0/languages/docid.pot
r3298300 r3298309 3 3 msgid "" 4 4 msgstr "" 5 "Project-Id-Version: DocID 1.0. 0\n"5 "Project-Id-Version: DocID 1.0.1\n" 6 6 "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/docid\n" 7 7 "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" -
docid/trunk/README.txt
r3298300 r3298309 5 5 Requires PHP: 7.4 6 6 Tested up to: 6.8 7 Stable tag: 1.0. 07 Stable tag: 1.0.1 8 8 License: GPLv3 or later 9 9 License URI: https://www.gnu.org/licenses/gpl-3.0.html … … 56 56 == Changelog == 57 57 58 = 1.0.1 = 59 * Settings page improvements 60 58 61 = 1.0.0 = 59 62 * Authentication of healthcare professionals … … 63 66 64 67 = 1.0.0 = 65 First stable release of the plugin. Includes all core functionalities for secure HCP authentication.68 Initial stable release of the DocID plugin. Includes all core functionalities for secure HCP authentication on your website. 66 69 67 70 == Additional Resources == -
docid/trunk/admin/class-docid-admin.php
r3298300 r3298309 13 13 class DOCID_Admin extends DOCID_Base { 14 14 15 /**16 * The ID of this plugin.17 *18 * @since 1.0.019 * @access private20 * @var string $plugin_name The ID of this plugin.21 */22 protected $plugin_name;15 /** 16 * The ID of this plugin. 17 * 18 * @since 1.0.0 19 * @access private 20 * @var string $plugin_name The ID of this plugin. 21 */ 22 protected $plugin_name; 23 23 24 /**25 * The version of this plugin.26 *27 * @since 1.0.028 * @access private29 * @var string $version The current version of this plugin.30 */31 protected $version;24 /** 25 * The version of this plugin. 26 * 27 * @since 1.0.0 28 * @access private 29 * @var string $version The current version of this plugin. 30 */ 31 protected $version; 32 32 33 /**34 * Initialize the class and set its properties.35 *36 * @param string $plugin_name The name of this plugin.37 * @param string $version The version of this plugin.38 *39 * @since 1.0.040 * @access public41 */42 public function __construct($plugin_name, $version) {43 parent::__construct();33 /** 34 * Initialize the class and set its properties. 35 * 36 * @param string $plugin_name The name of this plugin. 37 * @param string $version The version of this plugin. 38 * 39 * @since 1.0.0 40 * @access public 41 */ 42 public function __construct($plugin_name, $version) { 43 parent::__construct(); 44 44 45 $this->plugin_name = $plugin_name;46 $this->version = $version;47 }45 $this->plugin_name = $plugin_name; 46 $this->version = $version; 47 } 48 48 49 /**50 * Add action links for plugin overview.51 *52 * @param $links53 *54 * @return array55 * @since 1.0.056 * @access private57 */58 function docid_add_action_links($links) {59 $docid_links = [60 '<a href="' . admin_url( 'options-general.php?page=docid' ) . '">' . esc_html__('Settings', 'docid') . '</a>',61 ];49 /** 50 * Add action links for plugin overview. 51 * 52 * @param $links 53 * 54 * @return array 55 * @since 1.0.0 56 * @access private 57 */ 58 function docid_add_action_links($links) { 59 $docid_links = [ 60 '<a href="' . admin_url( 'options-general.php?page=docid' ) . '">' . esc_html__('Settings', 'docid') . '</a>', 61 ]; 62 62 63 return array_merge($docid_links, $links);64 }63 return array_merge($docid_links, $links); 64 } 65 65 } -
docid/trunk/docid.php
r3298300 r3298309 14 14 * Plugin Name: DocID 15 15 * Description: The DocID plugin provides all the functionalities required for a secure and legally compliant authentication of healthcare professionals on your website. 16 * Version: 1.0. 016 * Version: 1.0.1 17 17 * Author: 8awake GmbH <[email protected]> 18 18 * Author URI: https://docid.de -
docid/trunk/includes/class-docid.php
r3298300 r3298309 18 18 class DOCID { 19 19 20 /**21 * The loader that's responsible for maintaining and registering all hooks that power22 * the plugin.23 *24 * @since 1.0.025 * @access protected26 * @var DOCID_Loader $loader Maintains and registers all hooks for the plugin.27 */28 protected $loader;20 /** 21 * The loader that's responsible for maintaining and registering all hooks that power 22 * the plugin. 23 * 24 * @since 1.0.0 25 * @access protected 26 * @var DOCID_Loader $loader Maintains and registers all hooks for the plugin. 27 */ 28 protected $loader; 29 29 30 /**31 * The unique identifier of this plugin.32 *33 * @since 1.0.034 * @access protected35 * @var string $plugin_name The string used to uniquely identify this plugin.36 */37 protected $plugin_name;30 /** 31 * The unique identifier of this plugin. 32 * 33 * @since 1.0.0 34 * @access protected 35 * @var string $plugin_name The string used to uniquely identify this plugin. 36 */ 37 protected $plugin_name; 38 38 39 /**40 * The current version of the plugin.41 *42 * @since 1.0.043 * @access protected44 * @var string $version The current version of the plugin.45 */46 protected $version;39 /** 40 * The current version of the plugin. 41 * 42 * @since 1.0.0 43 * @access protected 44 * @var string $version The current version of the plugin. 45 */ 46 protected $version; 47 47 48 /**49 * Define the core functionality of the plugin.50 *51 * Set the plugin name and the plugin version that can be used throughout the plugin.52 * Load the dependencies, define the locale, and set the hooks for the admin area and53 * the public-facing side of the site.54 *55 * @since 1.0.056 * @access public57 */58 public function __construct() {48 /** 49 * Define the core functionality of the plugin. 50 * 51 * Set the plugin name and the plugin version that can be used throughout the plugin. 52 * Load the dependencies, define the locale, and set the hooks for the admin area and 53 * the public-facing side of the site. 54 * 55 * @since 1.0.0 56 * @access public 57 */ 58 public function __construct() { 59 59 60 $this->plugin_name = 'docid';61 $this->version = '1.0.0';60 $this->plugin_name = 'docid'; 61 $this->version = '1.0.1'; 62 62 63 $this->set_loader();63 $this->set_loader(); 64 64 65 $this->define_admin_hooks();66 $this->define_public_hooks();65 $this->define_admin_hooks(); 66 $this->define_public_hooks(); 67 67 68 }68 } 69 69 70 /**71 * Setting up the loader.72 *73 * @since 1.0.074 * @access private75 */76 private function set_loader() {70 /** 71 * Setting up the loader. 72 * 73 * @since 1.0.0 74 * @access private 75 */ 76 private function set_loader() { 77 77 78 $this->loader = new DOCID_Loader();78 $this->loader = new DOCID_Loader(); 79 79 80 }80 } 81 81 82 /**83 * Register all of the hooks related to the admin area84 * functionality of the plugin.85 *86 * @since 1.0.087 * @access private88 */89 private function define_admin_hooks() {82 /** 83 * Register all of the hooks related to the admin area 84 * functionality of the plugin. 85 * 86 * @since 1.0.0 87 * @access private 88 */ 89 private function define_admin_hooks() { 90 90 91 $plugin_admin_settings = new DOCID_Settings(92 $this->get_plugin_name(),93 $this->get_version()94 );91 $plugin_admin_settings = new DOCID_Settings( 92 $this->get_plugin_name(), 93 $this->get_version() 94 ); 95 95 96 $this->loader->add_action('admin_init', $plugin_admin_settings, 'docid_register_settings'); 97 $this->loader->add_action('admin_menu', $plugin_admin_settings, 'docid_register_settings_page'); 96 $this->loader->add_action('admin_init', $plugin_admin_settings, 'docid_register_settings'); 97 $this->loader->add_action('admin_menu', $plugin_admin_settings, 'docid_register_settings_page'); 98 $this->loader->add_filter( "plugin_action_links_{$this->plugin_name}/{$this->plugin_name}.php", $plugin_admin_settings, 'docid_add_action_links' ); 98 99 99 $plugin_admin_meta_boxes = new DOCID_Metaboxes(100 $this->get_plugin_name(),101 $this->get_version()102 );100 $plugin_admin_meta_boxes = new DOCID_Metaboxes( 101 $this->get_plugin_name(), 102 $this->get_version() 103 ); 103 104 104 $this->loader->add_action('add_meta_boxes', $plugin_admin_meta_boxes, 'docid_register_meta_boxes');105 $this->loader->add_action('add_meta_boxes', $plugin_admin_meta_boxes, 'docid_register_meta_boxes'); 105 106 $this->loader->add_action('add_meta_boxes', $plugin_admin_meta_boxes, 'docid_register_meta_boxes_custom_post_type'); 106 $this->loader->add_action('save_post', $plugin_admin_meta_boxes, 'docid_save_meta_boxes');107 $this->loader->add_action('admin_enqueue_scripts', $plugin_admin_meta_boxes, 'enqueue_styles');108 $this->loader->add_action('admin_enqueue_scripts', $plugin_admin_meta_boxes, 'enqueue_scripts');107 $this->loader->add_action('save_post', $plugin_admin_meta_boxes, 'docid_save_meta_boxes'); 108 $this->loader->add_action('admin_enqueue_scripts', $plugin_admin_meta_boxes, 'enqueue_styles'); 109 $this->loader->add_action('admin_enqueue_scripts', $plugin_admin_meta_boxes, 'enqueue_scripts'); 109 110 110 $this->loader->add_action('admin_head-nav-menus.php', $plugin_admin_meta_boxes, 'docid_register_meta_boxes_nav_menus');111 $this->loader->add_action('admin_head-nav-menus.php', $plugin_admin_meta_boxes, 'docid_register_meta_boxes_nav_menus'); 111 112 112 }113 } 113 114 114 /**115 * Register all of the hooks related to the public-facing116 * functionality of the plugin.117 *118 * @since 1.0.0119 * @access private120 */121 private function define_public_hooks() {115 /** 116 * Register all of the hooks related to the public-facing 117 * functionality of the plugin. 118 * 119 * @since 1.0.0 120 * @access private 121 */ 122 private function define_public_hooks() { 122 123 123 $plugin_frontend = new DOCID_Frontend(124 $this->get_plugin_name(),125 $this->get_version()126 );124 $plugin_frontend = new DOCID_Frontend( 125 $this->get_plugin_name(), 126 $this->get_version() 127 ); 127 128 128 129 $this->loader->add_action('template_redirect', $plugin_frontend, 'docid_handle_auth_token', 0); 129 $this->loader->add_action('template_redirect', $plugin_frontend, 'docid_handle_auth', 1);130 $this->loader->add_action('template_redirect', $plugin_frontend, 'docid_handle_auth', 1); 130 131 $this->loader->add_action('template_redirect', $plugin_frontend, 'docid_handle_noindex', 0); 131 $this->loader->add_action('admin_post_docid_logout', $plugin_frontend, 'docid_handle_logout');132 $this->loader->add_action('admin_post_nopriv_docid_logout', $plugin_frontend, 'docid_handle_logout');132 $this->loader->add_action('admin_post_docid_logout', $plugin_frontend, 'docid_handle_logout'); 133 $this->loader->add_action('admin_post_nopriv_docid_logout', $plugin_frontend, 'docid_handle_logout'); 133 134 134 if(!is_admin()) {135 $this->loader->add_filter('body_class', $plugin_frontend, 'docid_body_class_handler');136 $this->loader->add_filter('nav_menu_css_class', $plugin_frontend, 'docid_menu_class_handler', 0, 2);137 $this->loader->add_filter('wp_nav_menu_objects', $plugin_frontend, 'docid_nav_menu_objects_handler');138 }135 if(!is_admin()) { 136 $this->loader->add_filter('body_class', $plugin_frontend, 'docid_body_class_handler'); 137 $this->loader->add_filter('nav_menu_css_class', $plugin_frontend, 'docid_menu_class_handler', 0, 2); 138 $this->loader->add_filter('wp_nav_menu_objects', $plugin_frontend, 'docid_nav_menu_objects_handler'); 139 } 139 140 140 $plugin_public_shortcodes = new DOCID_Shortcodes(141 $this->get_plugin_name(),142 $this->get_version(),143 );141 $plugin_public_shortcodes = new DOCID_Shortcodes( 142 $this->get_plugin_name(), 143 $this->get_version(), 144 ); 144 145 145 $this->loader->add_action('init', $plugin_public_shortcodes, 'docid_register_shortcodes');146 $this->loader->add_action('init', $plugin_public_shortcodes, 'docid_register_shortcodes'); 146 147 147 }148 } 148 149 149 /**150 * Run the loader to execute all of the hooks with WordPress.151 *152 * @since 1.0.0153 * @access public154 */155 public function run() {156 $this->loader->run();157 }150 /** 151 * Run the loader to execute all of the hooks with WordPress. 152 * 153 * @since 1.0.0 154 * @access public 155 */ 156 public function run() { 157 $this->loader->run(); 158 } 158 159 159 /**160 * The name of the plugin used to uniquely identify it within the context of161 * WordPress and to define internationalization functionality.162 *163 * @since 1.0.0164 * @access public165 * @return string The name of the plugin.166 */167 public function get_plugin_name() {168 return $this->plugin_name;169 }160 /** 161 * The name of the plugin used to uniquely identify it within the context of 162 * WordPress and to define internationalization functionality. 163 * 164 * @since 1.0.0 165 * @access public 166 * @return string The name of the plugin. 167 */ 168 public function get_plugin_name() { 169 return $this->plugin_name; 170 } 170 171 171 /**172 * The reference to the class that orchestrates the hooks with the plugin.173 *174 * @since 1.0.0175 * @access public176 * @return DOCID_Loader Orchestrates the hooks of the plugin.177 */178 public function get_loader() {179 return $this->loader;180 }172 /** 173 * The reference to the class that orchestrates the hooks with the plugin. 174 * 175 * @since 1.0.0 176 * @access public 177 * @return DOCID_Loader Orchestrates the hooks of the plugin. 178 */ 179 public function get_loader() { 180 return $this->loader; 181 } 181 182 182 /**183 * Retrieve the version number of the plugin.184 *185 * @since 1.0.0186 * @access public187 * @return string The version number of the plugin.188 */189 public function get_version() {190 return $this->version;191 }183 /** 184 * Retrieve the version number of the plugin. 185 * 186 * @since 1.0.0 187 * @access public 188 * @return string The version number of the plugin. 189 */ 190 public function get_version() { 191 return $this->version; 192 } 192 193 } -
docid/trunk/languages/docid-de.po
r3298300 r3298309 3 3 msgid "" 4 4 msgstr "" 5 "Project-Id-Version: DocID 1.0. 0\n"5 "Project-Id-Version: DocID 1.0.1\n" 6 6 "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/docid\n" 7 7 "POT-Creation-Date: 2025-05-20T20:09:15+00:00\n" -
docid/trunk/languages/docid.pot
r3298300 r3298309 3 3 msgid "" 4 4 msgstr "" 5 "Project-Id-Version: DocID 1.0. 0\n"5 "Project-Id-Version: DocID 1.0.1\n" 6 6 "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/docid\n" 7 7 "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
Note: See TracChangeset
for help on using the changeset viewer.