Skip to content

Commit 4bd3d30

Browse files
committed
Added experimental google ads
1 parent 19c180b commit 4bd3d30

File tree

7 files changed

+88
-2
lines changed

7 files changed

+88
-2
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ Flow is a PHP-based, strongly typed data processing framework with a low memory
1313
- 🚧 [Upgrading](UPGRADE.md)
1414
- <img src="https://cdn.prod.website-files.com/6257adef93867e50d84d30e2/636e0a69f118df70ad7828d4_icon_clyde_blurple_RGB.svg" width="16px" height="16px" alt="Discord"> [Discord Server](https://discord.gg/5dNXfQyACW)
1515

16-
Supported PHP versions: [![PHP 8.1](https://img.shields.io/badge/php-~8.1-8892BF.svg)](https://php.net/) [![PHP 8.2](https://img.shields.io/badge/php-~8.2-8892BF.svg)](https://php.net/) [![PHP 8.3](https://img.shields.io/badge/php-~8.3-8892BF.svg)](https://php.net/) [![PHP 8.4](https://img.shields.io/badge/php-~8.4-8892BF.svg)](https://php.net/)
16+
Supported PHP versions: [![PHP 8.2](https://img.shields.io/badge/php-~8.2-8892BF.svg)](https://php.net/) [![PHP 8.3](https://img.shields.io/badge/php-~8.3-8892BF.svg)](https://php.net/) [![PHP 8.4](https://img.shields.io/badge/php-~8.4-8892BF.svg)](https://php.net/)
1717

1818
---
1919

documentation/introduction.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ Flow is a PHP based, strongly typed data processing framework with low memory fo
99

1010
Supported PHP versions:
1111

12-
- 8.1 - going to be removed soon
1312
- 8.2
1413
- 8.3
1514
- 8.4

web/landing/assets/styles/app.css

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,18 @@ code {
108108
@apply inline;
109109
}
110110

111+
#documentation-page table {
112+
@apply w-full table-auto mb-3 border-collapse border-2 border-gray;
113+
}
114+
115+
#documentation-page th {
116+
@apply border border-gray p-2;
117+
}
118+
119+
#documentation-page td {
120+
@apply border border-gray p-2;
121+
}
122+
111123
#documentation-page hr, p, pre, ul, h2, h3 {
112124
@apply mb-3;
113125
}

web/landing/src/Flow/Website/Service/Markdown/LeagueCommonMarkConverterFactory.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
use League\CommonMark\Extension\CommonMark\Node\Inline\Link;
1010
use League\CommonMark\Extension\ExternalLink\ExternalLinkExtension;
1111
use League\CommonMark\Extension\FrontMatter\FrontMatterExtension;
12+
use League\CommonMark\Extension\Table\TableExtension;
1213

1314
final class LeagueCommonMarkConverterFactory
1415
{
@@ -26,6 +27,7 @@ public function __invoke() : CommonMarkConverter
2627
$converter->getEnvironment()
2728
->addExtension(new ExternalLinkExtension())
2829
->addExtension(new FrontMatterExtension())
30+
->addExtension(new TableExtension())
2931
->addRenderer(FencedCode::class, new FlowCodeRenderer(), 0)
3032
->addRenderer(Link::class, new FlowLinkRenderer(), 0);
3133

web/landing/templates/blog/posts/2024-04-04/building-custom-extractor-google-analytics/post.html.twig

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,21 @@
2828
This should give us the following schema:
2929
</p>
3030

31+
<!-- Google Ads -->
32+
<script async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-2364202911639369" crossorigin="anonymous"></script>
33+
<ins class="adsbygoogle"
34+
style="display:block; text-align:center;"
35+
data-ad-layout="in-article"
36+
data-ad-format="fluid"
37+
data-ad-client="ca-pub-2364202911639369"
38+
data-ad-slot="7201592389">
39+
40+
</ins>
41+
<script>
42+
(adsbygoogle = window.adsbygoogle || []).push({});
43+
</script>
44+
<!-- Google Ads -->
45+
3146
{% apply spaceless %}
3247
<pre>
3348
<code class="language-shell" {{ stimulus_controller('syntax_highlight') }}>{% apply escape %}{% include template_folder ~ '/schema.txt' %}{% endapply %}</code>
@@ -66,6 +81,21 @@
6681
We can use it to access things like <code>EntryFactory</code> or <code>Config</code> however we are not going to use it in this example.
6782
</p>
6883

84+
<!-- Google Ads -->
85+
<script async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-2364202911639369" crossorigin="anonymous"></script>
86+
<ins class="adsbygoogle"
87+
style="display:block; text-align:center;"
88+
data-ad-layout="in-article"
89+
data-ad-format="fluid"
90+
data-ad-client="ca-pub-2364202911639369"
91+
data-ad-slot="7201592389">
92+
93+
</ins>
94+
<script>
95+
(adsbygoogle = window.adsbygoogle || []).push({});
96+
</script>
97+
<!-- Google Ads -->
98+
6999
<p>
70100
Let's start by fetching the list of Account Summaries from Google Analytics API, iterating over the list and yield each Account Summary.
71101
</p>

web/landing/templates/blog/posts/2024-08-08/scalar-functions/post.html.twig

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,20 @@
2323
It's worth noticing that the execution context of scalar functions is the entire row, even though the operation usually takes place on a single cell.
2424
This relationship allows using values from other cells as function arguments, for example.
2525
</p>
26+
<!-- Google Ads -->
27+
<script async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-2364202911639369" crossorigin="anonymous"></script>
28+
<ins class="adsbygoogle"
29+
style="display:block; text-align:center;"
30+
data-ad-layout="in-article"
31+
data-ad-format="fluid"
32+
data-ad-client="ca-pub-2364202911639369"
33+
data-ad-slot="7201592389">
34+
35+
</ins>
36+
<script>
37+
(adsbygoogle = window.adsbygoogle || []).push({});
38+
</script>
39+
<!-- Google Ads -->
2640
<p>
2741
Each scalar function implements a very simple interface.
2842
</p>
@@ -42,6 +56,20 @@
4256
<p>
4357
The <code>ref(string $entry) : EntryReference</code> function returns an instance of the <code>EntryReference</code> object, which implements the <code>ScalarFunction</code> interface. This implementation involves returning the value from the cell that the reference points to.
4458
</p>
59+
<!-- Google Ads -->
60+
<script async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-2364202911639369" crossorigin="anonymous"></script>
61+
<ins class="adsbygoogle"
62+
style="display:block; text-align:center;"
63+
data-ad-layout="in-article"
64+
data-ad-format="fluid"
65+
data-ad-client="ca-pub-2364202911639369"
66+
data-ad-slot="7201592389">
67+
68+
</ins>
69+
<script>
70+
(adsbygoogle = window.adsbygoogle || []).push({});
71+
</script>
72+
<!-- Google Ads -->
4573
<p>
4674
It's worth mentioning another very frequently used scalar function, <code>lit(mixed $value) : Literal</code>. The <code>lit</code> function has a very similar operation to <code>ref</code>, with the difference that instead of extracting a value from a cell, it returns the value passed as an argument.
4775
</p>

web/landing/templates/documentation/page.html.twig

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,21 @@
1919
</div>
2020
<div class="order-3 lg:order-1 lg:col-span-4 p-2">
2121
<hr class="lg:hidden"/>
22+
<!-- Google Ads -->
23+
<script async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-2364202911639369" crossorigin="anonymous"></script>
24+
<ins class="adsbygoogle"
25+
style="display:block; text-align:center;"
26+
data-ad-layout="in-article"
27+
data-ad-format="fluid"
28+
data-ad-client="ca-pub-2364202911639369"
29+
data-ad-slot="7201592389">
30+
31+
</ins>
32+
<script>
33+
(adsbygoogle = window.adsbygoogle || []).push({});
34+
</script>
35+
<!-- Google Ads -->
36+
2237
{{ page.content|markdown_to_html }}
2338

2439
<hr class="!mt-8 !mb-8"/>

0 commit comments

Comments
 (0)