first commit

This commit is contained in:
2026-03-05 13:07:40 +01:00
commit 64ba0721ee
25709 changed files with 4691006 additions and 0 deletions

View File

@@ -0,0 +1,25 @@
const { registerBlockType } = wp.blocks;
const { Fragment } = wp.element;
registerBlockType('omnibus/message', {
title: window.wp.i18n( 'Omnibus', 'omnibus' ),
description: window.wp.i18n( 'Omnibus message', 'omnibus' ),
category: 'common',
parent: ['core/text'],
icon: {
background: '#0073aa',
foreground: '#ffffff',
src: '<svg viewBox="0 0 128 128" xmlns="http://www.w3.org/2000/svg"><path fill="#1a1b25" d="m 17.980998,89.66314 -5.722957,7.11366 19.187606,19.18853 7.120956,-5.82275 c 3.508308,1.94 7.206109,3.46435 11.041249,4.55292 L 50.589296,124 h 16.926241 v -14.29687 h 14.944141 c 1.456608,4.08325 5.321952,7.03124 9.899581,7.03124 5.81542,0 10.546871,-4.73144 10.546871,-10.54687 0,-5.81543 -4.731451,-10.54687 -10.546871,-10.54687 -4.577629,0 -8.442973,2.94799 -9.899581,7.03125 H 67.515537 v -7.03125 h -3.515604 c -17.447197,0 -31.640582,-14.193422 -31.640582,-31.640618 0,-17.44722 14.193385,-31.640628 31.640582,-31.640628 h 3.515604 v -7.031256 h 14.944141 c 1.456608,4.083252 5.321952,7.031256 9.899581,7.031256 5.81542,0 10.546871,-4.731456 10.546871,-10.546884 0,-5.815428 -4.731451,-10.546872 -10.546871,-10.546872 -4.577629,0 -8.442973,2.947992 -9.899581,7.031256 H 67.515537 V 4 H 50.270696 l -0.913704,9.380496 c -3.834217,1.105032 -7.525621,2.64678 -11.020177,4.600524 l -7.113649,-5.722968 -19.194912,19.187628 5.829144,7.120968 c -1.93908,3.508308 -3.463429,7.20612 -4.551984,11.04126 l -9.3054131,0.981444 v 27.139896 l 9.3804851,0.913704 c 1.105031,3.83514 2.646779,7.52562 4.600512,11.020188 z m 0,0" /><path fill="#822e81" d="m 113.45298,53.453128 c -4.57763,0 -8.44298,2.948004 -9.89958,7.031244 H 56.968688 v 7.031256 H 103.5534 c 1.4566,4.083252 5.32195,7.031244 9.89958,7.031244 5.81542,0 10.54686,-4.731432 10.54686,-10.54686 0,-5.81544 -4.73144,-10.546884 -10.54686,-10.546884 z m 0,0" /><path fill="#aa6373" d="m 114.26231,25.358344 c -6.1798,-0.46326 -11.35618,4.432968 -11.35618,10.516656 0,0.437628 0.0769,0.854184 0.12909,1.278084 L 91.527959,42.906256 H 61.090376 c -11.984244,0 -21.699805,9.715572 -21.699805,21.699828 0,11.314992 9.172656,20.48766 20.487649,20.48766 h 31.649739 l 11.507261,5.753176 c -0.0522,0.4239 -0.12909,0.84045 -0.12909,1.27808 0,6.08369 5.17638,10.97992 11.35618,10.51666 5.15717,-0.38727 9.32005,-4.55016 9.70731,-9.70733 0.46328,-6.17981 -4.43297,-11.356202 -10.51664,-11.356202 -2.8363,0 -5.40344,1.138008 -7.30039,2.965392 L 93.190559,78.0625 H 60.484304 c -7.766412,0 -14.062488,-6.296076 -14.062488,-14.062488 0,-7.766436 6.296076,-14.062512 14.062488,-14.062512 h 32.706255 l 12.962031,-6.48102 c 1.89695,1.827384 4.46409,2.965392 7.30039,2.965392 6.08367,0 10.97992,-5.176392 10.51664,-11.3562 -0.38726,-5.157168 -4.55014,-9.320064 -9.70731,-9.707328 z m 0,0" /></svg>',
keywords: [
window.wp.i18n( 'omnibus', 'omnibus' ),
window.wp.i18n( 'message', 'omnibus' ),
window.wp.i18n( 'orice', 'omnibus' ),
],
},
edit() {
return ( Fragment.createElement( 'div' ) );
},
save() {
return ( Fragment.createElement( 'div' ) );
},
});

View File

@@ -0,0 +1,6 @@
<svg viewBox="0 0 128 128" xmlns="http://www.w3.org/2000/svg">
<path fill="#1a1b25" d="m 17.980998,89.66314 -5.722957,7.11366 19.187606,19.18853 7.120956,-5.82275 c 3.508308,1.94 7.206109,3.46435 11.041249,4.55292 L 50.589296,124 h 16.926241 v -14.29687 h 14.944141 c 1.456608,4.08325 5.321952,7.03124 9.899581,7.03124 5.81542,0 10.546871,-4.73144 10.546871,-10.54687 0,-5.81543 -4.731451,-10.54687 -10.546871,-10.54687 -4.577629,0 -8.442973,2.94799 -9.899581,7.03125 H 67.515537 v -7.03125 h -3.515604 c -17.447197,0 -31.640582,-14.193422 -31.640582,-31.640618 0,-17.44722 14.193385,-31.640628 31.640582,-31.640628 h 3.515604 v -7.031256 h 14.944141 c 1.456608,4.083252 5.321952,7.031256 9.899581,7.031256 5.81542,0 10.546871,-4.731456 10.546871,-10.546884 0,-5.815428 -4.731451,-10.546872 -10.546871,-10.546872 -4.577629,0 -8.442973,2.947992 -9.899581,7.031256 H 67.515537 V 4 H 50.270696 l -0.913704,9.380496 c -3.834217,1.105032 -7.525621,2.64678 -11.020177,4.600524 l -7.113649,-5.722968 -19.194912,19.187628 5.829144,7.120968 c -1.93908,3.508308 -3.463429,7.20612 -4.551984,11.04126 l -9.3054131,0.981444 v 27.139896 l 9.3804851,0.913704 c 1.105031,3.83514 2.646779,7.52562 4.600512,11.020188 z m 0,0" />
<path fill="#822e81" d="m 113.45298,53.453128 c -4.57763,0 -8.44298,2.948004 -9.89958,7.031244 H 56.968688 v 7.031256 H 103.5534 c 1.4566,4.083252 5.32195,7.031244 9.89958,7.031244 5.81542,0 10.54686,-4.731432 10.54686,-10.54686 0,-5.81544 -4.73144,-10.546884 -10.54686,-10.546884 z m 0,0" />
<path fill="#aa6373" d="m 114.26231,25.358344 c -6.1798,-0.46326 -11.35618,4.432968 -11.35618,10.516656 0,0.437628 0.0769,0.854184 0.12909,1.278084 L 91.527959,42.906256 H 61.090376 c -11.984244,0 -21.699805,9.715572 -21.699805,21.699828 0,11.314992 9.172656,20.48766 20.487649,20.48766 h 31.649739 l 11.507261,5.753176 c -0.0522,0.4239 -0.12909,0.84045 -0.12909,1.27808 0,6.08369 5.17638,10.97992 11.35618,10.51666 5.15717,-0.38727 9.32005,-4.55016 9.70731,-9.70733 0.46328,-6.17981 -4.43297,-11.356202 -10.51664,-11.356202 -2.8363,0 -5.40344,1.138008 -7.30039,2.965392 L 93.190559,78.0625 H 60.484304 c -7.766412,0 -14.062488,-6.296076 -14.062488,-14.062488 0,-7.766436 6.296076,-14.062512 14.062488,-14.062512 h 32.706255 l 12.962031,-6.48102 c 1.89695,1.827384 4.46409,2.965392 7.30039,2.965392 6.08367,0 10.97992,-5.176392 10.51664,-11.3562 -0.38726,-5.157168 -4.55014,-9.320064 -9.70731,-9.707328 z m 0,0" />
</svg>

After

Width:  |  Height:  |  Size: 2.4 KiB

View File

@@ -0,0 +1,24 @@
/*! Omnibus — show the lowest price - v2.3.9
* http://iworks.pl/
* Copyright (c) 2023; * Licensed GPL-3.0 */
(function($) {
$(function() {
$('input#_iwo_price_lowest_message_settings')
.on('change', function() {
if ($(this).is(':checked')) {
$(this)
.closest('tbody')
.find('.iworks_omnibus_messages_settings_field')
.closest('tr')
.show();
} else {
$(this)
.closest('tbody')
.find('.iworks_omnibus_messages_settings_field')
.closest('tr')
.hide();
}
})
.trigger('change');
});
})(jQuery);

View File

@@ -0,0 +1,4 @@
/*! Omnibus — show the lowest price - v2.3.9
* http://iworks.pl/
* Copyright (c) 2023; * Licensed GPL-3.0 */
!function(a){a(function(){a("input#_iwo_price_lowest_message_settings").on("change",function(){a(this).is(":checked")?a(this).closest("tbody").find(".iworks_omnibus_messages_settings_field").closest("tr").show():a(this).closest("tbody").find(".iworks_omnibus_messages_settings_field").closest("tr").hide()}).trigger("change")})}(jQuery);

View File

@@ -0,0 +1,22 @@
/* global jQuery */
(function($) {
$(function() {
$('input#_iwo_price_lowest_message_settings')
.on('change', function() {
if ($(this).is(':checked')) {
$(this)
.closest('tbody')
.find('.iworks_omnibus_messages_settings_field')
.closest('tr')
.show();
} else {
$(this)
.closest('tbody')
.find('.iworks_omnibus_messages_settings_field')
.closest('tr')
.hide();
}
})
.trigger('change');
});
})(jQuery);

View File

@@ -0,0 +1,12 @@
<?php
/**
* Notice displayed in admin panel.
*/
?>
<div class="notice notice-error">
<h2><?php esc_html_e( 'Omnibus: installed version of WooCommerce is too low!', 'omnibus' ); ?></h2>
<?php
$content = __( 'The WooCommerce version you are using (%1$s) is too low, and our plugin cannot work with it. Please update WooCommerce to at least version %2$s for the Omnibus plugin to work properly.', 'omnibus' );
echo wpautop( wp_kses_post( sprintf( $content, $args['version-current'], $args['version-minimal'] ) ) );
?>
</div>