Ejemplo n.º 1
0
        public static function print_algorithm_field()
        {
            $field_name = 'algorithm';
            printf('<select id="%1$s" name="nelioab_settings[%1$s]" %2$s>', $field_name, self::get_pro_details());
            ?>
				<option value='<?php 
            echo NelioABSettings::ALGORITHM_PURE_RANDOM;
            ?>
'><?php 
            _e('Default - Pure Random', 'nelioab');
            ?>
</option>
				<option value='<?php 
            echo NelioABSettings::ALGORITHM_PRIORITIZE_ORIGINAL;
            ?>
' <?php 
            if (NelioABSettings::get_algorithm() == NelioABSettings::ALGORITHM_PRIORITIZE_ORIGINAL) {
                echo ' selected="selected"';
            }
            ?>
><?php 
            _e('Prioritize Original Version', 'nelioab');
            ?>
</option>
				<option value='<?php 
            echo NelioABSettings::ALGORITHM_GREEDY;
            ?>
' <?php 
            if (NelioABSettings::get_algorithm() == NelioABSettings::ALGORITHM_GREEDY) {
                echo ' selected="selected"';
            }
            ?>
><?php 
            _e('Prioritize Winner (Greedy)', 'nelioab');
            ?>
</option>
			</select>
			<br><div class="the-descr" style="display:none;"><span <?php 
            echo self::get_pro_details('description');
            ?>
><?php 
            _e('Nelio A/B Testing implements different algorithms for deciding which alternative should see each of your visitors.', 'nelioab');
            echo '<ul style="list-style-type:disc;margin-left:3em;">';
            _e('<li><strong>Pure Random.</strong> All alternatives have the exact same chance to be seen by any of your visitors.</li>', 'nelioab');
            _e('<li><strong>Prioritize Original.</strong> The original version is more likely to be shown.</li>', 'nelioab');
            _e('<li><strong>Greedy.</strong> Also known as <em>multi-armed bandit</em>, this algorithm makes the best alternative (that is, the one that\'s converting the best) more likely to appear.</li>', 'nelioab');
            echo '</ul>';
            ?>
</span></div>
			<?php 
        }