Uname:Linux server.rehabsharif.com 5.14.0-611.54.3.el9_7.x86_64 #1 SMP PREEMPT_DYNAMIC Thu May 7 16:31:24 EDT 2026 x86_64

Base Dir : /home/nobi37te/public_html

User : nobi37te


403WebShell
403Webshell
Server IP : 104.21.25.182  /  Your IP : 216.73.216.227
Web Server : Apache
System : Linux server.rehabsharif.com 5.14.0-611.54.3.el9_7.x86_64 #1 SMP PREEMPT_DYNAMIC Thu May 7 16:31:24 EDT 2026 x86_64
User : nobi37te ( 1003)
PHP Version : 8.2.33
Disable Function : exec,passthru,shell_exec,system
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : ON
Directory :  /home/nobi37te/public_html/wp-content/plugins/presto-player/src/admin/settings/components/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home/nobi37te/public_html/wp-content/plugins/presto-player/src/admin/settings/components/Fields.js
const { useSelect } = wp.data;

import TextControl from "./TextControl";
import SelectControl from "./SelectControl";
import ToggleControl from "./ToggleControl";
import CheckboxControl from "./CheckboxControl";
import ColorPicker from "./ColorPicker";
import CTA from "./CTA";
// import Media from "./Media";

export default ({ fields, optionName }) => {
  const allSettings = useSelect((select) => {
    return select("presto-player/settings").settings();
  });
  const settings = allSettings[`${prestoPlayer.prefix}_${optionName}`];

  // components map
  const components = {
    text: TextControl,
    password: TextControl,
    email: TextControl,
    select: SelectControl,
    toggle: ToggleControl,
    checkbox: CheckboxControl,
    color: ColorPicker,
    cta: CTA,
    // media: Media,
  };

  return (
    <div className="presto-flow">
      {fields.length &&
        fields.map((option, i) => {
          const TagName = components?.[option.type]
            ? components?.[option.type]
            : components.text;
          return option?.hidden ? (
            ""
          ) : (
            <TagName
              key={option.id}
              option={option}
              optionName={optionName}
              value={settings?.[option.id]}
            />
          );
        })}
    </div>
  );
};

Youez - 2016 - github.com/yon3zu
LinuXploit