Submit
Path:
~
/
home
/
getwphos
/
public_html
/
almajd
/
wp-content
/
themes
/
modarch
/
framework
/
configs
/
File Content:
metaboxes.php
<?php if ( ! defined( 'ABSPATH' ) ) { exit; // Exit if accessed directly } if(!function_exists('modarch_setup_metaboxes')){ function modarch_setup_metaboxes(){ if(!function_exists('lastudio_kit_post_meta')){ return; } lastudio_kit_post_meta()->add_options( array ( 'id' => 'modarch-portfolio-settings', 'title' => esc_html__( 'Portfolio Settings', 'modarch' ), 'page' => array( 'la_portfolio' ), 'context' => 'normal', 'priority' => 'high', 'callback_args' => false, 'fields' => array( '_la_bg' => array( 'type' => 'media', 'title' => esc_html__( 'Background Image', 'modarch' ), 'description' => esc_html__( 'This option will work on some cases.', 'modarch' ), 'library_type' => 'image', 'multi_upload' => false, 'value_format' => 'id', 'upload_button_text' => esc_html__( 'Set Image', 'modarch' ), ), '_pf_gallery' => array( 'type' => 'media', 'title' => esc_html__( 'Image Gallery', 'modarch' ), 'description' => esc_html__( 'Choose image(s) for the gallery. This setting is used for your gallery.', 'modarch' ), 'library_type' => 'image', 'upload_button_text' => esc_html__( 'Set Gallery Images', 'modarch' ), ), '_pf_description' => array( 'type' => 'wysiwyg', 'title' => esc_html__( 'Short Description', 'modarch' ), 'rows' => 5 ), '_pf_client' => array( 'type' => 'text', 'title' => esc_html__( 'Client', 'modarch' ), ), '_pf_date' => array( 'type' => 'text', 'title' => esc_html__( 'Date', 'modarch' ), ), '_pf_location' => array( 'type' => 'text', 'title' => esc_html__( 'Location', 'modarch' ), ), '_pf_designer' => array( 'type' => 'text', 'title' => esc_html__( 'Designer', 'modarch' ), ), '_pf_awards' => array( 'type' => 'text', 'title' => esc_html__( 'Awards', 'modarch' ), ), '_pf_link1' => array( 'type' => 'text', 'title' => esc_html__( 'Demo Link 1', 'modarch' ), ), '_pf_link2' => array( 'type' => 'text', 'title' => esc_html__( 'Demo Link 2', 'modarch' ), ), ), ) ); lastudio_kit_post_meta()->add_options( array ( 'id' => 'modarch-post-settings', 'title' => esc_html__( 'Post Settings', 'modarch' ), 'page' => array( 'post' ), 'context' => 'normal', 'priority' => 'high', 'callback_args' => false, 'fields' => array( '_la_bg' => array( 'type' => 'media', 'title' => esc_html__( 'Background Image', 'modarch' ), 'description' => esc_html__( 'This option will work on some cases.', 'modarch' ), 'library_type' => 'image', 'multi_upload' => false, 'value_format' => 'id', 'upload_button_text' => esc_html__( 'Set Image', 'modarch' ), ), 'post_formats' => array( 'type' => 'component-tab-horizontal', 'ignore_save' => true, ), 'gallery_tab' => array( 'type' => 'settings', 'ignore_save' => true, 'parent' => 'post_formats', 'title' => esc_html__( 'Gallery', 'modarch' ), ), '_la_gallery_images' => array( 'type' => 'media', 'parent' => 'gallery_tab', 'title' => esc_html__( 'Image Gallery', 'modarch' ), 'description' => esc_html__( 'Choose image(s) for the gallery. This setting is used for your gallery post formats.', 'modarch' ), 'library_type' => 'image', 'multi_upload' => true, 'value_format' => 'id', 'upload_button_text' => esc_html__( 'Set Gallery Images', 'modarch' ), ), 'link_tab' => array( 'type' => 'settings', 'ignore_save' => true, 'parent' => 'post_formats', 'title' => esc_html__( 'Link', 'modarch' ), ), '_la_link_text' => array( 'type' => 'text', 'parent' => 'link_tab', 'title' => esc_html__( 'Link Text', 'modarch' ), 'description' => esc_html__( 'Enter your text. This setting is used for your link post formats.', 'modarch' ), ), '_la_link' => array( 'type' => 'text', 'parent' => 'link_tab', 'title' => esc_html__( 'Link URL', 'modarch' ), 'description' => esc_html__( 'Enter your external url. This setting is used for your link post formats.', 'modarch' ), ), '_la_link_target' => array( 'type' => 'select', 'parent' => 'link_tab', 'title' => esc_html__( 'Link Target', 'modarch' ), 'description' => esc_html__( 'Choose your target for the url. This setting is used for your link post formats.', 'modarch' ), 'value' => '_blank', 'options' => array( '_blank' => esc_html__('Blank', 'modarch'), '_self' => esc_html__('Self', 'modarch'), ), ), 'quote_tab' => array( 'type' => 'settings', 'ignore_save' => true, 'parent' => 'post_formats', 'title' => esc_html__( 'Quote', 'modarch' ), ), '_la_quote_text' => array( 'type' => 'textarea', 'parent' => 'quote_tab', 'title' => esc_html__( 'Quote', 'modarch' ), 'description' => esc_html__( 'Enter your quote. This setting is used for your quote post formats.', 'modarch' ), ), '_la_quote_cite' => array( 'type' => 'text', 'parent' => 'quote_tab', 'title' => esc_html__( 'Cite', 'modarch' ), 'description' => esc_html__( 'Enter the quote source. This setting is used for your quote post formats.', 'modarch' ), ), '_la_quote_color' => array( 'type' => 'colorpicker', 'parent' => 'quote_tab', 'title' => esc_html__( 'Text Color', 'modarch' ), ), '_la_quote_bg' => array( 'type' => 'colorpicker', 'parent' => 'quote_tab', 'title' => esc_html__( 'Background Color', 'modarch' ), ), 'video_audio_tab' => array( 'type' => 'settings', 'ignore_save' => true, 'parent' => 'post_formats', 'title' => esc_html__( 'Video & Audio', 'modarch' ), ), '_la_video_link' => array( 'type' => 'text', 'parent' => 'video_audio_tab', 'title' => esc_html__( 'Link Video URL', 'modarch' ), 'description' => esc_html__( 'Insert Youtube or Vimeo video link', 'modarch' ), ), ), ) ); lastudio_kit_post_meta()->add_options( array( 'id' => 'modarch-product-badge-settings', 'title' => esc_html__( 'Badge Settings', 'modarch' ), 'page' => array( 'product' ), 'context' => 'normal', 'priority' => 'high', 'callback_args' => false, 'fields' => array( '_la_product_badges' => array( 'id' => '_la_product_badges', 'type' => 'repeater', 'title_field' => 'text', 'title' => esc_html__( 'Badges', 'modarch' ), 'fields' => array( [ 'id' => 'text', 'name' => 'text', 'type' => 'text', 'label' => esc_html__( 'Badge text', 'modarch' ), ], [ 'id' => 'color', 'name' => 'color', 'type' => 'colorpicker', 'label' => esc_html__( 'Text Color', 'modarch' ), ], [ 'id' => 'bg', 'name' => 'bg', 'type' => 'colorpicker', 'label' => esc_html__( 'Background Color', 'modarch' ), ], [ 'id' => 'el_class', 'name' => 'el_class', 'type' => 'text', 'label' => esc_html__( 'CSS Class', 'modarch' ), ] ) ), ) ) ); } } add_action( 'after_setup_theme', 'modarch_setup_metaboxes', 6 );
Edit
Rename
Chmod
Delete
FILE
FOLDER
Name
Size
Permission
Action
metaboxes.php
8938 bytes
0644
options.php
35283 bytes
0644
N4ST4R_ID | Naxtarrr