repo
stringlengths
7
63
file_url
stringlengths
81
284
file_path
stringlengths
5
200
content
stringlengths
0
32.8k
language
stringclasses
1 value
license
stringclasses
7 values
commit_sha
stringlengths
40
40
retrieved_at
stringdate
2026-01-04 15:02:33
2026-01-05 05:24:06
truncated
bool
2 classes
moe-mizrak/laravel-openrouter
https://github.com/moe-mizrak/laravel-openrouter/blob/a6ca59e12aef98b4d9d78291c15e21aa070363c0/src/Facades/LaravelOpenRouter.php
src/Facades/LaravelOpenRouter.php
<?php declare(strict_types=1); namespace MoeMizrak\LaravelOpenrouter\Facades; use GuzzleHttp\Promise\PromiseInterface; use Illuminate\Support\Facades\Facade; use MoeMizrak\LaravelOpenrouter\DTO\ChatData; use MoeMizrak\LaravelOpenrouter\DTO\CostResponseData; use MoeMizrak\LaravelOpenrouter\DTO\ErrorData; use MoeMizra...
php
MIT
a6ca59e12aef98b4d9d78291c15e21aa070363c0
2026-01-05T04:24:11.459394Z
false
moe-mizrak/laravel-openrouter
https://github.com/moe-mizrak/laravel-openrouter/blob/a6ca59e12aef98b4d9d78291c15e21aa070363c0/src/DTO/ProviderPreferencesData.php
src/DTO/ProviderPreferencesData.php
<?php declare(strict_types=1); namespace MoeMizrak\LaravelOpenrouter\DTO; use MoeMizrak\LaravelOpenrouter\Rules\AllowedValues; use MoeMizrak\LaravelOpenrouter\Types\DataCollectionType; /** * DTO for the provider preferences. * for more info: https://openrouter.ai/docs#provider-routing * * Class ProviderPreferen...
php
MIT
a6ca59e12aef98b4d9d78291c15e21aa070363c0
2026-01-05T04:24:11.459394Z
false
moe-mizrak/laravel-openrouter
https://github.com/moe-mizrak/laravel-openrouter/blob/a6ca59e12aef98b4d9d78291c15e21aa070363c0/src/DTO/InputAudioData.php
src/DTO/InputAudioData.php
<?php declare(strict_types=1); namespace MoeMizrak\LaravelOpenrouter\DTO; /** * DTO for the input audio which are data and format for the audio. * * Class InputAudioData * @package MoeMizrak\LaravelOpenrouter\DTO */ final class InputAudioData extends DataTransferObject { /** * @inheritDoc */ p...
php
MIT
a6ca59e12aef98b4d9d78291c15e21aa070363c0
2026-01-05T04:24:11.459394Z
false
moe-mizrak/laravel-openrouter
https://github.com/moe-mizrak/laravel-openrouter/blob/a6ca59e12aef98b4d9d78291c15e21aa070363c0/src/DTO/FileUrlData.php
src/DTO/FileUrlData.php
<?php declare(strict_types=1); namespace MoeMizrak\LaravelOpenrouter\DTO; /** * DTO for file URL/data wrapper. * Supports both direct URLs and base64 data URIs for documents. * * Class FileUrlData * * @package MoeMizrak\LaravelOpenRouter\DTO */ final class FileUrlData extends DataTransferObject { /** ...
php
MIT
a6ca59e12aef98b4d9d78291c15e21aa070363c0
2026-01-05T04:24:11.459394Z
false
moe-mizrak/laravel-openrouter
https://github.com/moe-mizrak/laravel-openrouter/blob/a6ca59e12aef98b4d9d78291c15e21aa070363c0/src/DTO/FunctionData.php
src/DTO/FunctionData.php
<?php declare(strict_types=1); namespace MoeMizrak\LaravelOpenrouter\DTO; /** * Function tool that is called. * * Class FunctionData * @package MoeMizrak\LaravelOpenrouter\DTO */ final class FunctionData extends DataTransferObject { /** * @inheritDoc */ public function __construct( /**...
php
MIT
a6ca59e12aef98b4d9d78291c15e21aa070363c0
2026-01-05T04:24:11.459394Z
false
moe-mizrak/laravel-openrouter
https://github.com/moe-mizrak/laravel-openrouter/blob/a6ca59e12aef98b4d9d78291c15e21aa070363c0/src/DTO/ChoiceData.php
src/DTO/ChoiceData.php
<?php declare(strict_types=1); namespace MoeMizrak\LaravelOpenrouter\DTO; /** * ChoiceData is the DTO for the choices of the api call. * * Class ChoiceData * @package MoeMizrak\LaravelOpenrouter\DTO */ class ChoiceData extends DataTransferObject { /** * @inheritDoc */ public function __constru...
php
MIT
a6ca59e12aef98b4d9d78291c15e21aa070363c0
2026-01-05T04:24:11.459394Z
false
moe-mizrak/laravel-openrouter
https://github.com/moe-mizrak/laravel-openrouter/blob/a6ca59e12aef98b4d9d78291c15e21aa070363c0/src/DTO/ResponseFormatData.php
src/DTO/ResponseFormatData.php
<?php declare(strict_types=1); namespace MoeMizrak\LaravelOpenrouter\DTO; /** * Allows to force the model to produce specific output format. * Only supported by OpenAI models, Nitro models, and some others - check the * providers on the model page on https://openrouter.ai/docs#models to see if it's supported, *...
php
MIT
a6ca59e12aef98b4d9d78291c15e21aa070363c0
2026-01-05T04:24:11.459394Z
false
moe-mizrak/laravel-openrouter
https://github.com/moe-mizrak/laravel-openrouter/blob/a6ca59e12aef98b4d9d78291c15e21aa070363c0/src/DTO/WebSearchOptionsData.php
src/DTO/WebSearchOptionsData.php
<?php declare(strict_types=1); namespace MoeMizrak\LaravelOpenrouter\DTO; use MoeMizrak\LaravelOpenrouter\Rules\AllowedValues; use MoeMizrak\LaravelOpenrouter\Types\SearchContextSizeType; /** * DTO for web search options configuration. * For more info: https://openrouter.ai/docs/guides/features/web-search * * C...
php
MIT
a6ca59e12aef98b4d9d78291c15e21aa070363c0
2026-01-05T04:24:11.459394Z
false
moe-mizrak/laravel-openrouter
https://github.com/moe-mizrak/laravel-openrouter/blob/a6ca59e12aef98b4d9d78291c15e21aa070363c0/src/DTO/DataTransferObject.php
src/DTO/DataTransferObject.php
<?php declare(strict_types=1); namespace MoeMizrak\LaravelOpenrouter\DTO; use ReflectionClass; use Spatie\LaravelData\Data; /** * DataTransferObject is the base class for all DTOs. * * Class DataTransferObject * @package MoeMizrak\LaravelOpenrouter\DTO */ abstract class DataTransferObject extends Data { /*...
php
MIT
a6ca59e12aef98b4d9d78291c15e21aa070363c0
2026-01-05T04:24:11.459394Z
false
moe-mizrak/laravel-openrouter
https://github.com/moe-mizrak/laravel-openrouter/blob/a6ca59e12aef98b4d9d78291c15e21aa070363c0/src/DTO/CostResponseData.php
src/DTO/CostResponseData.php
<?php declare(strict_types=1); namespace MoeMizrak\LaravelOpenrouter\DTO; /** * CostResponseData is the response DTO for cost including token info and cost which consists of: * - id * - model * - streamed * - total_cost * - origin * - created_at * - cancelled * - finish_reason * - generation_time ...
php
MIT
a6ca59e12aef98b4d9d78291c15e21aa070363c0
2026-01-05T04:24:11.459394Z
false
moe-mizrak/laravel-openrouter
https://github.com/moe-mizrak/laravel-openrouter/blob/a6ca59e12aef98b4d9d78291c15e21aa070363c0/src/DTO/ChatData.php
src/DTO/ChatData.php
<?php declare(strict_types=1); namespace MoeMizrak\LaravelOpenrouter\DTO; use MoeMizrak\LaravelOpenrouter\Exceptions\OpenRouterValidationException; use MoeMizrak\LaravelOpenrouter\Rules\AllowedValues; use MoeMizrak\LaravelOpenrouter\Rules\XORFields; use MoeMizrak\LaravelOpenrouter\Types\RouteType; use MoeMizrak\Lara...
php
MIT
a6ca59e12aef98b4d9d78291c15e21aa070363c0
2026-01-05T04:24:11.459394Z
false
moe-mizrak/laravel-openrouter
https://github.com/moe-mizrak/laravel-openrouter/blob/a6ca59e12aef98b4d9d78291c15e21aa070363c0/src/DTO/DeltaData.php
src/DTO/DeltaData.php
<?php declare(strict_types=1); namespace MoeMizrak\LaravelOpenrouter\DTO; /** * DTO that represents a message delta i.e. any changed fields on a message during streaming. * * Class DeltaData * @package MoeMizrak\LaravelOpenrouter\DTO */ final class DeltaData extends DataTransferObject { /** * @inheritD...
php
MIT
a6ca59e12aef98b4d9d78291c15e21aa070363c0
2026-01-05T04:24:11.459394Z
false
moe-mizrak/laravel-openrouter
https://github.com/moe-mizrak/laravel-openrouter/blob/a6ca59e12aef98b4d9d78291c15e21aa070363c0/src/DTO/NonChatChoiceData.php
src/DTO/NonChatChoiceData.php
<?php declare(strict_types=1); namespace MoeMizrak\LaravelOpenrouter\DTO; /** * NonChatChoiceData is the DTO choice type for non-chat responses * * Class NonChatChoiceData * @package MoeMizrak\LaravelOpenrouter\DTO */ final class NonChatChoiceData extends ChoiceData { /** * @inheritDoc */ publ...
php
MIT
a6ca59e12aef98b4d9d78291c15e21aa070363c0
2026-01-05T04:24:11.459394Z
false
moe-mizrak/laravel-openrouter
https://github.com/moe-mizrak/laravel-openrouter/blob/a6ca59e12aef98b4d9d78291c15e21aa070363c0/src/DTO/PluginData.php
src/DTO/PluginData.php
<?php declare(strict_types=1); namespace MoeMizrak\LaravelOpenrouter\DTO; /** * PluginData is the DTO for the plugins of the api call. * * Check https://openrouter.ai/docs/guides/features/web-search * Also check https://openrouter.ai/docs/guides/overview/multimodal/pdfs * * Class PluginData * @package MoeMizr...
php
MIT
a6ca59e12aef98b4d9d78291c15e21aa070363c0
2026-01-05T04:24:11.459394Z
false
moe-mizrak/laravel-openrouter
https://github.com/moe-mizrak/laravel-openrouter/blob/a6ca59e12aef98b4d9d78291c15e21aa070363c0/src/DTO/ImageContentPartData.php
src/DTO/ImageContentPartData.php
<?php declare(strict_types=1); namespace MoeMizrak\LaravelOpenrouter\DTO; use MoeMizrak\LaravelOpenrouter\Rules\AllowedValues; /** * DTO for the image contents. * * Class ImageContentPartData * @package MoeMizrak\LaravelOpenrouter\DTO */ final class ImageContentPartData extends DataTransferObject { /** ...
php
MIT
a6ca59e12aef98b4d9d78291c15e21aa070363c0
2026-01-05T04:24:11.459394Z
false
moe-mizrak/laravel-openrouter
https://github.com/moe-mizrak/laravel-openrouter/blob/a6ca59e12aef98b4d9d78291c15e21aa070363c0/src/DTO/ToolCallData.php
src/DTO/ToolCallData.php
<?php declare(strict_types=1); namespace MoeMizrak\LaravelOpenrouter\DTO; /** * An array of tool calls the run step was involved in. * These can be associated with one of three types of tools: code_interpreter, file_search, or function. * * Class ToolCallData * @package MoeMizrak\LaravelOpenrouter\DTO */ final...
php
MIT
a6ca59e12aef98b4d9d78291c15e21aa070363c0
2026-01-05T04:24:11.459394Z
false
moe-mizrak/laravel-openrouter
https://github.com/moe-mizrak/laravel-openrouter/blob/a6ca59e12aef98b4d9d78291c15e21aa070363c0/src/DTO/ErrorData.php
src/DTO/ErrorData.php
<?php declare(strict_types=1); namespace MoeMizrak\LaravelOpenrouter\DTO; /** * DTO for error messages. * * Class ErrorData * @package MoeMizrak\LaravelOpenrouter\DTO */ final class ErrorData extends DataTransferObject { /** * @inheritDoc */ public function __construct( /** * ...
php
MIT
a6ca59e12aef98b4d9d78291c15e21aa070363c0
2026-01-05T04:24:11.459394Z
false
moe-mizrak/laravel-openrouter
https://github.com/moe-mizrak/laravel-openrouter/blob/a6ca59e12aef98b4d9d78291c15e21aa070363c0/src/DTO/ImageUrlData.php
src/DTO/ImageUrlData.php
<?php declare(strict_types=1); namespace MoeMizrak\LaravelOpenrouter\DTO; /** * DTO for the image url which are url and optional detail. * * Class ImageUrlData * @package MoeMizrak\LaravelOpenrouter\DTO */ final class ImageUrlData extends DataTransferObject { /** * @inheritDoc */ public functi...
php
MIT
a6ca59e12aef98b4d9d78291c15e21aa070363c0
2026-01-05T04:24:11.459394Z
false
moe-mizrak/laravel-openrouter
https://github.com/moe-mizrak/laravel-openrouter/blob/a6ca59e12aef98b4d9d78291c15e21aa070363c0/src/DTO/ValidationResultData.php
src/DTO/ValidationResultData.php
<?php declare(strict_types=1); namespace MoeMizrak\LaravelOpenrouter\DTO; /** * DTO for the validation result. * Contains whether the validation is successful and an optional message for failure. * * Class ValidationResultData * @package MoeMizrak\LaravelOpenrouter\DTO */ final class ValidationResultData exten...
php
MIT
a6ca59e12aef98b4d9d78291c15e21aa070363c0
2026-01-05T04:24:11.459394Z
false
moe-mizrak/laravel-openrouter
https://github.com/moe-mizrak/laravel-openrouter/blob/a6ca59e12aef98b4d9d78291c15e21aa070363c0/src/DTO/RateLimitData.php
src/DTO/RateLimitData.php
<?php declare(strict_types=1); namespace MoeMizrak\LaravelOpenrouter\DTO; /** * RateLimitData is the response DTO for rate limit which consists of: * - requests * - interval * * Class RateLimitData * @package MoeMizrak\LaravelOpenrouter\DTO */ final class RateLimitData extends DataTransferObject { /** ...
php
MIT
a6ca59e12aef98b4d9d78291c15e21aa070363c0
2026-01-05T04:24:11.459394Z
false
moe-mizrak/laravel-openrouter
https://github.com/moe-mizrak/laravel-openrouter/blob/a6ca59e12aef98b4d9d78291c15e21aa070363c0/src/DTO/MessageData.php
src/DTO/MessageData.php
<?php declare(strict_types=1); namespace MoeMizrak\LaravelOpenrouter\DTO; /** * DTO that represents a message i.e. any changed fields on a message. * * Class MessageData * @package MoeMizrak\LaravelOpenrouter\DTO */ final class MessageData extends DataTransferObject { /** * @inheritDoc */ publ...
php
MIT
a6ca59e12aef98b4d9d78291c15e21aa070363c0
2026-01-05T04:24:11.459394Z
false
moe-mizrak/laravel-openrouter
https://github.com/moe-mizrak/laravel-openrouter/blob/a6ca59e12aef98b4d9d78291c15e21aa070363c0/src/DTO/FileContentData.php
src/DTO/FileContentData.php
<?php declare(strict_types=1); namespace MoeMizrak\LaravelOpenrouter\DTO; use MoeMizrak\LaravelOpenrouter\Rules\AllowedValues; /** * DTO for file/document content in messages. * * Class FileContentData * * @package MoeMizrak\LaravelOpenRouter\DTO */ final class FileContentData extends DataTransferObject { ...
php
MIT
a6ca59e12aef98b4d9d78291c15e21aa070363c0
2026-01-05T04:24:11.459394Z
false
moe-mizrak/laravel-openrouter
https://github.com/moe-mizrak/laravel-openrouter/blob/a6ca59e12aef98b4d9d78291c15e21aa070363c0/src/DTO/AudioContentData.php
src/DTO/AudioContentData.php
<?php declare(strict_types=1); namespace MoeMizrak\LaravelOpenrouter\DTO; use MoeMizrak\LaravelOpenrouter\Rules\AllowedValues; /** * DTO for the audio contents. * * Class AudioContentData * @package MoeMizrak\LaravelOpenrouter\DTO */ final class AudioContentData extends DataTransferObject { /** * The ...
php
MIT
a6ca59e12aef98b4d9d78291c15e21aa070363c0
2026-01-05T04:24:11.459394Z
false
moe-mizrak/laravel-openrouter
https://github.com/moe-mizrak/laravel-openrouter/blob/a6ca59e12aef98b4d9d78291c15e21aa070363c0/src/DTO/NonStreamingChoiceData.php
src/DTO/NonStreamingChoiceData.php
<?php declare(strict_types=1); namespace MoeMizrak\LaravelOpenrouter\DTO; /** * NonStreamingChoiceData is the DTO choice type for non-streaming responses. * * Class NonStreamingChoiceData * @package MoeMizrak\LaravelOpenrouter\DTO */ final class NonStreamingChoiceData extends ChoiceData { /** * @inheri...
php
MIT
a6ca59e12aef98b4d9d78291c15e21aa070363c0
2026-01-05T04:24:11.459394Z
false
moe-mizrak/laravel-openrouter
https://github.com/moe-mizrak/laravel-openrouter/blob/a6ca59e12aef98b4d9d78291c15e21aa070363c0/src/DTO/StreamingChoiceData.php
src/DTO/StreamingChoiceData.php
<?php declare(strict_types=1); namespace MoeMizrak\LaravelOpenrouter\DTO; /** * StreamingChoiceData is the DTO choice type for streaming responses * * Class StreamingChoiceData * @package MoeMizrak\LaravelOpenrouter\DTO */ final class StreamingChoiceData extends ChoiceData { /** * @inheritDoc */ ...
php
MIT
a6ca59e12aef98b4d9d78291c15e21aa070363c0
2026-01-05T04:24:11.459394Z
false
moe-mizrak/laravel-openrouter
https://github.com/moe-mizrak/laravel-openrouter/blob/a6ca59e12aef98b4d9d78291c15e21aa070363c0/src/DTO/ResponseData.php
src/DTO/ResponseData.php
<?php declare(strict_types=1); namespace MoeMizrak\LaravelOpenrouter\DTO; /** * ResponseData is the general response DTO which consists of: * - id * - model * - object * - created * - provider * - citations * - choices (DTO object) * - usage (DTO object) * * Class ResponseData * @package MoeMizrak\Larave...
php
MIT
a6ca59e12aef98b4d9d78291c15e21aa070363c0
2026-01-05T04:24:11.459394Z
false
moe-mizrak/laravel-openrouter
https://github.com/moe-mizrak/laravel-openrouter/blob/a6ca59e12aef98b4d9d78291c15e21aa070363c0/src/DTO/TextContentData.php
src/DTO/TextContentData.php
<?php declare(strict_types=1); namespace MoeMizrak\LaravelOpenrouter\DTO; use MoeMizrak\LaravelOpenrouter\Rules\AllowedValues; /** * DTO for the contents. * * Class TextContentData * @package MoeMizrak\LaravelOpenrouter\DTO */ final class TextContentData extends DataTransferObject { /** * The allowed ...
php
MIT
a6ca59e12aef98b4d9d78291c15e21aa070363c0
2026-01-05T04:24:11.459394Z
false
moe-mizrak/laravel-openrouter
https://github.com/moe-mizrak/laravel-openrouter/blob/a6ca59e12aef98b4d9d78291c15e21aa070363c0/src/DTO/ImageConfigData.php
src/DTO/ImageConfigData.php
<?php declare(strict_types=1); namespace MoeMizrak\LaravelOpenrouter\DTO; use MoeMizrak\LaravelOpenrouter\Rules\AllowedValues; /** * DTO for image configuration in chat completion requests. * * Class ImageConfigData * @package MoeMizrak\LaravelOpenrouter\DTO */ final class ImageConfigData extends DataTransferO...
php
MIT
a6ca59e12aef98b4d9d78291c15e21aa070363c0
2026-01-05T04:24:11.459394Z
false
moe-mizrak/laravel-openrouter
https://github.com/moe-mizrak/laravel-openrouter/blob/a6ca59e12aef98b4d9d78291c15e21aa070363c0/src/DTO/UsageData.php
src/DTO/UsageData.php
<?php declare(strict_types=1); namespace MoeMizrak\LaravelOpenrouter\DTO; /** * UsageData is the DTO for the usage info of the api call. * * Class UsageData * @package MoeMizrak\LaravelOpenrouter\DTO */ final class UsageData extends DataTransferObject { /** * @inheritDoc */ public function __c...
php
MIT
a6ca59e12aef98b4d9d78291c15e21aa070363c0
2026-01-05T04:24:11.459394Z
false
moe-mizrak/laravel-openrouter
https://github.com/moe-mizrak/laravel-openrouter/blob/a6ca59e12aef98b4d9d78291c15e21aa070363c0/src/DTO/ReasoningData.php
src/DTO/ReasoningData.php
<?php declare(strict_types=1); namespace MoeMizrak\LaravelOpenrouter\DTO; use MoeMizrak\LaravelOpenrouter\Rules\AllowedValues; use MoeMizrak\LaravelOpenrouter\Types\EffortType; /** * ReasoningData is the DTO for the reasoning parameters of the API call. * For more info: https://openrouter.ai/docs/use-cases/reason...
php
MIT
a6ca59e12aef98b4d9d78291c15e21aa070363c0
2026-01-05T04:24:11.459394Z
false
moe-mizrak/laravel-openrouter
https://github.com/moe-mizrak/laravel-openrouter/blob/a6ca59e12aef98b4d9d78291c15e21aa070363c0/src/DTO/LimitResponseData.php
src/DTO/LimitResponseData.php
<?php declare(strict_types=1); namespace MoeMizrak\LaravelOpenrouter\DTO; /** * LimitResponseData is the response DTO for rate limit or credits left which consists of: * - label * - limit * - usage * - limit_remaining * - is_free_tier * - rate_limit (DTO object) * * Class LimitResponseData * @package...
php
MIT
a6ca59e12aef98b4d9d78291c15e21aa070363c0
2026-01-05T04:24:11.459394Z
false
moe-mizrak/laravel-openrouter
https://github.com/moe-mizrak/laravel-openrouter/blob/a6ca59e12aef98b4d9d78291c15e21aa070363c0/tests/TestCase.php
tests/TestCase.php
<?php declare(strict_types=1); namespace MoeMizrak\LaravelOpenrouter\Tests; use MoeMizrak\LaravelOpenrouter\Facades\LaravelOpenRouter; use MoeMizrak\LaravelOpenrouter\OpenRouterServiceProvider; use Orchestra\Testbench\TestCase as OrchestraTestCase; class TestCase extends OrchestraTestCase { /** * @return v...
php
MIT
a6ca59e12aef98b4d9d78291c15e21aa070363c0
2026-01-05T04:24:11.459394Z
false
moe-mizrak/laravel-openrouter
https://github.com/moe-mizrak/laravel-openrouter/blob/a6ca59e12aef98b4d9d78291c15e21aa070363c0/tests/OpenRouterAPITest.php
tests/OpenRouterAPITest.php
<?php namespace MoeMizrak\LaravelOpenrouter\Tests; use GuzzleHttp\ClientInterface; use GuzzleHttp\Psr7\Response; use Illuminate\Support\Arr; use Mockery\MockInterface; use MoeMizrak\LaravelOpenrouter\DTO\AudioContentData; use MoeMizrak\LaravelOpenrouter\DTO\ChatData; use MoeMizrak\LaravelOpenrouter\DTO\CostResponseDa...
php
MIT
a6ca59e12aef98b4d9d78291c15e21aa070363c0
2026-01-05T04:24:11.459394Z
true
moe-mizrak/laravel-openrouter
https://github.com/moe-mizrak/laravel-openrouter/blob/a6ca59e12aef98b4d9d78291c15e21aa070363c0/config/laravel-openrouter.php
config/laravel-openrouter.php
<?php return [ /* |-------------------------------------------------------------------------- | OpenRouter API Key |-------------------------------------------------------------------------- | | Here you may specify the API key for accessing the OpenRouter API. | This key is required to aut...
php
MIT
a6ca59e12aef98b4d9d78291c15e21aa070363c0
2026-01-05T04:24:11.459394Z
false
mashirozx/sakura2
https://github.com/mashirozx/sakura2/blob/1243d4014fc8fb53e16cb2bc6f31ef38e903a518/src/php/footer.php
src/php/footer.php
<!-- footer --> <?php get_template_part('layout/footer-bar');?> <!-- /footer --> </main> <!-- /wrapper --> </div> <!-- snackbar --> <?php get_template_part('layout/snackbar');?> <?php wp_footer();?> <!-- analytics --> <?php echo (sakura_options('analytics_code_position') == 'foot') ? ...
php
MIT
1243d4014fc8fb53e16cb2bc6f31ef38e903a518
2026-01-05T04:23:44.960907Z
false
mashirozx/sakura2
https://github.com/mashirozx/sakura2/blob/1243d4014fc8fb53e16cb2bc6f31ef38e903a518/src/php/author.php
src/php/author.php
<?php get_header(); ?> <main role="main" aria-label="Content"> <!-- section --> <section> <?php if ( have_posts() ): the_post(); ?> <h1><?php esc_html_e( 'Author Archives for ', 'html5blank' ); echo get_the_author(); ?></h1> <?php if ( get_the_author_meta( 'description' ) ) : ?> <?php echo get_avatar...
php
MIT
1243d4014fc8fb53e16cb2bc6f31ef38e903a518
2026-01-05T04:23:44.960907Z
false
mashirozx/sakura2
https://github.com/mashirozx/sakura2/blob/1243d4014fc8fb53e16cb2bc6f31ef38e903a518/src/php/page.php
src/php/page.php
<?php get_header(); if (have_posts()) { while (have_posts()) { the_post(); get_template_part('templates/content-normal'); } } else { get_template_part('templates/content-empty'); } get_footer();
php
MIT
1243d4014fc8fb53e16cb2bc6f31ef38e903a518
2026-01-05T04:23:44.960907Z
false
mashirozx/sakura2
https://github.com/mashirozx/sakura2/blob/1243d4014fc8fb53e16cb2bc6f31ef38e903a518/src/php/archive.php
src/php/archive.php
<?php get_header(); ?> <main role="main" aria-label="Content"> <!-- section --> <section> <h1><?php esc_html_e( 'Archives', 'html5blank' ); ?></h1> <?php get_template_part( 'loop' ); ?> <?php get_template_part( 'pagination' ); ?> </section> <!-- /section --> </main> <?php get_sidebar(); ?> <?p...
php
MIT
1243d4014fc8fb53e16cb2bc6f31ef38e903a518
2026-01-05T04:23:44.960907Z
false
mashirozx/sakura2
https://github.com/mashirozx/sakura2/blob/1243d4014fc8fb53e16cb2bc6f31ef38e903a518/src/php/comments.php
src/php/comments.php
<div id="comments" class="comments"> <?php if (post_password_required()): ?> <p><?php esc_html_e('Post is password protected. Enter the password to view any comments.', 'html5blank');?></p> </div> <?php return;endif;?> <!-- if have comment --> <?php if (have_comments()): ?> <?php get_template_part('layout/commen...
php
MIT
1243d4014fc8fb53e16cb2bc6f31ef38e903a518
2026-01-05T04:23:44.960907Z
false
mashirozx/sakura2
https://github.com/mashirozx/sakura2/blob/1243d4014fc8fb53e16cb2bc6f31ef38e903a518/src/php/category.php
src/php/category.php
<?php get_header(); ?> <main role="main" aria-label="Content"> <!-- section --> <section> <h1><?php esc_html_e( 'Category: ', 'html5blank' ); single_cat_title(); ?></h1> <?php get_template_part( 'loop' ); ?> <?php get_template_part( 'pagination' ); ?> </section> <!-- /section --> </main> <?php ...
php
MIT
1243d4014fc8fb53e16cb2bc6f31ef38e903a518
2026-01-05T04:23:44.960907Z
false
mashirozx/sakura2
https://github.com/mashirozx/sakura2/blob/1243d4014fc8fb53e16cb2bc6f31ef38e903a518/src/php/search.php
src/php/search.php
<?php get_header(); ?> <main role="main" aria-label="Content"> <!-- section --> <section> <h1><?php echo sprintf( __( '%s Search Results for ', 'html5blank' ), $wp_query->found_posts ); echo get_search_query(); ?></h1> <?php get_template_part( 'loop' ); ?> <?php get_template_part( 'pagination' ); ?> ...
php
MIT
1243d4014fc8fb53e16cb2bc6f31ef38e903a518
2026-01-05T04:23:44.960907Z
false
mashirozx/sakura2
https://github.com/mashirozx/sakura2/blob/1243d4014fc8fb53e16cb2bc6f31ef38e903a518/src/php/tag.php
src/php/tag.php
<?php get_header(); ?> <main role="main" aria-label="Content"> <!-- section --> <section> <h1><?php esc_html_e( 'Tag Archive: ', 'html5blank' ); echo single_tag_title( '', false ); ?></h1> <?php get_template_part( 'loop' ); ?> <?php get_template_part( 'pagination' ); ?> </section> <!-- /section -...
php
MIT
1243d4014fc8fb53e16cb2bc6f31ef38e903a518
2026-01-05T04:23:44.960907Z
false
mashirozx/sakura2
https://github.com/mashirozx/sakura2/blob/1243d4014fc8fb53e16cb2bc6f31ef38e903a518/src/php/functions.php
src/php/functions.php
<?php /** * Author: Mashiro * URL: https://2heng.xin * GitHub: https://github.com/mashirozx * * Made in China. */ /*------------------------------------*\ Define Global Constants \*------------------------------------*/ define('SAKURA_VERSION', wp_get_theme()->get('Version')); define('SAKURA_DEBUG', false); /...
php
MIT
1243d4014fc8fb53e16cb2bc6f31ef38e903a518
2026-01-05T04:23:44.960907Z
false
mashirozx/sakura2
https://github.com/mashirozx/sakura2/blob/1243d4014fc8fb53e16cb2bc6f31ef38e903a518/src/php/index.php
src/php/index.php
<?php get_header();?> <?php get_template_part('layout/header-top'); ?> <?php get_template_part('layout/header-top-after'); ?> <!-- page-content --> <div class="page-content"> <?php get_template_part('layout/sidebar-left'); ?> <section class="main-center"> <!-- post thumb list --> <div class="post-list"> ...
php
MIT
1243d4014fc8fb53e16cb2bc6f31ef38e903a518
2026-01-05T04:23:44.960907Z
false
mashirozx/sakura2
https://github.com/mashirozx/sakura2/blob/1243d4014fc8fb53e16cb2bc6f31ef38e903a518/src/php/404.php
src/php/404.php
<?php get_header(); ?> <main role="main" aria-label="Content"> <!-- section --> <section> <!-- article --> <article id="post-404"> <h1><?php esc_html_e( 'Page not found', 'html5blank' ); ?></h1> <h2> <a href="<?php echo esc_url( home_url() ); ?>"><?php esc_html_e( 'Return home?', 'html5blank'...
php
MIT
1243d4014fc8fb53e16cb2bc6f31ef38e903a518
2026-01-05T04:23:44.960907Z
false
mashirozx/sakura2
https://github.com/mashirozx/sakura2/blob/1243d4014fc8fb53e16cb2bc6f31ef38e903a518/src/php/header.php
src/php/header.php
<!doctype html> <html <?php language_attributes();?> class="no-js"> <?php get_template_part('layout/head'); ?> <!-- TODO: show in js obj --> <body data-sakura-version="<?php echo SAKURA_VERSION; ?>" data-php-version="<?php echo phpversion(); ?>" data-wp-version="<?php echo $wp_version; ?>"> <!-- top-app-bar --> ...
php
MIT
1243d4014fc8fb53e16cb2bc6f31ef38e903a518
2026-01-05T04:23:44.960907Z
false
mashirozx/sakura2
https://github.com/mashirozx/sakura2/blob/1243d4014fc8fb53e16cb2bc6f31ef38e903a518/src/php/single.php
src/php/single.php
<?php get_header(); if (have_posts()) { while (have_posts()) { the_post(); get_template_part('templates/content-normal'); } } else { get_template_part('templates/content-empty'); } get_footer();
php
MIT
1243d4014fc8fb53e16cb2bc6f31ef38e903a518
2026-01-05T04:23:44.960907Z
false
mashirozx/sakura2
https://github.com/mashirozx/sakura2/blob/1243d4014fc8fb53e16cb2bc6f31ef38e903a518/src/php/utils/sakura-functions.php
src/php/utils/sakura-functions.php
<?php /** * Get webpack manifest file * @since 4.0.0 * * @return string */ function MANIFEST() { return json_decode(file_get_contents(__DIR__ . "/../manifest.json"), true); } /** * Get theme options * @since 4.0 * * @param string $id * @throw Exception * @return mixed string|int|boolen|null */ functio...
php
MIT
1243d4014fc8fb53e16cb2bc6f31ef38e903a518
2026-01-05T04:23:44.960907Z
false
mashirozx/sakura2
https://github.com/mashirozx/sakura2/blob/1243d4014fc8fb53e16cb2bc6f31ef38e903a518/src/php/utils/redux-config.php
src/php/utils/redux-config.php
<?php /** * ReduxFramework Barebones Sample Config File * For full documentation, please visit: http://docs.reduxframework.com/ */ if (!class_exists('Redux')) { return; } // This is your option name where all the Redux data is stored. $opt_name = "sakura_options"; /** * ---> SET ARGUMENTS * All the possible ar...
php
MIT
1243d4014fc8fb53e16cb2bc6f31ef38e903a518
2026-01-05T04:23:44.960907Z
false
mashirozx/sakura2
https://github.com/mashirozx/sakura2/blob/1243d4014fc8fb53e16cb2bc6f31ef38e903a518/src/php/utils/redux-demo-config.php
src/php/utils/redux-demo-config.php
<?php /** * ReduxFramework Sample Config File * For full documentation, please visit: http://docs.reduxframework.com/ */ if ( ! class_exists( 'Redux' ) ) { return; } // This is your option name where all the Redux data is stored. $opt_name = "sakura_demo"; /* * ...
php
MIT
1243d4014fc8fb53e16cb2bc6f31ef38e903a518
2026-01-05T04:23:44.960907Z
true
mashirozx/sakura2
https://github.com/mashirozx/sakura2/blob/1243d4014fc8fb53e16cb2bc6f31ef38e903a518/src/php/utils/disable-wp-emoji.php
src/php/utils/disable-wp-emoji.php
<?php /** * Disable the emoji's */ function disable_emojis() { remove_action('wp_head', 'print_emoji_detection_script', 7); remove_action('admin_print_scripts', 'print_emoji_detection_script'); remove_action('wp_print_styles', 'print_emoji_styles'); remove_action('admin_print_styles', 'print_emoji_sty...
php
MIT
1243d4014fc8fb53e16cb2bc6f31ef38e903a518
2026-01-05T04:23:44.960907Z
false
mashirozx/sakura2
https://github.com/mashirozx/sakura2/blob/1243d4014fc8fb53e16cb2bc6f31ef38e903a518/src/php/utils/sakura-debug.php
src/php/utils/sakura-debug.php
<?php # Silence is golden. if (!is_admin() && $_SERVER['REQUEST_URI'] != '/graphql' && false) { echo '<div style="position:fixed;top:0;left:0;width:100%;height:100%;background:white;z-index:9999">'; // Start $menu_name = 'header-menu'; $locations = get_nav_menu_locations(); $menu_id = $locations[$...
php
MIT
1243d4014fc8fb53e16cb2bc6f31ef38e903a518
2026-01-05T04:23:44.960907Z
false
mashirozx/sakura2
https://github.com/mashirozx/sakura2/blob/1243d4014fc8fb53e16cb2bc6f31ef38e903a518/src/php/utils/sakura-tools.php
src/php/utils/sakura-tools.php
<?php /** * Combine file path * @since 4.0.0 * @param string file/folder eg. `'var', 'www', 'html'` * @return string path eg. `/var/www/html` */ function join_paths() { $paths = array(); foreach (func_get_args() as $arg) { if ($arg !== '') {$paths[] = $arg;} } ret...
php
MIT
1243d4014fc8fb53e16cb2bc6f31ef38e903a518
2026-01-05T04:23:44.960907Z
false
mashirozx/sakura2
https://github.com/mashirozx/sakura2/blob/1243d4014fc8fb53e16cb2bc6f31ef38e903a518/src/php/utils/sakura-admin.php
src/php/utils/sakura-admin.php
<?php /** * Add stylesheets to wp-admin * @since 4.0.0 */ function admin_style_init() { wp_register_style('admin-font-awesome', 'https://cdn.jsdelivr.net/npm/font-awesome@4.7.0/css/font-awesome.min.css', array(), SAKURA_VERSION); wp_enqueue_style('admin-font-awesome'); } add_action('admin_enqueue_scripts', '...
php
MIT
1243d4014fc8fb53e16cb2bc6f31ef38e903a518
2026-01-05T04:23:44.960907Z
false
mashirozx/sakura2
https://github.com/mashirozx/sakura2/blob/1243d4014fc8fb53e16cb2bc6f31ef38e903a518/src/php/layout/head.php
src/php/layout/head.php
<head> <meta charset="<?php bloginfo('charset');?>"> <title><?php wp_title('');?><?php if (wp_title('', false)) {echo ' : ';}?><?php bloginfo('name');?> </title> <link href="//www.google-analytics.com" rel="dns-prefetch"> <!-- TODO: a prefetch list --> <link rel="alternate" type="application/rss+xml" title...
php
MIT
1243d4014fc8fb53e16cb2bc6f31ef38e903a518
2026-01-05T04:23:44.960907Z
false
mashirozx/sakura2
https://github.com/mashirozx/sakura2/blob/1243d4014fc8fb53e16cb2bc6f31ef38e903a518/src/php/layout/footer-bar.php
src/php/layout/footer-bar.php
<footer id="footer"> <div class="before" id="footer-before"></div> <div class="main">Copyright</div> </footer>
php
MIT
1243d4014fc8fb53e16cb2bc6f31ef38e903a518
2026-01-05T04:23:44.960907Z
false
mashirozx/sakura2
https://github.com/mashirozx/sakura2/blob/1243d4014fc8fb53e16cb2bc6f31ef38e903a518/src/php/layout/header-top.php
src/php/layout/header-top.php
<div class="header-top"> <!--index cover image--> <figure data="mark" class="img-wrapper parallax-wrapper"> <div data="layer" class="img-view" data-depth="0.1"> <img data="cover" class="img" src="https://view.moezx.cc/images/2019/10/21/1zuypi4mkggq6js5lqxt3sjaa.jpg"> </div> </figure> <div class="c...
php
MIT
1243d4014fc8fb53e16cb2bc6f31ef38e903a518
2026-01-05T04:23:44.960907Z
false
mashirozx/sakura2
https://github.com/mashirozx/sakura2/blob/1243d4014fc8fb53e16cb2bc6f31ef38e903a518/src/php/layout/pagination.php
src/php/layout/pagination.php
<!-- pagination --> <div class="pagination"> <?php echo sakura_pagination(); ?> </div> <!-- /pagination --> <!-- base64_encode(json_encode(sakura_pagination())) --> <!--TODO: Ajax-->
php
MIT
1243d4014fc8fb53e16cb2bc6f31ef38e903a518
2026-01-05T04:23:44.960907Z
false
mashirozx/sakura2
https://github.com/mashirozx/sakura2/blob/1243d4014fc8fb53e16cb2bc6f31ef38e903a518/src/php/layout/snackbar.php
src/php/layout/snackbar.php
<div id="snackbar" class="mdc-snackbar mdc-snackbar--opening mdc-snackbar--closing"> <div class="mdc-snackbar__surface"> <div id="snackbar-text" class="mdc-snackbar__label" role="status" aria-live="polite"> </div> <div class="mdc-snackbar__actions "> <button type="button" id="snackbar-button" class=...
php
MIT
1243d4014fc8fb53e16cb2bc6f31ef38e903a518
2026-01-05T04:23:44.960907Z
false
mashirozx/sakura2
https://github.com/mashirozx/sakura2/blob/1243d4014fc8fb53e16cb2bc6f31ef38e903a518/src/php/layout/site-header.php
src/php/layout/site-header.php
<header class="site-header"> <div class="site-header-inner"> <div class="top-row-wrapper mdc-elevation--z1"> <div class="top-row"> <div class="top-row-left"> <div class="title">Sakura</div> </div> <div class="top-row-middle"> <nav> <?php echo get_heade...
php
MIT
1243d4014fc8fb53e16cb2bc6f31ef38e903a518
2026-01-05T04:23:44.960907Z
false
mashirozx/sakura2
https://github.com/mashirozx/sakura2/blob/1243d4014fc8fb53e16cb2bc6f31ef38e903a518/src/php/layout/post-feature-full.php
src/php/layout/post-feature-full.php
<!-- post feature --> <?php if ( has_post_thumbnail() ) : // Check if Thumbnail exists. ?> <div class="post-feature full"> <div class="image-wrapper"> <img src="<?php echo get_post_thumb_url('large'); ?>"> </div> <div class="title-wrapper"> <h1 class="title"><?php the_title(); ?></h1> <p...
php
MIT
1243d4014fc8fb53e16cb2bc6f31ef38e903a518
2026-01-05T04:23:44.960907Z
false
mashirozx/sakura2
https://github.com/mashirozx/sakura2/blob/1243d4014fc8fb53e16cb2bc6f31ef38e903a518/src/php/layout/post-feature-fit.php
src/php/layout/post-feature-fit.php
<!-- post feature --> <?php if (has_post_thumbnail()): // Check if Thumbnail exists. ?> <div class="post-feature fit"> <div class="image-wrapper"> <img src="<?php echo get_post_thumb_url('large'); ?>"> </div> <div class="title-wrapper"> <h1 class="title"><?php the_title();?></h1> <p clas...
php
MIT
1243d4014fc8fb53e16cb2bc6f31ef38e903a518
2026-01-05T04:23:44.960907Z
false
mashirozx/sakura2
https://github.com/mashirozx/sakura2/blob/1243d4014fc8fb53e16cb2bc6f31ef38e903a518/src/php/layout/comment-form.php
src/php/layout/comment-form.php
<div class="commetn-form-wrapper"> <form id="commentform" class="comment-form mdc-card" action="./" method="post" novalidate=""> <div id="reply-to-info" class="reply-to-info"> <div class="mdc-chip-set" role="grid"> <div class="text"> <span class="plain"><?php echo __('Replying to', 'sakura...
php
MIT
1243d4014fc8fb53e16cb2bc6f31ef38e903a518
2026-01-05T04:23:44.960907Z
false
mashirozx/sakura2
https://github.com/mashirozx/sakura2/blob/1243d4014fc8fb53e16cb2bc6f31ef38e903a518/src/php/layout/drawer.php
src/php/layout/drawer.php
<aside id="drawer" class="mdc-drawer"> <div class="mdc-drawer__header"> <h3 class="mdc-drawer__title">Sakura</h3> <h6 class="mdc-drawer__subtitle">wooooooo...</h6> </div> <div class="mdc-drawer__content"> <!-- nav --> <?php echo get_drawer_nav_menu(); ?> </div> </aside> <!-- TODO: sub menu --> ...
php
MIT
1243d4014fc8fb53e16cb2bc6f31ef38e903a518
2026-01-05T04:23:44.960907Z
false
mashirozx/sakura2
https://github.com/mashirozx/sakura2/blob/1243d4014fc8fb53e16cb2bc6f31ef38e903a518/src/php/layout/sidebar-left.php
src/php/layout/sidebar-left.php
<aside class="side-bar-left"> <?php #get_template_part( 'layout/searchform' ); ?> <div class="sidebar-widget"> <?php if ( ! function_exists( 'dynamic_sidebar' ) || ! dynamic_sidebar( 'widget-area-1' ) ) ?> </div> <div class="sidebar-widget"> <?php if ( ! function_exists( 'dynamic_sidebar' ) || ! dynamic_side...
php
MIT
1243d4014fc8fb53e16cb2bc6f31ef38e903a518
2026-01-05T04:23:44.960907Z
false
mashirozx/sakura2
https://github.com/mashirozx/sakura2/blob/1243d4014fc8fb53e16cb2bc6f31ef38e903a518/src/php/layout/top-app-bar.php
src/php/layout/top-app-bar.php
<header id="app-bar" class="mdc-top-app-bar mdc-top-app-bar--dense top-app-bar app-bar"> <div class="mdc-top-app-bar__row"> <section class="mdc-top-app-bar__section mdc-top-app-bar__section--align-start"> <button id="toggle-drawer" class="material-icons mdc-top-app-bar__navigation-icon mdc-icon-button">menu...
php
MIT
1243d4014fc8fb53e16cb2bc6f31ef38e903a518
2026-01-05T04:23:44.960907Z
false
mashirozx/sakura2
https://github.com/mashirozx/sakura2/blob/1243d4014fc8fb53e16cb2bc6f31ef38e903a518/src/php/layout/post-list-loop.php
src/php/layout/post-list-loop.php
<?php $list_id = 0; $sticky_id = 0; if (have_posts()) { while (have_posts()) { the_post(); $list_id++; if(is_sticky()) {$sticky_id++;} // TODO: sticky condition. if ($list_id % 2 == 0) { get_template_part( 'templates/post-list-item', 'sakura' ); } else { get_template_part( 'templates/post-list...
php
MIT
1243d4014fc8fb53e16cb2bc6f31ef38e903a518
2026-01-05T04:23:44.960907Z
false
mashirozx/sakura2
https://github.com/mashirozx/sakura2/blob/1243d4014fc8fb53e16cb2bc6f31ef38e903a518/src/php/layout/searchform.php
src/php/layout/searchform.php
<!-- search --> <form class="search" method="get" action="<?php echo esc_url( home_url() ); ?>"> <div role="search"> <input class="search-input" type="search" name="s" aria-label="Search site for:" placeholder="<?php esc_html_e( 'To search, type and hit enter.', 'html5blank' ); ?>"> <button class="search-submit" t...
php
MIT
1243d4014fc8fb53e16cb2bc6f31ef38e903a518
2026-01-05T04:23:44.960907Z
false
mashirozx/sakura2
https://github.com/mashirozx/sakura2/blob/1243d4014fc8fb53e16cb2bc6f31ef38e903a518/src/php/layout/comment-list.php
src/php/layout/comment-list.php
<!-- TODO: also generate a copy in php side for SEO --> <div class="comment-wrapper mdc-card"> <?php if (have_comments()): ?> <h2 class="commens-title"><?php comments_number();?></h2> <?php else: ?> <h2 class="comments-title" id="leave-first-comment"><?php echo __('Leave the first comment!', 'sakura'); ?>...
php
MIT
1243d4014fc8fb53e16cb2bc6f31ef38e903a518
2026-01-05T04:23:44.960907Z
false
mashirozx/sakura2
https://github.com/mashirozx/sakura2/blob/1243d4014fc8fb53e16cb2bc6f31ef38e903a518/src/php/layout/sidebar-right.php
src/php/layout/sidebar-right.php
<aside class="side-bar-right"></aside>
php
MIT
1243d4014fc8fb53e16cb2bc6f31ef38e903a518
2026-01-05T04:23:44.960907Z
false
mashirozx/sakura2
https://github.com/mashirozx/sakura2/blob/1243d4014fc8fb53e16cb2bc6f31ef38e903a518/src/php/layout/header-top-after.php
src/php/layout/header-top-after.php
<!--transparent area--> <div id="header-top-after" class="header-top-after"> <!--wave decoration--> <div id="header-top-after-deco" class="header-top-after-deco"></div> </div>
php
MIT
1243d4014fc8fb53e16cb2bc6f31ef38e903a518
2026-01-05T04:23:44.960907Z
false
mashirozx/sakura2
https://github.com/mashirozx/sakura2/blob/1243d4014fc8fb53e16cb2bc6f31ef38e903a518/src/php/templates/content-empty.php
src/php/templates/content-empty.php
<div class="page-content"> <?php get_template_part('layout/sidebar', 'left'); ?> <section class="main-center"> <article class="markdown"> <h1><?php esc_html_e( 'Sorry, nothing to display.', 'sakura' ); ?></h1> </article> </section> <?php get_template_part('layout/sidebar', 'right'); ?> </div>
php
MIT
1243d4014fc8fb53e16cb2bc6f31ef38e903a518
2026-01-05T04:23:44.960907Z
false
mashirozx/sakura2
https://github.com/mashirozx/sakura2/blob/1243d4014fc8fb53e16cb2bc6f31ef38e903a518/src/php/templates/post-list-noting.php
src/php/templates/post-list-noting.php
<article> <h2><?php esc_html_e( 'Sorry, nothing to display.', 'sakura' ); ?></h2> </article>
php
MIT
1243d4014fc8fb53e16cb2bc6f31ef38e903a518
2026-01-05T04:23:44.960907Z
false
mashirozx/sakura2
https://github.com/mashirozx/sakura2/blob/1243d4014fc8fb53e16cb2bc6f31ef38e903a518/src/php/templates/post-list-item-sakura.php
src/php/templates/post-list-item-sakura.php
<article id="post-<?php the_ID();?>" <?php post_class('mdc-card post-thumb-item');?>> <div class="mdc-card__primary-action mdc-ripple-upgraded primary-action"> <div class="content"> <div class="post-thumb"> <div class="thumb-img-box" title="<?php the_title_attribute(); ?>"> <img src="<?php...
php
MIT
1243d4014fc8fb53e16cb2bc6f31ef38e903a518
2026-01-05T04:23:44.960907Z
false
mashirozx/sakura2
https://github.com/mashirozx/sakura2/blob/1243d4014fc8fb53e16cb2bc6f31ef38e903a518/src/php/templates/test.php
src/php/templates/test.php
<?php /* * Template Name: hahah * Template Post Type: post, page, product */ get_header(); ?> <article> <p>hahahahahah</p> </article> <?php get_footer(); ?>
php
MIT
1243d4014fc8fb53e16cb2bc6f31ef38e903a518
2026-01-05T04:23:44.960907Z
false
mashirozx/sakura2
https://github.com/mashirozx/sakura2/blob/1243d4014fc8fb53e16cb2bc6f31ef38e903a518/src/php/templates/content-normal.php
src/php/templates/content-normal.php
<?php get_template_part('layout/post-feature', 'full'); ?> <div class="page-content"> <?php get_template_part('layout/sidebar', 'left'); ?> <section class="main-center"> <?php //get_template_part('layout/post-feature', 'fit'); ?> <article class="markdown post-content" id="post-content" data-post-id="<?php t...
php
MIT
1243d4014fc8fb53e16cb2bc6f31ef38e903a518
2026-01-05T04:23:44.960907Z
false
mashirozx/sakura2
https://github.com/mashirozx/sakura2/blob/1243d4014fc8fb53e16cb2bc6f31ef38e903a518/src/php/templates/post-list-item-sakura_reverse.php
src/php/templates/post-list-item-sakura_reverse.php
<article id="post-<?php the_ID();?>" <?php post_class('mdc-card post-thumb-item');?>> <div class="mdc-card__primary-action mdc-ripple-upgraded primary-action"> <div class="content reverse"> <div class="post-thumb"> <div class="thumb-img-box" title="<?php the_title_attribute(); ?>"> <img sr...
php
MIT
1243d4014fc8fb53e16cb2bc6f31ef38e903a518
2026-01-05T04:23:44.960907Z
false
mashirozx/sakura2
https://github.com/mashirozx/sakura2/blob/1243d4014fc8fb53e16cb2bc6f31ef38e903a518/src/php/classes/get-ip-location.php
src/php/classes/get-ip-location.php
<?php namespace Sakura\Classes; use Exception; use GeoIp2\Database\Reader; use Sakura\Classes\Lib\QqIpLocation; class GetIpLocation { /** * print($record->country->isoCode . "\n"); // 'US' * print($record->country->name . "\n"); // 'United States' * print($record->country->names['zh-CN'] . "\n"); ...
php
MIT
1243d4014fc8fb53e16cb2bc6f31ef38e903a518
2026-01-05T04:23:44.960907Z
false
mashirozx/sakura2
https://github.com/mashirozx/sakura2/blob/1243d4014fc8fb53e16cb2bc6f31ef38e903a518/src/php/classes/graphql-register-fields.php
src/php/classes/graphql-register-fields.php
<?php namespace Sakura\Classes; use Sakura\Classes\GetCommentChildList; use Sakura\Classes\GetCommentList; use WPGraphQL\Data\DataSource; class GraphqlRegisterFields { public function __construct() { // add_action('graphql_register_types', array($this, 'register_post_comment_field'), 10); ad...
php
MIT
1243d4014fc8fb53e16cb2bc6f31ef38e903a518
2026-01-05T04:23:44.960907Z
false
mashirozx/sakura2
https://github.com/mashirozx/sakura2/blob/1243d4014fc8fb53e16cb2bc6f31ef38e903a518/src/php/classes/sakura-register-actions.php
src/php/classes/sakura-register-actions.php
<?php namespace Sakura\Classes; class RegisterActions { /** * WP Register * @since 4.0.0 */ public function __construct() { // Add Universal Theme Support add_action('init', [$this, 'add_theme_support']); // Add Custom Scripts to wp_head add_action('wp_enqueu...
php
MIT
1243d4014fc8fb53e16cb2bc6f31ef38e903a518
2026-01-05T04:23:44.960907Z
false
mashirozx/sakura2
https://github.com/mashirozx/sakura2/blob/1243d4014fc8fb53e16cb2bc6f31ef38e903a518/src/php/classes/sakura-walker-header-nav.php
src/php/classes/sakura-walker-header-nav.php
<?php /** * Customize nav menu walker * https://core.trac.wordpress.org/browser/tags/5.3/src/wp-includes/class-walker-nav-menu.php * * add sub-menu mdc-elevation--z1 class to sub ul * * @since 4.0.0 * @author Mashiro */ namespace Sakura\Classes; use Walker_Nav_Menu; class Sakura_Walker_Header_Nav_Menu extend...
php
MIT
1243d4014fc8fb53e16cb2bc6f31ef38e903a518
2026-01-05T04:23:44.960907Z
false
mashirozx/sakura2
https://github.com/mashirozx/sakura2/blob/1243d4014fc8fb53e16cb2bc6f31ef38e903a518/src/php/classes/get-comment-list.php
src/php/classes/get-comment-list.php
<?php namespace Sakura\Classes; use Sakura\Classes\GetCommentChildList; use Sakura\Classes\GetIpLocation; use WP_Comment_Query; class GetCommentList { /** * the post id * * @var int */ public $post_id; /** * how many items in a page * * @var int */ public $pag...
php
MIT
1243d4014fc8fb53e16cb2bc6f31ef38e903a518
2026-01-05T04:23:44.960907Z
false
mashirozx/sakura2
https://github.com/mashirozx/sakura2/blob/1243d4014fc8fb53e16cb2bc6f31ef38e903a518/src/php/classes/graphql-register-mutate.php
src/php/classes/graphql-register-mutate.php
<?php namespace Sakura\Classes; use Sakura\Classes\CommentsPostHandle; use Sakura\Classes\GetIpLocation; use Sakura\Classes\GetUserAgent; class GraphqlRegisterMutate { public function __construct() { add_action('graphql_register_types', array($this, 'register_post_comment_mutate'), 10); } /...
php
MIT
1243d4014fc8fb53e16cb2bc6f31ef38e903a518
2026-01-05T04:23:44.960907Z
false
mashirozx/sakura2
https://github.com/mashirozx/sakura2/blob/1243d4014fc8fb53e16cb2bc6f31ef38e903a518/src/php/classes/graphql-register-types.php
src/php/classes/graphql-register-types.php
<?php namespace Sakura\Classes; class GraphqlRegisterTypes { public function __construct() { add_filter('graphql_register_types', array($this, 'register_comment_list_type'), 10); } /** * register commentList type * @since 4.0 */ public static function register_comment_list...
php
MIT
1243d4014fc8fb53e16cb2bc6f31ef38e903a518
2026-01-05T04:23:44.960907Z
false
mashirozx/sakura2
https://github.com/mashirozx/sakura2/blob/1243d4014fc8fb53e16cb2bc6f31ef38e903a518/src/php/classes/get-user-agent.php
src/php/classes/get-user-agent.php
<?php namespace Sakura\Classes; class GetUserAgent { public static function get_browsers($ua) { $text = 'unknow'; $icon = 'unknow'; if (preg_match('#MSIE ([a-zA-Z0-9.]+)#i', $ua, $matches)) { $text = 'Internet Explorer ' . $matches[1]; if (strpos($matches[1], '7...
php
MIT
1243d4014fc8fb53e16cb2bc6f31ef38e903a518
2026-01-05T04:23:44.960907Z
false
mashirozx/sakura2
https://github.com/mashirozx/sakura2/blob/1243d4014fc8fb53e16cb2bc6f31ef38e903a518/src/php/classes/sakura-error.php
src/php/classes/sakura-error.php
<?php namespace Sakura\Classes; class Error { public static function log(string $log) { if (true === WP_DEBUG) { if (is_array($log) || is_object($log)) { error_log(print_r($log, true)); } else { error_log($log); } } } }
php
MIT
1243d4014fc8fb53e16cb2bc6f31ef38e903a518
2026-01-05T04:23:44.960907Z
false
mashirozx/sakura2
https://github.com/mashirozx/sakura2/blob/1243d4014fc8fb53e16cb2bc6f31ef38e903a518/src/php/classes/sakura-walker-drawer-nav.php
src/php/classes/sakura-walker-drawer-nav.php
<?php /** * Customize nav menu walker * https://core.trac.wordpress.org/browser/tags/5.3/src/wp-includes/class-walker-nav-menu.php * * @since 4.0.0 * @author Mashiro */ namespace Sakura\Classes; use Walker_Nav_Menu; class Sakura_Walker_Drawer_Nav_Menu extends Walker_Nav_Menu { /** * Starts the list b...
php
MIT
1243d4014fc8fb53e16cb2bc6f31ef38e903a518
2026-01-05T04:23:44.960907Z
false
mashirozx/sakura2
https://github.com/mashirozx/sakura2/blob/1243d4014fc8fb53e16cb2bc6f31ef38e903a518/src/php/classes/comments-post-handle.php
src/php/classes/comments-post-handle.php
<?php namespace Sakura\Classes; use Exception; /** * Handle comment post * Modify from wp-comments-post.php * @since 4.0.0 * * Handles Comment Post to WordPress and prevents duplicate comment posting. * * https://developer.wordpress.org/reference/files/wp-comments-post.php/ * */ class CommentsPostHandle { ...
php
MIT
1243d4014fc8fb53e16cb2bc6f31ef38e903a518
2026-01-05T04:23:44.960907Z
false
mashirozx/sakura2
https://github.com/mashirozx/sakura2/blob/1243d4014fc8fb53e16cb2bc6f31ef38e903a518/src/php/classes/get-comment-child-list.php
src/php/classes/get-comment-child-list.php
<?php namespace Sakura\Classes; use Sakura\Classes\GetCommentList; use WP_Comment_Query; class GetCommentChildList extends GetCommentList { /** * the post id * * @var int */ public $comment_id; /** * child comment ID list * * @var array */ public $child_id_lis...
php
MIT
1243d4014fc8fb53e16cb2bc6f31ef38e903a518
2026-01-05T04:23:44.960907Z
false
mashirozx/sakura2
https://github.com/mashirozx/sakura2/blob/1243d4014fc8fb53e16cb2bc6f31ef38e903a518/src/php/classes/lib/ip-location-qqwary.php
src/php/classes/lib/ip-location-qqwary.php
<?php namespace Sakura\Classes\Lib; /** * IP 地理位置查询 * https://github.com/itbdw/ip-database/blob/master/src/IpLocation.php * 输出编码为 UTF-8 * * Class IpLocation * * @package itbdw\IpLocation */ class QqIpLocation { private static $instance; /** * qqwry.dat文件指针 * * @var resource */ ...
php
MIT
1243d4014fc8fb53e16cb2bc6f31ef38e903a518
2026-01-05T04:23:44.960907Z
false
mashirozx/sakura2
https://github.com/mashirozx/sakura2/blob/1243d4014fc8fb53e16cb2bc6f31ef38e903a518/src/php/classes/lib/data-base-update.php
src/php/classes/lib/data-base-update.php
<?php namespace Sakura\Classes\Lib; /** * Class WP_Statistics_Updates * https://github.com/wp-statistics/wp-statistics/blob/master/includes/classes/class-wp-statistics-updates.php */ class DatabaseUpdates { //List Geo ip Library public static $geoip = array( 'country' => array( 'cdn' => 'http://geolite.ma...
php
MIT
1243d4014fc8fb53e16cb2bc6f31ef38e903a518
2026-01-05T04:23:44.960907Z
false
mashirozx/sakura2
https://github.com/mashirozx/sakura2/blob/1243d4014fc8fb53e16cb2bc6f31ef38e903a518/includes/index.php
includes/index.php
<?php # Silence is golden.
php
MIT
1243d4014fc8fb53e16cb2bc6f31ef38e903a518
2026-01-05T04:23:44.960907Z
false
acantepie/umbrella-admin-bundle
https://github.com/acantepie/umbrella-admin-bundle/blob/c7fd310313fc0f1fdc65904ef83a56cf0ba29779/.php-cs-fixer.dist.php
.php-cs-fixer.dist.php
<?php $finder = new PhpCsFixer\Finder(); $finder->in([ __DIR__ . '/src', __DIR__ . '/tests', __DIR__ . '/bin' ]); $config = new PhpCsFixer\Config(); return $config ->setParallelConfig(PhpCsFixer\Runner\Parallel\ParallelConfigFactory::detect()) ->setRules([ '@Symfony' => true, '@Sy...
php
MIT
c7fd310313fc0f1fdc65904ef83a56cf0ba29779
2026-01-05T04:24:06.294580Z
false
acantepie/umbrella-admin-bundle
https://github.com/acantepie/umbrella-admin-bundle/blob/c7fd310313fc0f1fdc65904ef83a56cf0ba29779/src/UmbrellaAdminBundle.php
src/UmbrellaAdminBundle.php
<?php namespace Umbrella\AdminBundle; use Symfony\Component\DependencyInjection\ContainerBuilder; use Symfony\Component\HttpKernel\Bundle\Bundle; use Umbrella\AdminBundle\DependencyInjection\Compiler\UmbrellaComponentPass; use Umbrella\AdminBundle\DependencyInjection\Compiler\UmbrellaNotificationPass; class Umbrella...
php
MIT
c7fd310313fc0f1fdc65904ef83a56cf0ba29779
2026-01-05T04:24:06.294580Z
false
acantepie/umbrella-admin-bundle
https://github.com/acantepie/umbrella-admin-bundle/blob/c7fd310313fc0f1fdc65904ef83a56cf0ba29779/src/UmbrellaAdminConfiguration.php
src/UmbrellaAdminConfiguration.php
<?php namespace Umbrella\AdminBundle; use Symfony\Component\Mime\Address; use Symfony\Component\Security\Http\Logout\LogoutUrlGenerator; class UmbrellaAdminConfiguration { public function __construct( private readonly array $config, private readonly LogoutUrlGenerator $logoutUrlGenerator ) { ...
php
MIT
c7fd310313fc0f1fdc65904ef83a56cf0ba29779
2026-01-05T04:24:06.294580Z
false
acantepie/umbrella-admin-bundle
https://github.com/acantepie/umbrella-admin-bundle/blob/c7fd310313fc0f1fdc65904ef83a56cf0ba29779/src/Entity/BaseAdminUser.php
src/Entity/BaseAdminUser.php
<?php namespace Umbrella\AdminBundle\Entity; use Symfony\Component\Security\Core\User\EquatableInterface; use Symfony\Component\Security\Core\User\PasswordAuthenticatedUserInterface; use Symfony\Component\Security\Core\User\UserInterface; abstract class BaseAdminUser implements EquatableInterface, \Serializable, Use...
php
MIT
c7fd310313fc0f1fdc65904ef83a56cf0ba29779
2026-01-05T04:24:06.294580Z
false
acantepie/umbrella-admin-bundle
https://github.com/acantepie/umbrella-admin-bundle/blob/c7fd310313fc0f1fdc65904ef83a56cf0ba29779/src/Entity/BaseNotification.php
src/Entity/BaseNotification.php
<?php namespace Umbrella\AdminBundle\Entity; class BaseNotification { public ?int $id = null; /** * @var \DateTime */ public \DateTimeInterface $createdAt; public ?string $iconColor = null; public ?string $icon = null; public ?string $title = null; public ?string $text = nul...
php
MIT
c7fd310313fc0f1fdc65904ef83a56cf0ba29779
2026-01-05T04:24:06.294580Z
false
acantepie/umbrella-admin-bundle
https://github.com/acantepie/umbrella-admin-bundle/blob/c7fd310313fc0f1fdc65904ef83a56cf0ba29779/src/Entity/Trait/IdTrait.php
src/Entity/Trait/IdTrait.php
<?php namespace Umbrella\AdminBundle\Entity\Trait; use Doctrine\DBAL\Types\Types; use Doctrine\ORM\Mapping as ORM; trait IdTrait { #[ORM\Column(type: Types::INTEGER)] #[ORM\Id] #[ORM\GeneratedValue] public ?int $id = null; }
php
MIT
c7fd310313fc0f1fdc65904ef83a56cf0ba29779
2026-01-05T04:24:06.294580Z
false
acantepie/umbrella-admin-bundle
https://github.com/acantepie/umbrella-admin-bundle/blob/c7fd310313fc0f1fdc65904ef83a56cf0ba29779/src/Entity/Trait/SearchTrait.php
src/Entity/Trait/SearchTrait.php
<?php namespace Umbrella\AdminBundle\Entity\Trait; use Doctrine\DBAL\Types\Types; use Doctrine\ORM\Mapping as ORM; trait SearchTrait { #[ORM\Column(type: Types::TEXT, nullable: true)] public ?string $search = null; }
php
MIT
c7fd310313fc0f1fdc65904ef83a56cf0ba29779
2026-01-05T04:24:06.294580Z
false
acantepie/umbrella-admin-bundle
https://github.com/acantepie/umbrella-admin-bundle/blob/c7fd310313fc0f1fdc65904ef83a56cf0ba29779/src/Controller/ProfileController.php
src/Controller/ProfileController.php
<?php namespace Umbrella\AdminBundle\Controller; use Symfony\Component\HttpFoundation\Request; use Symfony\Component\HttpFoundation\Response; use Symfony\Component\HttpKernel\Exception\NotFoundHttpException; use function Symfony\Component\Translation\t; use Umbrella\AdminBundle\Entity\BaseAdminUser; use Umbrella\Ad...
php
MIT
c7fd310313fc0f1fdc65904ef83a56cf0ba29779
2026-01-05T04:24:06.294580Z
false