Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
ProjectSoft-STUDIONIONS committed Feb 6, 2025
1 parent aa8cb13 commit 7793304
Show file tree
Hide file tree
Showing 5 changed files with 50 additions and 29 deletions.
30 changes: 29 additions & 1 deletion Gruntfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,35 @@ module.exports = function(grunt) {
{
match: /%time%/g,
replacement: parseInt((new Date()).getTime() / 1000)
}
},
{
match: /%name%/g,
replacement: PACK.name
},
{
match: /%description%/g,
replacement: PACK.description
},
{
match: /%version%/g,
replacement: PACK.version
},
{
match: /%author%/g,
replacement: PACK.author
},
{
match: /%homepage%/g,
replacement: PACK.homepage
},
{
match: /%license%/g,
replacement: PACK.license
},
{
match: /%license_uri%/g,
replacement: PACK.license_uri
},
]
},
src: "edit-file-plugin.php5",
Expand Down
2 changes: 1 addition & 1 deletion bower.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "food-uploader-plugin",
"description": "WordPress Плагин для загрузки файлов (PDF и XLSX) в папку /food/, доступен только администраторам.",
"description": "WordPress Плагин для загрузки файлов (XLSX) в папку /food/, доступен только администраторам.",
"main": "Gruntfile.js",
"authors": [
"Чернышёв Андрей aka ProjectSoft <projectsoft2009@yandex.ru>"
Expand Down
20 changes: 8 additions & 12 deletions edit-file-plugin.php5
Original file line number Diff line number Diff line change
@@ -1,23 +1,19 @@
<?php
/*
Plugin Name: Food File Uploader
Plugin URI: https://github.com/ProjectSoft-STUDIONIONS/food-uploader-plugin
Description: WordPress Плагин для загрузки файлов (XLSX) в папку /food/, доступен только администраторам. Плагин актуален для сайтов школ России.
Version: 1.0.0
Author: Чернышёв Андрей aka ProjectSoft
Plugin URI: %homepage%
Description: %description%
Version: %version%
Author: %author%
Author URI: https://projectsoft.ru/
GitHub Plugin URI: https://github.com/ProjectSoft-STUDIONIONS/food-uploader-plugin
License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
GitHub Plugin URI: %homepage%
License: %license%
License URI: %license_uri%
Donate link: https://projectsoft.ru/donate/
Domain Path: languages/
Text Domain: food-uploader-plugin
Text Domain: %name%
Requires at least: 5.7
Requires PHP: 7.4
Update URI: https://projectsoft.ru/food-uploader-plugin/
*
* @link https://github.com/ProjectSoft-STUDIONIONS/food-uploader-plugin
*/

if (!defined('ABSPATH')) die();
Expand Down
20 changes: 8 additions & 12 deletions food-uploader-plugin.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,21 +3,17 @@
Plugin Name: Food File Uploader
Plugin URI: https://github.com/ProjectSoft-STUDIONIONS/food-uploader-plugin
Description: WordPress Плагин для загрузки файлов (XLSX) в папку /food/, доступен только администраторам. Плагин актуален для сайтов школ России.
Version: 1.0.0
Author: Чернышёв Андрей aka ProjectSoft
Version: 1.0.1
Author: Чернышёв Андрей aka ProjectSoft <projectsoft2009@yandex.ru>
Author URI: https://projectsoft.ru/
GitHub Plugin URI: https://github.com/ProjectSoft-STUDIONIONS/food-uploader-plugin
License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
License: MIT
License URI: https://mit-license.org/
Donate link: https://projectsoft.ru/donate/
Domain Path: languages/
Text Domain: food-uploader-plugin
Requires at least: 5.7
Requires PHP: 7.4
Update URI: https://projectsoft.ru/food-uploader-plugin/
*
* @link https://github.com/ProjectSoft-STUDIONIONS/food-uploader-plugin
*/

if (!defined('ABSPATH')) die();
Expand Down Expand Up @@ -399,20 +395,20 @@ function food_delete_file($file) {
// Добавление стилей
function food_plugin_add_admin_style_script() {
global $plugin_name;
wp_register_style( 'food-uploader-plugin', plugins_url( $plugin_name . '/css/main.css' ), array(), '1.0.0-dev-1738849277', false );
wp_register_style( 'food-uploader-plugin', plugins_url( $plugin_name . '/css/main.css' ), array(), '1.0.0-dev-1738850284', false );
wp_register_script( 'food-uploader-plugin_app', plugins_url( $plugin_name . '/js/appjs.min.js' ), array(), '1.0.0', true );
wp_enqueue_style( 'food-uploader-plugin' );
wp_enqueue_script( 'food-uploader-plugin_app');

// Подключение моего вьювера если он установлен
if(is_file(FOOD_ABSPATH . '/viewer/fancybox.min.js')):
wp_register_script( 'food-uploader-plugin_fancybox_js', site_url('viewer/fancybox.min.js'), array(), '1.0.0-dev-1738849277', true );
wp_register_style( 'food-uploader-plugin_fancybox_css', site_url('viewer/app.min.css'), array(), '1.0.0-dev-1738849277', false );
wp_register_script( 'food-uploader-plugin_fancybox_js', site_url('viewer/fancybox.min.js'), array(), '1.0.0-dev-1738850284', true );
wp_register_style( 'food-uploader-plugin_fancybox_css', site_url('viewer/app.min.css'), array(), '1.0.0-dev-1738850284', false );
wp_enqueue_style( 'food-uploader-plugin_fancybox_css' );
wp_enqueue_script( 'food-uploader-plugin_fancybox_js');
endif;

wp_register_script( 'food-uploader-plugin_main', plugins_url( $plugin_name . '/js/main.min.js' ), array(), '1.0.0-dev-1738849277', true );
wp_register_script( 'food-uploader-plugin_main', plugins_url( $plugin_name . '/js/main.min.js' ), array(), '1.0.0-dev-1738850284', true );
wp_enqueue_script( 'food-uploader-plugin_main');
}

Expand Down
7 changes: 4 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"name": "food-uploader-plugin",
"version": "1.0.0",
"description": "WordPress Плагин для загрузки файлов (PDF и XLSX) в папку /food/, доступен только администраторам.",
"homepage": "https://github.com/ProjectSoft-STUDIONIONS/food-uploader-plugin#readme",
"version": "1.0.1",
"description": "WordPress Плагин для загрузки файлов (XLSX) в папку /food/, доступен только администраторам. Плагин актуален для сайтов школ России.",
"homepage": "https://github.com/ProjectSoft-STUDIONIONS/food-uploader-plugin",
"bugs": {
"url": "https://github.com/ProjectSoft-STUDIONIONS/food-uploader-plugin/issues"
},
Expand All @@ -11,6 +11,7 @@
"url": "git+https://github.com/ProjectSoft-STUDIONIONS/food-uploader-plugin.git"
},
"license": "MIT",
"license_uri": "https://mit-license.org/",
"author": "Чернышёв Андрей aka ProjectSoft <projectsoft2009@yandex.ru>",
"main": "Gruntfile.js",
"scripts": {
Expand Down

0 comments on commit 7793304

Please sign in to comment.