Changes after website wordpress update and switch from theme-my-login to user-registration plugin

This commit is contained in:
Silvan Calarco 2019-11-02 10:28:43 +01:00
parent 247f09cb87
commit ac4868971f
4 changed files with 3956 additions and 5 deletions

View File

@ -254,7 +254,8 @@ $args = array('number' => 10, 'largest' => 20);
return $args;
}
load_plugin_textdomain('theme-my-login' , get_site_url() . 'wp-content/plugins/theme-my-login/languages/');
// load_plugin_textdomain('theme-my-login' , get_site_url() . 'wp-content/plugins/theme-my-login/languages/');
// load_plugin_textdomain('user-registration' , get_site_url() . 'wp-content/themes/openmamba/languages/');
add_action('wp_head','hook_cookielaw');
@ -262,9 +263,9 @@ function hook_cookielaw()
{
$outputlang = get_bloginfo("language");
$outputlang = substr($outputlang,0,2);
$message = __("This website uses cookies to improve user experience.",responsive);
$accepttext = __("I Understand",responsive);
$policytext = __("Cookie policy",responsive);
$message = __("This website uses cookies to improve user experience.","responsive");
$accepttext = __("I Understand","responsive");
$policytext = __("Cookie policy","responsive");
$policyurl = "/" . $outputlang . "/info/policy/";
$output = "<link rel=\"stylesheet\" type=\"text/css\" href=\"" . get_stylesheet_directory_uri() . "/styles/jquery.cookiebar.css\" />\n";
$output .= "<script type=\"text/javascript\" src=\"" . get_stylesheet_directory_uri() . "/scripts/jquery.cookiebar.js\"></script>\n";

Binary file not shown.

File diff suppressed because it is too large Load Diff

View File

@ -31,7 +31,8 @@ if ( !is_active_sidebar( 'top-widget' )
<?php global $current_user;
echo "<br>";
if (!is_user_logged_in()) {
echo "<a class='mytoplink' href=".wp_login_url( get_permalink() ).">".__('Login')."</a> / ";
//echo "<a class='mytoplink' href=".wp_login_url( get_permalink() ).">".__('Login')."</a> / ";
echo "<a class='mytoplink' href=".site_url('/login/').">".__('Login')."</a>&nbsp;/&nbsp;";
echo "<a class='mytoplink' href=".site_url('/register/').">".__('Register')."</a>&nbsp;&nbsp;";
} else {
get_currentuserinfo();