Sindbad~EG File Manager

Current Path : /var/www/html/wordpress_alg24news/wp-content/themes/newsbt/panel/js/
Upload File :
Current File : /var/www/html/wordpress_alg24news/wp-content/themes/newsbt/panel/js/tinymce.js

(function() {
	tinymce.PluginManager.add('info', function( editor, url ) {
		editor.addButton('info', {
			title : 'Add a info alert',
			icon: 'info',
			onclick: function() {
				editor.selection.setContent('[information]' + editor.selection.getContent() + '[/information]');
			}
		});
	});
})();
(function() {
	tinymce.PluginManager.add('success', function( editor, url ) {
		editor.addButton('success', {
			title : 'Add a success alert',
			icon: 'check',
			onclick: function() {
				editor.selection.setContent('[success]' + editor.selection.getContent() + '[/success]');
			}
		});
	});
})();
(function() {
	tinymce.PluginManager.add('error', function( editor, url ) {
		editor.addButton('error', {
			title : 'Add a warning alert',
			icon: 'warning',
			onclick: function() {
				editor.selection.setContent('[error]' + editor.selection.getContent() + '[/error]');
			}
		});
	});
})();
(function() {
	tinymce.PluginManager.add('notice', function( editor, url ) {
		editor.addButton('notice', {
			title : 'Add a notice alert',
			icon: 'exclamation',
			onclick: function() {
				editor.selection.setContent('[notice]' + editor.selection.getContent() + '[/notice]');
			}
		});
	});
})();
(function() {
	tinymce.PluginManager.add('mcode', function( editor, url ) {
		editor.addButton('mcode', {
			title : 'add pre',
			icon: 'facode',
			onclick: function() {
				editor.selection.setContent('[mcode]' + editor.selection.getContent() + '[/mcode]');
			}
		});
	});
})();
(function() {
	tinymce.PluginManager.add('dlist', function( editor, url ) {
		editor.addButton('dlist', {
			text: 'DL',
			icon: 'thlist',
			title : 'Create Description list Horizontal',
			onclick: function() {
				editor.selection.setContent('[dlist]' + editor.selection.getContent() + '[/dlist]');
			}
		});
	});
})();
(function() {
	tinymce.PluginManager.add('dllistv', function( editor, url ) {
		editor.addButton('dllistv', {
			text: 'DL',
			icon: 'thlistv',
			title : 'Create Description list Vertical',
			onclick: function() {
				editor.selection.setContent('[dllistv]' + editor.selection.getContent() + '[/dllistv]');
			}
		});
	});
})();
(function() {
	tinymce.PluginManager.add('pbreak', function( editor, url ) {
		editor.addButton('pbreak', {
			text: 'Page Break',
			icon: '',
			title : 'Add Page Break',
			onclick: function() {
				editor.selection.setContent('[pbreak][/pbreak]');
			}
		});
	});
})();
(function() {
	tinymce.PluginManager.add('ytube', function( editor, url ) {
		editor.addButton( 'ytube', {
			title : 'Add Youtube Video',
			icon: 'youtube',
			onclick: function() {
				editor.windowManager.open( {
					title: 'Youtube',
					body: [
						{
							type:'textbox',
							name:'youtubeid',
							label:'Youtube Video ID',
							value:'WDeKpo0cyyM'
						}
					],
					onsubmit: function( e ) {
						editor.insertContent( '[vid id="' + e.data.youtubeid + '" source="youtube"]');
					}
				});
			}	
		});
	});
})();
(function() {
	tinymce.PluginManager.add('dailym', function( editor, url ) {
		editor.addButton( 'dailym', {
			title : 'Add DailyMotion Video',
			image: url+'/dailymotion.png',
			onclick: function() {
				editor.windowManager.open( {
					title: 'DailyMotion',
					body: [
						{
							type: 'textbox',
							name: 'dailymotionid',
							label: 'DailyMotion Video ID',
							value: 'x2ev0bc'
						}
					],
					onsubmit: function( e ) {
						editor.insertContent( '[vid id="' + e.data.dailymotionid + '" source="dailymotion"]');
					}
				});
			}	
		});
	});
})();
(function() {
	tinymce.PluginManager.add('vim', function( editor, url ) {
		editor.addButton( 'vim', {
			title : 'Add Vimeo Video',
			icon: 'vimeo',
			onclick: function() {
				editor.windowManager.open( {
					title: 'Vimeo',
					body: [
						{
							type: 'textbox',
							name: 'vimeoid',
							label: 'Vimeo Video ID',
							value: '101483275'
						}
					],
					onsubmit: function( e ) {
						editor.insertContent( '[vid id="' + e.data.vimeoid + '" source="vimeo"]');
					}
				});
			}	
		});
	});
})();
(function() {
	tinymce.PluginManager.add('fbv', function( editor, url ) {
		editor.addButton( 'fbv', {
			title : 'Add Facebook Video',
			icon: 'facebook',
			onclick: function() {
				editor.windowManager.open( {
					title: 'Facebook Video',
					body: [
						{
							type: 'textbox',
							name: 'facebookid',
							label: 'Facebook Video ID',
							value: '10152454700553553'
						}
					],
					onsubmit: function( e ) {
						editor.insertContent( '[vid id="' + e.data.facebookid + '" source="facebook"]');
					}
				});
			}	
		});
	});
})();
(function() {
	tinymce.PluginManager.add('insta', function( editor, url ) {
		editor.addButton( 'insta', {
			title : 'Add Facebook Video',
			icon: 'instagram',
			onclick: function() {
				editor.windowManager.open( {
					title: 'Instagram Link',
					body: [
						{
							type: 'textbox',
							name: 'instagramlink',
							label: 'Instagram Link (HTTPS)',
							value: ''
						}
					],
					onsubmit: function( e ) {
						editor.insertContent('[embed]'+ e.data.instagramlink + '[/embed]');
					}
				});
			}	
		});
	});
})();
(function() {
	tinymce.PluginManager.add('btn', function( editor, url ) {
		editor.addButton( 'btn', {
			title : 'Add Button Bootstrap',
			text : 'Buttons',
			icon: 'link',
			onclick: function() {
				editor.windowManager.open( {
					title: 'Bootstrap Button link',
					body: [
						{
							type: 'textbox',
							name: 'btntext',
							label: 'text url like download or visit',
							value: 'Download'
						},
						{
							type: 'textbox',
							name: 'btnlink',
							label: 'Link button',
							value: '#'
						},
						{
							type: 'listbox',
							name: 'btnstyle',
							label: 'Style Button',
							'values': [
								{text: 'Default', value: 'btn-default'},
								{text: 'Primary', value: 'btn-primary'},
								{text: 'Success', value: 'btn-success'},
								{text: 'Info', value: 'btn-info'},
								{text: 'Warning', value: 'btn-warning'},
								{text: 'Danger', value: 'btn-danger'}
							]
						},
						{
							type: 'listbox',
							name: 'btnsizes',
							label: 'Sizes Button',
							'values': [
								{text: 'Default', value: ''},
								{text: 'Large', value: 'btn-lg'},
								{text: 'Small', value: 'btn-sm'},
								{text: 'Extra small', value: 'btn-xs'}
							]
						},
						{
							type: 'listbox',
							name: 'nofollow',
							label: 'NoFollow',
							'values': [
								{text: 'Yes', value: '1'},
								{text: 'No', value: '2'}
							]
						},
						{
							type: 'listbox',
							name: 'target',
							label: 'Open The Link In a new Tab',
							'values': [
								{text: 'Yes', value: '1'},
								{text: 'No', value: '2'}
							]
						}
					],
					onsubmit: function( e ) {
						editor.insertContent( '[button link="' + e.data.btnlink + '" text="' + e.data.btntext + '" sizes="' + e.data.btnsizes + '" style="' + e.data.btnstyle + '" nofollow="' + e.data.nofollow + '" target="' + e.data.target + '"]');
					}
				});
			}	
		});
	});
})();
(function() {
	tinymce.PluginManager.add('docs', function( editor, url ) {
		editor.addButton( 'docs', {
			title : 'Add Docs Viewer',
			icon: 'pdf',
			onclick: function() {
				editor.windowManager.open( {
					title: 'Google Docs Viewer',
					body: [
						{
							type: 'textbox',
							name: 'linktext',
							label: 'Link Text',
							value: 'Download PDF'
						},
						{
							type: 'textbox',
							name: 'link',
							label: 'Link button',
							value: '#'
						},
						{
							type: 'listbox',
							name: 'display',
							label: 'Display Link',
							'values': [
								{text: 'Yes', value: 'block'},
								{text: 'No', value: 'none'}
							]
						}
					],
					onsubmit: function( e ) {
						editor.insertContent( '[docs link="' + e.data.link + '" text="' + e.data.linktext + '" display="' + e.data.display + '" ]');
					}
				});
			}	
		});
	});
})();
(function() {
	tinymce.PluginManager.add('advert', function( editor, url ) {
		editor.addButton( 'advert', {
			title : 'Add Adsense',
			icon: 'bullhorn',
			onclick: function() {
				editor.windowManager.open( {
					title: 'Responsive Adsense',
					body: [
						{
							type: 'listbox',
							name: 'share',
							label: 'Revenu Share',
							'values': [
								{text: 'No', value: '0'},
								{text: 'Yes', value: '1'}
							]
						},
						{
							type: 'listbox',
							name: 'position',
							label: 'Align',
							'values': [
								{text: 'Right', value: 'right'},
								{text: 'Left', value: 'left'},
								{text: 'Center', value: 'center'}
							]
						},
						{
							type: 'listbox',
							name: 'screen',
							label: 'حدد الأجهزة التي تريد عرض الاعلان بها',
							'values': [
								{text: 'كل الاجهزة', value: 'screen-all'},
								{text: 'الكبيرة + المتوسطة', value: 'screen-lm'},
								{text: 'الكبيرة + الصغيرة', value: 'screen-ls'},
								{text: 'المتوسطة + الصغيرة', value: 'screen-ms'},
								{text: 'الصغيرة', value: 'screen-s'},
								{text: 'المتوسطة', value: 'screen-m'},
								{text: 'الكبيرة', value: 'screen-l'}
							]
						},
						{
							type: 'textbox',
							name: 'client',
							label: 'data-ad-client',
							value: ''
						},
						{
							type: 'textbox',
							name: 'slot',
							label: 'data-ad-slot',
							value: ''
						}
					],
					onsubmit: function( e ) {
						editor.insertContent( '[advert share="' + e.data.share + '" position="' + e.data.position + '" screen="' + e.data.screen + '" client="' + e.data.client + '" slot="' + e.data.slot + '"]');
					}
				});
			}	
		});
	});
})();

(function() {
	tinymce.PluginManager.add('proscons', function( editor, url ) {
		editor.addButton('proscons', {
			text: 'ProsCons',
			title : 'Add a proscons',
			icon: false,
			onclick: function() {
				editor.selection.setContent('[proscons]' + editor.selection.getContent() + '[/proscons]');
			}
		});
	});
})();
(function() {
	tinymce.PluginManager.add('bullet_button', function( editor, url ) {
		editor.addButton('bullet_button', {
			text: 'Bullet',
			icon: false,
			type: 'menubutton',
			menu: [
				{
					text: 'Check',
					icon: 'icon dashicons dashicons-yes',
					onclick: function() {
						editor.insertContent( '<ul class="wcb-button cb-common check-button"><li>&#0;</li></ul>');
					}
				},
				{
					text: 'Check Blue',
					icon: 'icon dashicons dashicons-yes',
					onclick: function() {
						editor.insertContent( '<ul class="wcb-button cb-common check-button-b"><li>&#0;</li></ul>');
					}
				},
				{
					text: 'Cross',
					icon: 'icon dashicons dashicons-no',
					onclick: function() {
						editor.insertContent( '<ul class="wcb-button cb-common cross-button"><li> &#0; </li></ul>');
					}
				},
                {
					text: 'Plus',
					icon: 'icon dashicons dashicons-plus',
					onclick: function() {
						editor.insertContent( '<ul class="wcb-button cb-common plus-button"><li> &#0; </li></ul>');
					}
				},
                {
					text: 'Circle-Plus',
					icon: 'icon dashicons dashicons-plus-alt',
					onclick: function() {
						editor.insertContent( '<ul class="wcb-button cb-common circle-plus-button"><li>&#0;</li></ul>');
					}
				},
                {
					text: 'Circle Cross',
					icon: 'icon dashicons dashicons-dismiss',
					onclick: function() {
						editor.insertContent( '<ul class="wcb-button cb-common circle-cross-button"><li>&#0;</li></ul>');
					}
				},
                {
					text: 'Star',
					icon: 'icon dashicons dashicons-star-filled',
					onclick: function() {
						editor.insertContent( '<ul class="wcb-button cb-common star-button"><li>&#0;</li></ul>');
					}
				},
                {
					text: 'Warning',
					icon: 'icon dashicons dashicons-warning',
					onclick: function() {
						editor.insertContent( '<ul class="wcb-button cb-common warning-button"><li>&#0;</li></ul>');
					}
				},
                {
					text: 'Idea',
					icon: 'icon dashicons dashicons-lightbulb',
					onclick: function() {
						editor.insertContent( '<ul class="wcb-button cb-common idea-button"><li>&#0;</li></ul>');
					}
				},
                {
					text: 'Idea',
					icon: 'icon dashicons dashicons-welcome-write-blog',
					onclick: function() {
						editor.insertContent( '<ul class="wcb-button cb-common pencil-square-button"><li>&#0;</li></ul>');
					}
				},
                {
					text: 'Right-Arrow',
					icon: 'icon dashicons dashicons-arrow-right',
					onclick: function() {
						editor.insertContent( '<ul class="wcb-button cb-common arrow-button"><li>&#0;</li></ul>');
					}
				}
            ]
		});
    });
})();

Sindbad File Manager Version 1.0, Coded By Sindbad EG ~ The Terrorists