Skip to content

首页Projpct的链接怎么修改成本页打开 #13

Description

@xcdler
function Projects($sorts = NULL) {
    $options = Typecho_Widget::widget('Widget_Options');
    $Project = NULL;
    if ($options->Projects) {
        $list = explode("\r\n", $options->Projects);
        foreach ($list as $val) {
            list($name, $url, $description, $sort) = explode("|", $val);
            if ($sorts) {
                $arr = explode("|", $sorts);
                if ($sort && in_array($sort, $arr)) {
                    $Project .= $url ? '
  • '.$name.': '.$description.'
  • ' : '
  • '.$name.': '.$description.'
  • '; } } else { $Project .= $url ? '
  • '.$name.': '.$description.'
  • ' : '
  • '.$name.': '.$description.'
  • '; } } } echo $Project ? $Project : '世间无限丹青手,一片伤心画不成。'; }

    暗色主题在新标签页中打开链接,浏览器会有会闪白,我想修改一下变成本页打开。
    我看了一下代码,发现简单的删除target="_blank"不起作用,首页会不展示项目列表了。
    不是很懂代码,想问下作者怎么修改可以达到效果。

    Activity

    Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

    Metadata

    Metadata

    Assignees

    No one assigned

      Labels

      No labels
      No labels

      Projects

      No projects

        Milestone

        No milestone

        Relationships

        None yet

        Development

        No branches or pull requests

        Issue actions