Plugin Directory

Changeset 2936612


Ignore:
Timestamp:
07/10/2023 03:19:45 PM (3 years ago)
Author:
wpcox
Message:

update version to 1.0.4

Location:
labelbaker/trunk
Files:
136 added
129 deleted
8 edited

Legend:

Unmodified
Added
Removed
  • labelbaker/trunk/bootstrap.php

    r2932834 r2936612  
    1616
    1717    private $required_files = [
    18         "helper", "trait", "assets", "api", "cleanup", "menu", "banner"
     18        "helper", "trait", "assets",
     19        "api", "cleanup", "menu",
     20        "banner", "woo", "featured-image"
    1921    ];
    2022
  • labelbaker/trunk/cleanup/style.css

    r2922725 r2936612  
    1616}
    1717
     18.rounded-full {
     19    border-radius: 9999px !important;
     20}
     21
    1822input[type=text] > .pl-8 {
    1923    padding-left: 50px;
    2024}
     25
     26#wpfooter{
     27    display: none;
     28}
  • labelbaker/trunk/includes/api.php

    r2932522 r2936612  
    1414        add_action('rest_api_init', array($this, 'register_user_template_route'));
    1515        add_action('rest_api_init', array($this, 'labelbaker_register_get_templates_route'));
    16         add_action('rest_api_init', array($this, 'my_image_upload_rest_route'));
     16        add_action('rest_api_init', array($this, 'image_upload_rest_route'));
    1717        add_action('rest_api_init', array($this, 'get_single_template_route'));
    1818        add_action('rest_api_init', array($this, 'delete_template_route'));
     
    246246    }
    247247
    248     public function my_image_upload_rest_route()
     248    public function image_upload_rest_route()
    249249    {
    250250        register_rest_route(
     
    257257                    // return current_user_can( 'edit_posts' );
    258258                },
    259                 'callback'            => array($this, 'my_image_upload_callback'),
     259                'callback'            => array($this, 'image_upload_callback'),
    260260            )
    261261        );
     
    263263
    264264    // Define the REST API route callback function
    265     public function my_image_upload_callback($request)
     265    public function image_upload_callback($request)
    266266    {
    267267        $image_data = $request->get_param('image_data');
  • labelbaker/trunk/includes/assets.php

    r2935186 r2936612  
    2020        }
    2121
     22        wp_enqueue_script('labelbaker-cleanup-script', LABELBAKER_URL . '/cleanup/script.js', array('jquery'), LABELBAKER_VERSION, false);
     23        wp_enqueue_style('labelbaker-cleanup-style', LABELBAKER_URL . '/cleanup/style.css', array());
     24
    2225        wp_enqueue_script('xls', 'https://cdn.sheetjs.com/xlsx-latest/package/dist/xlsx.full.min.js', array(), LABELBAKER_VERSION, false);
    2326        wp_enqueue_style('gf-css', 'https://fonts.googleapis.com/css?family=Libre+Barcode+39|Libre+Barcode+128', array(), LABELBAKER_VERSION);
    2427        wp_enqueue_script('jspdf', 'https://cdnjs.cloudflare.com/ajax/libs/jspdf/2.5.1/jspdf.umd.min.js', array(), LABELBAKER_VERSION, false);
    2528
    26         $script_file = 'index.646a88df.js';
    27         $style_file = 'index.fe0f6515.css';
     29        $script_file = 'index.f34f3162.js';
     30        $style_file = 'index.ca1c4895.css';
    2831        $script_url = defined('LABELBAKER_DEV') ? 'http://localhost:5173/app/main.js' : LABELBAKER_ASSETS_URL . '/' . $script_file;
    2932
     
    4043            'defaultAudioUrl' => labelbaker_default_audio_url(),
    4144            'licenseEndpoint' => labelbaker_license_endpoint(),
     45            'isWooExists' => labelbaker_is_woo_exists()
    4246        );
    4347
     
    4751
    4852        wp_enqueue_script('labelbaker-script', $script_url, array(), LABELBAKER_VERSION, false);
     53
    4954        wp_localize_script('labelbaker-script', 'labelbaker', $localized_data);
    5055        if (!defined('LABELBAKER_DEV')) {
    5156            wp_enqueue_style('labelbaker-style', LABELBAKER_ASSETS_URL . '/' . $style_file, array(), false);
    5257        }
    53 
    54         wp_enqueue_style('labelbaker-cleanup', LABELBAKER_URL . '/cleanup/style.css', array());
    5558    }
    5659
  • labelbaker/trunk/includes/cleanup.php

    r2922725 r2936612  
    1010    {
    1111        add_action('in_admin_header',  [$this, 'hide_notices'], 99);
     12       
     13       
     14    }
     15    public function remove_admin_footer_text() {
     16        return '';
    1217    }
    1318
     
    1823            remove_all_actions('user_admin_notices');
    1924            remove_all_actions('admin_notices');
     25            add_filter('admin_footer_text', [$this,'remove_admin_footer_text']);
    2026        }
    2127    }
  • labelbaker/trunk/includes/helper.php

    r2932522 r2936612  
    5555    }
    5656}
     57
     58function labelbaker_is_woo_exists()
     59{
     60    if (is_plugin_active('woocommerce/woocommerce.php')) {
     61        // WooCommerce is active
     62        return true;
     63    }
     64
     65    return false;
     66}
  • labelbaker/trunk/labelbaker.php

    r2935186 r2936612  
    55 * Description: Make images, pdf, labels, banners, thumbnails, ads, and more.
    66 * Plugin URI:  https://wpcox.com/labelbaker
    7  * Version:     1.0.3
     7 * Version:     1.0.4
    88 * Author:      wpcox
    99 * Author URI:  https://wpcox.com/
     
    2525    public function __construct()
    2626    {
    27         define('LABELBAKER_VERSION', '1.0.3');
     27        define('LABELBAKER_VERSION', '1.0.4');
    2828        define('LABELBAKER_TEMPLATE_DIR', 'labelbaker-templates');
    2929        define('LABELBAKER_USER_DATA_DIR', 'labelbaker-user-data');
     
    4646        // Init REST APIs
    4747        \LabelBaker\API::get_instance()->init();
     48        \LabelBaker\Featured_Image::get_instance()->init();
    4849
    4950        if (is_admin()) {
  • labelbaker/trunk/readme.txt

    r2935186 r2936612  
    44Requires at least: 4.0.1
    55Tested up to: 6.2
    6 Stable tag: 1.0.3
     6Stable tag: 1.0.4
    77License: GPLv2 or later
    88License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    2121
    2222In addition to this, Labelbaker comes equipped with a dynamic label maker, enabling you to generate and customize labels on-the-go.
     23**WordPress Featured Images & Post Thumbnails making using LableBaker**
     24You can easily make your post or page featured image/thumbnail using Lablebaker. Let's watch the video about how you can do this thing easily.
     25
     26https://youtu.be/GYKAuq24kTo
     27
    2328
    2429**Generate image and PDF content easily**
Note: See TracChangeset for help on using the changeset viewer.