Ugly Of Hell Guilde WoW EU-Conseil des ombres Horde
Partie Membres Sujets Messages Derniers Messages
0 0
Qui est en ligne ? Nos membres ont posté un total de 2 messages Nous avons 26 membres enregistrés L'utilisateur enregistré le plus récent est pikeboufig Il y a en tout 1 utilisateur en ligne :: 0 Enregistré, 0 Invisible et 1 Invité Le record du nombre d'utilisateurs en ligne est de 15 le Mar 13 Sep - 7:06 Utilisateurs enregistrés : Aucun Aucun membre ne fête son anniversaire aujourd'hui Aucun membre ne fête son anniversaire dans les 7 prochains jours Légende : [ Guild master ][ Administrateurs ][ Membres ][ Invités ]
Nouveaux messages Pas de nouveaux messages Forum Verrouillé
Avancée PVE
La Citadelle
Boss
10
25
Seigneur Gargamoelle
H
x
Dame Murmemort
H
La Bataille aérienne de cannonières
H
H
Porte-Mort
x
Les Princes de Sang
H
Reine de sang Lana'Thel
H
Pulentraille
Trognepus
x
Professeur Putricide
Valithria Marcherêve
H
Sindragosa
H
Le Roi Liche
x
-
H = Hard Mode
x = Normal mode
.
*/
define( 'WOWRECRUT_VERSION', '0.1.2' );
if ( ! defined( 'WOWRECRUT_PLUGIN_NAME' ) )
define( 'WOWRECRUT_PLUGIN_NAME', 'wowrecrut');
if ( ! defined( 'WOWRECRUT_PLUGIN_DIR' ) )
define( 'WOWRECRUT_PLUGIN_DIR', WP_PLUGIN_DIR . '/' . plugin_basename( dirname( __FILE__ ) ) );
if ( ! defined( 'WOWRECRUT_PLUGIN_URL' ) )
define( 'WOWRECRUT_PLUGIN_URL', WP_PLUGIN_URL . '/' . plugin_basename( dirname( __FILE__ ) ) );
if ( ! defined( 'WOWRECRUT_ICON_SIZE' ) )
define( 'WOWRECRUT_ICON_SIZE', 11 );
$wowRecrutStyles = array (
0 => array (
'name' => 'Dark Rect',
'css' => WOWRECRUT_PLUGIN_URL.'/wowrecrut.css',
'isize' => 11,
'active' => 1
),
1 => array (
'name' => 'WoWr Light',
'css' => WOWRECRUT_PLUGIN_URL.'/wowrlight/wowrlight.css',
'isize' => 20,
'active' => 0
),
);
$WoWclasses = array(
0 => array (
'name' => 'Death knight',
'tag' => 'dk',
'tree1' => 'Blood',
'tree2' => 'Frost',
'tree3' => 'Unholy',
'color' => '#C41F3B'
),
1 => array (
'name' => 'Druid',
'tag' => 'druid',
'tree1' => 'Balance',
'tree2' => 'Feral',
'tree3' => 'Restoration',
'color' => '#FF7D0A'
),
2 => array (
'name' => 'Hunter',
'tag' => 'hunter',
'tree1' => 'Marksmanship',
'tree2' => 'Beast Mastery',
'tree3' => 'Survival',
'color' => '#ABD473'
),
3 => array (
'name' => 'Mage',
'tag' => 'mage',
'tree1' => 'Arcane',
'tree2' => 'Fire',
'tree3' => 'Frost',
'color' => '#69CCF0'
),
4 => array (
'name' => 'Paladin',
'tag' => 'paladin',
'tree1' => 'Holy',
'tree2' => 'Retribution',
'tree3' => 'Protection',
'color' => '#F58CBA'
),
5 => array (
'name' => 'Priest',
'tag' => 'priest',
'tree1' => 'Discipline',
'tree2' => 'Holy',
'tree3' => 'Shadow',
'color' => '#fff'
),
6 => array (
'name' => 'Rogue',
'tag' => 'rogue',
'tree1' => 'Assassination',
'tree2' => 'Combat',
'tree3' => 'Subtlety',
'color' => '#FFF569'
),
7 => array (
'name' => 'Shaman',
'tag' => 'shaman',
'tree1' => 'Elemental',
'tree2' => 'Enhancement',
'tree3' => 'Restoration',
'color' => '#2459FF'
),
8 => array (
'name' => 'Warlock',
'tag' => 'warlock',
'tree1' => 'Afflication',
'tree2' => 'Demon',
'tree3' => 'Destruction',
'color' => '#9482C9'
),
9 => array (
'name' => 'Warrior',
'tag' => 'warrior',
'tree1' => 'Arms',
'tree2' => 'Fury',
'tree3' => 'Protection',
'color' => '#C79C6E'
)
);
class wowrecrut_Widget extends WP_Widget {
function wowrecrut_Widget()
{
$widget_ops = array('classname' => 'wowrecrut', 'description' => 'WoW Recruitment Widget' );
parent::WP_Widget(false, $name = 'WoW Recruitment', $widget_ops);
}
function widget($args, $instance)
{
extract($args, EXTR_SKIP);
global $WoWclasses;
global $wowRecrutStyles;
$title = $instance['title'];
$rtext = $instance['rtext'];
$style = $instance['style'];
if(empty($style))
$style = 0;
echo $before_widget;
if ( !empty( $title ) ) { echo $before_title . $title . $after_title; }
if( !empty( $rtext ) ) echo "".$rtext."
";
echo "";
$ccounter = 0;
for ($i = 0; $i < count($WoWclasses); $i++)
{
$t1 = $instance[$WoWclasses[$i]['tag'].'tree1'];
$t2 = $instance[$WoWclasses[$i]['tag'].'tree2'];
$t3 = $instance[$WoWclasses[$i]['tag'].'tree3'];
if($t1 == 1 || $t2 == 1 || $t3 == 1)
{
$t1sel = '';
$t2sel = '';
$t3sel = '';
$ih = $i * $wowRecrutStyles[$style]['isize'];
if( $t1 == 1)
$t1sel = 'need';
if( $t2 == 1)
$t2sel = 'need';
if( $t3 == 1)
$t3sel = 'need';
?>
No Recruitment";
echo " ";
echo $after_widget;
}
function update( $new_instance, $old_instance )
{
$instance = $old_instance;
global $WoWclasses;
$instance['title'] = strip_tags($new_instance['title']);
$instance['rtext'] = $new_instance['rtext'];
$instance['style'] = $new_instance['style'];
for ($i = 0; $i < count($WoWclasses); $i++)
{
$instance[$WoWclasses[$i]['tag'].'tree1']= (bool) $new_instance[$WoWclasses[$i]['tag'].'tree1'];
$instance[$WoWclasses[$i]['tag'].'tree2']= (bool) $new_instance[$WoWclasses[$i]['tag'].'tree2'];
$instance[$WoWclasses[$i]['tag'].'tree3']= (bool) $new_instance[$WoWclasses[$i]['tag'].'tree3'];
}
return $instance;
}
function form($instance)
{
$style = get_option('wowrecrut-style');
if(empty($style)) {
add_option('wowrecrut-style', 0);
$style = 0;
}
//Defaults
$instance = wp_parse_args( (array) $instance, array(
'title' => 'Recruitment',
'rtext' => 'We are looking for the following classes:',
'style' => 0,
) );
$title = esc_attr($instance['title']);
$rtext = esc_attr($instance['rtext']);
$rstyle = esc_attr($instance['style']);
if($rstyle <> $style) {
update_option('wowrecrut-style', $rstyle);
$style = $rstyle;
}
global $WoWclasses;
global $wowRecrutStyles;
$wowRecrutStyles[$style]['active'] = 1;
?>
Looking for Text
Style
>
/>
/>
/>
$name,
'css' => $css,
'$isize' => $isize,
'active' => 0
);
array_push($wowRecrutStyles, $temparr);
}
function wowrecrut_init_widget()
{
return register_widget('wowrecrut_Widget');
}
function wowrecrut_add_header()
{
global $wowRecrutStyles;
$style = get_option('wowrecrut-style');
if(empty($style)) {
add_option('wowrecrut-style', 0);
$style = 0;
}
echo "\n ";
}
add_action('widgets_init', 'wowrecrut_init_widget');
add_action('wp_head', 'wowrecrut_add_header');