/var/www/vhosts/ihelp.ro/ajutam.ro/wp-content/plugins/trx_utils/widgets/qrcode
NameSizeModeActions
jquery.qrcode-0.6.0.min.js206220644editdlrm
qrcode-admin.css8010644editdlrm
qrcode-admin.min.css4600644editdlrm
qrcode.admin.js46870644editdlrm
qrcode.php197480644editdlrm
Edit: /var/www/vhosts/ihelp.ro/ajutam.ro/wp-content/plugins/trx_utils/widgets/qrcode/qrcode.php (19748B)
'widget_qrcode', 'description' => esc_html__('Generate QRCode with your personal data or with any text (links)', 'trx_utils')); /* Widget control settings. */ $control_ops = array('width' => 200, 'height' => 250, 'id_base' => 'charity_is_hope_widget_qrcode'); /* Create the widget. */ parent::__construct( 'charity_is_hope_widget_qrcode', esc_html__('Charity Is Hope - QRCode generator', 'trx_utils'), $widget_ops, $control_ops ); // Load required styles and scripts for the Widgets Page if (charity_is_hope_check_admin_page('widgets.php')) add_action("admin_enqueue_scripts", array($this, 'load_scripts')); } /** * How to display the widget on the screen. */ function widget($args, $instance) { extract($args); /* Our variables from the widget settings. */ $title = apply_filters('widget_title', $instance['title']); $ulname = $instance['ulname']; $ufname = $instance['ufname']; $ucompany = $instance['ucompany']; $uphone = $instance['uphone']; //$ufax = $instance['ufax']; $uaddr = $instance['uaddr']; $ucity = $instance['ucity']; $upostcode = $instance['upostcode']; $ucountry = $instance['ucountry']; $uemail = $instance['uemail']; $usite = $instance['usite']; //$unote = $instance['unote']; //$ucats = $instance['ucats']; $urev = $instance['urev']; $uid = $instance['uid']; $show_personal = $instance['show_personal']; $show_what = $instance['show_what']; $text = $instance['text']; $width = $instance['width']; $color = $instance['color']; $bg = $instance['bg']; $image = $instance['image']; $output = ''; if ($title) $output .= ($before_title) . ($title) . ($after_title); $output .= '
'; if ($show_personal) $output .= '
' . ($show_what==1 ? '

' . esc_html__('Name:', 'trx_utils') . ' ' . ($ufname) . ' ' . ($ulname) . '

' . ($ucompany ? '

' . esc_html__('Company:', 'trx_utils') . ' ' . ($ucompany) . '

' : '') . ($uphone ? '

' . esc_html__('Phone:', 'trx_utils') . ' ' . ($uphone) . '

' : '') . ($uemail ? '

' . esc_html__('E-mail:', 'trx_utils') . ' ' . ($uemail) . '

' : '') . ($usite ? '

' . esc_html__('Site:', 'trx_utils') . ' ' . ($usite) . '

' : '') : $text) . '
'; $output .= '
'; /* Before widget (defined by themes). */ charity_is_hope_show_layout($before_widget); charity_is_hope_show_layout($output); /* After widget (defined by themes). */ charity_is_hope_show_layout($after_widget); } /** * Update the widget settings. */ function update($new_instance, $old_instance) { $instance = $old_instance; /* Strip tags for title and comments count to remove HTML (important for text inputs). */ $instance['title'] = strip_tags($new_instance['title']); $instance['ulname'] = strip_tags($new_instance['ulname']); $instance['ufname'] = strip_tags($new_instance['ufname']); $instance['utitle'] = strip_tags($new_instance['utitle']); $instance['ucompany'] = strip_tags($new_instance['ucompany']); $instance['uphone'] = strip_tags($new_instance['uphone']); $instance['uaddr'] = strip_tags($new_instance['uaddr']); $instance['ucity'] = strip_tags($new_instance['ucity']); $instance['upostcode'] = strip_tags($new_instance['upostcode']); $instance['ucountry'] = strip_tags($new_instance['ucountry']); $instance['uemail'] = strip_tags($new_instance['uemail']); $instance['usite'] = strip_tags($new_instance['usite']); $instance['uid'] = strip_tags($new_instance['uid']); $instance['urev'] = date('Y-m-d'); $instance['show_personal'] = isset($new_instance['show_personal']) ? 1 : 0; $instance['show_what'] = $new_instance['show_what']; $instance['auto_draw'] = isset($new_instance['auto_draw']) ? 1 : 0; $instance['text'] = strip_tags($new_instance['text']); $instance['width'] = strip_tags($new_instance['width']); $instance['color'] = strip_tags($new_instance['color']); $instance['bg'] = strip_tags($new_instance['bg']); $instance['image'] = strip_tags($new_instance['image']); return $instance; } /** * Displays the widget settings controls on the widget panel. * Make use of the get_field_id() and get_field_name() function * when creating your form elements. This handles the confusing stuff. */ function form($instance) { /* Set up some default widget settings. */ $address = explode(',', charity_is_hope_get_theme_option('user_address')); $defaults = array( 'title' => '', 'description' => esc_html__('QR Code Generator (for your vcard)', 'trx_utils'), 'ulname' => '', 'ufname' => '', 'ucompany' => '', 'uaddr' => '', 'ucity' => '', 'upostcode' => '', 'ucountry' => '', 'uemail' => '', 'usite' => '', 'uphone' => '', 'uid' => md5(microtime()), 'urev' => date('Y-m-d'), 'image' => '', 'show_personal' => 0, 'show_what' => 1, 'auto_draw' => 0, 'width' => 160, 'text' => '', 'color' => '#000000', 'bg' => '' ); $instance = wp_parse_args((array) $instance, $defaults); ?>


/> />

/>

/>

  • ' . esc_html__('Company:', 'trx_utils') . ' ' . ($instance['ucompany']) . '' : '') . ($instance['uphone'] ? '
  • ' . esc_html__('Phone:', 'trx_utils') . ' ' . ($instance['uphone']) . '
  • ' : '') . ($instance['uemail'] ? '
  • ' . esc_html__('E-mail:', 'trx_utils') . ' ' . '' . ($instance['uemail']) . '
  • ' : '') . ($instance['usite'] ? '
  • ' . esc_html__('Site:', 'trx_utils') . ' ' . '' . ($instance['usite']) . '
  • ' : ''); ?>