Exemplo n.º 1
0
			<tr valign="top">
				<th scope="row"><?php 
        esc_html_e('Slot', 'better-analytics');
        ?>
</th>
				<td>
					<?php 
        if ($goalId) {
            echo '<input type="hidden" name="id" value="' . $goalId . '"/>';
            $goalSet = DigitalPointBetterAnalytics_Model_Goals::getGoalSetByGoal($goalId);
            printf(esc_html__('Goal ID %1$u / Goal Set %2$u', 'better-analytics'), $goal['id'], $goalSet);
        } else {
            echo '<select name="slot" data-placeholder="' . esc_html__('Pick slot', 'better-analytics') . '" id="ba_slot" class="chosen-select">';
            $goalsAll = DigitalPointBetterAnalytics_Model_Reporting::filterGoalsByProfile($goalsAll, @$betterAnalyticsOptions['property_id'], @$betterAnalyticsOptions['api']['profile'], $totals);
            foreach (range(1, 20) as $number) {
                $goalSet = DigitalPointBetterAnalytics_Model_Goals::getGoalSetByGoal($number);
                echo '<option value="' . $number . '"' . (!empty($goalsAll[$number]) ? ' disabled="disabled"' : '') . '>' . htmlentities(sprintf(esc_html__('Goal ID %1$u / Goal Set %2$u', 'better-analytics'), $number, $goalSet)) . '</option>';
            }
            echo '</select>';
        }
        ?>
				</td>
			</tr>

			<tr valign="top">
				<th scope="row"><?php 
        esc_html_e('Name', 'better-analytics');
        ?>
</th>
				<td>
					<input type="text" name="name" class="regular-text" id="ba_name" value="<?php 
Exemplo n.º 2
0
 protected function column_slot($item)
 {
     $goalSet = DigitalPointBetterAnalytics_Model_Goals::getGoalSetByGoal($item['id']);
     printf(esc_html__('Goal ID %1$u / Goal Set %2$u', 'better-analytics'), $item['id'], $goalSet);
 }