wordpress/wp-content/themes/basic/themify/themify-admin.php
/**
	 * Creates a general module to setup slider parameters
	 * @param $prefix
	 * @return string
	 */
Creates a general module to setup slider parameters
@param $prefix
@return string
Creates a general module to setup slider parameters @param $prefix @return string
function themify_generic_slider_controls( $prefix ) {
		$auto_options = apply_filters( 'themify_generic_slider_auto',
			array(
				__('4 Secs (default)', 'themify') => 4000,
				__('Off', 'themify') => 'off',
				__('1 Sec', 'themify') => 1000,
				__('2 Secs', 'themify') => 2000,
				__('3 Secs', 'themify') => 3000,
				__('4 Secs', 'themify') => 4000,
				__('5 Secs', 'themify') => 5000,
				__('6 Secs', 'themify') => 6000,
				__('7 Secs', 'themify') => 7000,
				__('8 Secs', 'themify') => 8000,
				__('9 Secs', 'themify') => 9000,
				__('10 Secs', 'themify')=> 10000
			)
		);
		$speed_options = apply_filters( 'themify_generic_slider_speed',
			array(
				__('Fast', 'themify') => 500,
				__('Normal', 'themify') => 1000,
				__('Slow', 'themify') => 1500
			)
		);
		$effect_options = array(
			array('name' => __('Slide', 'themify'), 'value' => 'slide'),
			array('name' => __('Fade', 'themify'), 'value' =>'fade')
		);
		$output = '<p>
						<span class="label">' . __('Auto Play', 'themify') . '</span>
						<select name="' . $prefix . 'autoplay">';
						foreach ( $auto_options as $name => $val ) {
							$v=themify_get( $prefix . 'autoplay' );
							$output .= '<option value="' . $val . '" ' . selected( $v, $v ? $val : 4000, false ) . '>' . esc_html( $name ) . '</option>';
						}
		$output .= '	</select>
					</p>';
		$output .= '<p>
						<span class="label">' . __( 'Effect', 'themify' ) . '</span>
						<select name="' . $prefix. 'effect">' .
						themify_options_module( $effect_options, $prefix . 'effect' ) . '
						</select>
					</p>';
		$output .= '<p>
						<span class="label">' . __( 'Transition Speed', 'themify' ) . '</span>
						<select name="' . $prefix . 'transition_speed">';
						$transition=themify_get( $prefix . 'transition_speed' );
						foreach ( $speed_options as $name => $val ) {
							$output .= '<option value="' . $val . '" ' . selected( $transition, $transition? $val : 500, false ) . '>' . esc_html( $name ) . '</option>';
						}
		$output .= '	</select>
					</p>';
		return apply_filters( 'themify_generic_slider_controls', $output );
	}
function themify_generic_slider_controls ( $ prefix ) { $ auto_options = apply_filters ( 'themify_generic_slider_auto' , array ( __ ( '4 Secs (default)' , 'themify' ) => 4000 , __ ( 'Off' , 'themify' ) => 'off' , __ ( '1 Sec' , 'themify' ) => 1000 , __ ( '2 Secs' , 'themify' ) => 2000 , __ ( '3 Secs' , 'themify' ) => 3000 , __ ( '4 Secs' , 'themify' ) => 4000 , __ ( '5 Secs' , 'themify' ) => 5000 , __ ( '6 Secs' , 'themify' ) => 6000 , __ ( '7 Secs' , 'themify' ) => 7000 , __ ( '8 Secs' , 'themify' ) => 8000 , __ ( '9 Secs' , 'themify' ) => 9000 , __ ( '10 Secs' , 'themify' ) => 10000 ) ) ; $ speed_options = apply_filters ( 'themify_generic_slider_speed' , array ( __ ( 'Fast' , 'themify' ) => 500 , __ ( 'Normal' , 'themify' ) => 1000 , __ ( 'Slow' , 'themify' ) => 1500 ) ) ; $ effect_options = array ( array ( 'name' => __ ( 'Slide' , 'themify' ) , 'value' => 'slide' ) , array ( 'name' => __ ( 'Fade' , 'themify' ) , 'value' => 'fade' ) ) ; $ output = '<p>
						<span class="label">' . __ ( 'Auto Play' , 'themify' ) . '</span>
						<select name="' . $ prefix . 'autoplay">' ; foreach ( $ auto_options as $ name => $ val ) { $ v = themify_get ( $ prefix . 'autoplay' ) ; $ output .= '<option value="' . $ val . '" ' . selected ( $ v , $ v ? $ val : 4000 , false ) . '>' . esc_html ( $ name ) . '</option>' ; } $ output .= '	</select>
					</p>' ; $ output .= '<p>
						<span class="label">' . __ ( 'Effect' , 'themify' ) . '</span>
						<select name="' . $ prefix . 'effect">' . themify_options_module ( $ effect_options , $ prefix . 'effect' ) . '
						</select>
					</p>' ; $ output .= '<p>
						<span class="label">' . __ ( 'Transition Speed' , 'themify' ) . '</span>
						<select name="' . $ prefix . 'transition_speed">' ; $ transition = themify_get ( $ prefix . 'transition_speed' ) ; foreach ( $ speed_options as $ name => $ val ) { $ output .= '<option value="' . $ val . '" ' . selected ( $ transition , $ transition ? $ val : 500 , false ) . '>' . esc_html ( $ name ) . '</option>' ; } $ output .= '	</select>
					</p>' ; return apply_filters ( 'themify_generic_slider_controls' , $ output ) ; }
Creates a general module to setup slider parameters
 @param $prefix
 @return string
Creates a general module to setup slider parameters @param $prefix @return string
/**
		 * Associative array containing theme settings
		 * @var array
		 */ /**
		 * Auto Play
		 */ /**
		 * Effect
		 */ /**
		 * Transition Speed
		 */