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


PHP gform_tooltip函数代码示例

本文整理汇总了PHP中gform_tooltip函数的典型用法代码示例。如果您正苦于以下问题:PHP gform_tooltip函数的具体用法?PHP gform_tooltip怎么用?PHP gform_tooltip使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。


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

示例1: leads_page


//.........这里部分代码省略.........
</p>
									<?php 
            foreach ($notifications as $notification) {
                ?>
										<input type="checkbox" class="gform_notifications" value="<?php 
                echo esc_attr($notification['id']);
                ?>
" id="notification_<?php 
                echo esc_attr($notification['id']);
                ?>
" onclick="toggleNotificationOverride();" />
										<label for="notification_<?php 
                echo esc_attr($notification['id']);
                ?>
"><?php 
                echo esc_html($notification['name']);
                ?>
</label>
										<br /><br />
									<?php 
            }
            ?>
									<div id="notifications_override_settings" style="display:none;">

										<p class="description" style="padding-top:0; margin-top:0;">
											<?php 
            esc_html_e('You may override the default notification settings by entering a comma delimited list of emails to which the selected notifications should be sent.', 'gravityforms');
            ?>
										</p>
										<label for="notification_override_email"><?php 
            esc_html_e('Send To', 'gravityforms');
            ?>
 <?php 
            gform_tooltip('notification_override_email');
            ?>
</label><br />
										<input type="text" name="notification_override_email" id="notification_override_email" style="width:99%;" /><br /><br />

									</div>

									<input type="button" name="notification_resend" id="notification_resend" value="<?php 
            esc_attr_e('Resend Notifications', 'gravityforms');
            ?>
" class="button" style="" onclick="BulkResendNotifications();" />
									<span id="please_wait_container" style="display:none; margin-left: 5px;">
                                                <i class='gficon-gravityforms-spinner-icon gficon-spin'></i> <?php 
            esc_html_e('Resending...', 'gravityforms');
            ?>
                                            </span>
								<?php 
        }
        ?>

							</div>

							<div id="resend_notifications_close" style="display:none;margin:10px 0 0;">
								<input type="button" name="resend_notifications_close_button" value="<?php 
        esc_attr_e('Close Window', 'gravityforms');
        ?>
" class="button" style="" onclick="closeModal(true);" />
							</div>

						</div>

					</div>
				</div>
开发者ID:kidaak,项目名称:gravityforms,代码行数:67,代码来源:entry_list.php

示例2: field_standard_settings

    /**
     * Field standard settings.
     *
     * @see https://github.com/wp-premium/gravityforms/blob/1.9.19/form_detail.php#L525
     * @param int $position position of the field settings
     * @param int $form_id current form ID
     */
    public function field_standard_settings($position, $form_id)
    {
        if (10 !== $position) {
            return;
        }
        $feeds = get_pronamic_gf_pay_feeds_by_form_id($form_id);
        if (empty($feeds)) {
            return;
        }
        ?>
		<li class="pronamic_pay_config_field_setting field_setting">
			<label for="pronamic_pay_config_field">
				<?php 
        esc_html_e('Payment Gateway Configuration', 'pronamic_ideal');
        ?>

				<?php 
        gform_tooltip('form_field_pronamic_pay_config');
        ?>
			</label>

			<select id="pronamic_pay_config_field" onchange="SetFieldProperty( 'pronamicPayConfigId', jQuery( this ).val() );" class="fieldwidth-3">
				<option value=""><?php 
        esc_html_e('— Use Payment Feed Setting —', 'pronamic_ideal');
        ?>
</option>
				<?php 
        foreach ($feeds as $feed) {
            printf('<option value="%s">%s</option>', esc_attr($feed->config_id), get_the_title($feed->config_id));
        }
        ?>
			</select>
		</li>
		<?php 
    }
开发者ID:wp-pay-extensions,项目名称:gravityforms,代码行数:42,代码来源:Fields.php

示例3: get_tooltip

 function get_tooltip()
 {
     if (!function_exists('gform_tooltip')) {
         return NULL;
     }
     return !empty($this->field['tooltip']) ? ' ' . gform_tooltip($this->field['tooltip'], false, true) : NULL;
 }
开发者ID:kidaak,项目名称:GravityView,代码行数:7,代码来源:class.field.type.php

示例4: field_settings_ui

    public function field_settings_ui()
    {
        ?>

		<li class="<?php 
        echo $this->key('field_setting');
        ?>
 field_setting">
			<input type="checkbox" id="<?php 
        echo $this->key('field_checkbox');
        ?>
" value="1" onclick="SetFieldProperty('<?php 
        echo $this->key('enable');
        ?>
', this.checked)">

			<label class="inline" for="<?php 
        echo $this->key('field_checkbox');
        ?>
">
				<?php 
        _e('Read-only', 'gravityperks');
        ?>
				<?php 
        gform_tooltip($this->key('readonly'));
        ?>
			</label>
		</li>

		<?php 
    }
开发者ID:hansstam,项目名称:makerfaire,代码行数:31,代码来源:gwreadonly.php

示例5: gform_appearance_settings

 public static function gform_appearance_settings($position, $form_id)
 {
     if ($position == 400) {
         echo "<li class=\"repeater_end_settings field_setting\">\n\t\t\t\t\t<input type=\"checkbox\" id=\"field_repeater_end_hideButtons\" onchange=\"SetFieldProperty('hideButtons', this.checked);\"> \n\t\t\t\t\t<label for=\"field_repeater_end_hideButtons\" class=\"inline\">Hide Add & Remove buttons ";
         gform_tooltip('form_field_repeater_end_hideButtons');
         echo "\t</label>\n\t\t\t\t</li>";
     }
 }
开发者ID:kodie,项目名称:gravityforms-repeater,代码行数:8,代码来源:class-gf-field-repeater-end.php

示例6: gform_appearance_settings

 public static function gform_appearance_settings($position, $form_id)
 {
     if ($position == 400) {
         echo "<li class=\"repeater_settings field_setting\">\n\t\t\t\t\t<label for=\"field_repeater_animations\">Animation Properties ";
         gform_tooltip('form_field_repeater_animations');
         echo "\t</label>\n\t\t\t\t\t<input type=\"text\" id=\"field_repeater_animations\" class=\"fieldwidth-3\" onchange=\"SetFieldProperty('animations', this.value);\">\n\t\t\t\t</li>";
         echo "<li class=\"repeater_settings field_setting\">\n\t\t\t\t\t<input type=\"checkbox\" id=\"field_repeater_hideLabel\" onchange=\"SetFieldProperty('hideLabel', this.checked);\"> \n\t\t\t\t\t<label for=\"field_repeater_hideLabel\" class=\"inline\">Hide Label & Description ";
         gform_tooltip('form_field_repeater_hideLabel');
         echo "\t</label>\n\t\t\t\t</li>";
     }
 }
开发者ID:kodie,项目名称:gravityforms-repeater,代码行数:11,代码来源:class-gf-field-repeater.php

示例7: form_settings_ui

	public function form_settings_ui( $form_settings, $form ) {

		$keys = array(
			'enable' => $this->key( 'enable' ),
			'refresh_time' => $this->key( 'refresh_time' )
		);
		$display = ! rgar( $form, $keys['enable'] ) ? 'display:none;' : '';

		ob_start();
		?>

		<tr class="gp-form-setting">

			<th>
				<label for="<?php echo $keys['enable']; ?>">
					<?php _e( 'Automatically Reload Form', 'gravityperks' ); ?>
					<?php gform_tooltip( $keys['enable'] ); ?>
				</label>
			</th>
			<td>

				<input type="checkbox" id="<?php echo $keys['enable']; ?>" name="<?php echo $keys['enable']; ?>" value="1" <?php checked( rgar( $form, $keys['enable'] ), true ); ?> />
				<label for="<?php echo $keys['enable']; ?>">
					<?php _e( 'Automatically Reload Form', 'gravityperks' ); ?>
					<?php gform_tooltip( $keys['enable'] ); ?>
				</label>

				<div id="<?php echo $this->key( 'settings' ); ?>" style="margin-top:10px;<?php echo $display; ?>">

					<label for="<?php echo $keys['refresh_time']; ?>" style="display:block;">
						<?php _e( 'Seconds Until Reload', 'gravityperks' ); ?> <?php gform_tooltip( $keys['refresh_time'] ) ?></label>
					<input type="number" id="<?php echo $keys['refresh_time']; ?>" name="<?php echo $keys['refresh_time']; ?>" value="<?php echo rgar( $form, $keys['refresh_time'] ); ?>">

				</div>

				<?php $this->form_settings_js( $keys ); ?>

			</td>

		</tr>

		<?php

		$section_label = __( 'GP Reload Form', 'gravityperks' );
		$form_settings[$section_label] = array( $this->slug => ob_get_clean() );

		return $form_settings;
	}
开发者ID:helloworld-digital,项目名称:katemorgan,代码行数:48,代码来源:gwreloadform.php

示例8: field_advanced_settings

    /**
     * Output the field setting in the 'Advanced' tab for each field
     */
    public function field_advanced_settings($position, $form_id)
    {
        if ($position == 550) {
            ?>
			<li class="infusionsoft_field field_setting" style="display: list-item;">
				<label for="field_infusionsoft">
					Infusionsoft Field
					<?php 
            gform_tooltip('field_infusionsoft');
            ?>
				</label>
				<input type="text" size="30" id="field_infusionsoft" onchange="SetFieldProperty('infusionsoft_field', this.value);" />
			</li>
			<?php 
        }
    }
开发者ID:almoore,项目名称:wordpress-plugin,代码行数:19,代码来源:infusionsoft-gravityforms.php

示例9: gform_field_standard_settings

    public function gform_field_standard_settings($position, $form_id)
    {
        if ($position == 700) {
            ?>
    
    <li class="post_custom_field_unique field_setting">

      <input type="checkbox" id="field_unique_custom_meta_value" onclick="SetFieldProperty('postCustomFieldUnique', this.checked);" />
      
      <label for="field_unique_custom_meta_value" class="inline">
        <?php 
            _e('Unique Custom Field?');
            ?>
        <?php 
            gform_tooltip('form_field_unique_custom_meta_value');
            ?>
      </label>
    
    </li>
    
<?php 
        }
    }
开发者ID:Blueprint-Marketing,项目名称:interoccupy.net,代码行数:23,代码来源:gravityforms-update-post.php

示例10: admin_edit_payment_status_details

    public static function admin_edit_payment_status_details($form_id, $lead)
    {
        //check meta to see if this entry is paypal
        $payment_gateway = gform_get_meta($lead["id"], "payment_gateway");
        $form_action = strtolower(rgpost("save"));
        if ($payment_gateway != "paypal" || $form_action != "edit") {
            return;
        }
        //get data from entry to pre-populate fields
        $payment_amount = rgar($lead, "payment_amount");
        if (empty($payment_amount)) {
            $form = RGFormsModel::get_form_meta($form_id);
            $payment_amount = GFCommon::get_order_total($form, $lead);
        }
        $transaction_id = rgar($lead, "transaction_id");
        $payment_date = rgar($lead, "payment_date");
        if (empty($payment_date)) {
            $payment_date = gmdate("y-m-d H:i:s");
        }
        //display edit fields
        ?>
		<div id="edit_payment_status_details" style="display:block">
			<table>
				<tr>
					<td colspan="2"><strong>Payment Information</strong></td>
				</tr>

				<tr>
					<td>Date:<?php 
        gform_tooltip("paypal_edit_payment_date");
        ?>
</td>
					<td><input type="text" id="payment_date" name="payment_date" value="<?php 
        echo $payment_date;
        ?>
"></td>
				</tr>
				<tr>
					<td>Amount:<?php 
        gform_tooltip("paypal_edit_payment_amount");
        ?>
</td>
					<td><input type="text" id="payment_amount" name="payment_amount" value="<?php 
        echo $payment_amount;
        ?>
"></td>
				</tr>
				<tr>
					<td nowrap>Transaction ID:<?php 
        gform_tooltip("paypal_edit_payment_transaction_id");
        ?>
</td>
					<td><input type="text" id="paypal_transaction_id" name="paypal_transaction_id" value="<?php 
        echo $transaction_id;
        ?>
"></td>
				</tr>
			</table>
		</div>
		<?php 
    }
开发者ID:bryanmonzon,项目名称:jenjonesdirect,代码行数:61,代码来源:paypal.php

示例11: export_lead_page


//.........这里部分代码省略.........

        <div class="wrap">
            <img alt="<?php 
        _e("Gravity Forms", "gravityforms");
        ?>
" style="margin: 15px 7px 0pt 0pt; float: left;" src="<?php 
        echo GFCommon::get_base_url();
        ?>
/images/gravity-export-icon-32.png"/>
            <h2><?php 
        _e("Export Form Entries", "gravityforms");
        ?>
</h2>
            <?php 
        self::export_links();
        ?>

            <p class="textleft"><?php 
        _e("Select a form below to export entries. Once you have selected a form you may select the fields you would like to export and an optional date range. When you click the download button below, Gravity Forms will create a CSV file for you to save to your computer.", "gravityforms");
        ?>
</p>
            <div class="hr-divider"></div>
            <form method="post" style="margin-top:10px;">
                <?php 
        echo wp_nonce_field("rg_start_export", "rg_start_export_nonce");
        ?>
                <table class="form-table">
                  <tr valign="top">

                       <th scope="row"><label for="export_form"><?php 
        _e("Select A Form", "gravityforms");
        ?>
</label> <?php 
        gform_tooltip("export_select_form");
        ?>
</th>
                        <td>

                          <select id="export_form" name="export_form" onchange="SelectExportForm(jQuery(this).val());">
                            <option value=""><?php 
        _e("Select a form", "gravityforms");
        ?>
</option>
                            <?php 
        $forms = RGFormsModel::get_forms(null, "title");
        foreach ($forms as $form) {
            ?>
                                <option value="<?php 
            echo absint($form->id);
            ?>
"><?php 
            echo esc_html($form->title);
            ?>
</option>
                                <?php 
        }
        ?>
                        </select>

                        </td>
                    </tr>
                  <tr id="export_field_container" valign="top" style="display: none;">
                       <th scope="row"><label for="export_fields"><?php 
        _e("Select Fields", "gravityforms");
        ?>
</label> <?php 
开发者ID:hypenotic,项目名称:slowfood,代码行数:67,代码来源:export.php

示例12: lead_detail_page


//.........这里部分代码省略.........
                _e("Configure Notifications", "gravityforms");
                ?>
</a>
                                    <?php 
            } else {
                foreach ($form["notifications"] as $notification) {
                    ?>
                                            <input type="checkbox" class="gform_notifications" value="<?php 
                    echo $notification["id"];
                    ?>
" id="notification_<?php 
                    echo $notification["id"];
                    ?>
" onclick="toggleNotificationOverride();" />
                                            <label for="notification_<?php 
                    echo $notification["id"];
                    ?>
"><?php 
                    echo $notification["name"];
                    ?>
</label> <br /><br />
                                        <?php 
                }
                ?>

                                        <div id="notifications_override_settings" style="display:none;">

                                            <p class="description" style="padding-top:0; margin-top:0; width:99%;">You may override the default notification settings
                                                by entering a comma delimited list of emails to which the selected notifications should be sent.</p>
                                            <label for="notification_override_email"><?php 
                _e("Send To", "gravityforms");
                ?>
 <?php 
                gform_tooltip("notification_override_email");
                ?>
</label><br />
                                            <input type="text" name="notification_override_email" id="notification_override_email" style="width:99%;" />
                                            <br /><br />

                                        </div>

                                        <input type="button" name="notification_resend" value="<?php 
                _e("Resend Notifications", "gravityforms");
                ?>
" class="button" style="" onclick="ResendNotifications();"/>
                                        <span id="please_wait_container" style="display:none; margin-left: 5px;">
                                            <img src="<?php 
                echo GFCommon::get_base_url();
                ?>
/images/loading.gif"> <?php 
                _e("Resending...", "gravityforms");
                ?>
                                        </span>
                                    <?php 
            }
            ?>

                                </div>
                            </div>
                        </div>
                       <!-- / end notifications -->
                   <?php 
        }
        ?>

                   <!-- begin print button -->
开发者ID:JSpier,项目名称:smacamp,代码行数:67,代码来源:entry_detail.php

示例13: leads_page


//.........这里部分代码省略.........
            ?>
                                            <p class="description"><?php 
            _e("Specify which notifications you would like to resend for the selected entries.", "gravityforms");
            ?>
</p>
                                            <?php 
            foreach ($form["notifications"] as $notification) {
                ?>
                                                <input type="checkbox" class="gform_notifications" value="<?php 
                echo $notification["id"];
                ?>
" id="notification_<?php 
                echo $notification["id"];
                ?>
" onclick="toggleNotificationOverride();" />
                                                <label for="notification_<?php 
                echo $notification["id"];
                ?>
"><?php 
                echo $notification["name"];
                ?>
</label> <br /><br />
                                            <?php 
            }
            ?>
                                            <div id="notifications_override_settings" style="display:none;">

                                                <p class="description" style="padding-top:0; margin-top:0;">You may override the default notification settings
                                                    by entering a comma delimited list of emails to which the selected notifications should be sent.</p>
                                                <label for="notification_override_email"><?php 
            _e("Send To", "gravityforms");
            ?>
 <?php 
            gform_tooltip("notification_override_email");
            ?>
</label><br />
                                                <input type="text" name="notification_override_email" id="notification_override_email" style="width:99%;" /><br /><br />

                                            </div>

                                            <input type="button" name="notification_resend" id="notification_resend" value="<?php 
            _e("Resend Notifications", "gravityforms");
            ?>
" class="button" style="" onclick="BulkResendNotifications();"/>
                                            <span id="please_wait_container" style="display:none; margin-left: 5px;">
                                                <img src="<?php 
            echo GFCommon::get_base_url();
            ?>
/images/loading.gif"> <?php 
            _e("Resending...", "gravityforms");
            ?>
                                            </span>
                                        <?php 
        }
        ?>

                                    </div>

                                    <div id="resend_notifications_close" style="display:none;margin:10px 0 0;">
                                        <input type="button" name="resend_notifications_close_button" value="<?php 
        _e("Close Window", "gravityforms");
        ?>
" class="button" style="" onclick="closeModal(true);"/>
                                    </div>

                                </div>
开发者ID:nikibrown,项目名称:2014-Nerd-presentation,代码行数:67,代码来源:entry_list.php

示例14: forms_page


//.........这里部分代码省略.........
</div>
				<div class="gf-pagebreak-text-main"><span><?php 
        _e('START PAGING', 'gravityforms');
        ?>
</span></div>
				<div class="gf-pagebreak-text-after"><?php 
        _e('top of the first page', 'gravityforms');
        ?>
</div>
			</div>

			<div id="pagination_settings" style="display: none;">
				<ul>
					<li style="width:100px; padding:0px;">
						<a href="#gform_pagination_settings_tab_1"><?php 
        _e('Properties', 'gravityforms');
        ?>
</a></li>
					<li style="width:100px; padding:0px;">
						<a href="#gform_pagination_settings_tab_2"><?php 
        _e('Advanced', 'gravityforms');
        ?>
</a></li>
				</ul>

				<div id="gform_pagination_settings_tab_1">
					<ul class="gforms_form_settings">
						<li>
							<label for="pagination_type_container">
								<?php 
        _e('Progress Indicator', 'gravityforms');
        ?>
								<?php 
        gform_tooltip('form_progress_indicator');
        ?>
							</label>

							<div id="pagination_type_container" class="pagination_container">
								<input type="radio" id="pagination_type_percentage" name="pagination_type" value="percentage" onclick='InitPaginationOptions();' />
								<label for="pagination_type_percentage" class="inline">
									<?php 
        _e('Progress Bar', 'gravityforms');
        ?>
								</label>
								&nbsp;&nbsp;
								<input type="radio" id="pagination_type_steps" name="pagination_type" value="steps" onclick='InitPaginationOptions();' />
								<label for="pagination_type_steps" class="inline">
									<?php 
        _e('Steps', 'gravityforms');
        ?>
								</label>
								&nbsp;&nbsp;
								<input type="radio" id="pagination_type_none" name="pagination_type" value="none" onclick='InitPaginationOptions();' />
								<label for="pagination_type_none" class="inline">
									<?php 
        _e('None', 'gravityforms');
        ?>
								</label>
							</div>
						</li>

						<li id="percentage_style_setting">

							<div class="percentage_style_setting" style="float:left; z-index: 99;">
								<label for="percentage_style" style="display:block;">
									<?php 
开发者ID:sbayer55,项目名称:The-Road-Gallery,代码行数:67,代码来源:form_detail.php

示例15: get_field_results


//.........这里部分代码省略.........
             $field_results .= "<div class='gsurvey-likert-field-results'>";
             $field_results .= "<table class='gsurvey-likert'>";
             $field_results .= "<tr>";
             if ($multiple_rows) {
                 $field_results .= "<td></td>";
             }
             foreach ($field["choices"] as $choice) {
                 $field_results .= "<td class='gsurvey-likert-choice-label'>" . $choice['text'] . "</td>";
             }
             $field_results .= "</tr>";
             foreach ($field["gsurveyLikertRows"] as $row) {
                 $row_text = $row["text"];
                 $row_value = $row["value"];
                 $max = 0;
                 foreach ($field["choices"] as $choice) {
                     if ($multiple_rows) {
                         $choice_value = rgar($choice, "value");
                         $results_row = rgar($results, $row_value);
                         $results_for_choice = rgar($results_row, $choice_value);
                         $max = max(array($max, $results_for_choice));
                     } else {
                         $max = max(array($max, $results[$choice['value']]));
                     }
                 }
                 $field_results .= "<tr>";
                 if ($multiple_rows) {
                     $field_results .= "<td class='gsurvey-likert-row-label'>" . $row_text . "</td>";
                 }
                 foreach ($field["choices"] as $choice) {
                     $val = $multiple_rows ? $results[$row_value][$choice['value']] : $results[$choice['value']];
                     $percent = $max > 0 ? round($val / $max * 100, 0) : 0;
                     $red = (int) ($xr + $percent * ($yr - $xr) / ($n - 1));
                     $green = (int) ($xg + $percent * ($yg - $xg) / ($n - 1));
                     $blue = (int) ($xb + $percent * ($yb - $xb) / ($n - 1));
                     $clr = 'rgb(' . $red . ',' . $green . ',' . $blue . ')';
                     $field_results .= "<td class='gsurvey-likert-results' style='background-color:{$clr}'>" . $val . "</td>";
                 }
                 $field_results .= "</tr>";
                 if (false === $multiple_rows) {
                     break;
                 }
             }
             $field_results .= "</table>";
             $field_results .= "</div>";
             if (rgar($field, "gsurveyLikertEnableScoring") && class_exists("GFSurvey")) {
                 $sum = $results["sum_of_scores"];
                 $average_score = $sum == 0 ? 0 : round($sum / $entry_count, 3);
                 $field_results .= "<div class='gsurvey-likert-score'>" . __("Average score: ", "gravityforms") . $average_score . "</div>";
             }
             break;
         case "rank":
             $results = $field_data[$field["id"]];
             arsort($results);
             $field_results .= "<div class='gsurvey-rank-field-results'>";
             $field_results .= " <table>";
             $field_results .= "     <tr class='gresults-results-field-table-header'>";
             $field_results .= "         <td class='gresults-rank-field-label'>";
             $field_results .= __("Item", "gravityforms");
             $field_results .= "         </td>";
             $field_results .= "         <td class='gresults-rank-field-score'>";
             $field_results .= __("Total Score", "gravityforms") . "&nbsp;" . gform_tooltip("gresults_total_score", null, true);
             $field_results .= "         </td>";
             $field_results .= "         <td class='gresults-rank-field-rank'>";
             $field_results .= __("Aggregate Rank", "gravityforms") . "&nbsp;" . gform_tooltip("gresults_agg_rank", null, true);
             $field_results .= "         </td>";
             $field_results .= "     </tr>";
             $agg_rank = 1;
             foreach ($results as $choice_val => $score) {
                 $field_results .= "<tr>";
                 $field_results .= "      <td class='gresults-rank-field-label' style='text-align:left;'>";
                 $field_results .= RGFormsModel::get_choice_text($field, $choice_val);
                 $field_results .= "      </td>";
                 $field_results .= "      <td class='gresults-rank-field-score'>";
                 $field_results .= $score;
                 $field_results .= "      </td>";
                 $field_results .= "      <td class='gresults-rank-field-rank'>";
                 $field_results .= $agg_rank;
                 $field_results .= "      </td>";
                 $field_results .= "</tr>";
                 $agg_rank++;
             }
             $field_results .= "</table>";
             $field_results .= "</div>";
             break;
         default:
             $page_size = 5;
             $offset = 0;
             $field_id = $field["id"];
             $field_results .= "<div class='gresults-results-field-sub-label'>" . __("Latest values:", "gravityforms") . "</div>";
             $field_results .= "<ul id='gresults-results-field-content-{$field_id}' class='gresults-results-field-content' data-offset='{$page_size}'>";
             $more_remaining = false;
             $field_results .= self::get_default_field_results($form_id, $field, $search_criteria, $offset, $page_size, $more_remaining);
             $field_results .= "</ul>";
             if ($more_remaining) {
                 $field_results .= "<a id='gresults-results-field-more-link-{$field_id}' class='gresults-results-field-more-link' href='javascript:void(0)' onclick='gresults.getMoreResults({$form_id},{$field_id})'>Show more</a>";
             }
             break;
     }
     return $field_results;
 }
开发者ID:rushabhrakholiya,项目名称:TEST,代码行数:101,代码来源:class-gf-results.php


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