Current Path: > home > transcarter > > www > wp-content > themes > bridge > framework > lib
Operation : Linux host59.registrar-servers.com 4.18.0-513.18.1.lve.2.el8.x86_64 #1 SMP Sat Mar 30 15:36:11 UTC 2024 x86_64 Software : Apache Server IP : 198.54.126.42 | Your IP: 216.73.216.135 Domains : 1034 Domain(s) Permission : [ 0755 ]
Name | Type | Size | Last Modified | Actions |
---|---|---|---|---|
qode.icons | Directory | - | - | |
google-fonts.php | File | 796718 bytes | March 10 2023 20:42:10. | |
qode.framework.php | File | 11664 bytes | March 10 2023 20:42:10. | |
qode.functions.php | File | 30520 bytes | March 10 2023 20:42:10. | |
qode.layout.dashboard.php | File | 57365 bytes | March 10 2023 20:42:10. | |
qode.layout.tax.php | File | 15796 bytes | March 10 2023 20:42:10. | |
qode.layout.user.php | File | 5639 bytes | March 10 2023 20:42:10. | |
qode.layout1.php | File | 52286 bytes | March 10 2023 20:42:10. | |
qode.layout2.php | File | 53358 bytes | March 10 2023 20:42:10. | |
qode.layout3.php | File | 95669 bytes | March 10 2023 20:42:10. | |
qode.optionsapi.php | File | 37079 bytes | March 10 2023 20:42:10. |
<?php /* Class: BridgeQodeUserField A class that initializes BridgeQode User Field */ class BridgeQodeUserField implements iBridgeQodeRender { private $type; private $name; private $label; private $description; private $options = array(); private $args = array(); function __construct( $type, $name, $label = "", $description = "", $options = array(), $args = array() ) { $this->type = $type; $this->name = $name; $this->label = $label; $this->description = $description; $this->options = $options; $this->args = $args; add_filter( 'bridge_qode_user_fields', array( $this, 'addFieldForEditSave' ) ); } public function addFieldForEditSave( $names ) { $names[] = $this->name; return $names; } public function render( $factory ) { $factory->render( $this->type, $this->name, $this->label, $this->description, $this->options, $this->args ); } } abstract class BridgeQodeUserFieldType { abstract public function render( $name, $label = "", $description = "", $options = array(), $args = array() ); } class BridgeQodeUserFieldText extends BridgeQodeUserFieldType { public function render( $name, $label = "", $description = "", $options = array(), $args = array() ) { $value = get_user_meta( $_GET['user_id'], $name, true ); ?> <tr> <th> <label for="<?php echo esc_html( $name ); ?>"><?php echo esc_html( $label ); ?></label> </th> <td> <input type="text" name="<?php echo esc_html( $name ); ?>" id="<?php echo esc_html( $name ); ?>" value="<?php echo esc_attr( $value ) ? esc_attr( $value ) : ''; ?>" class="regular-text"> <p class="description"><?php echo esc_html( $description ); ?></p> </td> </tr> <?php } } class BridgeQodeUserFieldSelect extends BridgeQodeTaxonomyFieldType { public function render( $name, $label = "", $description = "", $options = array(), $args = array() ) { $selected_value = get_user_meta( $_GET['user_id'], $name, true ); ?> <tr> <th> <label for="<?php echo esc_attr( $name ); ?>"><?php echo esc_html( $label ); ?></label> </th> <td> <select name="<?php echo esc_attr( $name ); ?>" id="<?php echo esc_attr( $name ); ?>"> <option <?php if ( $selected_value == "" ) { echo "selected='selected'"; } ?> value=""></option> <?php foreach ( $options as $key => $value ) { if ( $key == "-1" ) { $key = ""; } ?> <option <?php if ( $selected_value == $key ) { echo "selected='selected'"; } ?> value="<?php echo esc_attr( $key ); ?>"><?php echo esc_html( $value ); ?></option> <?php } ?> </select> <p class="description"><?php echo esc_html( $description ); ?></p> </td> </tr> <?php } } class BridgeQodeUserFieldImage extends BridgeQodeUserFieldType { public function render( $name, $label = "", $description = "", $options = array(), $args = array() ) { $value = get_user_meta( $_GET['user_id'], $name, true ); ?> <tr> <th> <label for="<?php echo esc_html( $name ); ?>"><?php echo esc_html( $label ); ?></label> <p class="description"><?php echo esc_html( $description ); ?></p> </th> <td class="qodef-user-image-field"> <input type="hidden" name="<?php echo esc_html( $name ); ?>" id="<?php echo esc_html( $name ); ?>" class="qodef-user-custom-media-url" value="<?php echo esc_attr($value)?>"> <div class="qodef-user-image-wrapper"> <?php if ( $value ) { ?> <?php echo wp_get_attachment_image( $value, 'thumbnail' ); ?> <?php } ?> </div> <p> <input type="button" class="button button-secondary qodef-user-media-add" name="qodef-user-media-add" value="<?php esc_attr_e( 'Add Image', 'bridge' ); ?>"/> <input data-userid="<?php echo esc_html( $_GET['user_id'] ); ?>" type="button" class="button button-secondary qodef-user-media-remove" name="qodef-user-media-remove" value="<?php esc_attr_e( 'Remove Image', 'bridge' ); ?>"/> </p> </td> </tr> <?php } } /* Class: BridgeQodeUserGroup A class that initializes Qode User Group */ class BridgeQodeUserGroup implements iBridgeQodeLayoutNode, iBridgeQodeRender { public $children; public $title; public $description; function __construct($title_label="",$description="") { $this->children = array(); $this->title = $title_label; $this->description = $description; } public function hasChidren() { return (count($this->children) > 0)?true:false; } public function getChild($key) { return $this->children[$key]; } public function addChild($key, $value) { $this->children[$key] = $value; } public function render($factory) { ?> <h2><?php echo esc_html($this->title); ?></h2> <table class="form-table"> <tbody> <?php foreach ($this->children as $child) { $this->renderChild($child, $factory); } ?> </tbody> </table> <?php } public function renderChild(iBridgeQodeRender $child, $factory) { $child->render($factory); } } class BridgeQodeUserFieldFactory { public function render( $field_type, $name, $label = "", $description = "", $options = array(), $args = array(), $hidden = false ) { switch ( strtolower( $field_type ) ) { case 'text': $field = new BridgeQodeUserFieldText(); $field->render( $name, $label, $description, $options, $args, $hidden ); break; case 'image': $field = new BridgeQodeUserFieldImage(); $field->render( $name, $label, $description, $options, $args, $hidden ); break; case 'select': $field = new BridgeQodeUserFieldSelect(); $field->render( $name, $label, $description, $options, $args, $hidden ); break; default: break; } } }
SILENT KILLER Tool