Skip to content
Navigation Menu
Toggle navigation
Sign in
Appearance settings
Platform
AI CODE CREATION
GitHub Copilot
Write better code with AI
GitHub Spark
Build and deploy intelligent apps
GitHub Models
Manage and compare prompts
MCP Registry
New
Integrate external tools
DEVELOPER WORKFLOWS
Actions
Automate any workflow
Codespaces
Instant dev environments
Issues
Plan and track work
Code Review
Manage code changes
APPLICATION SECURITY
GitHub Advanced Security
Find and fix vulnerabilities
Code security
Secure your code as you build
Secret protection
Stop leaks before they start
EXPLORE
Why GitHub
Documentation
Blog
Changelog
Marketplace
View all features
Solutions
BY COMPANY SIZE
Enterprises
Small and medium teams
Startups
Nonprofits
BY USE CASE
App Modernization
DevSecOps
DevOps
CI/CD
View all use cases
BY INDUSTRY
Healthcare
Financial services
Manufacturing
Government
View all industries
View all solutions
Resources
EXPLORE BY TOPIC
AI
Software Development
DevOps
Security
View all topics
EXPLORE BY TYPE
Customer stories
Events & webinars
Ebooks & reports
Business insights
GitHub Skills
SUPPORT & SERVICES
Documentation
Customer support
Community forum
Trust center
Partners
View all resources
Open Source
COMMUNITY
GitHub Sponsors
Fund open source developers
PROGRAMS
Security Lab
Maintainer Community
Accelerator
Archive Program
REPOSITORIES
Topics
Trending
Collections
Enterprise
ENTERPRISE SOLUTIONS
Enterprise platform
AI-powered developer platform
AVAILABLE ADD-ONS
GitHub Advanced Security
Enterprise-grade security features
Copilot for Business
Enterprise-grade AI features
Premium Support
Enterprise-grade 24/7 support
Pricing
Search or jump to...
Search code, repositories, users, issues, pull requests...
Search syntax tips
Provide feedback
Saved searches
Use saved searches to filter your results more quickly
Sign in
Sign up
Appearance settings
Resetting focus
You signed in with another tab or window.
Reload
to refresh your session.
You signed out in another tab or window.
Reload
to refresh your session.
You switched accounts on another tab or window.
Reload
to refresh your session.
Dismiss alert
{{ message }}
Licoy
/
wordpress-theme-puock
Public
Notifications
You must be signed in to change notification settings
Fork
474
Star
2.9k
Code
Issues
50
Pull requests
2
Discussions
Actions
Projects
Security
0
Insights
Additional navigation options
Code
Issues
Pull requests
Discussions
Actions
Projects
Security
Insights
是否可以优化随机图片的显示
#437
New issue
Copy link
New issue
Copy link
Open
Open
是否可以优化随机图片的显示
#437
Copy link
Labels
功能
新功能或需求
新功能或需求
Description
cxocto
Issue body actions
是否为已有功能:是
建议阐述:
是否可以自动判断random文件夹里的图片数量或文件名,然后随机显示
能否优化随机数,我试过自己手动增加到50张图片,mt_rand(1, 8)改到mt_rand(1, 50),但文章列表中仍是容易出现连续相同图片,不太美观.建议可以判断一下已经出现过的图片编号,然后在后续显示时判断与剔除,例如建立一个1/2图片数量的数组,随机数生成时判断与数组里不一样的才可以放进数组,并进行先进先出的操作,这样就可以有效避免相近的文章会出现相同的图片了
Reactions are currently unavailable
Metadata
Metadata
Assignees
No one assigned
Labels
功能
新功能或需求
新功能或需求
Projects
No projects
Milestone
No milestone
Relationships
None yet
Development
No branches or pull requests
Issue actions
You can’t perform that action at this time.