Skip to content

Add site logo and icon to site settings #356

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 9 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
34 changes: 34 additions & 0 deletions WordPressPCL/Models/Settings.cs
Original file line number Diff line number Diff line change
Expand Up @@ -96,5 +96,39 @@ public class Settings
/// </summary>
[JsonProperty("default_comment_status")]
public OpenStatus? DefaultCommentStatus { get; set; }


private int? _SiteLogo;
/// <summary>
/// Media ID of the site logo
/// </summary>
[JsonProperty("site_logo")]
public int? SiteLogo
{
get
{
return _SiteLogo ?? 0;
}
set
{
_SiteLogo = value ?? 0;
}
}

private int? _SiteIcon;
/// <summary>
/// Media ID of the site icon
/// </summary>
[JsonProperty("site_icon")]
public int? SiteIcon {
get
{
return _SiteIcon ?? 0;
}
set
{
_SiteIcon = value ?? 0;
}
}
}
}
10 changes: 10 additions & 0 deletions WordPressPCL/WordPressPCL.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.