PATH:
home
/
letacommog
/
broderie
/
wp-content
/
themes
/
Divi
/
includes
/
builder
/
module
<?php class ET_Builder_Module_Code extends ET_Builder_Module { function init() { $this->name = esc_html__( 'Code', 'et_builder' ); $this->plural = esc_html__( 'Codes', 'et_builder' ); $this->slug = 'et_pb_code'; $this->vb_support = 'on'; $this->use_raw_content = true; $this->settings_modal_toggles = array( 'general' => array( 'toggles' => array( 'main_content' => esc_html__( 'Text', 'et_builder' ), ), ), 'advanced' => array( 'toggles' => array( 'width' => array( 'title' => esc_html__( 'Sizing', 'et_builder' ), 'priority' => 65, ), ), ), ); $this->advanced_fields = array( 'borders' => array( 'default' => false, ), 'margin_padding' => array( 'css' => array( 'important' => array( 'custom_margin' ), // needed to overwrite last module margin-bottom styling ), ), 'text_shadow' => array( // Don't add text-shadow fields since they already are via font-options 'default' => false, ), 'box_shadow' => array( 'default' => false, ), 'fonts' => false, 'button' => false, ); $this->help_videos = array( array( 'id' => esc_html( 'dTY6-Cbr00A' ), 'name' => esc_html__( 'An introduction to the Code module', 'et_builder' ), ), ); // wptexturize is often incorrectly parsed single and double quotes // This disables wptexturize on this module add_filter( 'no_texturize_shortcodes', array( $this, 'disable_wptexturize' ) ); } function get_fields() { $fields = array( 'raw_content' => array( 'label' => esc_html__( 'Content', 'et_builder' ), 'type' => 'codemirror', 'mode' => 'html', 'option_category' => 'basic_option', 'description' => esc_html__( 'Here you can create the content that will be used within the module.', 'et_builder' ), 'is_fb_content' => true, 'toggle_slug' => 'main_content', ), ); return $fields; } function render( $attrs, $content = null, $render_slug ) { $video_background = $this->video_background(); $parallax_image_background = $this->get_parallax_image_background(); // Module classnames $this->add_classname( $this->get_text_orientation_classname() ); $output = sprintf( '<div%2$s class="%3$s"> %5$s %4$s <div class="et_pb_code_inner"> %1$s </div> <!-- .et_pb_code_inner --> </div> <!-- .et_pb_code -->', $this->fix_wptexturized_scripts( $this->content ), $this->module_id(), $this->module_classname( $render_slug ), $video_background, $parallax_image_background ); return $output; } } new ET_Builder_Module_Code;
[+]
..
[-] TeamMember.php
[edit]
[+]
type
[-] FullwidthPortfolio.php
[edit]
[-] BarCounters.php
[edit]
[-] Code.php
[edit]
[-] VideoSlider.php
[edit]
[-] FullwidthPostTitle.php
[edit]
[-] PostSlider.php
[edit]
[-] Gallery.php
[edit]
[-] CountdownTimer.php
[edit]
[-] MapItem.php
[edit]
[-] PricingTables.php
[edit]
[-] Image.php
[edit]
[-] BarCountersItem.php
[edit]
[-] Divider.php
[edit]
[-] VideoSliderItem.php
[edit]
[-] FilterablePortfolio.php
[edit]
[-] Map.php
[edit]
[-] Sidebar.php
[edit]
[-] Search.php
[edit]
[-] AccordionItem.php
[edit]
[-] Tabs.php
[edit]
[-] Video.php
[edit]
[-] Text.php
[edit]
[-] PostsNavigation.php
[edit]
[-] Slider.php
[edit]
[-] Testimonial.php
[edit]
[-] TabsItem.php
[edit]
[-] Blurb.php
[edit]
[-] FullwidthPostSlider.php
[edit]
[-] FullwidthMap.php
[edit]
[-] FullwidthSlider.php
[edit]
[-] FullwidthMenu.php
[edit]
[-] Portfolio.php
[edit]
[+]
settings
[-] SignupItem.php
[edit]
[-] PricingTablesItem.php
[edit]
[-] SocialMediaFollow.php
[edit]
[-] Toggle.php
[edit]
[+]
field
[-] SliderItem.php
[edit]
[-] CircleCounter.php
[edit]
[-] Blog.php
[edit]
[-] ContactForm.php
[edit]
[-] Audio.php
[edit]
[-] NumberCounter.php
[edit]
[-] PostTitle.php
[edit]
[-] SocialMediaFollowItem.php
[edit]
[-] FullwidthImage.php
[edit]
[-] Button.php
[edit]
[-] Comments.php
[edit]
[+]
helpers
[-] Signup.php
[edit]
[-] Cta.php
[edit]
[-] FullwidthHeader.php
[edit]
[-] FullwidthCode.php
[edit]
[-] Login.php
[edit]
[-] ContactFormItem.php
[edit]
[-] Shop.php
[edit]
[-] Accordion.php
[edit]