# Widget templete

**URL:** <https://discourse.libretime.org/t/widget-templete/541>\
**Category:** Uncategorized\
**Created:** [April 26, 2020, 2:42pm UTC](https://discourse.libretime.org/t/widget-templete/541 "2020-04-26T14:42:53Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![Frankie](https://avatars.discourse-cdn.com/v4/letter/f/258eb7/32.png) [@Frankie](https://discourse.libretime.org/u/Frankie)\
**Post date:** [April 26, 2020, 2:42pm UTC](https://discourse.libretime.org/t/widget-templete/541/1 "2020-04-26T14:42:53Z")

</div>

Hello, I would like to edit the widgets, but I can’t find the right dates.

maybe one can help spontaneously 🙂

---

<div class="post-metadata">

**Author:** ![robbt](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.libretime.org/robbt/32/15_2.png) [@robbt](https://discourse.libretime.org/u/robbt)\
**Post date:** [April 26, 2020, 3:59pm UTC](https://discourse.libretime.org/t/widget-templete/541/2 "2020-04-26T15:59:53Z")

</div>

So the widget stuff is in a few different places. Not sure which widget you want to modify.  
In general the widget stuff is in airtime\_mvc/application/controllers/EmbeddablewidgetsController.php & EmbedController.php

The code template is at airtime\_mvc/application/views/scripts/embeddablewidgets written in phtml and there is also some helper code in airtime\_mvc/application/common/WidgetHelper.php

I hope that helps, what are you trying to customize about it ?

---

<div class="post-metadata">

**Author:** ![Frankie](https://avatars.discourse-cdn.com/v4/letter/f/258eb7/32.png) [@Frankie](https://discourse.libretime.org/u/Frankie)\
**Post date:** [April 30, 2020, 4:38pm UTC](https://discourse.libretime.org/t/widget-templete/541/3 "2020-04-30T16:38:45Z")

</div>

Hello, I would like to adjust the plugin/widget calendar to integrate it into my app, unfortunately I can not find the right position?

Frankie

---

<div class="post-metadata">

**Author:** ![robbt](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.libretime.org/robbt/32/15_2.png) [@robbt](https://discourse.libretime.org/u/robbt)\
**Post date:** [April 30, 2020, 5:31pm UTC](https://discourse.libretime.org/t/widget-templete/541/4 "2020-04-30T17:31:02Z")

</div>

Well I’m not sure what specifically you need. What are you trying to change about it ?

---

<div class="post-metadata">

**Author:** ![Frankie](https://avatars.discourse-cdn.com/v4/letter/f/258eb7/32.png) [@Frankie](https://discourse.libretime.org/u/Frankie)\
**Post date:** [May 1, 2020, 9:14am UTC](https://discourse.libretime.org/t/widget-templete/541/5 "2020-05-01T09:14:28Z")

</div>

widget in the calendar, I would like to adjust for optics so that it fits the app.

---

<div class="post-metadata">

**Author:** ![robbt](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.libretime.org/robbt/32/15_2.png) [@robbt](https://discourse.libretime.org/u/robbt)\
**Post date:** [May 1, 2020, 3:45pm UTC](https://discourse.libretime.org/t/widget-templete/541/6 "2020-05-01T15:45:35Z")

</div>

Have you tried modifying the code here - [https://github.com/LibreTime/libretime/tree/master/airtime\_mvc/application/views/scriptsairtime\_mvc/application/views/scripts/embeddablewidgets](https://github.com/LibreTime/libretime/tree/master/airtime_mvc/application/views/scriptsairtime_mvc/application/views/scripts/embeddablewidgets) ?  
This is where the internals of the widget are created - [https://github.com/LibreTime/libretime/tree/master/airtime\_mvc/application/views/scriptsairtime\_mvc/application/views/scripts/embeddablewidgets](https://github.com/LibreTime/libretime/tree/master/airtime_mvc/application/views/scriptsairtime_mvc/application/views/scripts/embeddablewidgets)

Looks like it is using Angular 1 - but the CSS is located here - [https://github.com/LibreTime/libretime/tree/master/airtime\_mvc/application/views/scriptsairtime\_mvc/application/views/scripts/embeddablewidgets](https://github.com/LibreTime/libretime/tree/master/airtime_mvc/application/views/scriptsairtime_mvc/application/views/scripts/embeddablewidgets) and so that could handle some of the formatting.

Sorry can’t help with anymore specifics as I’m not sure what exactly you want to change but if you just want to change the size etc then modifying the files I represented above should be able to modify it, but keep in mind any modifications you do by hand will be overwritten if you upgrade your libretime instance. So you might want to try to do a backup of any changes so you can re-apply them if and when you update your code.

Feel free to share your code and/or any specific issues you run into while trying to modify it and we can all learn together how to customize it. It would probably be a good idea for us to create a mechanism to customize this code so that it doesn’t get overwritten during an upgrade but nobody has spent the time to do this yet.

---

<div class="post-metadata">

**Author:** ![Serge](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.libretime.org/serge/32/711_2.png) [@Serge](https://discourse.libretime.org/u/Serge)\
**Post date:** [September 28, 2021, 10:06am UTC](https://discourse.libretime.org/t/widget-templete/541/7 "2021-09-28T10:06:44Z")

</div>

Hello robbt, I can’t find the /scriptsairtime\_mvc/ in /views/  
Am i missing something?

Greetz,  
Serge

---

<div class="post-metadata">

**Author:** ![robbt](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.libretime.org/robbt/32/15_2.png) [@robbt](https://discourse.libretime.org/u/robbt)\
**Post date:** [September 28, 2021, 12:13pm UTC](https://discourse.libretime.org/t/widget-templete/541/8 "2021-09-28T12:13:49Z")

</div>

> **[libretime/airtime\_mvc/application/views/scripts/embeddablewidgets at master ·...](https://github.com/LibreTime/libretime/tree/master/airtime_mvc/application/views/scripts/embeddablewidgets)**
>
> master/airtime\_mvc/application/views/scripts/embeddablewidgets

---

<div class="post-metadata">

**Author:** ![Serge](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.libretime.org/serge/32/711_2.png) [@Serge](https://discourse.libretime.org/u/Serge)\
**Post date:** [September 29, 2021, 11:21am UTC](https://discourse.libretime.org/t/widget-templete/541/9 "2021-09-29T11:21:12Z")

</div>

Thanks robbt 👍  
I am trying to put the player on an other domain since our hosting company made some changes.
