diff --git a/botsplit.re-skinning.php b/botsplit.re-skinning.php new file mode 100644 index 0000000..108b10b --- /dev/null +++ b/botsplit.re-skinning.php @@ -0,0 +1,105 @@ + +
+
+
+
+
+

+ Re-skinning URL splitter By Mohammed Cha +

+
+

NB : The sum of the percentages divided on the links must equal 100% Ex : 20 - 30 - 30 - 20

+ use Shortcode [reskinning_splitter] to display your button where you want +
+
+ +
+
+ Re-skinning URL splitter coded with By Mohammed Cha +
+
+
+
+
+

Re-skinning URL splitter

+
+
+ +
+

Divide / Split your Wordpress Blog visitors into 4 links by using Re-skinning URL splitter.

+

Re-skinning URL splitter By Mohammed Cha

+
+

How to !

+ use Shortcode [reskinning_splitter] to display your button where you want +
+
+
+
+
+
+
+
+ $linkone, 'percent' => $linkonepercent); + $link[1] = array('link' => $linktwo, 'percent' => $linktwopercent); + $link[2] = array('link' => $linkthree, 'percent' => $linkthreepercent); + $link[3] = array('link' => $linkfour, 'percent' => $linkfourpercent); + $percent_arr = array(); + foreach($link as $k => $_l) { + $percent_arr = array_merge($percent_arr, array_fill(0, $_l['percent'], $k)); + } + $random_key = $percent_arr[mt_rand(0,count($percent_arr)-1)]; + $redirectlink = $link[$random_key]['link']; + $btn_splitter_bg_color = get_option('reskinning_splitter_button_color'); + return ' + +
+

'.get_option('reskinning_splitter_button_description').'

+ '.get_option('reskinning_splitter_button_text').' +
'; +}add_shortcode('reskinning_splitter', 'reskinning_splitter'); +class reskinning_splitter_widget extends WP_Widget { + public function __construct() { + $options = array( + 'classname' => 'reskinning_splitter_cost_widget', + 'description' => 'Re-Skinning Url Splitter Widget', + ); + parent::__construct( + 'reskinning_splitter_cost_widget', 'Re-Skinning URL Splitter', $options + ); + } + public function widget( $args, $instance ) { + echo $args['before_widget']; + echo do_shortcode('[reskinning_splitter]'); + echo $args['after_widget']; + } +} +function reskinning_splitter_widget_add() { + register_widget( 'reskinning_splitter_widget' ); +}add_action( 'widgets_init', 'reskinning_splitter_widget_add' ); + + diff --git a/botsplitter.re-skinning.php b/botsplitter.re-skinning.php new file mode 100644 index 0000000..5f5bd9c --- /dev/null +++ b/botsplitter.re-skinning.php @@ -0,0 +1,66 @@ + + + +

+ + + +

+ + + +

+ + + +

+ + +

+ + +

+ + +

HEX COLOR CODE here - Example: eb4034'); ?>

+

Google Color Picker to choose a nice color'); ?>

+