IdentifiantMot de passe
Loading...
Mot de passe oublié ?Je m'inscris ! (gratuit)
Navigation

Inscrivez-vous gratuitement
pour pouvoir participer, suivre les réponses en temps réel, voter pour les messages, poser vos propres questions et recevoir la newsletter

WordPress PHP Discussion :

html dans la page d'accueil


Sujet :

WordPress PHP

  1. #1
    Membre confirmé
    Femme Profil pro
    Inscrit en
    Février 2010
    Messages
    110
    Détails du profil
    Informations personnelles :
    Sexe : Femme
    Localisation : Tunisie

    Informations forums :
    Inscription : Février 2010
    Messages : 110
    Par défaut html dans la page d'accueil
    Bonjour!

    Je travaille sur colorwave-premium-wordpress-theme: http://themeforest.net/item/colorwav...preview/148470
    Ce theme m'offre la possibilité de créer des articles qui s'affichent automatiquement dans la page d'accueil.
    Jusqu'au là tout est bon sauf que j'ai créé dans l'un de mes articles un tableau en utilisant le code html
    Dans la page d'accueil je trouve le texte affiché mais sans tableau: le continu du tableau est accordé comme un texte au reste continue d'article
    (le système a éliminé toute balise html et remplacer le tout par un <p>...</p>)

    J'espère que j'ai arrivé a bien expliqué mon problème!

    Merci pour toute indication!

  2. #2
    Membre éclairé
    Avatar de fenrir0680
    Homme Profil pro
    Développeur Web
    Inscrit en
    Février 2007
    Messages
    49
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Âge : 44
    Localisation : France, Manche (Basse Normandie)

    Informations professionnelles :
    Activité : Développeur Web
    Secteur : High Tech - Multimédia et Internet

    Informations forums :
    Inscription : Février 2007
    Messages : 49
    Billets dans le blog
    2
    Par défaut
    Bonjour,
    Sous wordpress, lorsque tu rédige un article, à l’endroit ou tu écris ton texte, tu as un onglet "visuel", et un "HTML".

    L'onglet visuel te donne un aperçu de ton article.
    Dans l'onglet HTML, tu y peux insérer ton code, il sera interprété.

    Cordialement.

  3. #3
    Membre confirmé
    Femme Profil pro
    Inscrit en
    Février 2010
    Messages
    110
    Détails du profil
    Informations personnelles :
    Sexe : Femme
    Localisation : Tunisie

    Informations forums :
    Inscription : Février 2010
    Messages : 110
    Par défaut
    Bonjour!

    Exactement comme vous l'avez dit!
    Le problème que c'est dans le visual tout s'affiche bien mais à l'exécution non plus!

  4. #4
    Membre confirmé
    Homme Profil pro
    Inscrit en
    Juin 2012
    Messages
    110
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : France

    Informations forums :
    Inscription : Juin 2012
    Messages : 110
    Par défaut
    Bonjour,

    comment sont gerés les articles de la home dans le template ? Avec excrept() ? pour n'afficher qu'un bout de l'article ?
    Si c'est le cas, de base un template va virer et ne pas interpreter certaines balises.
    Il faut alors ouvrir le fichier functions.php du thème et lui coller cette fonction :
    Code php : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
     
    <?php
    function improved_trim_excerpt($text) {
    	global $post;
    	if ( '' == $text ) {
    		$text = get_the_content('');
    		$text = apply_filters('the_content', $text);
    		$text = str_replace(']]>', ']]&gt;', $text);
    		$text = preg_replace('@<script[^>]*?>.*?</script>@si', '', $text);
    		$text = strip_tags($text, '<img><p><a><strong><br /><font><h2><h3><span><div>');
    		$excerpt_length = 10;
    		$words = explode(' ', $text, $excerpt_length + 1);
    		if (count($words)> $excerpt_length) {
    			array_pop($words);
    			array_push($words, '[...]');
    			$text = implode(' ', $words);
    		}
    	}
    	return $text;
    }
     
    remove_filter('get_the_excerpt', 'wp_trim_excerpt');
    add_filter('get_the_excerpt', 'improved_trim_excerpt');
     
    ?>
    la ligne avec " $text = strip_tags " gère les balises qui vont etre interpretés.
    Il suffit de rajouter table, td tr et celles que vous voulez

  5. #5
    Membre confirmé
    Femme Profil pro
    Inscrit en
    Février 2010
    Messages
    110
    Détails du profil
    Informations personnelles :
    Sexe : Femme
    Localisation : Tunisie

    Informations forums :
    Inscription : Février 2010
    Messages : 110
    Par défaut
    Bonjour!

    Merci pour votre attention!
    Dans mon cas, non. Les articles ne sont pas gérés par cette fonction.
    En fait, j'ai essayé d'intégrer
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    $_text= strip_tags($text, '<img><p><a><strong><br /><font><h2><h3><span><div>');
    mais non! il se peut que j'ai pas réussi à le faire dans l'emplacement convenable.
    Je vous accorde ma fonction functions.php si c'est le cas
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    27
    28
    29
    30
    31
    32
    33
    34
    35
    36
    37
    38
    39
    40
    41
    42
    43
    44
    45
    46
    47
    48
    49
    50
    51
    52
    53
    54
    55
    56
    57
    58
    59
    60
    61
    62
    63
    64
    65
    66
    67
    68
    69
    70
    71
    72
    73
    74
    75
    76
    77
    78
    79
    80
    81
    82
    83
    84
    85
    86
    87
    88
    89
    90
    91
    92
    93
    94
    95
    96
    97
    98
    99
    100
    101
    102
    103
    104
    105
    106
    107
    108
    109
    110
    111
    112
    113
    114
    115
    116
    117
    118
    119
    120
    121
    122
    123
    124
    125
    126
    127
    128
    129
    130
    131
    132
    133
    134
    135
    136
    137
    138
    139
    140
    141
    142
    143
    144
    145
    146
    147
    148
    149
    150
    151
    152
    153
    154
    155
    156
    157
    158
    159
    160
    161
    162
    163
    164
    165
    166
    167
    168
    169
    170
    171
    172
    173
    174
    175
    176
    177
    178
    179
    180
    181
    182
    183
    184
    185
    186
    187
    188
    189
    190
    191
    192
    193
    194
    195
    196
    197
    198
    199
    200
    201
    202
    203
    204
    205
    206
    207
    208
    209
    210
    211
    212
    213
    214
    215
    216
    217
    218
    219
    220
    221
    222
    223
    224
    225
    226
    227
    228
    229
    230
    231
    232
    233
    234
    235
    236
    237
    238
    239
    240
    241
    242
    243
    244
    245
    246
    247
    248
    249
    250
    251
    252
    253
    254
    255
    256
    257
    258
    259
    260
    261
    262
    263
    264
    265
    266
    267
    268
    269
    270
    271
    272
    273
    274
    275
    276
    277
    278
    279
    280
    281
    282
    283
    284
    285
    286
    287
    288
    289
    290
    291
    292
    293
    294
    295
    296
    297
    298
    299
    300
    301
    302
    303
    304
    305
    306
    307
    308
    309
    310
    311
    312
    313
    314
    315
    316
    317
    318
    319
    320
    321
    322
    323
    324
    325
    326
    327
    328
    329
    330
    331
    332
    333
    334
    335
    336
    337
    338
    339
    340
    341
    342
    343
    344
    345
    346
    347
    348
    349
    350
    351
    352
    353
    354
    355
    356
    357
    358
    359
    360
    361
    362
    363
    364
    365
    366
    367
    368
    369
    370
    371
    372
    373
    374
    375
    376
    377
    378
    379
    380
    381
    382
    383
    384
    385
    386
    387
    388
    389
    390
    391
    392
    393
    394
    395
    396
    397
    398
    399
    400
    401
    402
    403
    404
    405
    406
    407
    408
    409
    410
    411
    412
    413
    414
    415
    416
    417
    418
    419
    420
    421
    422
    423
    424
    425
    426
    427
    428
    429
    430
    431
    432
    433
    434
    435
    436
    437
    438
    439
    440
    441
    442
    443
    444
    445
    446
    447
    448
    449
    450
    451
    452
    453
    454
    455
    <?php
    require_once(TEMPLATEPATH . '/lib/global-options.php');
     
    require_once(TEMPLATEPATH . '/lib/sidebar-generator.php');
    require_once(TEMPLATEPATH . '/lib/admin-interface.php');
    require_once(TEMPLATEPATH . '/lib/admin-meta.php');
    require_once(TEMPLATEPATH . '/lib/twitter.php');
    require_once(TEMPLATEPATH . '/lib/feedburner.php');
    require_once(TEMPLATEPATH . '/lib/widgets.php');
    require_once(TEMPLATEPATH . '/lib/shortcode.php');
    require_once(TEMPLATEPATH . '/lib/tinyMce/tinyMce.php');
     
    require_once(TEMPLATEPATH . '/lib/register-custom.php');
     
    // Allow Shortcodes in Sidebar Widgets Text
    add_filter('widget_text', 'do_shortcode');
     
     
    // Redirect To Theme Options Page on Activation
    if (isset($_GET['activated'])) {
    	wp_redirect(admin_url("admin.php?page=nitrografix-options&action=upgraded"));
    }
     
    add_action( 'after_setup_theme', 'nitrografix_setup' );
     
    if ( ! function_exists( 'nitrografix_setup' ) ):
     
    	function nitrografix_setup() {
     
    		// @uses add_theme_support() To add support for post thumbnails and automatic feed links.
    		add_theme_support( 'post-thumbnails', array('post','gallery','portfolio') );
    		add_theme_support( 'automatic-feed-links' );
     
    		// @uses load_theme_textdomain() For translation/localization support ( fr_FR language package include )
    		load_theme_textdomain('colorwave',TEMPLATEPATH . '/languages');
     
    		$locale = get_locale();
    		$locale_file = TEMPLATEPATH . "/languages/$locale.php";
    		if ( is_readable( $locale_file ) ) {
    			require_once( $locale_file );
    		}
     
    		// Portfolio  / Gallery
    		add_image_size('portfolio-view',480,220,TRUE);
    		add_image_size('gallery-image',192,146,TRUE);
     
    		// Post Image Size
    		add_image_size('post-head',626,182,TRUE);
    		add_image_size('post-head-mini',288,114,TRUE);
    		add_image_size('post-thumb',48,48,TRUE);
     
    		// @uses register_nav_menus() To add support for navigation menus.
    		register_nav_menus(array('primary' => __('Primary Navigation','colorwave')));
    		register_nav_menus(array('secondary' => __('Category Navigation','colorwave')));
     
    	}
    endif;
     
    if ( ! function_exists( 'nitrografix_page_menu_args' ) ) :
     
    	function nitrografix_page_menu_args( $args ) {
     
    		global $get_options;
     
    		if( !empty($get_options['menu_exclude']) ) $args['exclude'] = implode(',',$get_options['menu_exclude']);
     
    		$args['show_home'] = true;
    		return $args;
    	}
     
    	add_filter( 'wp_page_menu_args', 'nitrografix_page_menu_args' );
     
    endif;
     
    if ( ! function_exists( 'nitrografix_search_form' ) ) :
     
    	function nitrografix_search_form( $form ) {
     
    		$form = '<form role="search" method="get" id="searchform" action="' . home_url('/') . '" >
    					<input type="text" value="' . get_search_query() . '" name="s" id="s" />
    					<input type="submit" id="searchsubmit" value="" />
    				</form>';
     
    		return $form;
    	}
     
    	add_filter( 'get_search_form', 'nitrografix_search_form' );
     
    endif;
     
    if ( ! function_exists( 'nitrografix_remove_more_jump_link' ) ) :
     
    	function nitrografix_remove_more_jump_link($link) { 
     
    		$offset = strpos($link, '#more-');
     
    		if ($offset) $end = strpos($link, '"',$offset);
     
    		if ($end) $link = substr_replace($link, '', $offset, $end-$offset);
     
    		return $link;
    	}
     
    	add_filter('the_content_more_link', 'nitrografix_remove_more_jump_link');
     
    endif;
     
    if( ! function_exists( 'nitrografix_display_tags_categories' ) ) :
     
    	function nitrografix_display_tags_categories($echo = true) {
     
    		if ( count( get_the_category() ) ) {
     
    			//$tags = '<img src="' . get_bloginfo('template_url') . '/graphix/icon-cats.png" alt="" /> ';
    			$tags = '';
     
    			$i = 0; $limit = 10;
     
    			foreach (get_the_category() as $category) {
     
    				if( $i >= $limit ) break; 
     
    				$tags .= '<a href="' . get_category_link($category->term_id) . '">' . $category->name . '</a>, ';
    				$i++;
    			}
     
    			$tags = substr($tags,0,strlen($tags)-2);
    			if( $echo == true ) echo $tags;
    			else return $tags;
    		}
     
    	}
     
    endif;
     
     
    if ( ! function_exists( 'nitrografix_comment' ) ) :
     
    	function nitrografix_comment( $comment, $args, $depth ) {
     
    		$GLOBALS['comment'] = $comment;
     
    		switch ( $comment->comment_type ) :
    			case '' :
    				?>
    				<div class="comments-entry<?php if($comment -> user_id == 1) echo ' comments-author'; ?>">
    						<div class="colorwave-avatar floatleft">
    							<?php echo get_avatar( $comment, 48,get_bloginfo('template_url') . '/graphix/gravatar.png' ); ?>
    						</div>
    						<div class="comment-infos floatleft">
    							<h5><?php comment_author_link(); ?></h5>
    							<span><?php comment_date(); ?></span><br />
    							<span><?php comment_time('H:i'); ?></span>
    							<?php edit_comment_link( __( '(Edit)', 'colorwave' ), ' ' ); ?>
    						</div>
     
    						<div class="comment-body floatleft">
    							<?php
    							if ( $comment->comment_approved == '0' ) : ?>
    								<em><?php _e( 'Your comment is awaiting moderation.', 'colorwave' ); ?></em>
    								<br />
    							<?php endif; ?>
    							<?php comment_text(); ?>
    						</div>
    						<?php comment_reply_link( array_merge( $args, array( 'depth' => $depth, 'max_depth' => $args['max_depth'], 'reply_text' => __('Reply','colorwave') ) ) ); ?>
    						<div class="clear"></div>
     
    				<?php
    				break;
    			case 'pingback'  :
    			case 'trackback' :
    				?>
    				<div class="post pingback">
    					<p><?php _e( 'Pingback:', 'colorwave' ); ?> <?php comment_author_link(); ?><?php edit_comment_link( __('(Edit)', 'colorwave'), ' ' ); ?></p>
    				<?php
    				break;
    		endswitch;
     
    	}
    endif;
     
    add_action('wp_footer', 'nitrografix_insert_footer');
     
    if( ! function_exists('nitrografix_insert_footer') ) :
     
    	function nitrografix_insert_footer() {
    	  global $get_options;
    	  if( isset($get_options['code_tracking']) ) echo stripslashes($get_options['code_tracking']);
    	}
     
    endif;
     
    if( ! function_exists('new_excerpt_more') ) :
     
    	function new_excerpt_more($more) {
    		return '...';
    	}	
    	add_filter('excerpt_more', 'new_excerpt_more');
     
    endif;
     
    if( ! function_exists('the_breadcrumb') ) :
    	function the_breadcrumb() {
     
    		if( !is_home() ) {
     
    			global $post, $get_options;
     
    			echo '<div id="breadcrumb">
    					<div class="content">
    						<h6>';
     
    			if( !isset($get_options['disable_breadcrumb_text_here']) ) echo __('You are here','colorwave') . ': &nbsp;';
     
    			echo '<a href="' . get_bloginfo('url') . '"><img src="' . get_bloginfo('template_url') . '/graphix/icon-home.png" alt="' . __('Home','colorwave') . '" /></a>
    							' . breadcrumb_hierarchy($post,' / ') . '
    						</h6>
    					</div>
    				</div>';
    		}
     
    	}
    endif;
     
    function breadcrumb_hierarchy($post,$separator,$is_parent = false) {
     
    	global $get_options;
     
    	if (is_page()) {
    		$link = '';
    	    if($post->post_parent) {
    			 $_query = get_post($post->post_parent);
    			 $link .= breadcrumb_hierarchy($_query,$separator,true);
    		}
     
     
    		$link .= $separator;
     
    		if( $is_parent === true ) {
    			$link .= '<a href="';
    			$link .= get_permalink($post -> ID);
    			$link .= '">';
    			$link .= get_the_title($post -> ID);
    			$link .= '</a>';
    		}
    		else {
    			$link .= get_the_title($post -> ID);
    		}
     
    		return $link;		 	
    	} 
     
     
    	if(is_single()){
     
    		$output = '';
    		$category = get_the_category();
    		if (is_attachment()){
     
    			$my_query = get_post($post-> post_parent);			 
    			$category = get_the_category($my_query->ID);
    			if( is_array($category) && count($category) > 0) {
    				$ID = $category[0] -> cat_ID;
     
    				$output .= get_category_parents($ID, TRUE, $separator, FALSE );
    				$parent = get_post($post->post_parent);
    				$output .= '<a href="' . get_permalink($parent -> ID) . '">' . $parent -> post_title . '</a> / ' . $post -> post_title;
    			}
    			else { 
    				$output .= $post -> post_title;
    			}
    		}
    		else {
     
    			if( get_post_type() == 'gallery' ) {
    				if( isset($get_options['breadcrumb_gallery']) && !empty($get_options['breadcrumb_gallery']) ) {
    					$output .= $separator;
    					if( isset($get_options['breadcrumb_gallery_url']) && !empty($get_options['breadcrumb_gallery_url']) ) {
    						$output .= '<a href="' . $get_options['breadcrumb_gallery_url'] . '">' . $get_options['breadcrumb_gallery'] . '</a>';
    					}
    					else {
    						$output .= $get_options['breadcrumb_gallery'];
    					}
    				}
    			}
    			elseif( get_post_type() == 'portfolio' ) {
    				if( isset($get_options['breadcrumb_portfolio']) && !empty($get_options['breadcrumb_portfolio']) ) {
    					$output .= $separator;
    					if( isset($get_options['breadcrumb_portfolio_url']) && !empty($get_options['breadcrumb_portfolio_url']) ) {
    						$output .= '<a href="' . $get_options['breadcrumb_portfolio_url'] . '">' . $get_options['breadcrumb_portfolio'] . '</a>';
    					}
    					else {
    						$output .= $get_options['breadcrumb_portfolio'];
    					}
    				}
    			}
    			else {
    				$blog_page = (isset($get_options['blog_page'])) ? $get_options['blog_page'] : '';
    				if( !empty($blog_page) ) {
    					$output .= $separator . '<a href="' . get_permalink($blog_page) . '">' . get_the_title($blog_page) . '</a>';
    				}
    			}
     
    			$output .= $separator . get_the_title();		
    			//}
    		}
    		return $output;
    	}
     
    	if(is_category()) {
     
    		$category = get_the_category(); 
    		$parent = $category[0]-> category_parent;
     
    		$parents = '';
     
    		if($parent > 0 && $category[0]->cat_name == single_cat_title('', false)) {
    			$parents = get_category_parents($parent, TRUE, $separator, FALSE);
    		}
     
    		return $separator . $parents . __('Category','colorwave') . ': ' . single_cat_title('',FALSE);
    	}
     
    	if (is_tax()) {
    		$out = $separator;
    		if( get_post_type() == 'portfolio' ) $out .= __('Portfolio','colorwave') . ' ';
    		$term = get_term_by( 'slug', get_query_var( 'term' ), get_query_var( 'taxonomy' ) );
    		return $out . __('Category: ','colorwave') . $term -> name;
    	}
     
    	if(is_author()) return $separator . __('Author','colorwave')  . ': '  . get_the_author_meta('display_name',$post -> post_author);
    	if(is_tag()) return $separator . __('Tag','colorwave') . ': ' . single_tag_title('',FALSE);
    	if(is_404()) return $separator . __('404 Page not Found','colorwave'); 
    	if(is_search()) return $separator . __('Search','colorwave') . ': ' . get_search_query(); 	
    	if(is_year()) return $separator . __('Year','colorwave') . ': ' . get_the_time('Y');
    	if(is_month()) {
    		$year = get_the_time('Y');
    		$output_year = $separator . __('Year','colorwave') . ': <a href="' . get_year_link($year) . '">' . $year . '</a>';
    		return  $output_year . $separator . __('Month','colorwave') . ': ' . ucfirst(get_the_time('F'));
    	}
    	if(is_day() || is_time()) {
    		$year = get_the_time('Y');
     
    		$output_year = $separator . __('Year','colorwave') . ': <a href="' . get_year_link($year) . '">' . $year . '</a>';
    		$output_month =  $separator . __('Month','colorwave') . ': <a href="' . get_month_link($year, $month) . '">' . ucfirst(get_the_time('F')) . '</a>';
     
    		return $output_year . $output_month . $separator . __('Day','colorwave') . ': ' . get_the_time('j (l)'); 
    	}
     
    }
     
    if( !function_exists('nitrografix_get_pagination') ) :
    	function nitrografix_get_pagination($range = 10) {
     
    	  global $paged, $wp_query;  
     
    	  if(!isset($max_page)) $max_page = $wp_query -> max_num_pages;  
     
    	  if( $max_page > 1 ) {  
    		if(!$paged) $paged = 1;
     
    		echo '<div class="page_nav">';
    		previous_posts_link('<span>' . __('previous','colorwave') . '</span>');  
     
    		echo '</div><div id="page_list">';
    		if($max_page > $range){  
     
    		  if($paged < $range){  
    			for($i = 1; $i <= ($range + 1); $i++){  
    			  echo '<a href="' . get_pagenum_link($i) . '" class="page';  
    			  if( $i== $paged ) echo ' current';  
    			  echo '"><span>' . $i . '</span></a>';  
    			}  
    		  }  
    		  // When closer to the end  
    		  elseif($paged >= ($max_page - ceil(($range/2)))){  
    			for($i = $max_page - $range; $i <= $max_page; $i++){  
    			  echo '<a href="' . get_pagenum_link($i) . '" class="page';  
    			  if($i==$paged) echo ' current';  
    			  echo '"><span>' . $i . '</span></a>';  
    			}  
    		  }  
    		  // Somewhere in the middle  
    		  elseif($paged >= $range && $paged < ($max_page - ceil(($range/2)))){  
    			for($i = ($paged - ceil($range/2)); $i <= ($paged + ceil(($range/2))); $i++){  
    			  echo '<a href="' . get_pagenum_link($i) . '" class="page';  
    			  if($i==$paged) echo ' current';  
    			  echo '"><span>' . $i . '</span></a>';  
    			}  
    		  }  
    		}  
    		// Less pages than the range, no sliding effect needed  
    		else{  
    		  for($i = 1; $i <= $max_page; $i++){  
    			echo '<a href="' . get_pagenum_link($i) . '" class="page';  
    			if($i==$paged) echo ' current';  
    			echo '"><span>' . $i . '</span></a>';  
    		  }  
    		}  
    		echo '</div><div class="page_nav">';
     
    		next_posts_link('<span>' . __('next','colorwave') . '</span>');  
     
    		echo '</div><div id="navigation">';
    			if($paged != 1) echo '<a href="' . get_pagenum_link(1) . '" class="more-link-mini"><span> ' . __('first','colorwave') . ' </span></a>';  
    			if($paged != $max_page)  echo ' <a href="' . get_pagenum_link($max_page) . '" class="more-link-mini"><span> ' . __('last','colorwave') . ' </span></a>';  
    			echo '&nbsp;<span id="number_page">' . __('Page','colorwave') . ' ' . $paged . ' / ' . $max_page . '</span>';
    		echo '</div><div class="clear"></div>';
    	  }  
    	}  
    endif;
     
    if( !function_exists('nitrografix_social_icons') ) :
    	function nitrografix_social_icons($sociaux) {
     
    		$title = str_replace('+','%20',urlencode(get_the_title()));
    		$blogname = urlencode(get_bloginfo('name'). ' '. get_bloginfo('description'));
    		$permalink 	= urlencode(get_permalink());
     
    		$excerpt = urlencode(strip_tags(strip_shortcodes(get_the_excerpt())));
    		if ( empty($excerpt) )
    			$excerpt = urlencode(substr(strip_tags(strip_shortcodes(get_the_content())),0,250));
    		$excerpt = str_replace(array('+','%0D%0A'),array('%20',''),$excerpt);
     
    		if( in_array('stumbleupon',$sociaux) ) : ?>
    						<a class="stumbleupon" href="http://www.stumbleupon.com/submit?url=<?php echo $permalink; ?>&amp;title=<?php echo $title; ?>"></a>
    						<?php
    		endif;
    		if( in_array('linkedin',$sociaux) ) : 
    						?>
    						<a class="linkedin" href="http://www.linkedin.com/shareArticle?mini=true&amp;url=<?php echo $permalink; ?>&amp;title=<?php echo $title; ?>&amp;summary=<?php echo $excerpt; ?>&amp;source=<?php echo $blogname; ?>"></a>
    						<?php
    		endif;
    		if( in_array('twitter',$sociaux) ) : 
    						?>
    						<a class="twitter" href="http://twitter.com/home?status=<?php echo $title; ?>%20<?php echo $permalink; ?>"></a>
    						<?php
    		endif;
    		if( in_array('digg',$sociaux) ) : 
    						?>
    						<a class="digg" href="http://digg.com/submit?phase=2&amp;url=<?php echo $permalink; ?>&amp;title=<?php echo $title; ?>&amp;bodytext=<?php echo $excerpt; ?>"></a>
    						<?php
    		endif;
    		if( in_array('delicious',$sociaux) ) : 
    						?>
    						<a class="delicious" href="http://delicious.com/post?url=<?php echo $permalink; ?>&amp;title=<?php echo $title; ?>&amp;notes=<?php echo $excerpt; ?>"></a>
    						<?php
    		endif;
    		if( in_array('facebook',$sociaux) ) : 
    						?>
    						<a class="facebook" href="http://www.facebook.com/share.php?u=<?php echo $permalink; ?>&amp;t=<?php echo $title; ?>"></a>
    						<?php 
    		endif;
    	}
    endif;
    merci aussi une fois pour votre attention!

  6. #6
    Membre confirmé
    Homme Profil pro
    Inscrit en
    Juin 2012
    Messages
    110
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : France

    Informations forums :
    Inscription : Juin 2012
    Messages : 110
    Par défaut
    Quel est le code du template de la page d'accueil du coup ?

  7. #7
    Membre confirmé

    Homme Profil pro
    Intégrateur Web
    Inscrit en
    Avril 2010
    Messages
    28
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Âge : 56
    Localisation : France, Gironde (Aquitaine)

    Informations professionnelles :
    Activité : Intégrateur Web
    Secteur : High Tech - Multimédia et Internet

    Informations forums :
    Inscription : Avril 2010
    Messages : 28
    Billets dans le blog
    1
    Par défaut
    Essaye de faire les modifications en mode HTML puis d'enregistrer directement sans passer en mode Visuel. Chez moi ça fonctionne.

    Il semble que ce soit le mode visuel qui sécurise les balises non reconnues.

Discussions similaires

  1. [FPDF] Page html dans une page PDF
    Par LeXo dans le forum Bibliothèques et frameworks
    Réponses: 3
    Dernier message: 23/08/2007, 15h44
  2. Intégré une zone de code HTML dans 1 page HTML sans Altéré le reste de la page
    Par sozik dans le forum Balisage (X)HTML et validation W3C
    Réponses: 1
    Dernier message: 08/04/2007, 10h38
  3. position idéale pour placer un menu dans une page d'accueil
    Par Smix007 dans le forum Général JavaScript
    Réponses: 6
    Dernier message: 01/02/2007, 12h14
  4. Réponses: 5
    Dernier message: 03/04/2006, 09h57
  5. Probleme avec mes formulaire html dans mes pages web
    Par foungnigue dans le forum Balisage (X)HTML et validation W3C
    Réponses: 3
    Dernier message: 28/12/2005, 19h07

Partager

Partager
  • Envoyer la discussion sur Viadeo
  • Envoyer la discussion sur Twitter
  • Envoyer la discussion sur Google
  • Envoyer la discussion sur Facebook
  • Envoyer la discussion sur Digg
  • Envoyer la discussion sur Delicious
  • Envoyer la discussion sur MySpace
  • Envoyer la discussion sur Yahoo