This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # This script automates the installation of Winget on Windows (Tested on Windows 10 IoT Enterprise LTSC 2021) and was last updated on 8/24/2023. | |
| # It was designed according to the article: https://learn.microsoft.com/zh-tw/windows/iot/iot-enterprise/deployment/install-winget-windows-iot | |
| # To run this script, execute the following one-liner in PowerShell: | |
| # irm https://gist.githubusercontent.com/SandiyosDev/16ce2a887ac2935dc006f5979d98d206/raw/winget-installation-script.ps1/ | iex | |
| # Greeting Message | |
| Write-Host "Running script from https://gist.githubusercontent.com/SandiyosDev/16ce2a887ac2935dc006f5979d98d206/raw/winget-installation-script.ps1/ by SandiyosDev" | |
| # Check if running as Administrator | |
| if (-Not ([Security.Principal.WindowsPrincipal][Security.Principal.WindowsIdentity]::GetCurrent()).IsInRole([Security.Principal.WindowsBuiltInRole] "Administrator")) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| /** | |
| * Plugin Name | |
| * | |
| * @package Custom_Featured_Post_Widget | |
| * @author Gary Jones | |
| * @license GPL-2.0+ | |
| * @link http://gamajo.com/ | |
| * @copyright 2013 Gary Jones, Gamajo Tech | |
| */ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| add_image_size( 'agency-like-featured-posts', 380, 380, TRUE ); | |
| genesis_register_sidebar( array( | |
| 'id' => 'agency-like-featured-posts', | |
| 'name' => __( 'Agency-like Featured Posts', 'theme-name' ), | |
| 'description' => __( 'This is the agency like featured posts section.', 'theme-name' ), | |
| ) ); | |
| add_action( 'genesis_after_header', 'sk_featured_posts' ); | |
| function sk_featured_posts() { |