



<!-- Tiny mce -->

/*

* Modifying TinyMCE editor to remove unused items.

*/

function customformatTinyMCE($init) {

	// Add block format elements you want to show in dropdown

	 $init['theme_advanced_blockformats'] = 'p,h2';

	// $init['theme_advanced_disable'] = 'strikethrough,underline,forecolor,justifyfull';

	// $init['theme_advanced_buttons2_add_before'] = 'styleselect';

	// $init['theme_advanced_styles'] = 'First Paragraph=subP';



	return $init;

}



// Modify Tiny_MCE init

// add_filter('tiny_mce_before_init', 'customformatTinyMCE' );



----------------------------------------------------------------------------------------------------------



<!--Lorsqu'on édite la page Evenements actuels, le html casse à cause des éléments entre crochets.

ceci est le fichier initial. Le iframe concernant le pdf à feuilleter est un test qui fonctionne.

A l'heure ou j'ai créé ce fichier, nous n'avons pas les infos issuu de la bcul, le lien src changera.

-->



<p>Manifestations culturelles janvier à juin 2013, BCU Lausanne</p>

<p><iframe src="//e.issuu.com/embed.html#6417538/1137941" frameborder="0" width="525" height="360"></iframe></p>

<table class="events-table table" cellspacing="0" cellpadding="0">

<thead>

<tr><th class="event-time" width="110"> </th><th class="event-time" width="250">Evénement</th><th class="event-description" width="*">Date</th></tr>

</thead>

<tbody>

[events_list category="1" order="ASC"]

<tr>

<td><img src="#_EVENTIMAGEURL" alt="" width="100" height="90" border="0" /></td>

<td>#_EVENTLINK</td>

<td>

<ul>#_EVENTDATES</ul>

</td>

</tr>

[/events_list]

</tbody>

</table>



------------------------------------------------------------------------------------------------------------



modification wp_includes / post.php fonction : wp_publish_post

	//joa 04.09.2013 : called by wp missed events plugin, job was only publishing the post, not activating the event

	$wpdb->update('wp_em_events', array('event_status' => 1), array( 'post_id' => $post->ID) ); 


------------------------------------------------------------------------------------------------------------

<!-- ajouté dans le footer: -->
<!-- slice the mail after the @ when mail is bigger than 150px width in colDroite-->

<script type='text/javascript'>
jQuery( document ).ready(function() {
    jQuery('#mailDiv a').each(function () {
        if(jQuery(this).width()> jQuery(this).parent().width() && jQuery(this).text().indexOf('@')> 0){
            var t = jQuery(this).text().split('@');        
            jQuery(this).text(t.slice(0,1)+'@\n\r'+t.slice(1,2));        
        }
    });
});
</script>

------------------------------------------------------------------------------------------------------------

Widget addthis. Code ajouté dans l'admin dans le plugin.

<!-- style="float:right!important" style="float:right!important" style="float:right!important" style="float:right!important" style="float:right!important" style="float:right!important" style="float:right!important" style="float:right!important" style="float:right!important" AddThis Button BEGIN -->
<div class="">
<a class="addthis_button_facebook_like" style="float:right!important"></a>
<a class="addthis_button_tweet" style="float:right!important;width:90px"></a>
</div>
<div style="clear:both"></div>
<script type="text/javascript">var addthis_config = {"data_track_addressbar":true};</script>
<script type="text/javascript" src="//s7.addthis.com/js/300/addthis_widget.js#pubid=ra-5284f16c2bf76c2d"></script>
<!-- AddThis Button END -->

JS ajouté dans footer.php

<script type="text/javascript">var addthis_config = {"data_track_addressbar":true};</script>
<script type="text/javascript" src="//s7.addthis.com/js/300/addthis_widget.js#pubid=ra-5284f16c2bf76c2d"></script>

------------------------------------------------------------------------------------------------------------