anguage-html"> <img src="{{news.better_featured_image.source_url}}" /> 29 31
       <ion-card-header>
30 32
         <a [routerLink]="['../news-detail' , news.id]">

+ 7 - 4
src/app/news/news.page.scss

@@ -1,6 +1,6 @@
1
-ion-row {
2
-    background-color: #fcfcfc !important;
3
-}
1
+// ion-row {
2
+//     background-color: #fcfcfc !important;
3
+// }
4 4
 
5 5
 .list-card-margin {
6 6
     margin: 0 0 10px 0;
@@ -28,4 +28,7 @@ ion-card-content {
28 28
     color: darkslategray;
29 29
 }
30 30
 
31
-
31
+.header-tab {
32
+    background: rgb(2,0,36);
33
+background: linear-gradient(156deg, rgba(2,0,36,1) 0%, rgba(9,9,121,1) 0%, rgba(7,65,158,1) 43%, rgba(4,122,195,1) 82%, rgba(0,212,255,1) 100%);
34
+}

+ 4 - 3
src/app/youtube/youtube.page.html

@@ -11,9 +11,10 @@
11 11
 <ion-content>
12 12
   <ion-grid>
13 13
     <ion-row>
14
-      <ion-col>
15
-        <h2>รายการย้อนหลัง</h2>
16
-        <hr>
14
+      <ion-col size="10" class="bg-color-4">
15
+        <h2 class="color-1">รายการย้อนหลัง</h2>
16
+      </ion-col>
17
+      <ion-col size="2" class="bg-color-6">        
17 18
       </ion-col>
18 19
     </ion-row>
19 20
   </ion-grid>

+ 3 - 3
src/app/youtube/youtube.page.scss

@@ -1,6 +1,6 @@
1
-ion-row {
2
-    background-color: #fcfcfc !important;
3
-}
1
+// ion-row {
2
+//     background-color: #fcfcfc !important;
3
+// }
4 4
 
5 5
 .list-card-margin {
6 6
     margin: 0 0 10px 0;

Diferenças do arquivo suprimidas por serem muito extensas
+ 638 - 0
src/assets/icon/fm99-logo-2021-3.svg


BIN
src/assets/img-static/bg-content-min.jpg


+ 70 - 5
src/global.scss

@@ -86,8 +86,7 @@
86 86
 
87 87
 ion-content {
88 88
   // --ion-background-color: #111D12;
89
-  --background: url('./assets/img-static/bg-content-min.jpg') no-repeat 
90
-center/cover;
89
+  --background: url('./assets/img-static/bg-content-min.jpg') no-repeat center/cover;
91 90
 }
92 91
 
93 92
 
@@ -102,7 +101,7 @@ h2 {
102 101
   font-size: 1.3em;
103 102
   margin-top: 5px;
104 103
   margin-bottom: 0px;
105
-  color: darkorange;
104
+  // color: darkorange;
106 105
 
107 106
 }
108 107
 
@@ -111,7 +110,7 @@ h3 {
111 110
   font-size: 1.3em;
112 111
   margin-top: 5px;
113 112
   margin-bottom: 0px;
114
-  color: darkorange;
113
+  // color: darkorange;
115 114
 }
116 115
 
117 116
 .head-img {
@@ -119,6 +118,8 @@ h3 {
119 118
   display: flex;
120 119
   margin-left: 10px;
121 120
   margin-top: 5px;
121
+  // --box-shadow: 0 0 3px 0 var(--ion-color-medium);
122
+
122 123
 }
123 124
 
124 125
 // ion-toolbar {
@@ -143,4 +144,68 @@ hr {
143 144
 
144 145
 a {
145 146
   text-decoration: none;
146
-}
147
+}
148
+
149
+.bg-white {
150
+  background-color: #fff;
151
+}
152
+
153
+.bg-color-1 {
154
+  background: rgb(2,0,36);
155
+  background: linear-gradient(190deg, rgba(2,0,36,1) 0%, rgba(255,255,255,1) 0%, rgba(233,233,233,1) 61%, rgba(255,255,255,1) 90%, rgba(213,213,213,1) 100%);
156
+}
157
+
158
+.bg-color-2 {
159
+  background-color: rgb(74, 156, 224);
160
+}
161
+
162
+.bg-color-3 {
163
+  background-color: darkorange;
164
+}
165
+
166
+.bg-color-4 {
167
+  background-color: rgba(255, 255, 255, 0.3);
168
+}
169
+
170
+.bg-color-6 {
171
+  background-color:#c32020;
172
+}
173
+
174
+.color-1 {
175
+  color: #fff;
176
+}
177
+
178
+.color-2 {
179
+  color: rgb(74, 156, 224);
180
+}
181
+
182
+.color-3 {
183
+  color: darkorange;
184
+}
185
+
186
+.color-4 {
187
+  color: #0f4c75;
188
+}
189
+
190
+.color-5 {
191
+  color: #3282b8;
192
+}
193
+
194
+.color-6 {
195
+  color: #c32020;
196
+}
197
+
198
+ion-row.last-child-pad-bottom {
199
+
200
+  // padding-bottom: 15px;
201
+  // background: black;
202
+  // heading:last-child
203
+  :last-child {
204
+    // background: black;
205
+    // padding-bottom: 21px;
206
+  }
207
+}
208
+
209
+// ion-row.last-child-pad-bottom:last-child {
210
+//   background: black;
211
+// }

tum/whitesports - Gogs: Simplico Git Service

Nenhuma Descrição

class-wp-block-patterns-registry.php 7.3KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232
  1. <?php
  2. /**
  3. * Blocks API: WP_Block_Patterns_Registry class
  4. *
  5. * @package WordPress
  6. * @subpackage Blocks
  7. * @since 5.5.0
  8. */
  9. /**
  10. * Class used for interacting with block patterns.
  11. *
  12. * @since 5.5.0
  13. */
  14. final class WP_Block_Patterns_Registry {
  15. /**
  16. * Registered block patterns array.
  17. *
  18. * @since 5.5.0
  19. * @var array[]
  20. */
  21. private $registered_patterns = array();
  22. /**
  23. * Patterns registered outside the `init` action.
  24. *
  25. * @since 6.0.0
  26. * @var array[]
  27. */
  28. private $registered_patterns_outside_init = array();
  29. /**
  30. * Container for the main instance of the class.
  31. *
  32. * @since 5.5.0
  33. * @var WP_Block_Patterns_Registry|null
  34. */
  35. private static $instance = null;
  36. /**
  37. * Registers a block pattern.
  38. *
  39. * @since 5.5.0
  40. * @since 5.8.0 Added support for the `blockTypes` property.
  41. *
  42. * @param string $pattern_name Block pattern name including namespace.
  43. * @param array $pattern_properties {
  44. * List of properties for the block pattern.
  45. *
  46. * @type string $title Required. A human-readable title for the pattern.
  47. * @type string $content Required. Block HTML markup for the pattern.
  48. * @type string $description Optional. Visually hidden text used to describe the pattern in the
  49. * inserter. A description is optional, but is strongly
  50. * encouraged when the title does not fully describe what the
  51. * pattern does. The description will help users discover the
  52. * pattern while searching.
  53. * @type int $viewportWidth Optional. The intended width of the pattern to allow for a scaled
  54. * preview within the pattern inserter.
  55. * @type array $categories Optional. A list of registered pattern categories used to group block
  56. * patterns. Block patterns can be shown on multiple categories.
  57. * A category must be registered separately in order to be used
  58. * here.
  59. * @type array $blockTypes Optional. A list of block names including namespace that could use
  60. * the block pattern in certain contexts (placeholder, transforms).
  61. * The block pattern is available in the block editor inserter
  62. * regardless of this list of block names.
  63. * Certain blocks support further specificity besides the block name
  64. * (e.g. for `core/template-part` you can specify areas
  65. * like `core/template-part/header` or `core/template-part/footer`).
  66. * @type array $keywords Optional. A list of aliases or keywords that help users discover the
  67. * pattern while searching.
  68. * }
  69. * @return bool True if the pattern was registered with success and false otherwise.
  70. */
  71. public function register( $pattern_name, $pattern_properties ) {
  72. if ( ! isset( $pattern_name ) || ! is_string( $pattern_name ) ) {
  73. _doing_it_wrong(
  74. __METHOD__,
  75. __( 'Pattern name must be a string.' ),
  76. '5.5.0'
  77. );
  78. return false;
  79. }
  80. if ( ! isset( $pattern_properties['title'] ) || ! is_string( $pattern_properties['title'] ) ) {
  81. _doing_it_wrong(
  82. __METHOD__,
  83. __( 'Pattern title must be a string.' ),
  84. '5.5.0'
  85. );
  86. return false;
  87. }
  88. if ( ! isset( $pattern_properties['content'] ) || ! is_string( $pattern_properties['content'] ) ) {
  89. _doing_it_wrong(
  90. __METHOD__,
  91. __( 'Pattern content must be a string.' ),
  92. '5.5.0'
  93. );
  94. return false;
  95. }
  96. $pattern = array_merge(
  97. $pattern_properties,
  98. array( 'name' => $pattern_name )
  99. );
  100. $this->registered_patterns[ $pattern_name ] = $pattern;
  101. // If the pattern is registered inside an action other than `init`, store it
  102. // also to a dedicated array. Used to detect deprecated registrations inside
  103. // `admin_init` or `current_screen`.
  104. if ( current_action() && 'init' !== current_action() ) {
  105. $this->registered_patterns_outside_init[ $pattern_name ] = $pattern;
  106. }
  107. return true;
  108. }
  109. /**
  110. * Unregisters a block pattern.
  111. *
  112. * @since 5.5.0
  113. *
  114. * @param string $pattern_name Block pattern name including namespace.
  115. * @return bool True if the pattern was unregistered with success and false otherwise.
  116. */
  117. public function unregister( $pattern_name ) {
  118. if ( ! $this->is_registered( $pattern_name ) ) {
  119. _doing_it_wrong(
  120. __METHOD__,
  121. /* translators: %s: Pattern name. */
  122. sprintf( __( 'Pattern "%s" not found.' ), $pattern_name ),
  123. '5.5.0'
  124. );
  125. return false;
  126. }
  127. unset( $this->registered_patterns[ $pattern_name ] );
  128. unset( $this->registered_patterns_outside_init[ $pattern_name ] );
  129. return true;
  130. }
  131. /**
  132. * Retrieves an array containing the properties of a registered block pattern.
  133. *
  134. * @since 5.5.0
  135. *
  136. * @param string $pattern_name Block pattern name including namespace.
  137. * @return array Registered pattern properties.
  138. */
  139. public function get_registered( $pattern_name ) {
  140. if ( ! $this->is_registered( $pattern_name ) ) {
  141. return null;
  142. }
  143. return $this->registered_patterns[ $pattern_name ];
  144. }
  145. /**
  146. * Retrieves all registered block patterns.
  147. *
  148. * @since 5.5.0
  149. *
  150. * @param bool $outside_init_only Return only patterns registered outside the `init` action.
  151. * @return array[] Array of arrays containing the registered block patterns properties,
  152. * and per style.
  153. */
  154. public function get_all_registered( $outside_init_only = false ) {
  155. return array_values(
  156. $outside_init_only
  157. ? $this->registered_patterns_outside_init
  158. : $this->registered_patterns
  159. );
  160. }
  161. /**
  162. * Checks if a block pattern is registered.
  163. *
  164. * @since 5.5.0
  165. *
  166. * @param string $pattern_name Block pattern name including namespace.
  167. * @return bool True if the pattern is registered, false otherwise.
  168. */
  169. public function is_registered( $pattern_name ) {
  170. return isset( $this->registered_patterns[ $pattern_name ] );
  171. }
  172. /**
  173. * Utility method to retrieve the main instance of the class.
  174. *
  175. * The instance will be created if it does not exist yet.
  176. *
  177. * @since 5.5.0
  178. *
  179. * @return WP_Block_Patterns_Registry The main instance.
  180. */
  181. public static function get_instance() {
  182. if ( null === self::$instance ) {
  183. self::$instance = new self();
  184. }
  185. return self::$instance;
  186. }
  187. }
  188. /**
  189. * Registers a new block pattern.
  190. *
  191. * @since 5.5.0
  192. *
  193. * @param string $pattern_name Block pattern name including namespace.
  194. * @param array $pattern_properties List of properties for the block pattern.
  195. * See WP_Block_Patterns_Registry::register() for accepted arguments.
  196. * @return bool True if the pattern was registered with success and false otherwise.
  197. */
  198. function register_block_pattern( $pattern_name, $pattern_properties ) {
  199. return WP_Block_Patterns_Registry::get_instance()->register( $pattern_name, $pattern_properties );
  200. }
  201. /**
  202. * Unregisters a block pattern.
  203. *
  204. * @since 5.5.0
  205. *
  206. * @param string $pattern_name Block pattern name including namespace.
  207. * @return bool True if the pattern was unregistered with success and false otherwise.
  208. */
  209. function unregister_block_pattern( $pattern_name ) {
  210. return WP_Block_Patterns_Registry::get_instance()->unregister( $pattern_name );
  211. }