Code Duplication    Length = 29-40 lines in 2 locations

includes/admin/components/buddypress/wsl.components.buddypress.notfound.php 1 location

@@ 18-57 (lines=40) @@
15
16
// --------------------------------------------------------------------
17
18
function wsl_component_buddypress_notfound()
19
{
20
	// HOOKABLE:
21
	do_action( "wsl_component_buddypress_notfound_start" );
22
?> 
23
<style>
24
#wsl_div_warn { 
25
	padding: 10px;  
26
	border: 1px solid #ddd; 
27
	background-color: #fff; 
28
	
29
	width: 55%;
30
	margin: 0px auto;
31
	margin-top:30px;
32
}
33
</style>
34
<div id="wsl_div_warn">
35
	<h3 style="margin:0px;"><?php _wsl_e("BuddyPress plugin not found!", 'wordpress-social-login') ?></h3> 
36
37
	<hr />
38
39
	<p>
40
		<?php _wsl_e('<a href="https://buddypress.org/" target="_blank">BuddyPress</a> was not found on your website. The plugin is be either not installed or disabled', 'wordpress-social-login') ?> .
41
	</p>
42
43
	<p>
44
		<?php _wsl_e("If you believe you've found a problem with <b>WordPress Social Login</b>, be sure to let us know so we can fix it", 'wordpress-social-login') ?>.
45
	</p>
46
47
	<hr />
48
49
	<div>
50
		<a class="button-secondary" href="http://miled.github.io/wordpress-social-login/support.html" target="_blank"><?php _wsl_e( "Report as bug", 'wordpress-social-login' ) ?></a>
51
		<a class="button-primary" href="options-general.php?page=wordpress-social-login&wslp=components" style="float:<?php if( is_rtl() ) echo 'left'; else echo 'right'; ?>"><?php _wsl_e( "Check enabled components", 'wordpress-social-login' ) ?></a>
52
	</div> 
53
</div>
54
<?php
55
	// HOOKABLE: 
56
	do_action( "wsl_component_buddypress_notfound_end" );
57
}
58
59
// --------------------------------------------------------------------	
60

includes/admin/wsl.admin.ui.php 1 location

@@ 278-306 (lines=29) @@
275
/**
276
* Renders wsl admin error page
277
*/
278
function wsl_admin_ui_error()
279
{
280
	// HOOKABLE:
281
	do_action( "wsl_admin_ui_error_start" );
282
?>
283
<div id="wsl_div_warn">
284
	<h3 style="margin:0px;"><?php _wsl_e('Oops! We ran into an issue.', 'wordpress-social-login') ?></h3>
285
286
	<hr />
287
288
	<p>
289
		<?php _wsl_e('Unknown or Disabled <b>Component</b>! Check the list of enabled components or the typed URL', 'wordpress-social-login') ?> .
290
	</p>
291
292
	<p>
293
		<?php _wsl_e("If you believe you've found a problem with <b>WordPress Social Login</b>, be sure to let us know so we can fix it", 'wordpress-social-login') ?>.
294
	</p>
295
296
	<hr />
297
298
	<div>
299
		<a class="button-secondary" href="http://miled.github.io/wordpress-social-login/support.html" target="_blank"><?php _wsl_e( "Report as bug", 'wordpress-social-login' ) ?></a>
300
		<a class="button-primary" href="options-general.php?page=wordpress-social-login&wslp=components" style="float:<?php if( is_rtl() ) echo 'left'; else echo 'right'; ?>"><?php _wsl_e( "Check enabled components", 'wordpress-social-login' ) ?></a>
301
	</div>
302
</div>
303
<?php
304
	// HOOKABLE:
305
	do_action( "wsl_admin_ui_error_end" );
306
}
307
308
// --------------------------------------------------------------------
309