// closure to avoid namespace collision (function(){ // creates the plugin tinymce.create('tinymce.plugins.mygallery', { // creates control instances based on the control's id. // our button's id is "mygallery_button" createControl : function(id, controlManager) { if (id === 'mygallery_button') { // creates the button var button = controlManager.createButton('mygallery_button', { title : 'Timeline (Zaman Çizelgesi)', // title of the button image : AhmetiWpTimelineJsData.pluginUrl+'images/ahmeti-wp-timeline-button.png', // path to the button's image onclick : function() { // triggers the thickbox var width = jQuery(window).width(), H = jQuery(window).height(), W = ( 400 < width ) ? 400 : width; W = W - 80; H = H - 500; tb_show( 'Timeline (Zaman Çizelgesi)', '#TB_inline?width='+W+'&height='+H+'&inlineId=mygallery-form' ); jQuery('#TB_window').css('width',W+'px').css('height',H+'px'); } }); return button; } return null; } }); // registers the plugin. DON'T MISS THIS STEP!!! tinymce.PluginManager.add('mygallery', tinymce.plugins.mygallery); // executes this when the DOM is ready jQuery(function(){ // creates a form to be displayed everytime the button is clicked // you should achieve this using AJAX instead of direct html code like this var form = jQuery('
Timeline (Zaman Çizelgesi) Grup_ID Grup_ID değerine Admin Paneli -> Timeline -> Grup Listesinden ulaşabilirsiniz. | \
| Grup ID: \ \ |
| Sıralama: \ \ |
| Durum: \ \ |
| \
\ \ \ | -->\