Git Product home page Git Product logo

Comments (2)

memset0 avatar memset0 commented on July 4, 2024

此外这项配置没有影响到page.php中生成缩略图的情况。
比如说设置的是纯色缩略图那么在文章页面里呈现的仍然是随机缩略图(或是手动设置的)。

from typecho-theme-material.

idawnlight avatar idawnlight commented on July 4, 2024

lib/ThemeOption.php 前面美化的设置部分写的是 0 1 2,后面的定义部分写的是 1 2 3,感觉我又掉进了 viosey 的坑(

    // 美化部分 L193-L197
    $tools->radio("缩略图显示效果",
    array(
        0 => "显示文章内第一张图片 (若无图片则显示随机图)",
        1 => "只显示纯色",
        2 => "只显示随机图片"
    ), "ThumbnailOption");

    // 定义部分 L459-L468
    $ThumbnailOption = new Typecho_Widget_Helper_Form_Element_Radio('ThumbnailOption',
        array(
            '1' => _t('显示文章内第一张图片 (若无图片则显示随机图片)<br />'),
            '2' => _t('只显示纯色 &emsp;'),
            '3' => _t('只显示随机图片'),
        ),

        '1', _t('缩略图显示效果')
    );
    $form->addInput($ThumbnailOption);

from typecho-theme-material.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.