Spamworldpro Mini Shell
Spamworldpro


Server : Apache
System : Linux server2.corals.io 4.18.0-348.2.1.el8_5.x86_64 #1 SMP Mon Nov 15 09:17:08 EST 2021 x86_64
User : corals ( 1002)
PHP Version : 7.4.33
Disable Function : exec,passthru,shell_exec,system
Directory :  /home/corals/old/app/code/Soon/CsBlock/etc/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : /home/corals/old/app/code/Soon/CsBlock/etc/config.xml
<?xml version="1.0"?>
<!--
/**
 * @license http://opensource.org/licenses/osl-3.0.php  Open Software License (OSL 3.0)
 * @author Hervé Guétin <[email protected]> <@herveguetin>
 * @copyright Copyright (c) 2017 Agence Soon (http://www.agence-soon.fr)
 */
-->
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
        xsi:noNamespaceSchemaLocation="urn:magento:module:Magento_Store:etc/config.xsd">
    <default>
        <soon_csblock>
            <block_types>

                <!--
                    Each block type must have its own code. Here it is "sample".
                -->
                <sample>

                    <!-- Shall this content type be available in admin form? -->
                    <active>1</active>

                    <!-- The label of the content type that is shown in the "Type" dropdown in admin form -->
                    <label>Sample Block Type</label>

                    <!--
                        Managing rendering on the frontend.
                        This config mimics the <block> directive from layout.
                        So, the example below is like doing:
                        <block
                            type="\Soon\CsBlock\Block\Renderer\Sample"
                            name="ANONYMOUS_GENERATED_ON_THE_FLY"
                            template="Soon_CsBlock::renderer/sample.phtml"
                        />
                    -->
                    <frontend_renderer>
                        <class>Soon\CsBlock\Block\Renderer\Sample</class>
                        <template>Soon_CsBlock::renderer/sample.phtml</template>
                    </frontend_renderer>

                    <!-- All the available fields in the admin form -->
                    <fields>
                        <text>

                            <!-- The field label -->
                            <label>Some text input</label>

                            <!-- An optional note to display below the input -->
                            <note>Here is an important note</note>

                            <!--
                                The input type.
                                This can be:
                                . any element from the \Magento\Framework\Data\Form\Element\ namespace
                                . some custom type that is declared in the \Soon\CsBlock\Model\InputType\Builder\BuilderPool.
                            -->
                            <field_type>text</field_type>
                        </text>

                        <image>
                            <label>Image</label>

                            <!--
                                Here we are using a custom type.
                                @see \Soon\CsBlock\Model\InputType\InputTypePool in config.xml
                            -->
                            <field_type>media</field_type>
                        </image>

                        <link>
                            <label>Link Url</label>

                            <!-- This uses the \Magento\Framework\Data\Form\Element\Link element -->
                            <field_type>link</field_type>

                            <!--
                                We can pass any additional data to the element in the <element_data>.
                            -->
                            <element_data>

                                <!-- This is like doing
                                    setData('value', 'http://www.test.com')
                                    on \Magento\Framework\Data\Form\Element\Link
                                -->
                                <value>http://www.test.com</value>
                            </element_data>
                        </link>

                        <select>
                            <label>Some Select</label>
                            <field_type>select</field_type>
                            <element_data>

                                <!--
                                    Here, we need some kind of a builder to convert the <options>
                                    to an actual $options array that Magento can use to populate
                                    the select.
                                    This builder is declared in \Soon\CsBlock\Model\InputType\Builder\BuilderPool.
                                    @see Soon/CsBlock/etc/di.xml
                                -->
                                <options>
                                    <first_option>
                                        <value>1</value>
                                        <label>First Option</label>
                                    </first_option>
                                    <second_option>
                                        <value>2</value>
                                        <label>Second Option</label>
                                    </second_option>
                                </options>
                            </element_data>
                        </select>

                        <multiselect>
                            <label>Some MultiSelect</label>
                            <field_type>multiselect</field_type>
                            <element_data>
                                <values>
                                    <first_value>
                                        <value>1</value>
                                        <label>First Multiselect Option</label>
                                    </first_value>
                                    <second_value>
                                        <value>2</value>
                                        <label>Second Multiselect Option</label>
                                    </second_value>
                                </values>
                            </element_data>
                        </multiselect>

                        <textarea>
                            <label>Some Textarea</label>
                            <field_type>textarea</field_type>

                            <!-- Yes, all directives are automatically converted! -->
                            <note>Please use {{}} directives for links</note>
                            <element_data>
                                <value>Lorem Ipsum</value>
                            </element_data>
                        </textarea>

                        <editor>
                            <label>Some Editor</label>

                            <!--
                                Yes, you can also use the wysiwyg editor!
                                It also has a builder that is declared in the
                                \Soon\CsBlock\Model\InputType\Builder\BuilderPool:
                                \Soon\CsBlock\Model\InputType\Builder\Editor
                            -->
                            <field_type>editor</field_type>
                        </editor>

                        <note>
                            <label>Some Note</label>

                            <!-- This uses the \Magento\Framework\Data\Form\Element\Note element -->
                            <field_type>note</field_type>
                            <element_data>
                                <text>Lorem Ipsum for a note</text>
                            </element_data>
                        </note>
                    </fields>
                </sample>
            </block_types>
        </soon_csblock>
    </default>
</config>

Spamworldpro Mini