gde_profile_text
The Google Doc Embedder gde profile text function.
Description
gde_profile_text( $option, $field, (string) $class = '', (string) $size = '', (bool) $enabled = true );
Parameters (5)
- 0. $option
- The option.
- 1. $field
- The field.
- 2. $class — Optional. (string) =>
''
- The class.
- 3. $size — Optional. (string) =>
''
- The size.
- 4. $enabled — Optional. (bool) =>
true
- The enabled.
Usage
if ( !function_exists( 'gde_profile_text' ) ) { require_once ABSPATH . PLUGINDIR . 'google-doc-embedder/options.php'; } // The option. $option = null; // The field. $field = null; // The class. $class = ''; // The size. $size = ''; // The enabled. $enabled = true; // NOTICE! Understand what this does before running. $result = gde_profile_text($option, $field, $class, $size, $enabled);
Defined (1)
The function is defined in the following location(s).
- /options.php
- function gde_profile_text( $option, $field, $class = '', $size = '', $enabled = true ) {
- echo '<input type="text" id="'.$field.'" name="'.$field.'" value="'.$option.'"';
- if ( ! empty( $class ) ) {
- echo ' class="'.$class.'"';
- }
- if ( ! empty( $size ) ) {
- echo ' size="'.$size.'"';
- }
- if ( $enabled === false ) {
- echo ' disabled="disabled"';
- echo ' style="color:#aaa;background-color:#eee;"';
- }
- echo ">";
- }