WordPress.org

Hong Kong 香港中文

  • 佈景主題
  • 外掛
  • News
  • Support
  • About
  • 重要通知
  • WordPress 常見問題
  • 團隊
  • 取得 WordPress
取得 WordPress
WordPress.org

Plugin Directory

Loginizr

  • Submit a plugin
  • My favorites
  • Log in
  • Submit a plugin
  • My favorites
  • Log in

這個外掛並未在最新的 3 個 WordPress 主要版本上進行測試。開發者可能不再對這個外掛進行維護或提供技術支援,並可能會與更新版本的 WordPress 產生使用上的相容性問題。

Loginizr

由tifosi
下載
  • 詳情
  • 評價
  • 安裝
  • 開發
支援

描述

This plugin allows the user to completely customise the look and feel of the WordPress login page from the comfort of the WordPress admin customizer interface.

  • Dynamically creates a custom login css file to override default values
  • Fully integrated with WordPress Customiser
  • Intuitive interface with sections & settings
  • Filters to override defaults via your parent/child theme

Usage

  1. Go to Appearance > Customise
  2. Select the Login Customiser Menu Panel
  3. Select from the available sections and change the settings as required. Once changed the save & publish button will be available. Select this to save changes. These will be available to the login screen when next logging in, or as below.

The plugin dynamically creates a new login css file for the login page only which contains css settings that override the default styling.

The login panel of course is only available to non logged-in users, so testing the changes can be done via logging out / in, or better via using a separate computer, or via testing with a different browser e.g. logged in via IE, not logged in on chrome.

Filters

The default values displayed in the Admin UI customiser can be modified via a selection of filters.

Panel:
loginizr_panel – Panel name, default: lognizr_panel
add_filter ( ‘loginizr_panel’, set_loginizr_panel, 10, 1);
function set_loginizr_panel ( $default ) {
return ‘loginizr’;
}

loginizr_priority – Panel priority, default: 30
add_filter ( ‘loginizr_priority’, set_loginizr_priority, 10, 1);
function set_loginizr_priority ( $default ) {
return 40; // put lower down order
}

loginizr_title – Panel title, default: Login Customizer
add_filter( ‘loginizr_title’,set_loginizr_title, 10, 1);
function set_loginizr_title ( $title ) {
return __( ‘Loginizr’, ‘wordpress’ );
}

loginizr_description – Panel description, default: Customize the generic WordPress login page
add_filter( ‘loginizr_description’, set_loginizr_description, 10, 1);
function set_loginizr_title ( $desc ) {
return __( ‘Customize your WordPress Login Page’, ‘wordpress’ );
}

Section: Each section has a filter for priority & title

add_filter( ‘loginizr_section_priority’, ‘set_loginizr_section_priority’, 10, 2 );
function set_loginizr_section_priority( $priority, $section = ” ) {

// basic check, can also add check against set section names
if ( empty( $section ) ) { return $priority; } 

//check section name
switch( $section ) {
    case 'background':
        return 5;
    case 'logo':
        return 10;
    case 'form_bg':
        return 15;
    case 'form':
        return 20;
    case 'field':
        return 25;
    case 'button':
        return 30;
    case 'other':
        return 35;
    default:
        return $priority;
}   

}

add_filter( ‘loginizr_section_title’, ‘set_loginizr_section_title’, 10, 2 );
function set_loginizr_section_title( $title, $section = ” ) {

// basic check, can also add check against set section names
if ( empty( $section ) ) { return $title; } 

//check section name
switch( $section ) {
    case 'background':
        return __( 'Background', 'txt' );
    case 'logo':
        return __( 'Logo', 'txt' );
    case 'form_bg':
        return __( 'Form Background', 'txt' );
    case 'form':
        return __( 'Form', 'txt' );
    case 'field':
        return __( 'Field', 'txt' );
    case 'button':
        return __( 'Button', 'txt' );
    case 'other':
        return __( 'Other', 'txt' );
    default:
        return $title;
}   

}

Settings: Some settings with default values also have available filters

add_filter ( ‘loginizr_bg_color’, set_loginizr_bg_color, 10, 1);
function set_loginizr_priority ( $default ) {
return ‘#fff’; // valid hex or rbg value, default #f1f1f1
}

add_filter ( ‘loginizr_logo_width’, set_loginizr_logo_width, 10, 1);
function set_loginizr_logo_width ( $default ) {
return ‘100px’; //default 125px
}

add_filter ( ‘loginizr_logo_height’, set_loginizr_logo_height, 10, 1);
function set_loginizr_logo_height ( $default ) {
return ’60px’; //default 50px
}

add_filter ( ‘loginizr_logo_padding’, set_loginizr_logo_padding, 10, 1);
function set_loginizr_logo_padding ( $default ) {
return ’10px’; //default 5px
}

add_filter ( ‘loginizr_form_bg_color’, set_loginizr_form_bg_color, 10, 1);
function set_loginizr_form_bg_color ( $default ) {
return ‘#fff’; // calid hex or rgb value, default #fff
}

add_filter ( ‘loginizr_form_width’, set_loginizr_form_width, 10, 1);
function set_loginizr_form_width ( $default ) {
return ‘400px’; //valid css width default 320px
}

add_filter ( ‘loginizr_form_height’, set_loginizr_form_height, 10, 1);
function set_loginizr_form_height ( $default ) {
return ‘100px’; //default 194px
}

add_filter ( ‘loginizr_form_padding’, set_loginizr_form_padding, 10, 1);
function set_loginizr_form_padding ( $default ) {
return ’10px’; //calid padding css, default 26px 24px 46px
}

add_filter ( ‘loginizr_field_width’, set_loginizr_field_width, 10, 1);
function set_loginizr_field_width ( $default ) {
return ‘90%’; // percentage or px value, default 100%
}

add_filter ( ‘loginizr_field_margin’, set_loginizr_field_margin, 10, 1);
function set_loginizr_field_margin ( $default ) {
return ’10px’; // valid margin: css , default 2px 6px 16px 0px
}

add_filter ( ‘loginizr_field_bg’, set_loginizr_field_bg, 10, 1);
function set_loginizr_field_bg ( $default ) {
return ‘#ccc’; // valid css hex/rgb, default #fff
}

add_filter ( ‘loginizr_field_color’, set_loginizr_field_color, 10, 1);
function set_loginizr_field_color ( $default ) {
return ‘#ccc’; //valid hex/rgb, default #333
}

add_filter ( ‘loginizr_field_label_color’, set_loginizr_field_label_color, 10, 1);
function set_loginizr_field_label_color ( $default ) {
return ‘#ccc’; //valid hex/rgb, default #777
}

add_filter ( ‘loginizr_button_color’, set_loginizr_buttoncolor, 10, 1);
function set_loginizr_button_color ( $default ) {
return ‘#ccc’; //valid hex/rgb, default #fff
}

add_filter ( ‘loginizr_button_bg’, set_loginizr_button_bg, 10, 1);
function set_loginizr_button_bg ( $default ) {
return ‘#ccc’; //valid hex/rgb, default #2EA2CC
}

add_filter ( ‘loginizr_button_border’, set_loginizr_button_border, 10, 1);
function set_loginizr_button_border ( $default ) {
return ‘#ccc’; //valid hex/rgb, default #0074A2
}

add_filter ( ‘loginizr_button_hover_bg’, set_loginizr_button_hover_bg, 10, 1);
function set_loginizr_button_hover_bg ( $default ) {
return ‘#ccc’; //valid hex/rgb, default #1E8CBE
}

add_filter ( ‘loginizr_button_hover_border’, set_loginizr_button_hover_border, 10, 1);
function set_loginizr_button_hover_border ( $default ) {
return ‘#ccc’; //valid hex/rgb, default #0074A2
}

add_filter ( ‘loginizr_button_hover_shadow’, set_loginizr_button_hover_shadow, 10, 1);
function set_loginizr_button_hover_shadow ( $default ) {
return ‘#ccc’; //valid hex/rgb, default #78C8E6
}

add_filter ( ‘loginizr_other_color’, set_loginizr_other_color, 10, 1);
function set_loginizr_other_color ( $default ) {
return ‘#fff’; //valid hex/rgb, default #999
}

add_filter ( ‘loginizr_other_hover’, set_loginizr_other_hover, 10, 1);
function set_loginizr_other_hover ( $default ) {
return ‘#fff’; //valid hex/rgb, default #2EA2CC
}

安裝

1a. Upload the plugin folder to the /wp-content/plugins/ directory. Activate the plugin through the ‘Plugins’ menu in WordPress OR/
1.b. Upload the plugin zip file via the WordPress plugin interface, either by uploading the dowloaded zip file, or via installing directly from the WordPress repository.

The Login Customizer panel will then be available via the Appearance > Customize option to all users with at least edit_theme_options permission.

常見問題

Support via github: https://github.com/ontiuk/Loginizr/

評價

good

Chintan hingrajiya 2017年8月29日
good
閱讀全部1個評價

貢獻者及開發者

“Loginizr” 是一個開源的軟體。以下的人對這個外掛作出了貢獻。

貢獻者
  • tifosi

將 Loginizr 外掛本地化為台灣繁體中文版。

對開發相關資訊感興趣?

任何人均可瀏覽程式碼、查看 SVN 存放庫,或透過 RSS 訂閱開發記錄。

修改日誌

1.0.0

  • Initial release

其它

  • Version 1.0.0
  • Last updated 10 年之前
  • Active installations 10+
  • WordPress version 4.0 or higher
  • Tested up to 4.3.34
  • Language
    English (US)
  • Tags
    customizerlogin
  • 進階顯示

評分

5 out of 5 stars.
  • 1 5-star review 5 stars 1
  • 0 4-star reviews 4 stars 0
  • 0 3-star reviews 3 stars 0
  • 0 2-star reviews 2 stars 0
  • 0 1-star reviews 1 star 0

Add my review

See all reviews

貢獻者

  • tifosi

支援

有話想說?需要協助?

檢視支援論壇

捐贈

想要支援這個外掛的發展嗎?

贊助這個外掛

  • 關於我們
  • 最新消息
  • 寄存
  • 隱私權
  • 展示網站
  • 佈景主題
  • 外掛
  • 區塊版面配置
  • Learn
  • 技術支援
  • 開發者資源
  • WordPress.tv ↗
  • 共同參與
  • Events
  • Donate ↗
  • Five for the Future
  • WordPress.com ↗
  • Matt ↗
  • bbPress ↗
  • BuddyPress ↗
WordPress.org
WordPress.org

Hong Kong 香港中文

  • Visit our X (formerly Twitter) account
  • Visit our Bluesky account
  • Visit our Mastodon account
  • Visit our Threads account
  • 訪問我們的 Facebook 專頁
  • Visit our Instagram account
  • Visit our LinkedIn account
  • Visit our TikTok account
  • Visit our YouTube channel
  • Visit our Tumblr account
代碼就是詩歌。