Fragen\GitHub_Updater\Theme::customize_theme_update_html PHP Метод

customize_theme_update_html() публичный Метод

Call theme messaging for single site installation.
Автор: Seth Carstens
public customize_theme_update_html ( $prepared_themes ) : mixed
$prepared_themes
Результат mixed
    public function customize_theme_update_html($prepared_themes)
    {
        foreach ((array) $this->config as $theme) {
            if (empty($prepared_themes[$theme->repo])) {
                continue;
            }
            if (!empty($prepared_themes[$theme->repo]['hasUpdate'])) {
                $prepared_themes[$theme->repo]['update'] = $this->append_theme_actions_content($theme);
            } else {
                $prepared_themes[$theme->repo]['description'] .= $this->append_theme_actions_content($theme);
            }
            if (!$theme->release_asset) {
                $prepared_themes[$theme->repo]['description'] .= $this->single_install_switcher($theme);
            }
        }
        return $prepared_themes;
    }