当前位置: 首页>>代码示例>>PHP>>正文


PHP WC_Admin_Settings::get_field_description方法代码示例

本文整理汇总了PHP中WC_Admin_Settings::get_field_description方法的典型用法代码示例。如果您正苦于以下问题:PHP WC_Admin_Settings::get_field_description方法的具体用法?PHP WC_Admin_Settings::get_field_description怎么用?PHP WC_Admin_Settings::get_field_description使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在WC_Admin_Settings的用法示例。


在下文中一共展示了WC_Admin_Settings::get_field_description方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: wc_autoship_import_muenster_file_settings_field

 function wc_autoship_import_muenster_file_settings_field($value)
 {
     $vars = array('value' => $value, 'description' => WC_Admin_Settings::get_field_description($value), 'frequency_options' => get_option($value['id']));
     $relative_path = 'admin/wc-settings/wc-autoship/import-muenster-file';
     wc_autoship_import_muenster_include_plugin_template($relative_path, $vars);
 }
开发者ID:jonrules,项目名称:woocommerce-autoship-import-muenster,代码行数:6,代码来源:woocommerce-autoship-import-muenster.php

示例2: admin_wc_memberships_groups_button

    /**
     * Output button type settings field
     *
     * @since 1.0.0
     * @param array $value
     */
    public function admin_wc_memberships_groups_button($value)
    {
        // Custom attribute handling
        $custom_attributes = array();
        if (!empty($value['custom_attributes']) && is_array($value['custom_attributes'])) {
            foreach ($value['custom_attributes'] as $attribute => $attribute_value) {
                $custom_attributes[] = esc_attr($attribute) . '="' . esc_attr($attribute_value) . '"';
            }
        }
        // Description handling
        $field_description = WC_Admin_Settings::get_field_description($value);
        ?>
<tr valign="top">
			<th scope="row" class="titledesc">
				<label for="<?php 
        echo esc_attr($value['id']);
        ?>
"><?php 
        echo esc_html($value['title']);
        ?>
</label>
				<?php 
        echo $field_description['tooltip_html'];
        ?>
			</th>
			<td class="forminp forminp-<?php 
        echo sanitize_title($value['type']);
        ?>
">
				<a
					id="<?php 
        echo esc_attr($value['id']);
        ?>
"
					type="<?php 
        echo esc_attr($value['type']);
        ?>
"
					style="<?php 
        echo esc_attr($value['css']);
        ?>
"
					value="<?php 
        echo esc_attr($value['default']);
        ?>
"
					class="<?php 
        echo esc_attr($value['class']);
        ?>
"
					<?php 
        echo implode(' ', $custom_attributes);
        ?>
					><?php 
        echo esc_html($value['default']);
        ?>
</a> <?php 
        echo $field_description['description'];
        ?>
			</td>
		</tr><?php 
    }
开发者ID:eugene-gromky-co,项目名称:mindfulnesssummit,代码行数:68,代码来源:class-wc-memberships-integration-groups.php

示例3: output_image_select

        /**
         * Output image select field
         */
        public function output_image_select($value)
        {
            // Define the defaults
            if (!isset($value['title_select'])) {
                $value['title_select'] = __('Select', 'woocommerce-delivery-notes');
            }
            if (!isset($value['title_remove'])) {
                $value['title_remove'] = __('Remove', 'woocommerce-delivery-notes');
            }
            // Get additional data fields
            $field = WC_Admin_Settings::get_field_description($value);
            $description = $field['description'];
            $tooltip_html = $field['tooltip_html'];
            $option_value = WC_Admin_Settings::get_option($value['id'], $value['default']);
            $class_name = 'wcdn-image-select';
            ?>
<tr valign="top">
				<th scope="row" class="titledesc">
					<label for="<?php 
            echo esc_attr($value['id']);
            ?>
"><?php 
            echo esc_html($value['title']);
            ?>
 <?php 
            echo $tooltip_html;
            ?>
</label>
				</th>
				<td class="forminp image_width_settings">
					<input name="<?php 
            echo esc_attr($value['id']);
            ?>
" id="<?php 
            echo esc_attr($value['id']);
            ?>
" type="hidden" value="<?php 
            echo esc_attr($option_value);
            ?>
" class="<?php 
            echo $class_name;
            ?>
-image-id <?php 
            echo esc_attr($value['class']);
            ?>
" />
					
					<div id="<?php 
            echo esc_attr($value['id']);
            ?>
_field" class="<?php 
            echo $class_name;
            ?>
-field <?php 
            echo esc_attr($value['class']);
            ?>
" style="<?php 
            echo esc_attr($value['css']);
            ?>
">
						<span id="<?php 
            echo esc_attr($value['id']);
            ?>
_spinner" class="<?php 
            echo $class_name;
            ?>
-spinner spinner"></span>
						<div id="<?php 
            echo esc_attr($value['id']);
            ?>
_attachment" class="<?php 
            echo $class_name;
            ?>
-attachment <?php 
            echo esc_attr($value['class']);
            ?>
 ">
							<div class="thumbnail">
								<div class="centered">
								<?php 
            if (!empty($option_value)) {
                ?>
									<?php 
                $this->create_image($option_value);
                ?>
								<?php 
            }
            ?>
								</div>
							</div>
						</div>
						
						<div id="<?php 
            echo esc_attr($value['id']);
            ?>
_buttons" class="<?php 
            echo $class_name;
//.........这里部分代码省略.........
开发者ID:sammykumar,项目名称:goodbeads,代码行数:101,代码来源:class-wcdn-settings.php

示例4: sysinfo_field

        public function sysinfo_field($value)
        {
            // $option_value = self::get_option( $value['id'], $value['default'] );
            $option_value = SS_System_Info::get_system_info();
            // Description handling
            $field_description = WC_Admin_Settings::get_field_description($value);
            extract($field_description);
            ?>
			<tr valign="top">
				<th scope="row" class="titledesc">
					<label for="<?php 
            echo esc_attr($value['id']);
            ?>
"><?php 
            echo esc_html($value['title']);
            ?>
</label>
					<?php 
            echo $tooltip_html;
            ?>
				</th>
				<td class="forminp forminp-<?php 
            echo sanitize_title($value['type']);
            ?>
">
					<?php 
            echo $description;
            ?>

					<textarea
						name="<?php 
            echo esc_attr($value['id']);
            ?>
"
						id="<?php 
            echo esc_attr($value['id']);
            ?>
"
						style="font-family: Menlo,Monaco,monospace;display: block; overflow: auto; white-space: pre; width: 800px; height: 400px;<?php 
            echo esc_attr($value['css']);
            ?>
"
						class="<?php 
            echo esc_attr($value['class']);
            ?>
"
						placeholder="<?php 
            echo esc_attr($value['placeholder']);
            ?>
"
						readonly="readonly" onclick="this.focus(); this.select()"
						<?php 
            //echo implode( ' ', $custom_attributes );
            ?>
						><?php 
            echo esc_textarea($option_value);
            ?>
</textarea>
				</td>
			</tr>
			<?php 
        }
开发者ID:AndyA,项目名称:River,代码行数:62,代码来源:class-ss-wc-settings-mailchimp.php


注:本文中的WC_Admin_Settings::get_field_description方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。