HEX
Server: LiteSpeed
System: Linux eko108.isimtescil.net 4.18.0-477.21.1.lve.1.el8.x86_64 #1 SMP Tue Sep 5 23:08:35 UTC 2023 x86_64
User: uyarreklamcomtr (11202)
PHP: 7.4.33
Disabled: opcache_get_status
Upload Files
File: /var/www/vhosts/uyarreklam.com.tr/httpdocs/number.tar
index.asset.php000064400000000137151547617300007514 0ustar00<?php return array('dependencies' => array(), 'version' => '43661251b85360bc80cf7c7cab3cc7ba');index.js000064400000004143151547617300006224 0ustar00(()=>{"use strict";var e={12267:e=>{e.exports=function(e,r,t,n){e=(e+"").replace(/[^0-9+\-Ee.]/g,"");var i=isFinite(+e)?+e:0,o=isFinite(+r)?Math.abs(r):0,a=void 0===n?",":n,u=void 0===t?".":t,l="";return l=(o?function(e,r){if(-1===(""+e).indexOf("e"))return+(Math.round(e+"e+"+r)+"e-"+r);var t=(""+e).split("e"),n="";return+t[1]+r>0&&(n="+"),(+(Math.round(+t[0]+"e"+n+(+t[1]+r))+"e-"+r)).toFixed(r)}(i,o).toString():""+Math.round(i)).split("."),l[0].length>3&&(l[0]=l[0].replace(/\B(?=(?:\d{3})+(?!\d))/g,a)),(l[1]||"").length<o&&(l[1]=l[1]||"",l[1]+=new Array(o-l[1].length+1).join("0")),l.join(u)}}},r={};function t(n){var i=r[n];if(void 0!==i)return i.exports;var o=r[n]={exports:{}};return e[n](o,o.exports,t),o.exports}t.n=e=>{var r=e&&e.__esModule?()=>e.default:()=>e;return t.d(r,{a:r}),r},t.d=(e,r)=>{for(var n in r)t.o(r,n)&&!t.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:r[n]})},t.o=(e,r)=>Object.prototype.hasOwnProperty.call(e,r),t.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var n={};(()=>{t.r(n),t.d(n,{calculateDelta:()=>a,formatValue:()=>o,numberFormat:()=>i,parseNumber:()=>u});var e=t(12267),r=t.n(e);function i(e,t){let{precision:n=null,decimalSeparator:i=".",thousandSeparator:o=","}=e;if(void 0===t)return"";if("number"!=typeof t&&(t=parseFloat(t)),isNaN(t))return"";let a=null===n?NaN:Number(n);if(isNaN(a)){const[,e]=t.toString().split(".");a=e?e.length:0}return r()(t,a,i,o)}function o(e,r,t){if(!Number.isFinite(t))return null;switch(r){case"average":return Math.round(t);case"number":return i({...e,precision:null},t)}return null}function a(e,r){return Number.isFinite(e)&&Number.isFinite(r)?0===r?0:Math.round((e-r)/r*100):null}function u(e,r){let{precision:t=null,decimalSeparator:n=".",thousandSeparator:i=","}=e;if("string"!=typeof r||""===r)return"";let o=null===t?NaN:Number(t);if(isNaN(o)){const[,e]=r.split(n);o=e?e.length:0}return Number.parseFloat(r.replace(new RegExp(`\\${i}`,"g"),"").replace(new RegExp(`\\${n}`,"g"),".")).toFixed(o)}})(),(window.wc=window.wc||{}).number=n})();number.php000064400000001330151555011470006546 0ustar00<?php if ( ! defined( 'ABSPATH' ) ) { die; } // Cannot access pages directly.
/**
 *
 * Field: Number
 *
 * @since 1.0.0
 * @version 1.0.0
 *
 */
class CSFramework_Option_number extends CSFramework_Options {

  public function __construct( $field, $value = '', $unique = '' ) {
    parent::__construct( $field, $value, $unique );
  }

  public function output() {

    echo $this->element_before();
    $unit = ( isset( $this->field['unit'] ) ) ? '<em>'. $this->field['unit'] .'</em>' : '';
    echo '<input type="number" name="'. $this->element_name() .'" value="'. $this->element_value().'"'. $this->element_class() . $this->element_attributes() .'/>'. $unit;
    echo $this->element_after();

  }

}