thoughtsideas/ti-whitelabel 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

thoughtsideas/ti-whitelabel

Composer 安装命令:

composer require thoughtsideas/ti-whitelabel

包简介

Whitelabel WordPress Admin area.

README 文档

README

license GitHub release Build Status Packagist Packagist GitHub issues Libraries.io for GitHub

Rebrand your WordPress install's in to match your company or clients branding.

Dependencies

Installation

We recommend installing this dependency via Composer.

As a Composer Dependency

To include these standards as part of a project. Require this repository as a development dependency:

composer require thoughtsideas/ti-whitelabel

Making Your Changes

Make your changes locally on a new branch based off origin/master. Commit your changes to your new branch and regularly push your work to the same named branch on the server. When you need feedback or help, or you think the branch is ready for merging, open a pull request. After someone else has reviewed and signed off on the feature, you can merge it into master.

Documentation

During the Alpha/Beta stages, due to constant changes, documentation will be mainly written in-line. With a dedicated section being created at the first major release.

Customize WordPress Login

Custom CSS

/**
 * Apply our custom styles to the WordPress Login page.
 *
 * @param  array $defaults Default values set by the plugin.
 * @return array           Our modified styles.
 */
function my_customized_login_css( $defaults ) {

	$args = array(
		'background-color' => 'SlateGray', // Accepts all CSS color values.
		'logo'             => array(
			'url'             => get_theme_mod( 'custom_logo' ), // Relative or absolute.
			'width'           => '275px', // Accepts all CSS units.
			'height'          => '100px', // Accepts all CSS units.
		),
		'color'             => 'rgb(51, 51, 51)', // Accepts all CSS color values.
		'link'             => '#ffffff', // Accepts all CSS color values.
		'hover'            => 'hsl(0, 0%, 0%)', // Accepts all CSS color values.
	);

	return wp_parse_args( $args, $defaults );
}

add_filter(
	'ti_whitelable_login_css',
	'my_customized_login_css'
);

Custom Header URL

/**
 * Apply our custom url to the WordPress Login page logo.
 *
 * @param  string $default  Default values set by the plugin.
 * @return string           Our modified value.
 */
function my_customized_header_url( $default ) {

	return 'https://thoughtsideas.uk';

}

add_filter(
	'ti_whitelabel_login_header_url',
	'my_customized_login_header_url'
);

Custom Header Title

/**
 * Apply our custom heading text to the WordPress Login page logo.
 *
 * @param  string $default  Default values set by the plugin.
 * @return string           Our modified value.
 */
function my_customized_header_title( $default ) {

	return 'Thoughts & Ideas - Simplifying your promotion.';

}

add_filter(
	'ti_whitelabel_login_header_title',
	'my_customized_login_header_title'
);

Customize WordPress Admin

Custom Admin Footer Text

/**
 * Apply our custom admin footer text to the WordPress admin page.
 *
 * @return string           Our modified value.
 */
function my_customized_admin_footer_text() {
	return sprintf(
		'%1$s <a href="%3$s" target="_blank">%2$s</a>.',
		esc_html( 'Created by' ),
		esc_html( 'Thoughts & Ideas' ),
		esc_url( 'https://www.thoughtsideas.uk/' )
	);
}

add_filter(
	'ti_whitelabel_admin_footer_text',
	'my_customized_admin_footer_text'
);

统计信息

  • 总下载量: 2.53k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 2
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 2
  • Watchers: 0
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: GPL-2.0
  • 更新时间: 2017-07-20

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固