<commit_before><?php
/**
 * Template Name: Page tutoriels
 */

?>

<?php while (have_posts()) :
    the_post(); ?>

  <div class="page-wrapper" >
    <div class="page-column page-contenu" id="page-contenu">
        <?php get_template_part('partials/content-page'); ?>
        <?php if (have_rows('tutoriels')) : ?>

            <?php $num = 0; ?>
            <?php while (have_rows('tutoriels')) :
                the_row(); ?>

            <?php
              //vars
              $num = $num + 1;
              $title = get_sub_field('title');
              $pdf = get_sub_field('pdf');
              $shortcode = '[gview file="'. $pdf . '" title="'. $title .'" save="1" cache="1"]';<commit_msg>ajout champ url pour les pdf des tutoriaux<commit_after><?php
/**
 * Template Name: Page tutoriels
 */

?>

<?php while (have_posts()) :
    the_post(); ?>

  <div class="page-wrapper" >
    <div class="page-column page-contenu" id="page-contenu">
        <?php get_template_part('partials/content-page'); ?>
        <?php if (have_rows('tutoriels')) : ?>

            <?php $num = 0; ?>
            <?php while (have_rows('tutoriels')) :
                the_row(); ?>

            <?php
              //vars
              $num = $num + 1;
              $title = get_sub_field('title');
            if (get_sub_field('url_pdf')) {
                $pdf = get_sub_field('url_pdf');
            } else {
                $pdf = get_sub_field('pdf');
            }
              $shortcode = '[gview file="'. $pdf . '" title="'. $title .'" save="1" cache="1"]';
{'fraction_non_alphanumeric': 0.18866709594333547, 'fraction_numerical': 0.0051513200257566, 'mean_word_length': 1.8777777777777778, 'pattern_counts': {'":': 0, '<': 21, '<?xml version=': 0, '>': 19, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6270146', 'n_tokens_mistral': 505, 'n_tokens_neox': 486, 'n_words': 99}