Plugin Directory

Changeset 2932834


Ignore:
Timestamp:
07/01/2023 07:01:25 AM (3 years ago)
Author:
wpcox
Message:

update to 1.0.2

Location:
labelbaker/trunk
Files:
110 added
110 deleted
5 edited

Legend:

Unmodified
Added
Removed
  • labelbaker/trunk/bootstrap.php

    r2932522 r2932834  
    2727    {
    2828        add_action('init', [$this, 'create_user_data_folder']);
     29        add_action('init', [$this, 'update_admin_caps']);
    2930        return $this;
     31    }
     32
     33    public function update_admin_caps()
     34    {
     35        $admin_role = get_role("administrator");
     36        $admin_role->add_cap('labelbaker_user', true);
    3037    }
    3138
  • labelbaker/trunk/includes/assets.php

    r2932522 r2932834  
    2323        wp_enqueue_style('gf-css', 'https://fonts.googleapis.com/css?family=Libre+Barcode+39|Libre+Barcode+128', array(), false);
    2424
    25         $script_file = 'index.35dc4ace.js';
     25        $script_file = 'index.88a43ea0.js';
    2626        $style_file = 'index.e963cf9c.css';
    2727        $script_url = defined('LABELBAKER_DEV') ? 'http://localhost:5173/app/main.js' : LABELBAKER_ASSETS_URL . '/' . $script_file;
  • labelbaker/trunk/includes/menu.php

    r2932522 r2932834  
    2121            'LabelBaker',
    2222            'LabelBaker',
    23             'manage_options',
     23            'labelbaker_user',
    2424            $parent_slug,
    2525            [$this, 'admin_page'],
     
    3939                'page_title'  => 'Templates',
    4040                'menu_title'  => 'Templates',
    41                 'capability'  => 'manage_options',
     41                'capability'  => 'labelbaker_user',
    4242                'menu_slug'   => $parent_slug,
    4343                'function'    => [$this, 'admin_page'], // Uses the same callback function as parent menu.
     
    4747                'page_title'  => 'Dashboard',
    4848                'menu_title'  => 'Dashboard',
    49                 'capability'  => 'manage_options',
     49                'capability'  => 'labelbaker_user',
    5050                'menu_slug'   => $label_baker_url . '/#/dashboard',
    5151                'function'    => null, // Uses the same callback function as parent menu.
     
    5555                'page_title'  => 'New Template',
    5656                'menu_title'  => 'New Template',
    57                 'capability'  => 'manage_options',
     57                'capability'  => 'labelbaker_user',
    5858                'menu_slug'   => $label_baker_url . '/#/new',
    5959                'function'    => null, // Uses the same callback function as parent menu.
     
    6363                'page_title'  => 'Editor',
    6464                'menu_title'  => 'Editor',
    65                 'capability'  => 'manage_options',
     65                'capability'  => 'labelbaker_user',
    6666                'menu_slug'   => $label_baker_url . '/#/editor',
    6767                'function'    => null, // Uses the same callback function as parent menu.
     
    9090    public function admin_page()
    9191    {
     92        if ( !current_user_can( 'labelbaker_user' ) ) {
     93            return;
     94        }
    9295?>
    9396        <div data-config="Zt370X2XrApeCDxHw3nVcD2kb8h7RzpPXI+xagFD7/EzS5evRTYZoXgnm2KLmPg7MGd4A+KOCeNiKYhQd8oQwVXgsEH0SvIk2Oxvyjt6W6bBRPxiqUZwjFlYNcG48ApqUi2924ZHCfXEdD0Q6s1cUlX/51KKyMtMaW7x6tYXBKxBm6kgVLK1hHxRJiV4WyEAMW9O0quYDVMO1A9QaG16SZKUDa1yVn0vlV1L42HtVBMt2P0HtLbB9Dj7uKbxp8QRG0jtZsRp/dej29Dw5LVdV19CNmBX++wlmMrvqu2Ah2uc1ppfItOO7mUkFcazBxq6UF6+T2JF9qW/H172LYCvyJUUhydXiN5eM8VEaOc0o//Er/SprYhIsHMyXqwNyHT2pqYUgBk6yHoo5+b9QVGPswKCIeqDvlsHDGFDqJmco9cCRveP0CcK8gZrGlv2ZvS0yTjU3oIkL3TWO7rjNH7S5ssWMrXamTCqikOp22gIf7M=" id="label-baker"></div>
  • labelbaker/trunk/labelbaker.php

    r2932522 r2932834  
    55 * Description: Make images, pdf, labels, banners, thumbnails, ads, and more.
    66 * Plugin URI:  https://wpcox.com/labelbaker
    7  * Version:     1.0.1
     7 * Version:     1.0.2
    88 * Author:      wpcox
    99 * Author URI:  https://wpcox.com/
     
    2525    public function __construct()
    2626    {
    27         define('LABELBAKER_VERSION', '1.0.1');
     27        define('LABELBAKER_VERSION', '1.0.2');
    2828        define('LABELBAKER_TEMPLATE_DIR', 'labelbaker-templates');
    2929        define('LABELBAKER_USER_DATA_DIR', 'labelbaker-user-data');
  • labelbaker/trunk/readme.txt

    r2932524 r2932834  
    44Requires at least: 4.0.1
    55Tested up to: 6.2
    6 Stable tag: 1.0.1
     6Stable tag: 1.0.2
    77License: GPLv2 or later
    88License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    2525You can generate Image and PDF content from the existing template or the template you have made. It eliminates the need for repetitive tasks and makes your life easy.
    2626
    27 Watch the video on how you can generate content quickly.   
    28    
     27Watch the video on how you can generate content quickly.
     28 
     29
    2930https://www.youtube.com/watch?v=Ko-xuYEF4qM
    3031
Note: See TracChangeset for help on using the changeset viewer.