403Webshell
Server IP : 193.146.211.90  /  Your IP : 10.85.6.55
Web Server : Apache
System : Linux wordpress-gti-69dcdb54f7-n4wdq 6.11.8-arch1-2 #1 SMP PREEMPT_DYNAMIC Fri, 15 Nov 2024 15:35:07 +0000 x86_64
User : 1001 ( 1001)
PHP Version : 8.2.25
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : OFF  |  Perl : ON  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /bitnami/wordpress/wp-content/plugins/presto-player/src/admin/blocks/shared/audioPresets/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /bitnami/wordpress/wp-content/plugins/presto-player/src/admin/blocks/shared/audioPresets/Style.js
/**
 * WordPress dependencies
 */
import { __ } from "@wordpress/i18n";
import {
  ToggleControl,
  BaseControl,
  RangeControl,
  Flex,
} from "@wordpress/components";
import ColorPopup from "../components/ColorPopup";
import { css, jsx } from "@emotion/core";

export default function ({ state, updateState, className }) {
  return (
    <div className={className}>
      <BaseControl>
        <h3>{__("Style", "presto-player")}</h3>
      </BaseControl>
      <BaseControl>
        <RangeControl
          label={__("Round Corners", "presto-player")}
          help={__("Player border radius size.", "presto-player")}
          value={state?.border_radius || 0}
          onChange={(border_radius) => updateState({ border_radius })}
          min={0}
          max={25}
          css={css`
            padding-left: 4px;
            .components-range-control__root {
              align-items: flex-start;
            }
          `}
        />
      </BaseControl>

      <BaseControl>
        <Flex>
          <BaseControl.VisualLabel>
            <p>{__("Background Color", "presto-player")}</p>
          </BaseControl.VisualLabel>

          <ColorPopup
            color={state?.background_color || "#000000"}
            setColor={(value) => {
              updateState({ background_color: value.hex });
            }}
          />
        </Flex>
      </BaseControl>
      <BaseControl>
        <Flex>
          <BaseControl.VisualLabel>
            <p>{__("Control Color", "presto-player")}</p>
          </BaseControl.VisualLabel>

          <ColorPopup
            color={state?.control_color || "#000000"}
            setColor={(value) => {
              updateState({ control_color: value.hex });
            }}
          />
        </Flex>
      </BaseControl>
    </div>
  );
}

Youez - 2016 - github.com/yon3zu
LinuXploit