Plugin Directory

Changeset 3298309


Ignore:
Timestamp:
05/21/2025 08:29:19 PM (9 months ago)
Author:
docid
Message:

Updated plugin to version 1.0.1

Location:
docid
Files:
11 edited

Legend:

Unmodified
Added
Removed
  • docid

    • Property svn:ignore set to
      .DS_Store
      .idea
      *.swp
      *.swo
      *.bak
      Thumbs.db
  • docid/tags/1.0.0/README.txt

    r3298301 r3298309  
    55Requires PHP: 7.4
    66Tested up to: 6.8
    7 Stable tag: 1.0.0
     7Stable tag: 1.0.1
    88License: GPLv3 or later
    99License URI: https://www.gnu.org/licenses/gpl-3.0.html
  • docid/tags/1.0.0/docid.php

    r3298301 r3298309  
    1414 * Plugin Name:       DocID
    1515 * 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.0
     16 * Version:           1.0.1
    1717 * Author:            8awake GmbH <[email protected]>
    1818 * Author URI:        https://docid.de
  • docid/tags/1.0.0/languages/docid-de.po

    r3298300 r3298309  
    33msgid ""
    44msgstr ""
    5 "Project-Id-Version: DocID 1.0.0\n"
     5"Project-Id-Version: DocID 1.0.1\n"
    66"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/docid\n"
    77"POT-Creation-Date: 2025-05-20T20:09:15+00:00\n"
  • docid/tags/1.0.0/languages/docid.pot

    r3298300 r3298309  
    33msgid ""
    44msgstr ""
    5 "Project-Id-Version: DocID 1.0.0\n"
     5"Project-Id-Version: DocID 1.0.1\n"
    66"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/docid\n"
    77"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
  • docid/trunk/README.txt

    r3298300 r3298309  
    55Requires PHP: 7.4
    66Tested up to: 6.8
    7 Stable tag: 1.0.0
     7Stable tag: 1.0.1
    88License: GPLv3 or later
    99License URI: https://www.gnu.org/licenses/gpl-3.0.html
     
    5656== Changelog ==
    5757
     58= 1.0.1 =
     59* Settings page improvements
     60
    5861= 1.0.0 =
    5962* Authentication of healthcare professionals
     
    6366
    6467= 1.0.0 =
    65 First stable release of the plugin. Includes all core functionalities for secure HCP authentication.
     68Initial stable release of the DocID plugin. Includes all core functionalities for secure HCP authentication on your website.
    6669
    6770== Additional Resources ==
  • docid/trunk/admin/class-docid-admin.php

    r3298300 r3298309  
    1313class DOCID_Admin extends DOCID_Base {
    1414
    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;
     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;
    2323
    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;
     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;
    3232
    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();
     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();
    4444
    45         $this->plugin_name = $plugin_name;
    46         $this->version     = $version;
    47     }
     45        $this->plugin_name = $plugin_name;
     46        $this->version     = $version;
     47    }
    4848
    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         ];
     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        ];
    6262
    63         return array_merge($docid_links, $links);
    64     }
     63        return array_merge($docid_links, $links);
     64    }
    6565}
  • docid/trunk/docid.php

    r3298300 r3298309  
    1414 * Plugin Name:       DocID
    1515 * 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.0
     16 * Version:           1.0.1
    1717 * Author:            8awake GmbH <[email protected]>
    1818 * Author URI:        https://docid.de
  • docid/trunk/includes/class-docid.php

    r3298300 r3298309  
    1818class DOCID {
    1919
    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;
     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;
    2929
    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;
     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;
    3838
    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;
     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;
    4747
    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() {
     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() {
    5959
    60         $this->plugin_name = 'docid';
    61         $this->version     = '1.0.0';
     60        $this->plugin_name = 'docid';
     61        $this->version     = '1.0.1';
    6262
    63         $this->set_loader();
     63        $this->set_loader();
    6464
    65         $this->define_admin_hooks();
    66         $this->define_public_hooks();
     65        $this->define_admin_hooks();
     66        $this->define_public_hooks();
    6767
    68     }
     68    }
    6969
    70     /**
    71     * Setting up the loader.
    72     *
    73     * @since    1.0.0
    74     * @access   private
    75     */
    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() {
    7777
    78         $this->loader = new DOCID_Loader();
     78        $this->loader = new DOCID_Loader();
    7979
    80     }
     80    }
    8181
    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() {
     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() {
    9090
    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        );
    9595
    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' );
    9899
    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        );
    103104
    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');
    105106        $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');
    109110
    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');
    111112
    112     }
     113    }
    113114
    114     /**
    115     * Register all of the hooks related to the public-facing
    116     * functionality of the plugin.
    117     *
    118     * @since    1.0.0
    119     * @access   private
    120     */
    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() {
    122123
    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        );
    127128
    128129        $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);
    130131        $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');
    133134
    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        }
    139140
    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        );
    144145
    145         $this->loader->add_action('init', $plugin_public_shortcodes, 'docid_register_shortcodes');
     146        $this->loader->add_action('init', $plugin_public_shortcodes, 'docid_register_shortcodes');
    146147
    147     }
     148    }
    148149
    149     /**
    150     * Run the loader to execute all of the hooks with WordPress.
    151     *
    152     * @since    1.0.0
    153     * @access   public
    154     */
    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    }
    158159
    159     /**
    160     * The name of the plugin used to uniquely identify it within the context of
    161     * WordPress and to define internationalization functionality.
    162     *
    163     * @since     1.0.0
    164     * @access    public
    165     * @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    }
    170171
    171     /**
    172     * The reference to the class that orchestrates the hooks with the plugin.
    173     *
    174     * @since     1.0.0
    175     * @access    public
    176     * @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    }
    181182
    182     /**
    183     * Retrieve the version number of the plugin.
    184     *
    185     * @since     1.0.0
    186     * @access    public
    187     * @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    }
    192193}
  • docid/trunk/languages/docid-de.po

    r3298300 r3298309  
    33msgid ""
    44msgstr ""
    5 "Project-Id-Version: DocID 1.0.0\n"
     5"Project-Id-Version: DocID 1.0.1\n"
    66"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/docid\n"
    77"POT-Creation-Date: 2025-05-20T20:09:15+00:00\n"
  • docid/trunk/languages/docid.pot

    r3298300 r3298309  
    33msgid ""
    44msgstr ""
    5 "Project-Id-Version: DocID 1.0.0\n"
     5"Project-Id-Version: DocID 1.0.1\n"
    66"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/docid\n"
    77"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
Note: See TracChangeset for help on using the changeset viewer.