コード例 #1
0
ファイル: config.php プロジェクト: xalgorithm/amcf-wp
    printf('<p class="description">%s <a href="%s" class="thickbox" aria-label="%s" data-title="%s">%s</a></p>', esc_html__('WooCommerce not enabled/active.', 'better-analytics'), esc_url(network_admin_url('plugin-install.php?tab=plugin-information&plugin=woocommerce' . '&TB_iframe=true&width=600&height=550')), esc_attr(sprintf(__('More information about %s'), 'WooCommerce')), esc_attr('WooCommerce'), esc_html__('View details'));
}
?>

						</label>

					</fieldset>

				</td>
			</tr>



			<?php 
if ($profiles) {
    $formatParams = DigitalPointBetterAnalytics_Base_Admin::groupProfiles($profiles['items']);
    echo '<tr valign="top" class="group_api tab_content">
						<th scope="row">' . esc_html__('Profile Used For Reporting', 'better-analytics') . '</th>
						<td>';
    echo '<select data-placeholder="' . esc_html__('Pick profile', 'better-analytics') . '" id="ba_pick_api_profile" name="better_analytics[api][profile]" class="chosen-select">';
    echo '<option value="">' . esc_html__('please pick a profile', 'better-analytics') . '</option>';
    foreach ($formatParams as $url => $group) {
        echo '<optgroup label="' . htmlentities($url) . '">';
        foreach ($group as $internalWebPropertyId => $name) {
            echo '<option value="' . $internalWebPropertyId . '"' . ($internalWebPropertyId == @$betterAnalyticsOptions['api']['profile'] ? ' selected="selected"' : '') . '>' . htmlentities($name) . '</option>';
        }
        echo '</optgroup>';
    }
    echo '</select>
						</td>
					</tr>';