Failed To Save Custom CSS. Make Sure you have Write permission in wp-contents/plugins folder.

'; }else{ echo '

Saved Settings

'; } } $startCode=get_option("CBS_StartCode")=="" ? "
":get_option("CBS_StartCode");
 $endCode=get_option("CBS_EndCode")=="" ? "
":get_option("CBS_EndCode"); $vchecked=get_option("CBS_InVisual")=="" ? "checked='checked'":""; $tchecked=get_option("CBS_InText")=="" ? "checked='checked'":""; $pchecked=get_option("CBS_PTag")=="" ? "checked='checked'":""; ?>

Configure Code Blocks

Donate

I'm 14 and I need donations to create more plugins.

Please consider a donation for the improvement of this plugin and for future awesome plugins.

Display


name="visual"/>Enable Code Block Button in Visual Editor

name="text"/>Enable Code Block Button in Text Editor

Content

Starting Code
End Code

Custom CSS


You can add any custom CSS that will be applied on the Visual Editor. (Visualization)

Other Settings


name="ptag"/>Remove Paragraph <p> tags from code. (Recommended)

When you wrap a code in post to a code block, the Paragraph (<p>) tags will enter in to the code block. Do you want to remove it ?

Example :

<code>Other Code<p>Codes In Paragraphs</p></code>

to :

<code>Other Code<br/>Codes In Paragraphs</code>
The Icon of Code Me button is   
":get_option("CBS_StartCode"); $endCode=get_option("CBS_EndCode")=="" ? "":get_option("CBS_EndCode"); $plugin_array["CBSbutton"] = $url.'/button.php?start='.urlencode(CBSmakeItPretty($startCode)).'&end='.urlencode(CBSmakeItPretty($endCode))."&nop=".get_option("CBS_PTag"); return $plugin_array; } /* HTML Text Editor */ function CBS_teButton(){ //Remove Linebreaks $startCode=get_option("CBS_StartCode")=="" ? "
":get_option("CBS_StartCode");
 $endCode=get_option("CBS_EndCode")=="" ? "
":get_option("CBS_EndCode"); $right_tag = CBSmakeItPretty(str_replace("\r\n","",$endCode)); $left_tag = CBSmakeItPretty(str_replace("\r\n","",$startCode)); if(get_option("CBS_InText")!="off" && get_current_screen()->base!="" && get_current_screen()->base=="post"){ $content = '"; echo $content; } } /* Text Editor functions */ function CBS_init(){ if (current_user_can('edit_posts') && current_user_can('edit_pages')) { add_action('admin_print_footer_scripts', 'CBS_teButton'); } } add_action("admin_init", "CBS_init"); function CBS_custom_css($wp) { $url = plugins_url()."/code-blocks"; $wp .= ',' . $url.'/editor-style.css'; return $wp; } add_filter('mce_css','CBS_custom_css'); ?> Festival Program TORSDAG 13. Juni | Byen Vår Kopervik

Nyheter

Festival Program TORSDAG 13. Juni

Alle dager:

12:00 – 16:00 Festivalutstilling med Linda Skare og Sverre Skjold / Kopervik Kulturhus.

Torsdag 13. Juni

09:00 Det Europeiske Marked

13:00 Underholdning med Lasse Pedersen / Sparebank 1 SR-Bank

17:00 Seilsportens dag. Kom å få en tur i seilbåt / Gjestebryggen

17:00 Fotoutstilling og foredrag med Magnus Jonas Fjell og Knut Egil Nes /3.etg Hillesland

17:00 Gratiskonsert med Ingebjørg Andrea Vik Trio / Sparebank 1 SR-Bank

18:00 Syng med Oss (Kopervik Korforening) / Ungdoms og Alderssenteret

21:00 Stand-Up med Kurt Johannesen og hugo Sørbø / Kaffibaren

22:00 Colors turned red + Roger Pedersen / 1866

 

Velkommen til Kopervik Festival 2013 :)

mandag
10
juni 2013
Kommentarer av
This entry was posted in Nyheter. Bookmark the permalink.

Comments are closed.